44 virtual void writeFrame(
const agxData::Frame *frame)
override;
61 void updateCallback();
64 void write(
const agxData::Frame::PartialBuffer *buffer,
const agxData::Frame *frame);
65 void write(
const agxData::Frame::EntityStorage *storage,
const agxData::Frame *frame);
67 void evaluateEventsPre(
const agxData::Frame *frame);
68 void evaluateEventsPost(
const agxData::Frame *frame);
69 void writeConstraintData(
const agxData::Frame *frame);
70 bool writeFrameArchive(
const agxData::Frame *frame);
72 void updateArrayBuffers();
74 void debugPrint(
const agxData::Frame *frame);
75 void debugPrint(
const agx::Component *component,
const agxData::Frame *frame);
76 void debugPrint(
const agxData::Frame::PartialBuffer *buffer,
const agxData::Frame *frame);
77 void debugPrint(
const agxData::Buffer *buffer,
const agxData::Frame *frame);
79 void debugPrint(
const agxData::Value *value,
const agxData::Frame *frame);
88 T *getTarget(
const Object *source);
96 struct ArchiveObjectEntry {
101 class IncrementalArchive :
public agx::Observer
104 IncrementalArchive();
105 virtual ~IncrementalArchive();
110 std::stringstream& getStream();
115 virtual void objectDeleted(
void *target);
119 std::unique_ptr<std::stringstream> m_stream;
139 bool m_needClockUpdate;
146 ObjectIdTable m_objectIdTable;
149 IncrementalArchive m_incrementalArchive;
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXPHYSICS_EXPORT
The geometry representation used by the collision detection engine.
Abstract representation of a data buffer.
Data storage for a collection of entity instances of a specified EntityModel.
The FrameWriter writes frames to an external target.
Abstract representation of a value.
An assembly is a collection of basic simulation objects, such as rigid bodies, constraints,...
virtual void writeFrame(const agxData::Frame *frame) override
virtual ~SimulationFrameWriter()
void writeFrameImpl(const agxData::Frame *frame)
SimulationFrameWriter(Simulation *simulation, bool passive=false)
void setBlocking(bool blocking)
virtual void forceFlush() override
agx::Task * getUpdateTask()
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
A component is an object containing other objects, enabling hierarchical structuring.
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.
A representation of a generic task.
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...
bool AGXPHYSICS_EXPORT write(const std::string &filename, const agxStream::Serializable *data)
Write a Serializable object to a file.
AGXTERRAIN_EXPORT void clear()
AGXTERRAIN_EXPORT TimingStorage & getStorage()