16 #ifndef AGXSDK_SIMULATIONSERIALIZER_H
17 #define AGXSDK_SIMULATIONSERIALIZER_H
#define AGXPHYSICS_EXPORT
class for serializing a simulation into a series for files on disk <filename>_0001....
void setMode(ActivationMask m)
void resetFrame()
Reset the frame number so next starts at 0.
void setFilename(const agx::String &filename)
Specify the base filename used for dumping to disk: etc.
agx::Real getInterval() const
void setInterval(agx::Real interval)
Specify in what frequency the serializing of a file should occur.
void preCollide(const agx::TimeStamp &t)
Called before collision detection is performed in the simulation Implement this method in the derived...
void pre(const agx::TimeStamp &t)
Called before a step is taken in the simulation Implement this method in the derived class to get cal...
agx::String getCurrentFilename() const
Assembles current filename in form <filename_prefix>_0001.
virtual void write(const agx::TimeStamp &t)
virtual ~SimulationSerializer()
void post(const agx::TimeStamp &t)
Called after a step is taken in the simulation Implement this method in the derived class to get call...
SimulationSerializer()
Default constructor, sets interval to 30hz and filename to "agxFile_00001.agx", writing in POST event...
agx::String getFilename() const
Derive from this class to implement a listener for simulation step events.
ActivationMask
Defines the event states for which a listener will be activated, a mask can be bitwise OR:ed from the...
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
agx::ref_ptr< SimulationSerializer > SimulationSerializerRef