45 virtual agxData::Frame *readFrame()
override;
51 agxData::Frame *generateKeyFrame();
57 void setReadFrameOnNextPreTick(
bool flag);
59 void forcePushCurrentFrame();
62 void setKeyFrameInterval(
agx::UInt interval);
64 void setStoreConstraintData(
bool flag);
65 bool getStoreConstraintData()
const;
71 virtual agx::UInt getFrameStride()
override;
76 void setEnableIncrementalStructure(
bool flag);
81 bool getEnableIncrementalStructure()
const;
85 void tryPushCurrentFrameToTrack();
94 class ValueListener :
public agxData::Value::EventListener
106 class BufferListener :
public agxData::Buffer::EventListener
122 class StorageListener :
public agxData::EntityStorage::EventListener
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;
213 DirtyValueTable m_activeValues;
216 DirtyBufferTable m_activeBuffers;
219 StorageTable m_activeStorages;
230 bool m_saveFrameOnNextPreTick;
233 bool m_storeConstraintData;
236 bool m_enableThreadTimeline;
237 bool m_isProfilingFrame;
242 TaskProfilingSizeTable m_taskProfilingSizeTable;
246 IncrementalArchive m_incrementalArchive;
250 void extractCustomTaskProfiling(agx::TaskTimingReportHandle* node, agx::TaskTimingData& timingData);
252 agx::Component *createFrameArchive(agxData::Frame* frame,
bool binary =
true);
264 Simulation::RigidBodyEvent::CallbackType m_addRigidBodyCallback;
265 Simulation::RigidBodyEvent::CallbackType m_removeRigidBodyCallback;
267 Simulation::ConstraintEvent::CallbackType m_addConstraintCallback;
268 Simulation::ConstraintEvent::CallbackType m_removeConstraintCallback;
270 Simulation::GeometryEvent::CallbackType m_addGeometryCallback;
271 Simulation::GeometryEvent::CallbackType m_removeGeometryCallback;
295 bool m_enableIncrementalStructure;
321 DirtySet(
bool markAllDirty =
false);
327 bool isAllDirty()
const;
344 AGX_FORCE_INLINE bool SimulationFrameReader::DirtySet::empty()
const {
return m_indexList.empty() && !m_allDirty; }
345 AGX_FORCE_INLINE size_t SimulationFrameReader::DirtySet::size()
const {
return m_indexList.size(); }
346 AGX_FORCE_INLINE bool SimulationFrameReader::DirtySet::isAllDirty()
const {
return m_allDirty; }
Representation of a path, a list of name components.
AGXTERRAIN_EXPORT void clear()
Data storage for a collection of entity instances of a specified EntityModel.
A component is an object containing other objects, enabling hierarchical structuring.
Abstract representation of a value.
This namespace consists of a set of classes for handling geometric intersection tests including boole...
The FrameReader reads frames from an external source.
#define AGXPHYSICS_EXPORT
The base class for a constraint.
Accessor to a entity instance stored in a EntityStorage, to allow SOA (structure of arrays) data to b...
A representation of a generic task.
Block synchronization primitive.
This struct is used to handle id-collisions when using incremental journal.
Base class providing referencing counted objects.
The geometry representation used by the collision detection engine.
friend class ProviderHandle
std::vector< bool > DynamicBitSet
Abstract representation of a data buffer.
agx::ref_ptr< agx::Referenced > object
Callback1< T1 > CallbackType
The rigid body class, combining a geometric model and a frame of reference.
Templated callback with two arguments.
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Class for writing serialized data in binary format to a stream.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Clock class keeps representation of virtual/simulated time.
AGXCORE_EXPORT Component * root()
Inheritance with partial specialization due to bug with ref_ptr containers.
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
AGX_DECLARE_POINTER_TYPES(SpaceListener)
agx::Object is a refcounted object with a name.