69 Journal(
const String& diskPath =
"Journal.agxJournal",
ArchiveFormat archiveFormat = AUTO,
bool loadPlotFromJournal =
true,
bool readOnlyIfExists=
false);
74 const Name& getName()
const;
85 const String& getDiskPath()
const;
138 void setMode(
Mode mode);
143 Mode getMode()
const;
148 void setEnableIncrementalStructure(
bool flag);
153 bool getEnableIncrementalStructure()
const;
158 bool isJumping()
const;
164 bool loadConfiguration(
const String& configurationFilePath);
169 void addDataBinding(
const agx::Path& path,
bool recursive =
false);
170 void addDataBinding(
const agx::Object *
object,
bool recursive =
false);
175 bool removeDataBinding(
const agx::Path& path);
181 void clearDataBindings();
186 void startRecordingAtTime(
agx::Real time);
192 void flush(
bool force =
false);
198 void setExceptionHandler(
const ExceptionHandler& handler);
203 const ExceptionHandler& getExceptionHandler()
const;
245 bool renameCurrentSession(
const agx::String& newName );
250 bool removeSession(
const agx::Name& sessionName );
285 void setSceneLoader(SceneLoaderCallback loader);
288 void setRenderLoader(RenderLoaderCallback loader);
290 RenderLoaderCallback getRenderLoader();
323 void setSaveSceneToDisk(
bool flag );
328 bool getSaveSceneToDisk() const;
335 void preTickCallback(
Clock *clock);
337 void defaultSceneLoader(const
String& path);
339 void trackExceptionCallback(
agxData::Track *track,
std::exception& e);
340 void createApiTrack();
346 ExceptionHandler m_exceptionHandler;
349 agxData::JournalArchive::SessionRef m_currentSession;
358 SceneLoaderCallback m_sceneLoader;
359 RenderLoaderCallback m_renderLoader;
368 Clock::TickEvent::CallbackType m_preTickCallback;
375 bool m_hasSavedScene;
378 bool m_saveSimulationToDisk;
381 Real m_recordStartTime;
384 bool m_enableIncrementalStructure;
435 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.
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
#define AGX_DECLARE_POINTER_TYPES(type)
Representation of a name string.
agx::Callback2< Journal *, std::exception & > ExceptionHandler
agx::Event1< SessionHeader > SessionEvent
Block synchronization primitive.
Base class providing referencing counted objects.
Namespace agx 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
typedef void(GLAD_API_PTR *GLDEBUGPROC)(GLenum source
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
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.