75 Journal(
const String& diskPath =
"Journal.agxJournal",
ArchiveFormat archiveFormat = AUTO,
bool loadPlotFromJournal =
true,
bool readOnlyIfExists=
false);
80 const Name& getName()
const;
91 const String& getDiskPath()
const;
144 void setMode(
Mode mode);
149 Mode getMode()
const;
154 void setEnableIncrementalStructure(
bool flag);
159 bool getEnableIncrementalStructure()
const;
164 bool isJumping()
const;
170 bool loadConfiguration(
const String& configurationFilePath);
175 void addDataBinding(
const agx::Path& path,
bool recursive =
false);
176 void addDataBinding(
const agx::Object *
object,
bool recursive =
false);
181 bool removeDataBinding(
const agx::Path& path);
187 void clearDataBindings();
192 void startRecordingAtTime(
agx::Real time);
198 void flush(
bool force =
false);
204 void setExceptionHandler(
const ExceptionHandler& handler);
209 const ExceptionHandler& getExceptionHandler()
const;
251 bool renameCurrentSession(
const agx::String& newName );
256 bool removeSession(
const agx::Name& sessionName );
291 void setSceneLoader(SceneLoaderCallback loader);
294 void setRenderLoader(RenderLoaderCallback loader);
296 RenderLoaderCallback getRenderLoader();
313 void attachStandalone(
agxData::FrameReader* input,
agxData::FrameWriter* output );
329 void setSaveSceneToDisk(
bool flag );
334 bool getSaveSceneToDisk() const;
341 void preTickCallback(
Clock *clock);
343 void defaultSceneLoader(const
String& path);
345 void trackExceptionCallback(
agxData::Track *track,
std::exception& e);
346 void createApiTrack();
352 ExceptionHandler m_exceptionHandler;
355 agxData::JournalArchive::SessionRef m_currentSession;
364 SceneLoaderCallback m_sceneLoader;
365 RenderLoaderCallback m_renderLoader;
374 Clock::TickEvent::CallbackType m_preTickCallback;
381 bool m_hasSavedScene;
384 bool m_saveSimulationToDisk;
387 Real m_recordStartTime;
390 bool m_enableIncrementalStructure;
441 void writeCallback(
const agxData::Frame *frame);
Helper class for the FrameReaders that are backed by a file on disk.
Representation of a path, a list of name components.
SessionEvent sessionEndEvent
agx::Event1< UInt > ProgressEvent
agx::ref_ptr< Track > TrackRef
Session(const agx::Name &name)
Base class for the FrameReaders that are backed by a file on disk.
FoundIncrementalArchiveEvent foundIncrementalArchiveEvent
Generalized callback, using std::function.
The JournalArchive provides an abstract class for inspecting and manipulating the contents of a creat...
#define AGXPHYSICS_EXPORT
agx::ref_ptr< Frame > FrameRef
agx::Event1< Journal * > FrameJumpEvent
#define AGX_DECLARE_POINTER_TYPES(type)
Representation of a name string.
agx::Callback2< Journal *, std::exception & > ExceptionHandler
FrameJumpEvent journalFrameJumpEvent
agx::Event1< SessionHeader > SessionEvent
Block synchronization primitive.
Base class providing referencing counted objects.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
agx::ref_ptr< SimulationFrameWriter > SimulationFrameWriterRef
Callback1< const agx::String & > SceneLoaderCallback
A callback that will be called when starting playback from a recording.
Contains classes for low level data storage for AGX.
agx::ref_ptr< DiskFrameReader > DiskFrameReaderRef
agx::ref_ptr< DiskFrameWriter > DiskFrameWriterRef
agx::ref_ptr< JournalArchive > JournalArchiveRef
agx::ref_ptr< SimulationFrameReader > SimulationFrameReaderRef
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Clock class keeps representation of virtual/simulated time.
ProgressEvent progressEvent
agx::observer_ptr< Simulation > SimulationObserver
agx::Event1< Journal * > FoundIncrementalArchiveEvent
Inheritance with partial specialization due to bug with ref_ptr containers.
Callback2< agxSDK::Assembly *, bool > RenderLoaderCallback
SessionEvent sessionStartEvent
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
agx::Object is a refcounted object with a name.