17 #ifndef AGX_JOURNAL_CUSTOM_DATA_RECORDER_H
18 #define AGX_JOURNAL_CUSTOM_DATA_RECORDER_H
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXPHYSICS_EXPORT
#define AGX_DECLARE_VECTOR_TYPES(type)
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Derive from this class to implement a listener for simulation step events.
agx::ComponentRef m_dataRoot
virtual void pre(const agx::TimeStamp &time) override
Called before a step is taken in the simulation.
void createJournalBindings(agx::Journal *journal)
virtual void preCollide(const agx::TimeStamp &time) override
Called before the collision detection step is taken in the simulation.
bool setCustomValueReal(const agx::String &name, agx::Real val) const
Set a custom real value to the simulation given a name identifier.
JournalCustomDataRecorder(const agx::Name &dataNodeName)
Standard constructor for the JournalCustomDataRecorder class.
agx::HashTable< agx::Name, agxData::ValueRef > m_valueTable
void journalAttachedCallback(agxSDK::Simulation *, agx::Journal *)
agx::Real getCustomValueReal(const agx::String &name) const
Gets a custom real value to the simulation given a name identifier.
static bool extractJournalCustomDataRecorders(agx::JournalCustomDataRecorderPtrVector &recorders, agxSDK::Simulation *simulation)
Extracts all JournalCustomDataRecorders from a simulation.
virtual void post(const agx::TimeStamp &time) override
Called after a step is taken in the simulation.
agxSDK::Simulation::JournalAttachEvent::CallbackType m_journalAttachedCallback
virtual void addNotification() override
Called when this object is added to a simulation.
void addCustomValueReal(const agx::String &name, agx::Real initialValue)
Gets a custom real value to the simulation given a name identifier.
virtual ~JournalCustomDataRecorder()
Inheritance with partial specialization due to bug with ref_ptr containers.
Representation of a name string.
Vector containing 'raw' data.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.