17 #ifndef AGXPLOT_DATASERIES_H
18 #define AGXPLOT_DATASERIES_H
45 DATASERIES_SETTINGS_NONE = 0,
46 DATASERIES_SETTINGS_ISTIME = 1
219 void addOutput(
Queue* queue);
221 bool isMultipleSource()
const;
228 size_t m_currentSumIndex;
232 bool m_isLogarithmic;
233 bool m_journalDataImported;
238 size_t m_currentIndex;
241 std::unique_ptr<agxUtil::Statistic> m_statistic;
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXPHYSICS_EXPORT
#define AGX_DECLARE_VECTOR_TYPES(type)
DataSeries(agxPlot::DataSeries *sourceA, agxPlot::DataSeries *sourceB)
Create a DataSeries that gets fed by two sources and adding their data.
DataSeries(const agx::Uuid &entityId, const agx::String &dataPath, agxSDK::Simulation *simulation, const agx::String &name)
Create a DataSeries that takes fields from the rigidBody specified by the entity ID.
bool hasImportedJournalData() const
const agx::String & getName() const
Get the name of the data series.
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.
const agx::RealVector & getAllValues() const
Get all values that have been generated so far.
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.
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
const agx::String & getUnit() const
Get the unit of the data series.
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 agxUtil::Statistic * getStatistic() const
Return the statistic, if any, through which data from generator is passed before being added to the d...
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...
AGXCORE_EXPORT Component * root()