 |
AGXDynamics
2.35.0.3
|
Go to the documentation of this file.
70 Journal(
const String& diskPath =
"Journal.agxJournal",
ArchiveFormat archiveFormat = AUTO,
bool loadPlotFromJournal =
true,
bool readOnlyIfExists=
false);
75 const Name& getName()
const;
86 const String& getDiskPath()
const;
139 void setMode(
Mode mode);
144 Mode getMode()
const;
149 void setEnableIncrementalStructure(
bool flag);
154 bool getEnableIncrementalStructure()
const;
159 bool isJumping()
const;
165 bool loadConfiguration(
const String& configurationFilePath);
170 void addDataBinding(
const agx::Path& path,
bool recursive =
false);
171 void addDataBinding(
const agx::Object *
object,
bool recursive =
false);
176 bool removeDataBinding(
const agx::Path& path);
182 void clearDataBindings();
187 void startRecordingAtTime(
agx::Real time);
193 void flush(
bool force =
false);
246 bool renameCurrentSession(
const agx::String& newName );
251 bool removeSession(
const agx::Name& sessionName );
308 void attachStandalone(
agxData::FrameReader* input,
agxData::FrameWriter* output );
324 void setSaveSceneToDisk(
bool flag );
329 bool getSaveSceneToDisk() const;
336 void preTickCallback(
Clock *clock);
338 void defaultSceneLoader(const
String& path);
340 void trackExceptionCallback(
agxData::Track *track, std::exception& e);
341 void createApiTrack();
350 agxData::JournalArchive::SessionRef m_currentSession;
369 Clock::TickEvent::CallbackType m_preTickCallback;
376 bool m_hasSavedScene;
379 bool m_saveSimulationToDisk;
382 Real m_recordStartTime;
385 bool m_enableIncrementalStructure;
436 void writeCallback(
const agxData::Frame *frame);
SessionEvent sessionStartEvent
agx::Event1< UInt > ProgressEvent
Representation of a path, a list of name components.
Session(const agx::Name &name)
#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.
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()
agx::ref_ptr< Track > TrackRef
agx::observer_ptr< Simulation > SimulationObserver
agxData::JournalArchive::Session * getCurrentSession()