49 DATASERIES_SETTINGS_NONE = 0,
50 DATASERIES_SETTINGS_ISTIME = 1
222 void addOutput(
Queue* queue);
224 bool isMultipleSource()
const;
231 size_t m_currentSumIndex;
235 bool m_isLogarithmic;
236 bool m_journalDataImported;
241 size_t m_currentIndex;
244 std::unique_ptr<agxUtil::Statistic> m_statistic;
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXPHYSICS_EXPORT
#define AGX_DECLARE_VECTOR_TYPES(type)
Abstract base class for creating data to be plotted.
Event listener that will generate plotting data.
Class that encapsulates data to be plotted, including methods for accessing the data,...
DataSeries(agxPlot::DataSeries *sourceA, agxPlot::DataSeries *sourceB)
Create a DataSeries that gets fed by two sources and adding their data.
const agx::String & getName() const
Get the name of the data series.
DataSeries(const agx::Uuid &entityId, const agx::String &dataPath, agxSDK::Simulation *simulation, const agx::String &name)
Create a DataSeries that takes fields from the object specified by the entity ID.
const agxUtil::Statistic * getStatistic() const
Return the statistic, if any, through which data from generator is passed before being added to the d...
bool hasImportedJournalData() const
agx::Event representationChanged
void setFromDescription(const agxJson::Value &root)
Set from a description of the format from getDescription.
void init(DataGeneratorRef generator, const agx::String &name)
DataSeries(agxPlot::DataGenerator *dataGenerator, const agx::String &name)
Create a DataSeries that calls getValue on the given DataGenerator to generate data.
DataSeries(agxPlot::DataSeries *source)
Create a DataSeries that gets fed by the source specified.
void setUnit(const agx::String &unit)
Set a string representing the unit of the data series.
void setName(const agx::String &name)
Set the name of the data series.
size_t getNewValueMarker() const
Get the index of the oldest new value.
DataSeries(agxPlot::DataListener *listener, const agx::String &name)
Create a DataSeries that calls the getValue operator of the DataListener to generate data.
const agx::String & getUnit() const
Get the unit of the data series.
agx::Uuid getEntityId() const
void setLogarithmic(bool isLogarithmic)
Should the axis be logarithmic if displayed.
void setStatistic(agxUtil::StatisticHandleRef statistic)
Pass data read from the data generator through the given statistic before adding it to the data serie...
void getDescription(agxJson::Value &root) const
Get the description of the following format.
void setSettings(agx::UInt16 settings)
Set special settings for the data series.
void resetDirty()
All current values are now observed and dirty flags can be cleaned up.
void generateCurrentValue()
Fetches the current value from the specified way of generation and append it to the series.
DataSeries(const agx::String &dataPath, agxSDK::Simulation *simulation, const agx::String &name)
Create a DataSeries that calls the getValue operator of the DataListener to generate data.
bool getLogarithmic() const
DataSeries(std::function< double()> lambdaFunction, const agx::String &name)
Create a DataSeries that calls the specified function to generate data.
void push(agx::Real value)
Manually add a value at the end of the DataSeries.
void setStatistic(agxUtil::Statistic *statistic)
Pass data read from the data generator through the given statistic before adding it to the data serie...
const agx::String & getDataPath() const
bool isTime() const
Time works different, thus the time data series have this flag.
DataSeries(const agx::String &name="")
Create a DataSeries that can only get values by manually pushing them.
void clearData()
Remove all values in stored.
const agx::RealVector & getAllValues() const
Get all values that have been generated so far.
Class for generating a data serie containg simulation time.
TimeDataSeries(agxSDK::Simulation *)
virtual ~TimeDataSeries()
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Pure virtual statistic class containing the fundamentals for implementing a statistics method.
An event with no arguments.
Base class providing referencing counted objects.
A UUID, or Universally unique identifier, is intended to uniquely identify information in a distribut...
Smart pointer for handling referenced counted objects.
Namespace contains functionality related to plotting.
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...