94 class ValueListener :
public agxData::Value::EventListener
106 class BufferListener :
public agxData::Buffer::EventListener
122 class StorageListener :
public agxData::EntityStorage::EventListener
125 StorageListener(SimulationFrameReader *reader);
137 SimulationFrameReader *reader();
140 class IncrementalArchive :
public agx::Observer
143 IncrementalArchive();
144 virtual ~IncrementalArchive();
149 std::stringstream& getStream();
157 virtual void objectDeleted(
void *target);
161 std::unique_ptr<std::stringstream> m_stream;
170 virtual agxData::Frame::DataBinding *createDataBinding(
const agx::Path& internalPath,
const agx::Path& externalPath)
override;
175 void synchronizeConstraintForceData();
176 void postSaveCallback();
182 void addStatisticsToFrame(agxData::Frame *frame);
185 void addObjectToFrame(agxData::Frame *frame,
agx::Object *
object,
const agx::Path& bindPath,
bool resetDirtyFlags,
bool recursive);
186 void addValueToFrame(agxData::Frame *frame,
agxData::Value *value,
const agx::Path& bindPath,
bool resetDirtyFlags);
187 void addBufferToFrame(agxData::Frame *frame,
agxData::Buffer *buffer,
const agx::Path& bindPath,
bool resetDirtyFlags);
190 void initializeBinding(
DataBinding *binding,
bool doingActualSimulation);
191 void initializeBinding(
agx::Object *
object,
bool doingActualSimulation,
bool recursive);
192 agxData::Frame *readFrameImpl(
bool isSequenceFrame);
194 void addConstraintDataToFrame( agxData::Frame *frame );
198 void extractTaskProfilingData(
agx::Task *task, agx::TaskTimingData& timingData);
203 friend class ValueListener;
204 ValueListener m_valueListener;
206 friend class BufferListener;
207 BufferListener m_bufferListener;
209 friend class StorageListener;
210 StorageListener m_storageListener;
230 bool m_saveFrameOnNextPreTick;
233 bool m_storeConstraintData;
236 bool m_enableThreadTimeline;
237 bool m_isProfilingFrame;
246 IncrementalArchive m_incrementalArchive;
250 void extractCustomTaskProfiling(agx::TaskTimingReportHandle* node, agx::TaskTimingData& timingData);
252 agx::Component *createFrameArchive(agxData::Frame* frame,
bool binary =
true);
295 bool m_enableIncrementalStructure;
351 AGX_FORCE_INLINE SimulationFrameReader *SimulationFrameReader::StorageListener::reader() {
return this->getOwner<SimulationFrameReader>(); }
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXPHYSICS_EXPORT
The geometry representation used by the collision detection engine.
Abstract representation of a data buffer.
Accessor to a entity instance stored in a EntityStorage, to allow SOA (structure of arrays) data to b...
Data storage for a collection of entity instances of a specified EntityModel.
The FrameReader reads frames from an external source.
Abstract representation of a value.
void setObject(agx::Object *object)
DataBinding(const agx::Path &internalPath, const agx::Path &externalPath, agx::Object *object=nullptr)
agx::Object * getObject()
void addIndex(agx::Index index)
const agx::IndexVector & getIndexList() const
DirtySet(bool markAllDirty=false)
virtual ~SimulationFrameReader()
virtual agxData::Frame * readFrame() override
Reads the next frame from the stream and moves the stream forward one frame.
virtual agx::Real getTimeStep() override
void forcePushCurrentFrame()
SimulationFrameReader(Simulation *simulation, bool passive=false)
virtual agx::UInt getFrameStride() override
agx::UInt getKeyFrameInterval() const
void setStoreConstraintData(bool flag)
bool getEnableIncrementalStructure() const
bool getStoreConstraintData() const
void setKeyFrameInterval(agx::UInt interval)
Set keyframe interval.
void tryPushCurrentFrameToTrack()
agxData::Frame * generateKeyFrame()
Generate an explicit key frame.
void setEnableIncrementalStructure(bool flag)
Enable/disable incremental simulation structure recording.
void setReadFrameOnNextPreTick(bool flag)
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Class for writing serialized data in binary format to a stream.
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Block synchronization primitive.
Clock class keeps representation of virtual/simulated time.
A component is an object containing other objects, enabling hierarchical structuring.
The base class for a constraint.
Inheritance with partial specialization due to bug with ref_ptr containers.
Inheritance with partial specialization due to bug with ref_ptr containers.
agx::Object is a refcounted object with a name.
Representation of a path, a list of name components.
Base class providing referencing counted objects.
The rigid body class, combining a geometric model and a frame of reference.
friend class ProviderHandle
A representation of a generic task.
Smart pointer for observed objects, that automatically set pointers to them to null when they deleted...
This namespace consists of a set of classes for handling geometric intersection tests including boole...
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
AGXTERRAIN_EXPORT void clear()
std::vector< bool > DynamicBitSet
agx::ref_ptr< agx::Referenced > object
This struct is used to handle id-collisions when using incremental journal.