17 #ifndef AGXPLOT_DEBUGPLOT_H
18 #define AGXPLOT_DEBUGPLOT_H
91 SINGLETON_CLASSNAME_METHOD();
104 virtual ~CurveData() {}
107 struct TimeCurveData :
public CurveData
109 TimeCurveData() : m_written( true ), m_value( agx::
Real( 0 ) ) {}
111 agx::Real getValue()
const { m_written =
true;
return m_value; }
113 void set(
agx::Real val, TimeDataBehavior behavior )
116 if ( behavior == TimeDataBehavior::ADD )
118 else if ( behavior == TimeDataBehavior::USE_FIRST )
120 else if ( behavior == TimeDataBehavior::USE_LAST )
130 virtual ~TimeCurveData() {}
138 struct XYCurveData :
public CurveData
150 virtual ~XYCurveData() {}
154 struct YCurveData :
public XYCurveData
156 YCurveData() : m_counter(0) {}
160 XYCurveData::add( (
agx::Real)m_counter++, y );
164 virtual ~YCurveData() {}
193 #if AGX_USE_WEBPLOT()
AGXTERRAIN_EXPORT void clear()
void AGXPHYSICS_EXPORT shutdown()
Shutdown agx.
Use first value set - i.e., ignore all the rest of the values during this time step, to this curve.
Add previous and current.
#define AGXPHYSICS_EXPORT
Base class providing referencing counted objects.
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
"Static" helper class to plot values from where e.g., values aren't exposed.
TimeDataBehavior
Behavior when pushing time data values since several calls can be made within same the time step...
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Base class for Singletons that should have its shutdown called explicitly before exit of the applicat...