175 void updatedRepresentation();
183 bool hasData()
const;
185 void simulationTickCallback(
agx::Clock *clock);
200 bool m_loadingJournal;
202 bool m_updatedRepresentation;
235 void updateOutputs();
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXPHYSICS_EXPORT
Class that encapsulates data to be plotted, including methods for accessing the data,...
THis class wraps the description of data that should be plotted.
OutputThread(System *system, agx::Real frequency=30)
void setFrequency(agx::Real frequency)
agx::Real getFrequency() const
System that manages the plotting system.
void getDescription(agxJson::Value &root, bool includeData) const
Retrieve the description as follows.
void add(agxPlot::Output *output)
Add an output to listen to the System.
void save() const
Store the current description in an attached RECORD journal.
bool addDataSeries(agxPlot::DataSeries *dataSeries)
Add a data series to be updated.
void setFromDescription(const agxJson::Value &root)
INTERNAL.
bool hasAnyWindow() const
Returns true if the system has any windows.
void clearDataSeries()
Clear all old data from DataSeries.
void disableWindows()
Sets all windows in the system to disabled.
void closeOutputs()
Tell all outputs attached that no more data will be coming.
static void disableAllPlotting()
Disable all plotting.
void setTimeStep(agx::Real timeStep)
When automatically generating values, this is the rate which the plot system tries to hold.
void refresh()
Check for new data and push it to all plot outputs.
void generateData()
Update all series after a time step.
agxPlot::DataSeries * getDataSeries(agx::UInt id) const
Get a dataseries from the ID it holds.
static bool plottingDisabled()
OutputAddedEvent outputAdded
agxPlot::Window * getOrCreateWindow(const agx::String &windowId="")
Get the default plot associated to the system.
const OutputRefVector & getOutputs() const
void load()
Load from an attach PLAYBACK journal.
agx::Event1< agxPlot::Output * > OutputAddedEvent
void remove(agxPlot::Output *output)
INTERNAL.
bool shouldUpdate() const
Check if it is time for a new plot frame.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Basic wrapper class aroud std::thread.
Block synchronization primitive.
Generalized callback, using std::function.
Clock class keeps representation of virtual/simulated time.
An event with one argument.
Base class providing referencing counted objects.
The Timer class permits timing execution speed with the same refinement as the built in hardware cloc...
Smart pointer for observed objects, that automatically set pointers to them to null when they deleted...
Namespace contains functionality related to plotting.