|
AGXDynamics
2.31.1.0
|
#include <FrameTranspose.h>
Inheritance diagram for agxData::FrameTranspose:Public Types | |
| typedef agx::observer_ptr< const AttributeTrack > | AttributeTrackConstObserver |
| typedef agx::ref_ptr< const AttributeTrack > | AttributeTrackConstRef |
| typedef agx::observer_ptr< AttributeTrack > | AttributeTrackObserver |
| typedef agx::ref_ptr< AttributeTrack > | AttributeTrackRef |
| typedef agx::observer_ptr< const Event > | EventConstObserver |
| typedef agx::ref_ptr< const Event > | EventConstRef |
| typedef agx::observer_ptr< Event > | EventObserver |
| typedef agx::ref_ptr< Event > | EventRef |
| typedef agx::observer_ptr< const Track > | TrackConstObserver |
| typedef agx::ref_ptr< const Track > | TrackConstRef |
| typedef agx::observer_ptr< Track > | TrackObserver |
| typedef agx::ref_ptr< Track > | TrackRef |
| typedef agx::observer_ptr< const ValueTrack > | ValueTrackConstObserver |
| typedef agx::ref_ptr< const ValueTrack > | ValueTrackConstRef |
| typedef agx::observer_ptr< ValueTrack > | ValueTrackObserver |
| typedef agx::ref_ptr< ValueTrack > | ValueTrackRef |
| typedef agx::Event1< const Frame * > | WriteEvent |
Public Member Functions | |
| FrameTranspose (bool active=true) | |
| FrameTranspose (agxData::JournalArchive::Session *session) | |
| void | addDataBinding (const agx::Path &internalPath, const agx::Path &externalPath, bool recursive=false) |
| Register a data binding. More... | |
| void | addDataBinding (const agx::Path &path, bool recursive=false) |
| Alias for addDataBinding(path, path) More... | |
| void | addListener (EventListener *listener) |
| AGX_DECLARE_VECTOR_TYPES (Track) | |
| AGX_DECLARE_VECTOR_TYPES (Event) | |
| template<typename T > | |
| T * | as () |
| Subclass casting. More... | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. More... | |
| template<typename T > | |
| const T * | asSafe () const |
| AttributeTrack (const agx::Path &storagePath, const agx::Name &attributeName, agx::Index instanceId) | |
| virtual void | buildNavigationTree (agxJson::Value &eNode) const |
| void | clearDataBindings () |
| Remove all data bindings. More... | |
| virtual void | configure (TiXmlElement *) |
| virtual void | endOfStream () |
| void | extractFrames () |
| Extract all frames from track. More... | |
| void | extractFrames (agx::RangeReal timeRange) |
| Extract all frames from track within a time range. More... | |
| virtual void | forceFlush () |
| agx::String | fullName () const |
| agx::String | fullPath () const |
| agx::String | fullPath (const agx::Object *root) const |
| const agx::Name & | getAttributeName () const |
| agx::Object * | getAutoScopedResource (const agx::Path &path, agx::Model *model=nullptr) |
| const agx::Object * | getAutoScopedResource (const agx::Path &path, agx::Model *model=nullptr) const |
| template<typename T > | |
| T * | getAutoScopedResource (const agx::Path &path) |
| template<typename T > | |
| const T * | getAutoScopedResource (const agx::Path &path) const |
| agx::Object * | getContext () |
| const agx::Object * | getContext () const |
| template<typename T > | |
| T * | getContext () |
| template<typename T > | |
| const T * | getContext () const |
| agxData::Buffer * | getData () |
| const agxData::Buffer * | getData () const |
| const Frame::DataBindingRefVector & | getDataBindings () const |
| const agx::Path & | getDataPath () const |
| SerializedFrame::HeaderFormat | getHeaderFormat () const |
| agx::UInt32 | getId () const |
| const agx::Name & | getImplementationName () const |
| agxData::Buffer * | getIndexTrack () |
| const agxData::Buffer * | getIndexTrack () const |
| agx::Index | getInstanceId () const |
| agx::Model * | getModel () |
| const agx::Model * | getModel () const |
| const agx::Name & | getName () const |
| agx::Object * | getNextSibling () |
| const agx::Object * | getNextSibling () const |
| agx::UInt | getNumWrittenFrames () const |
| agx::Path | getPath () const |
| agx::Path | getPath (const agx::Object *root) const |
| int | getReferenceCount () const |
| agx::Object * | getResource (const agx::Path &path, agx::Model *model=nullptr) |
| const agx::Object * | getResource (const agx::Path &path, agx::Model *model=nullptr) const |
| template<typename T > | |
| T * | getResource (const agx::Path &path) |
| template<typename T > | |
| const T * | getResource (const agx::Path &path) const |
| virtual agx::Object * | getResourceImpl (const agx::Path &path, agx::Model *model) |
| agx::Object * | getRootContext () |
| const agx::Object * | getRootContext () const |
| const agx::Path & | getStoragePath () const |
| agx::RangeReal | getTimeRange () const |
| agxData::Buffer * | getTimeTrack () |
| const agxData::Buffer * | getTimeTrack () const |
| Track * | getTrack () |
| const Track * | getTrack () const |
| const TrackRefVector & | getTracks () const |
| bool | hasListener (EventListener *listener) |
| bool | hasParent (const agx::Object *node) const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| bool | isActive () const |
| bool | isEOF () const |
| bool | isUnique () const |
| void | loadDataBindings (const agx::String &xmlFilePath) |
| Load bindings from an xml file. More... | |
| bool | loadDataBindingsJSON (const agx::String &jsonFilePath) |
| virtual void | printSubtree () const |
| virtual void | rebind () |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | registerTrack (Track *track) |
| Register a track to be filled with transpose data. More... | |
| AttributeTrack * | registerTrack (const agx::Path &storagePath, const agx::Name &attributeName, agx::Index instanceId) |
| ValueTrack * | registerTrack (const agx::Path &valuePath) |
| bool | removeDataBinding (const agx::Path &path) |
| bool | removeDataBinding (const agx::Path &internalPath, const agx::Path &externalPath) |
| void | removeListener (EventListener *listener) |
| virtual void | save (TiXmlElement *) const |
| virtual void | setContext (agx::Object *context) |
| void | setFrameStride (agx::UInt stride) |
| void | setHeaderFormat (SerializedFrame::HeaderFormat format) |
| void | setId (UInt32 id) |
| void | setModel (agx::Model *model) |
| Set the object model (handled automatically). More... | |
| void | setName (const agx::Name &name) |
| Set the name of the object. More... | |
| virtual void | snapshot (TiXmlNode *, const String &) const |
| Track () | |
| Track (const agx::Path &dataPath) | |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| ValueTrack (const agx::Path &valuePath) | |
Static Public Member Functions | |
| static agx::Model * | ClassModel () |
| static agx::String | generateName (const agx::String &bindPath) |
| static const HashSet< Object * > & | getActiveObjects () |
| static bool | getEnableRebind () |
| Should rebinding be allowed? Right now a global setting. More... | |
| static Object * | load (TiXmlElement *eObject, Device *device) |
| template<typename T > | |
| static T * | load (TiXmlElement *eObject, Device *device) |
| static Object * | load (const String &path, Device *device, const String &type="", size_t instance=0) |
| static Object * | load (const String &path, Device *device, const String &type, const String &attribute, const String &value) |
| static void | load (const String &path, Device *device, ObjectPtrVector &loadedObjects) |
| template<typename T > | |
| static T * | load (const String &path, Device *device, const String &type="", size_t instance=0) |
| template<typename T > | |
| static T * | load (const String &path, Device *device, const String &type, const String &attribute, const String &value) |
| static TiXmlDocument | openDocument (const String &path) |
| static void | setEnableRebind (bool flag) |
| Sets if rebinding of objects should be allowed (Right now a global setting). More... | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Public Attributes | |
| WriteEvent | writeEvent |
Protected Member Functions | |
| virtual | ~AttributeTrack () |
| virtual | ~FrameTranspose () |
| virtual | ~Track () |
| virtual | ~ValueTrack () |
| void | addDataBinding (Frame::DataBinding *binding) |
| void | allocateObserverVector () const |
| virtual Frame::DataBinding * | createDataBinding (const agx::Path &internalPath, const agx::Path &externalPath) |
| void | deleteUsingDeleteHandler () const |
| virtual void | writeFrame (const Frame *frame) |
| Export a frame the implementation-specific format. More... | |
Static Protected Member Functions | |
| static DeleteHandler * | getDeleteHandler () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More... | |
Protected Attributes | |
| Mutex | m_mutex |
| agx::UInt | m_numWrittenFrames |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
Definition at line 28 of file FrameTranspose.h.
| typedef agx::observer_ptr< const AttributeTrack > agxData::FrameTranspose::AttributeTrackConstObserver |
Definition at line 34 of file FrameTranspose.h.
| typedef agx::ref_ptr< const AttributeTrack > agxData::FrameTranspose::AttributeTrackConstRef |
Definition at line 34 of file FrameTranspose.h.
Definition at line 34 of file FrameTranspose.h.
Definition at line 34 of file FrameTranspose.h.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
| typedef agx::observer_ptr< const Track > agxData::FrameTranspose::TrackConstObserver |
Definition at line 31 of file FrameTranspose.h.
| typedef agx::ref_ptr< const Track > agxData::FrameTranspose::TrackConstRef |
Definition at line 31 of file FrameTranspose.h.
Definition at line 31 of file FrameTranspose.h.
| typedef agx::ref_ptr< Track > agxData::FrameTranspose::TrackRef |
Definition at line 31 of file FrameTranspose.h.
| typedef agx::observer_ptr< const ValueTrack > agxData::FrameTranspose::ValueTrackConstObserver |
Definition at line 35 of file FrameTranspose.h.
| typedef agx::ref_ptr< const ValueTrack > agxData::FrameTranspose::ValueTrackConstRef |
Definition at line 35 of file FrameTranspose.h.
Definition at line 35 of file FrameTranspose.h.
Definition at line 35 of file FrameTranspose.h.
|
inherited |
| agxData::FrameTranspose::FrameTranspose | ( | bool | active = true | ) |
| agxData::FrameTranspose::FrameTranspose | ( | agxData::JournalArchive::Session * | session | ) |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
inherited |
Register a data binding.
The external path is implementation specific. The internal path is where the data element is stored in the frame.
Eg. a data buffer may be imported from disk using the external path "RigidBody.velocity", and then pushed to a data track with the internal path "foo". The corresponding outputs connected to the track must then bind to "foo" to retrieve the data.
Alias for addDataBinding(path, path)
|
protectedinherited |
|
inherited |
| agxData::FrameTranspose::AGX_DECLARE_VECTOR_TYPES | ( | Track | ) |
|
inherited |
|
protectedinherited |
|
inherited |
Subclass casting.
Template type must match actual type, dynamic_cast assertion will fail otherwise.
Referenced by agx::InternalData::get(), agxVehicle::Track::getNode(), agx::InternalData::getOrCreate(), and agx::InternalData::hasData().
|
inherited |
|
inherited |
Safe subclass casting, return nullptr if template type does not match.
Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().
|
inherited |
| agxData::FrameTranspose::AttributeTrack | ( | const agx::Path & | storagePath, |
| const agx::Name & | attributeName, | ||
| agx::Index | instanceId | ||
| ) |
|
virtualinherited |
Reimplemented in agxData::Buffer, agxData::Value, agx::Model, agx::Component, and agx::Pointer.
|
staticinherited |
|
inherited |
Remove all data bindings.
|
inlinevirtualinherited |
|
protectedvirtual |
Reimplemented from agxData::FrameIO.
|
protectedinherited |
|
inlinevirtualinherited |
Reimplemented in agxData::FileFrameWriter, and agxNet::TcpSocketFrameWriter.
| void agxData::FrameTranspose::extractFrames | ( | ) |
Extract all frames from track.
Assumes EOF is reached at some point. Must not be called if FrameTranspose is created as non-active.
| void agxData::FrameTranspose::extractFrames | ( | agx::RangeReal | timeRange | ) |
Extract all frames from track within a time range.
Assumes EOF is reached at some point. Must not be called if FrameTranspose is created as non-active.
| timeRange | - Range of simulation time (in seconds) |
|
inlinevirtualinherited |
Reimplemented in agxSDK::SimulationFrameWriter.
|
inherited |
|
inherited |
|
inherited |
|
staticinherited |
|
staticinherited |
| const agx::Name& agxData::FrameTranspose::getAttributeName | ( | ) | const |
|
inherited |
|
inherited |
|
inherited |
Definition at line 428 of file Object.h.
References agx::Referenced::is().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
| agxData::Buffer* agxData::FrameTranspose::getData | ( | ) |
| const agxData::Buffer* agxData::FrameTranspose::getData | ( | ) | const |
|
inherited |
| const agx::Path& agxData::FrameTranspose::getDataPath | ( | ) | const |
|
staticprotectedinherited |
|
staticinherited |
Should rebinding be allowed? Right now a global setting.
|
inherited |
|
inherited |
Definition at line 370 of file Object.h.
Referenced by agxData::EntityStorage::indexToId().
|
inherited |
| agxData::Buffer* agxData::FrameTranspose::getIndexTrack | ( | ) |
| const agxData::Buffer* agxData::FrameTranspose::getIndexTrack | ( | ) | const |
| agx::Index agxData::FrameTranspose::getInstanceId | ( | ) | const |
|
inherited |
|
inherited |
Definition at line 369 of file Object.h.
Referenced by agxData::EntityStorage::get(), agxData::FormatBinding< T >::getFormat(), and agxData::EntityPtr::operator()().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Referenced by agxData::EntityStorage::dereferenceMultipliedAttribute(), and agxData::EntityInstance::verifyIndex().
|
inherited |
| root | A node along the parent path from this object. |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 414 of file Object.h.
References agx::Referenced::is().
|
inherited |
|
virtualinherited |
|
inherited |
|
inherited |
| const agx::Path& agxData::FrameTranspose::getStoragePath | ( | ) | const |
| agx::RangeReal agxData::FrameTranspose::getTimeRange | ( | ) | const |
| agxData::Buffer* agxData::FrameTranspose::getTimeTrack | ( | ) |
| const agxData::Buffer* agxData::FrameTranspose::getTimeTrack | ( | ) | const |
|
inherited |
|
inherited |
| const TrackRefVector& agxData::FrameTranspose::getTracks | ( | ) | const |
|
inherited |
|
inherited |
|
inherited |
Subclass test.
Referenced by agx::Object::getAutoScopedResource(), agxData::EntityStorage::getInstances(), and agx::Object::getResource().
|
inherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
inherited |
Load bindings from an xml file.
Syntax example:
<DataFrame> <DataBinding internal="foo" external="bar"/> <DataBinding path="baz"/> </DataFrame>
|
inherited |
|
staticinherited |
|
inlinevirtualinherited |
Reimplemented in agx::Component.
|
inlinevirtualinherited |
Reimplemented in agx::Task, agx::Clock, agx::Parameter, agxData::Value, agx::Component, agxIO::KeyEvent, and agxData::FunctionValue.
Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
This method should be used with care, always balanced with the same number of calls to unreference.
Register a track to be filled with transpose data.
| AttributeTrack* agxData::FrameTranspose::registerTrack | ( | const agx::Path & | storagePath, |
| const agx::Name & | attributeName, | ||
| agx::Index | instanceId | ||
| ) |
| ValueTrack* agxData::FrameTranspose::registerTrack | ( | const agx::Path & | valuePath | ) |
|
inherited |
|
inherited |
|
inherited |
|
inlinevirtualinherited |
Reimplemented in agx::Clock.
|
virtualinherited |
Reimplemented in agx::Task, and agxData::FunctionValue.
|
staticprotectedinherited |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
|
staticinherited |
Sets if rebinding of objects should be allowed (Right now a global setting).
Allowing it when adding larger parts to the system tree might hit performance, so it might be smarter to disable it first, then add, and then enable again.
|
inherited |
|
inherited |
Set the object model (handled automatically).
Reimplemented in agx::Component.
Definition at line 106 of file Object.h.
References agx::getModel(), and agx::root().
| agxData::FrameTranspose::Track | ( | ) |
| agxData::FrameTranspose::Track | ( | const agx::Path & | dataPath | ) |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.
This method should be used with care, always balanced with the same number of calls to reference.
Referenced by agxData::EntityRef< ContactMaterialPtr >::~EntityRef().
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.
|
staticinherited |
| agxData::FrameTranspose::ValueTrack | ( | const agx::Path & | valuePath | ) |
|
protectedvirtual |
Export a frame the implementation-specific format.
Implements agxData::FrameWriter.
|
mutableprotectedinherited |
Definition at line 240 of file Referenced.h.
|
protectedinherited |
|
mutableprotectedinherited |
Definition at line 239 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 241 of file Referenced.h.
|
inherited |