|
AGX Dynamics
2.37.3.2
|
#include <SerializedFrame.h>
Inheritance diagram for agxData::SerializedFrame:Classes | |
| struct | BinaryHeader |
| struct | BinarySegment |
| struct | JsonHeader |
| struct | XmlHeader |
Public Member Functions | |
| SerializedFrame (const agxData::Frame *frame) | |
| SerializedFrame (SerializedFrame::Component *root) | |
| void | add (agx::UInt64 id) |
| void | add (agxData::EntityRange &instances) |
| void | add (agxData::Array< agxData::EntityPtr > &instances) |
| void | add (agxData::Array< agx::Index > &instances) |
| void | addChild (Node *child) |
| Buffer (const agx::Name &name, agx::Index id, BinaryData *data, const Format *format, size_t numElements, size_t byteOffset) | |
| size_t | capacity () const |
| Component (const agx::Name &name, agx::Index id=agx::InvalidIndex) | |
| CustomBuffer (const agx::Name &name, agx::Index id, const Format *format, size_t numElements) | |
| DataNode (const agx::Name &name, agx::Index id, BinaryData *data, const Format *format, size_t numBytes, size_t offset) | |
| EntityStorage (const agxData::Frame::EntityStorage *storage) | |
| EntityStorage (const agx::Name &name, agx::Index id, EntityModel *model, size_t numElements, size_t capacity) | |
| size_t | fullSize () const |
| virtual size_t | getBinaryHeaderNumBytes () const =0 |
| virtual size_t | getBinaryHeaderNumBytes () const override |
| virtual size_t | getBinaryHeaderNumBytes () const override |
| virtual size_t | getBinaryHeaderNumBytes () const override |
| virtual size_t | getBinaryHeaderNumBytes () const override |
| virtual size_t | getBinaryHeaderNumBytes () const override |
| virtual size_t | getBinaryHeaderNumBytes () const override |
| const BinarySegmentVector & | getBinarySegments () const |
| template<typename T > | |
| T * | getChild (const char *name) |
| template<typename T > | |
| const T * | getChild (const char *name) const |
| const NodeRefVector & | getChildren () const |
| BinaryData * | getData () |
| const BinaryData * | getData () const |
| const Format * | getFormat () const |
| const Format * | getFormat () const |
| const Format * | getFormat () const |
| agx::Index | getId () const |
| const agx::UInt64Vector & | getIdVector () const |
| EntityModel * | getModel () |
| const EntityModel * | getModel () const |
| const agx::Name & | getName () const |
| size_t | getNumBytes () const |
| size_t | getNumElements () const |
| size_t | getNumElements () const |
| size_t | getNumElements () const |
| size_t | getNumElements () const |
| size_t | getOffset () const |
| Component * | getParent () |
| agx::String | getPath () const |
| Component * | getRoot () |
| agxData::EntityStorage * | getStorage () |
| size_t | getTotNumBytes () const |
| Type | getType () const |
| Type | getType () const |
| const agx::Name & | getTypeName () const |
| Node (const agx::Name &name, agx::Index id) | |
| PartialBuffer (agxData::Frame::PartialBuffer *buffer) | |
| PartialBuffer (const agx::Name &name, agx::Index id, const Format *format, size_t numElements, size_t fullSize) | |
| void | setId (agx::Index id) |
| void | setType (Type type) |
| StorageBatchEvent (Type type, agxData::EntityStorage *storage, size_t reserve=0) | |
| Value (const agx::Name &name, agx::Index id, BinaryData *data, const Format *format, size_t offset) | |
| BinaryData * | writeBinaryHeader (ExportNameTable &nameTable) const |
| BinaryData * | writeBinaryHeader () const |
| virtual ByteStream | writeBinaryHeader (ByteStream stream, ExportNameTable &nameTable) |
| void | writeBinaryHeader (BinaryHeader::Node &eNode, ExportNameTable &nameTable) |
| virtual ByteStream | writeBinaryHeader (ByteStream stream, ExportNameTable &nameTable) override |
| template<typename ComponentT > | |
| ByteStream | writeBinaryHeader (ByteStream stream, ExportNameTable &nameTable, ComponentT &eComponent) |
| virtual ByteStream | writeBinaryHeader (ByteStream stream, ExportNameTable &nameTable) override |
| void | writeBinaryHeader (BinaryHeader::DataNode &eNode, ExportNameTable &nameTable) |
| virtual ByteStream | writeBinaryHeader (ByteStream stream, ExportNameTable &nameTable) override |
| virtual ByteStream | writeBinaryHeader (ByteStream stream, ExportNameTable &nameTable) override |
| virtual ByteStream | writeBinaryHeader (ByteStream stream, ExportNameTable &nameTable) override |
| virtual ByteStream | writeBinaryHeader (ByteStream stream, ExportNameTable &nameTable) override |
| void | writeChildren (agx::TiXmlElement *eParent) |
| void | writeDataSegment (std::ostream &binaryFile) |
| virtual void | writeDataSegment (std::ostream &binaryFile, agx::UInt64 baseOffset)=0 |
| virtual void | writeDataSegment (std::ostream &binaryFile, agx::UInt64 baseOffset) override |
| virtual void | writeDataSegment (std::ostream &binaryFile, agx::UInt64 baseOffset) override |
| agx::TiXmlElement * | writeXmlHeader () const |
| virtual agx::TiXmlElement * | writeXmlHeader (agx::TiXmlElement *eParent)=0 |
| virtual agx::TiXmlElement * | writeXmlHeader (agx::TiXmlElement *eParent) override |
| virtual agx::TiXmlElement * | writeXmlHeader (agx::TiXmlElement *eParent) override |
| virtual agx::TiXmlElement * | writeXmlHeader (agx::TiXmlElement *eParent) override |
| virtual agx::TiXmlElement * | writeXmlHeader (agx::TiXmlElement *eParent) override |
| virtual agx::TiXmlElement * | writeXmlHeader (agx::TiXmlElement *eParent) override |
| virtual agx::TiXmlElement * | writeXmlHeader (agx::TiXmlElement *eParent) override |
Public Member Functions inherited from agx::Referenced | |
| Referenced () | |
| Default constructor. More... | |
| Referenced (const Referenced &) | |
| 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 |
| int | getReferenceCount () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| Referenced & | operator= (const Referenced &) |
| Assignment operator. Will increment the number of references to the referenced object. More... | |
| 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 | 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... | |
Static Public Member Functions | |
| static Frame * | createFrame (const Component *root, agx::UInt index, agx::Real timeStamp, agx::Real timeStep) |
| static Frame * | extractFrame (BinaryData *headerSegment, BinaryData *dataSegment) |
| static Frame * | extractFrame (BinaryData *headerSegment, BinaryData *dataSegment, ImportNameTable &nameTable, bool clearNameTableOnKeyFrame=true, FrameReader *frameReader=nullptr) |
| static Frame * | extractFrame (agx::TiXmlElement *eFrame, BinaryData *dataSegment) |
| static void | updateNameTable (BinaryData *headerSegment, ImportNameTable &nameTable) |
Static Public Member Functions inherited from agx::Referenced | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Static Public Attributes | |
| static const agx::UInt64 | DATA_SEGMENT_ALIGNMENT = 32 |
Protected Member Functions | |
| virtual | ~SerializedFrame () |
| void | setParent (Component *parent) |
Protected Member Functions inherited from agx::Referenced | |
| virtual | ~Referenced () |
| Destructor. More... | |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
Additional Inherited Members | |
Static Protected Member Functions inherited from agx::Referenced | |
| 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 inherited from agx::Referenced | |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
Definition at line 41 of file SerializedFrame.h.
Definition at line 106 of file SerializedFrame.h.
| typedef agx::observer_ptr< const Buffer > agxData::SerializedFrame::BufferConstObserver |
Definition at line 61 of file SerializedFrame.h.
| typedef agx::ref_ptr< const Buffer > agxData::SerializedFrame::BufferConstRef |
Definition at line 61 of file SerializedFrame.h.
Definition at line 61 of file SerializedFrame.h.
Definition at line 61 of file SerializedFrame.h.
| typedef agx::observer_ptr< const Component > agxData::SerializedFrame::ComponentConstObserver |
Definition at line 58 of file SerializedFrame.h.
| typedef agx::ref_ptr< const Component > agxData::SerializedFrame::ComponentConstRef |
Definition at line 58 of file SerializedFrame.h.
Definition at line 58 of file SerializedFrame.h.
Definition at line 58 of file SerializedFrame.h.
Definition at line 62 of file SerializedFrame.h.
| typedef agx::ref_ptr< const CustomBuffer > agxData::SerializedFrame::CustomBufferConstRef |
Definition at line 62 of file SerializedFrame.h.
Definition at line 62 of file SerializedFrame.h.
Definition at line 62 of file SerializedFrame.h.
| typedef agx::observer_ptr< const DataNode > agxData::SerializedFrame::DataNodeConstObserver |
Definition at line 59 of file SerializedFrame.h.
| typedef agx::ref_ptr< const DataNode > agxData::SerializedFrame::DataNodeConstRef |
Definition at line 59 of file SerializedFrame.h.
Definition at line 59 of file SerializedFrame.h.
Definition at line 59 of file SerializedFrame.h.
| typedef agx::observer_ptr< const EntityStorage > agxData::SerializedFrame::EntityStorageConstObserver |
Definition at line 64 of file SerializedFrame.h.
| typedef agx::ref_ptr< const EntityStorage > agxData::SerializedFrame::EntityStorageConstRef |
Definition at line 64 of file SerializedFrame.h.
Definition at line 64 of file SerializedFrame.h.
Definition at line 64 of file SerializedFrame.h.
Definition at line 79 of file SerializedFrame.h.
Definition at line 80 of file SerializedFrame.h.
| typedef agx::observer_ptr< const Node > agxData::SerializedFrame::NodeConstObserver |
Definition at line 55 of file SerializedFrame.h.
| typedef agx::ref_ptr< const Node > agxData::SerializedFrame::NodeConstRef |
Definition at line 55 of file SerializedFrame.h.
Definition at line 55 of file SerializedFrame.h.
Definition at line 56 of file SerializedFrame.h.
Definition at line 56 of file SerializedFrame.h.
| typedef agx::ref_ptr< Node > agxData::SerializedFrame::NodeRef |
Definition at line 55 of file SerializedFrame.h.
Definition at line 56 of file SerializedFrame.h.
| typedef agx::observer_ptr< const PartialBuffer > agxData::SerializedFrame::PartialBufferConstObserver |
Definition at line 63 of file SerializedFrame.h.
| typedef agx::ref_ptr< const PartialBuffer > agxData::SerializedFrame::PartialBufferConstRef |
Definition at line 63 of file SerializedFrame.h.
Definition at line 63 of file SerializedFrame.h.
Definition at line 63 of file SerializedFrame.h.
| typedef agx::observer_ptr< const StorageBatchEvent > agxData::SerializedFrame::StorageBatchEventConstObserver |
Definition at line 66 of file SerializedFrame.h.
Definition at line 66 of file SerializedFrame.h.
Definition at line 66 of file SerializedFrame.h.
Definition at line 66 of file SerializedFrame.h.
| typedef agx::observer_ptr< const Value > agxData::SerializedFrame::ValueConstObserver |
Definition at line 60 of file SerializedFrame.h.
| typedef agx::ref_ptr< const Value > agxData::SerializedFrame::ValueConstRef |
Definition at line 60 of file SerializedFrame.h.
Definition at line 60 of file SerializedFrame.h.
| typedef agx::ref_ptr< Value > agxData::SerializedFrame::ValueRef |
Definition at line 60 of file SerializedFrame.h.
| Enumerator | |
|---|---|
| INVALID | |
| XML_HEADER | |
| JSON_HEADER | |
| BINARY_HEADER | |
Definition at line 44 of file SerializedFrame.h.
| Enumerator | |
|---|---|
| CREATE | |
| DESTROY | |
| PERMUTE | |
| INVALID | |
| VALUE | |
| BUFFER | |
| COMPONENT | |
| CUSTOM_BUFFER | |
| PARTIAL_BUFFER | |
| ENTITY_STORAGE | |
Definition at line 169 of file SerializedFrame.h.
| Enumerator | |
|---|---|
| CREATE | |
| DESTROY | |
| PERMUTE | |
| INVALID | |
| VALUE | |
| BUFFER | |
| COMPONENT | |
| CUSTOM_BUFFER | |
| PARTIAL_BUFFER | |
| ENTITY_STORAGE | |
Definition at line 425 of file SerializedFrame.h.
| agxData::SerializedFrame::SerializedFrame | ( | const agxData::Frame * | frame | ) |
| agxData::SerializedFrame::SerializedFrame | ( | SerializedFrame::Component * | root | ) |
|
protectedvirtual |
| void agxData::SerializedFrame::add | ( | agx::UInt64 | id | ) |
| void agxData::SerializedFrame::add | ( | agxData::EntityRange & | instances | ) |
| void agxData::SerializedFrame::add | ( | agxData::Array< agxData::EntityPtr > & | instances | ) |
| void agxData::SerializedFrame::add | ( | agxData::Array< agx::Index > & | instances | ) |
| void agxData::SerializedFrame::addChild | ( | Node * | child | ) |
| agxData::SerializedFrame::Buffer | ( | const agx::Name & | name, |
| agx::Index | id, | ||
| BinaryData * | data, | ||
| const Format * | format, | ||
| size_t | numElements, | ||
| size_t | byteOffset | ||
| ) |
Referenced by agxNet::FramePacket::~FramePacket().
| size_t agxData::SerializedFrame::capacity | ( | ) | const |
| agxData::SerializedFrame::Component | ( | const agx::Name & | name, |
| agx::Index | id = agx::InvalidIndex |
||
| ) |
|
static |
| agxData::SerializedFrame::CustomBuffer | ( | const agx::Name & | name, |
| agx::Index | id, | ||
| const Format * | format, | ||
| size_t | numElements | ||
| ) |
Referenced by agxNet::FramePacket::~FramePacket().
| agxData::SerializedFrame::DataNode | ( | const agx::Name & | name, |
| agx::Index | id, | ||
| BinaryData * | data, | ||
| const Format * | format, | ||
| size_t | numBytes, | ||
| size_t | offset | ||
| ) |
| agxData::SerializedFrame::EntityStorage | ( | const agxData::Frame::EntityStorage * | storage | ) |
Referenced by agxNet::FramePacket::~FramePacket().
| agxData::SerializedFrame::EntityStorage | ( | const agx::Name & | name, |
| agx::Index | id, | ||
| EntityModel * | model, | ||
| size_t | numElements, | ||
| size_t | capacity | ||
| ) |
|
static |
|
static |
|
static |
| size_t agxData::SerializedFrame::fullSize | ( | ) | const |
|
pure virtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
| const BinarySegmentVector& agxData::SerializedFrame::getBinarySegments | ( | ) | const |
| T* agxData::SerializedFrame::getChild | ( | const char * | name | ) |
| const T* agxData::SerializedFrame::getChild | ( | const char * | name | ) | const |
| const NodeRefVector& agxData::SerializedFrame::getChildren | ( | ) | const |
| BinaryData* agxData::SerializedFrame::getData | ( | ) |
| const BinaryData* agxData::SerializedFrame::getData | ( | ) | const |
| const Format* agxData::SerializedFrame::getFormat | ( | ) | const |
| const Format* agxData::SerializedFrame::getFormat | ( | ) | const |
| const Format* agxData::SerializedFrame::getFormat | ( | ) | const |
| agx::Index agxData::SerializedFrame::getId | ( | ) | const |
| const agx::UInt64Vector& agxData::SerializedFrame::getIdVector | ( | ) | const |
| EntityModel* agxData::SerializedFrame::getModel | ( | ) |
| const EntityModel* agxData::SerializedFrame::getModel | ( | ) | const |
| const agx::Name& agxData::SerializedFrame::getName | ( | ) | const |
| size_t agxData::SerializedFrame::getNumBytes | ( | ) | const |
| size_t agxData::SerializedFrame::getNumElements | ( | ) | const |
| size_t agxData::SerializedFrame::getNumElements | ( | ) | const |
| size_t agxData::SerializedFrame::getNumElements | ( | ) | const |
| size_t agxData::SerializedFrame::getNumElements | ( | ) | const |
| size_t agxData::SerializedFrame::getOffset | ( | ) | const |
| Component* agxData::SerializedFrame::getParent | ( | ) |
| agx::String agxData::SerializedFrame::getPath | ( | ) | const |
| Component* agxData::SerializedFrame::getRoot | ( | ) |
| agxData::EntityStorage* agxData::SerializedFrame::getStorage | ( | ) |
| size_t agxData::SerializedFrame::getTotNumBytes | ( | ) | const |
| Type agxData::SerializedFrame::getType | ( | ) | const |
| Type agxData::SerializedFrame::getType | ( | ) | const |
| const agx::Name& agxData::SerializedFrame::getTypeName | ( | ) | const |
| agxData::SerializedFrame::Node | ( | const agx::Name & | name, |
| agx::Index | id | ||
| ) |
Referenced by agxNet::FramePacket::~FramePacket().
| agxData::SerializedFrame::PartialBuffer | ( | agxData::Frame::PartialBuffer * | buffer | ) |
Referenced by agxNet::FramePacket::~FramePacket().
| agxData::SerializedFrame::PartialBuffer | ( | const agx::Name & | name, |
| agx::Index | id, | ||
| const Format * | format, | ||
| size_t | numElements, | ||
| size_t | fullSize | ||
| ) |
| void agxData::SerializedFrame::setId | ( | agx::Index | id | ) |
|
protected |
| void agxData::SerializedFrame::setType | ( | Type | type | ) |
| agxData::SerializedFrame::StorageBatchEvent | ( | Type | type, |
| agxData::EntityStorage * | storage, | ||
| size_t | reserve = 0 |
||
| ) |
|
static |
| agxData::SerializedFrame::Value | ( | const agx::Name & | name, |
| agx::Index | id, | ||
| BinaryData * | data, | ||
| const Format * | format, | ||
| size_t | offset | ||
| ) |
Referenced by agxNet::FramePacket::~FramePacket().
| BinaryData* agxData::SerializedFrame::writeBinaryHeader | ( | ExportNameTable & | nameTable | ) | const |
| BinaryData* agxData::SerializedFrame::writeBinaryHeader | ( | ) | const |
|
virtual |
| void agxData::SerializedFrame::writeBinaryHeader | ( | BinaryHeader::Node & | eNode, |
| ExportNameTable & | nameTable | ||
| ) |
|
overridevirtual |
| ByteStream agxData::SerializedFrame::writeBinaryHeader | ( | ByteStream | stream, |
| ExportNameTable & | nameTable, | ||
| ComponentT & | eComponent | ||
| ) |
|
overridevirtual |
| void agxData::SerializedFrame::writeBinaryHeader | ( | BinaryHeader::DataNode & | eNode, |
| ExportNameTable & | nameTable | ||
| ) |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
| void agxData::SerializedFrame::writeChildren | ( | agx::TiXmlElement * | eParent | ) |
| void agxData::SerializedFrame::writeDataSegment | ( | std::ostream & | binaryFile | ) |
|
pure virtual |
|
overridevirtual |
|
overridevirtual |
| agx::TiXmlElement* agxData::SerializedFrame::writeXmlHeader | ( | ) | const |
|
pure virtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
static |
Definition at line 52 of file SerializedFrame.h.