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);
245 bool renameCurrentSession(
const agx::String& newName );
250 bool removeSession(
const agx::Name& sessionName );
307 void attachStandalone( agxData::FrameReader* input, agxData::FrameWriter* output );
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();
349 agxData::JournalArchive::SessionRef m_currentSession;
368 Clock::TickEvent::CallbackType m_preTickCallback;
375 bool m_hasSavedScene;
378 bool m_saveSimulationToDisk;
381 Real m_recordStartTime;
383 agx::
UInt16 m_serializationVersion;
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
agxData::JournalArchive::Session * getCurrentSession()
Session(const agx::Name &name)
agxData::DiskFrameWriter * getFileWriter()
Base class for the FrameReaders that are backed by a file on disk.
Generalized callback, using std::function.
agxSDK::Simulation * getSimulation()
agxSDK::SimulationFrameReader * getSimulationReader()
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.
agxData::Track * getTrack()
const Name & getName() const
agx::ref_ptr< SimulationFrameWriter > SimulationFrameWriterRef
Callback1< const agx::String & > SceneLoaderCallback
A callback that will be called when starting playback from a recording.
agx::ref_ptr< DiskFrameReader > DiskFrameReaderRef
agx::ref_ptr< DiskFrameWriter > DiskFrameWriterRef
agx::ref_ptr< JournalArchive > JournalArchiveRef
agxSDK::SimulationFrameWriter * getSimulationWriter()
typedef void(GLAD_API_PTR *GLDEBUGPROC)(GLenum source
agxData::DiskFrameReader * getFileReader()
const String & getDiskPath() const
Set the disk path.
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
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
agx::Object is a refcounted object with a name.