RavEngine
Loading...
Searching...
No Matches
physx::Sn::RepXCollectionImpl Class Reference
Inheritance diagram for physx::Sn::RepXCollectionImpl:
[legend]
Collaboration diagram for physx::Sn::RepXCollectionImpl:
[legend]

Public Member Functions

 RepXCollectionImpl (PxSerializationRegistry &inRegistry, PxAllocatorCallback &inAllocator, PxCollection &inPxCollection)
 
 RepXCollectionImpl (PxSerializationRegistry &inRegistry, const RepXCollectionImpl &inSrc, const char *inNewVersion)
 
RepXCollectionImpl & operator= (const RepXCollectionImpl &)
 
virtual void destroy ()
 
virtual void setTolerancesScale (const PxTolerancesScale &inScale)
 
virtual PxTolerancesScale getTolerancesScale () const
 
virtual void setUpVector (const PxVec3 &inUpVector)
 
virtual PxVec3 getUpVector () const
 
PX_INLINE RepXCollectionItem findItemBySceneItem (const PxRepXObject &inObject) const
 
virtual RepXAddToCollectionResult addRepXObjectToCollection (const PxRepXObject &inObject, PxCollection *inCollection, PxRepXInstantiationArgs &inArgs)
 
virtual bool instantiateCollection (PxRepXInstantiationArgs &inArgs, PxCollection &inCollection)
 
void saveXmlNode (XmlNode *inNode, SimpleXmlWriter &inWriter)
 
virtual void save (PxOutputStream &inStream)
 
void load (PxInputData &inFileBuf, SerializationRegistry &s)
 
virtual const char * getVersion ()
 
virtual const RepXCollectionItem * begin () const
 
virtual const RepXCollectionItem * end () const
 
virtual RepXCollection & createCollection (const char *inVersionStr)
 
virtual XmlNode * copyRepXNode (const XmlNode *srcNode)
 
virtual void addCollectionItem (RepXCollectionItem inItem)
 
virtual PxAllocatorCallback & getAllocator ()
 
virtual XmlNode & createRepXNode (const char *name)
 
virtual XmlReaderWriter & createNodeEditor ()
 
- Public Member Functions inherited from physx::PxUserAllocated
PX_INLINE void * operator new (size_t, void *address)
 
PX_INLINE void operator delete (void *, void *)
 
template<typename Alloc >
PX_INLINE void * operator new (size_t size, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new (size_t size, size_t, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new[] (size_t size, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new[] (size_t size, size_t, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void operator delete (void *ptr, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void operator delete[] (void *ptr, Alloc alloc, const char *fileName, int line)
 
PX_INLINE void operator delete (void *ptr)
 
PX_INLINE void operator delete[] (void *ptr)
 

Additional Inherited Members

- Static Public Member Functions inherited from physx::Sn::RepXCollection
static const char * getLatestVersion ()
 

Member Function Documentation

◆ addCollectionItem()

virtual void physx::Sn::RepXCollectionImpl::addCollectionItem ( RepXCollectionItem  inItem)
inlinevirtual

◆ addRepXObjectToCollection()

virtual RepXAddToCollectionResult physx::Sn::RepXCollectionImpl::addRepXObjectToCollection ( const PxRepXObject &  inObject,
PxCollection *  inCollection,
PxRepXInstantiationArgs &  inArgs 
)
inlinevirtual

◆ begin()

virtual const RepXCollectionItem * physx::Sn::RepXCollectionImpl::begin ( ) const
inlinevirtual

◆ copyRepXNode()

virtual XmlNode * physx::Sn::RepXCollectionImpl::copyRepXNode ( const XmlNode *  srcNode)
inlinevirtual

◆ createCollection()

virtual RepXCollection & physx::Sn::RepXCollectionImpl::createCollection ( const char *  inVersionStr)
inlinevirtual

◆ createNodeEditor()

virtual XmlReaderWriter & physx::Sn::RepXCollectionImpl::createNodeEditor ( )
inlinevirtual

◆ createRepXNode()

virtual XmlNode & physx::Sn::RepXCollectionImpl::createRepXNode ( const char *  name)
inlinevirtual

◆ destroy()

virtual void physx::Sn::RepXCollectionImpl::destroy ( )
inlinevirtual

◆ end()

virtual const RepXCollectionItem * physx::Sn::RepXCollectionImpl::end ( ) const
inlinevirtual

◆ getAllocator()

virtual PxAllocatorCallback & physx::Sn::RepXCollectionImpl::getAllocator ( )
inlinevirtual

◆ getTolerancesScale()

virtual PxTolerancesScale physx::Sn::RepXCollectionImpl::getTolerancesScale ( ) const
inlinevirtual

Get the scale that was set at collection creation time or at load time. If this is a loaded file and the source data does not contain a scale this value will be invalid (PxTolerancesScale::isValid()).

Implements physx::Sn::RepXCollection.

◆ getUpVector()

virtual PxVec3 physx::Sn::RepXCollectionImpl::getUpVector ( ) const
inlinevirtual

If the up vector wasn't set, it will be (0,0,0). Else this will be the up vector optionally set when the collection was created.

Implements physx::Sn::RepXCollection.

◆ getVersion()

virtual const char * physx::Sn::RepXCollectionImpl::getVersion ( )
inlinevirtual

◆ instantiateCollection()

virtual bool physx::Sn::RepXCollectionImpl::instantiateCollection ( PxRepXInstantiationArgs &  inArgs,
PxCollection &  inCollection 
)
inlinevirtual

◆ save()

virtual void physx::Sn::RepXCollectionImpl::save ( PxOutputStream &  inStream)
inlinevirtual

Save this collection out to a file stream. Uses the RepX serialize to perform collection object->file conversions.

/param[in] inStream Write-only stream to save collection out to.

Implements physx::Sn::RepXCollection.

◆ setTolerancesScale()

virtual void physx::Sn::RepXCollectionImpl::setTolerancesScale ( const PxTolerancesScale &  inScale)
inlinevirtual

Set the scale on this collection. The scale is saved with the collection.

If the scale wasn't set, it will be invalid.

Implements physx::Sn::RepXCollection.

◆ setUpVector()

virtual void physx::Sn::RepXCollectionImpl::setUpVector ( const PxVec3 &  inUpVector)
inlinevirtual

Set the up vector on this collection. The up vector is saved with the collection.

If the up vector wasn't set, it will be (0,0,0).

Implements physx::Sn::RepXCollection.


The documentation for this class was generated from the following file: