17 #ifndef AGXPLOT_SYSTEM_H
18 #define AGXPLOT_SYSTEM_H
173 void updatedRepresentation();
181 bool hasData()
const;
183 void simulationTickCallback(
agx::Clock *clock);
198 bool m_loadingJournal;
200 bool m_updatedRepresentation;
230 void updateOutputs();
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXPHYSICS_EXPORT
OutputThread(System *system, agx::Real frequency=30)
void setFrequency(agx::Real frequency)
agx::Real getFrequency() const
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.
agxPlot::DataSeries * getDataSeries(agx::UInt id) const
Get a dataseries from the ID it holds.
agxPlot::Window * getOrCreateWindow(const agx::String &windowId="")
Get the default plot associated 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.
static bool plottingDisabled()
OutputAddedEvent outputAdded
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.
Base class providing referencing counted objects.
The Timer class permits timing execution speed with the same refinement as the built in hardware cloc...
Namespace contains functionality related to plotting.
AGXCORE_EXPORT Component * root()