AGX Dynamics  2.37.2.0
agxPlot::TimeDataSeries Class Reference

#include <DataSeries.h>

+ Inheritance diagram for agxPlot::TimeDataSeries:

Public Member Functions

 TimeDataSeries (agxSDK::Simulation *)
 
- Public Member Functions inherited from agxPlot::DataSeries
 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. More...
 
 DataSeries (std::function< double()> lambdaFunction, const agx::String &name)
 Create a DataSeries that calls the specified function to generate data. More...
 
 DataSeries (agxPlot::DataListener *listener, const agx::String &name)
 Create a DataSeries that calls the getValue operator of the DataListener to generate data. More...
 
 DataSeries (agxPlot::DataGenerator *dataGenerator, const agx::String &name)
 Create a DataSeries that calls getValue on the given DataGenerator to generate data. More...
 
 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. More...
 
 DataSeries (agxPlot::DataSeries *source)
 Create a DataSeries that gets fed by the source specified. More...
 
 DataSeries (agxPlot::DataSeries *sourceA, agxPlot::DataSeries *sourceB)
 Create a DataSeries that gets fed by two sources and adding their data. More...
 
 DataSeries (const agx::String &name="")
 Create a DataSeries that can only get values by manually pushing them. More...
 
void clearData ()
 Remove all values in stored. More...
 
void generateCurrentValue ()
 Fetches the current value from the specified way of generation and append it to the series. More...
 
const agx::RealVector & getAllValues () const
 Get all values that have been generated so far. More...
 
const agx::String & getDataPath () const
 
void getDescription (agxJson::Value &root) const
 Get the description of the following format. More...
 
agx::Uuid getEntityId () const
 
agx::UInt getID () const
 
bool getLogarithmic () const
 
const agx::String & getName () const
 Get the name of the data series. More...
 
size_t getNewValueMarker () const
 Get the index of the oldest new value. More...
 
const agxUtil::Statistic * getStatistic () const
 Return the statistic, if any, through which data from generator is passed before being added to the data series. More...
 
const agx::String & getUnit () const
 Get the unit of the data series. More...
 
bool hasDataPath () const
 
bool hasImportedJournalData () const
 
void importedJournal ()
 
bool isTime () const
 Time works different, thus the time data series have this flag. More...
 
void push (agx::Real value)
 Manually add a value at the end of the DataSeries. More...
 
void resetDirty ()
 All current values are now observed and dirty flags can be cleaned up. More...
 
void setFromDescription (const agxJson::Value &root)
 Set from a description of the format from getDescription. More...
 
void setLogarithmic (bool isLogarithmic)
 Should the axis be logarithmic if displayed. More...
 
void setName (const agx::String &name)
 Set the name of the data series. More...
 
void setSettings (agx::UInt16 settings)
 Set special settings for the data series. More...
 
void setStatistic (agxUtil::Statistic *statistic)
 Pass data read from the data generator through the given statistic before adding it to the data series. More...
 
void setStatistic (agxUtil::StatisticHandleRef statistic)
 Pass data read from the data generator through the given statistic before adding it to the data series. More...
 
void setUnit (const agx::String &unit)
 Set a string representing the unit of the data series. More...
 
- Public Member Functions inherited from agx::Referenced
 Referenced ()
 Default constructor. More...
 
 Referenced (const Referenced &)
 
template<typename T >
T * as ()
 Subclass casting. More...
 
template<typename T >
const T * as () const
 
template<typename T >
T * asSafe ()
 Safe subclass casting, return nullptr if template type does not match. More...
 
template<typename T >
const T * asSafe () const
 
int getReferenceCount () const
 
template<typename T >
bool is () const
 Subclass test. More...
 
Referenced & operator= (const Referenced &)
 Assignment operator. Will increment the number of references to the referenced object. More...
 
void reference (void *ptr=nullptr) const
 Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
void unreference (void *ptr=nullptr) const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
void unreference_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 

Protected Member Functions

virtual ~TimeDataSeries ()
 
- Protected Member Functions inherited from agxPlot::DataSeries
virtual ~DataSeries ()
 
void init (DataGeneratorRef generator, const agx::String &name)
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor. More...
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 

Additional Inherited Members

- Public Types inherited from agxPlot::DataSeries
enum  Settings { DATASERIES_SETTINGS_NONE = 0, DATASERIES_SETTINGS_ISTIME = 1 }
 
- Static Public Member Functions inherited from agx::Referenced
template<typename T >
static bool ValidateCast (const Referenced *object)
 
- Public Attributes inherited from agxPlot::DataSeries
agx::Event representationChanged
 
- Static Protected Member Functions inherited from agx::Referenced
static DeleteHandler * getDeleteHandler ()
 
static void setDeleteHandler (DeleteHandler *handler)
 Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More...
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Detailed Description

Definition at line 254 of file DataSeries.h.

Constructor & Destructor Documentation

◆ TimeDataSeries()

agxPlot::TimeDataSeries::TimeDataSeries ( agxSDK::Simulation *  )

◆ ~TimeDataSeries()

virtual agxPlot::TimeDataSeries::~TimeDataSeries ( )
protectedvirtual

The documentation for this class was generated from the following file: