 |
AGX Dynamics
2.38.0.2
|
Go to the documentation of this file.
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);
251 bool renameCurrentSession(
const agx::String& newName );
256 bool removeSession(
const agx::Name& sessionName );
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();
355 agxData::JournalArchive::SessionRef m_currentSession;
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);
SessionEvent sessionStartEvent
agx::Event1< UInt > ProgressEvent
Representation of a path, a list of name components.
agx::Event1< Journal * > FoundIncrementalArchiveEvent
Session(const agx::Name &name)
FrameJumpEvent journalFrameJumpEvent
#define DOXYGEN_END_INTERNAL_BLOCK()
agx::ref_ptr< SimulationFrameWriter > SimulationFrameWriterRef
#define DOXYGEN_START_INTERNAL_BLOCK()
agxSDK::SimulationFrameReader * getSimulationReader()
The JournalArchive provides an abstract class for inspecting and manipulating the contents of a creat...
agx::ref_ptr< Frame > FrameRef
agxData::DiskFrameWriter * getFileWriter()
Generalized callback, using std::function.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
ProgressEvent progressEvent
#define AGXPHYSICS_EXPORT
Contains classes for low level data storage for AGX.
agx::Event1< Journal * > FrameJumpEvent
Block synchronization primitive.
SessionEvent sessionEndEvent
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
agx::Event1< SessionHeader > SessionEvent
Callback1< const agx::String & > SceneLoaderCallback
A callback that will be called when starting playback from a recording.
agxSDK::Simulation * getSimulation()
Inheritance with partial specialization due to bug with ref_ptr containers.
Callback2< agxSDK::Assembly *, bool > RenderLoaderCallback
agx::ref_ptr< DiskFrameWriter > DiskFrameWriterRef
Representation of a name string.
agx::ref_ptr< JournalArchive > JournalArchiveRef
agx::Object is a refcounted object with a name.
agxSDK::SimulationFrameWriter * getSimulationWriter()
agxData::Track * getTrack()
Base class providing referencing counted objects.
#define AGX_DECLARE_POINTER_TYPES(type)
agx::ref_ptr< DiskFrameReader > DiskFrameReaderRef
agx::ref_ptr< SimulationFrameReader > SimulationFrameReaderRef
agx::Callback2< Journal *, std::exception & > ExceptionHandler
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Clock class keeps representation of virtual/simulated time.
Helper class for the FrameReaders that are backed by a file on disk.
Base class for the FrameReaders that are backed by a file on disk.
const String & getDiskPath() const
Set the disk path.
const Name & getName() const
agxData::DiskFrameReader * getFileReader()
FoundIncrementalArchiveEvent foundIncrementalArchiveEvent
agx::ref_ptr< Track > TrackRef
agx::observer_ptr< Simulation > SimulationObserver
agxData::JournalArchive::Session * getCurrentSession()