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;
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;