AGX Dynamics  2.37.2.0
agx::Physics::CollisionGroupPtr Class Reference

Pointer to a entity instance of type Physics.CollisionGroup. More...

#include <CollisionGroupEntity.h>

+ Inheritance diagram for agx::Physics::CollisionGroupPtr:

Public Types

typedef CollisionGroupData DataType
 
typedef CollisionGroupInstance InstanceType
 
typedef CollisionGroupModel ModelType
 

Public Member Functions

AGXPHYSICS_EXPORT CollisionGroupPtr ()
 
AGXPHYSICS_EXPORT CollisionGroupPtr (agxData::EntityStorage *storage, agx::Index id)
 
AGXPHYSICS_EXPORT CollisionGroupPtr (const agxData::EntityPtr &ptr)
 
AGXPHYSICS_EXPORT CollisionGroupPtr (const agxData::EntityInstance &instance)
 
AGXPHYSICS_EXPORT agx::HashSet< agx::Physics::CollisionGroupPtr > & disabledGroups ()
 
AGXPHYSICS_EXPORT agx::HashSet< agx::Physics::CollisionGroupPtr > const & disabledGroups () const
 
CollisionGroupData * getData ()
 
const CollisionGroupData * getData () const
 
AGXPHYSICS_EXPORT agx::UInt32 & id ()
 
AGXPHYSICS_EXPORT agx::UInt32 const & id () const
 
AGXPHYSICS_EXPORT CollisionGroupInstance instance ()
 
AGXPHYSICS_EXPORT const CollisionGroupInstance instance () const
 
AGXPHYSICS_EXPORT agxCollide::CollisionGroupManager *& manager ()
 
AGXPHYSICS_EXPORT agxCollide::CollisionGroupManager *const & manager () const
 
AGXPHYSICS_EXPORT agx::Name & name ()
 
AGXPHYSICS_EXPORT agx::Name const & name () const
 
AGXPHYSICS_EXPORT CollisionGroupSemantics * operator-> ()
 
AGXPHYSICS_EXPORT const CollisionGroupSemantics * operator-> () const
 
AGXPHYSICS_EXPORT CollisionGroupPtr & operator= (const agxData::EntityPtr &ptr)
 
AGXPHYSICS_EXPORT CollisionGroupPtr & operator= (const agxData::EntityInstance &instance)
 
AGXPHYSICS_EXPORT agx::HashSet< agx::Physics::CollisionGroupSetPtr > & sets ()
 
AGXPHYSICS_EXPORT agx::HashSet< agx::Physics::CollisionGroupSetPtr > const & sets () const
 
- Public Member Functions inherited from agxData::EntityPtr
 EntityPtr ()
 
 EntityPtr (agxData::EntityStorage *storage, agx::Index id)
 
 EntityPtr (const agxData::EntityPtr &other)=default
 
 EntityPtr (const agxData::EntityInstance &instance)
 
 ~EntityPtr ()=default
 
agx::Index calculateIndex () const
 Calculate the index using the indirect id. More...
 
agxData::EntityPtr copy ()
 Create a copy instance in the same storage. More...
 
agxData::EntityPtr copy (agxData::EntityStorage *target)
 Copy instance to another storage. More...
 
void copyAttributes (agxData::EntityPtr source)
 Copy instance attributes to an existing target instance. More...
 
template<typename T >
T & dataSet ()
 
template<typename T >
const T & dataSet () const
 
void destroy ()
 Remove the entity from the active storage. More...
 
agxData::EntityData * getData ()
 
const agxData::EntityData * getData () const
 
agx::Index getId () const
 
agxData::EntityModel * getModel ()
 
const agxData::EntityModel * getModel () const
 
agxData::EntityStorage * getStorage () const
 
agx::UInt32 hash () const
 
void init (agxData::EntityStorage *storage, agx::Index id)
 Set the target storage and id. More...
 
agxData::EntityInstance instance ()
 
const agxData::EntityInstance instance () const
 
void invalidate ()
 Invalidate the entity pointer. More...
 
bool isInstanceOf (agxData::EntityModel *model) const
 
bool isValid () const
 
 operator bool () const
 
bool operator! () const
 
bool operator!= (const EntityPtr &rhs) const
 
template<typename T >
T & operator() (const agxData::ScalarAttributeT< T > *attribute)
 Access the value of a specific attribute. More...
 
template<typename T >
const T & operator() (const agxData::ScalarAttributeT< T > *attribute) const
 
template<typename T >
T & operator() (const agxData::PointerAttributeT< T > *attribute)
 Pointer attribute. More...
 
template<typename T >
const T & operator() (const agxData::PointerAttributeT< T > *attribute) const
 
template<typename T >
agxData::VectorAttributeT< T >::Type & operator() (const agxData::VectorAttributeT< T > *attribute)
 Vector attribute. More...
 
template<typename T >
const agxData::VectorAttributeT< T >::Type & operator() (const agxData::VectorAttributeT< T > *attribute) const
 
template<typename T >
agxData::HashSetAttributeT< T >::Type & operator() (const agxData::HashSetAttributeT< T > *attribute)
 HashSet attribute. More...
 
template<typename T >
const agxData::HashSetAttributeT< T >::Type & operator() (const agxData::HashSetAttributeT< T > *attribute) const
 
template<typename T >
agxData::ArrayAttributeT< T >::Type & operator() (const agxData::ArrayAttributeT< T > *attribute)
 Array attribute. More...
 
template<typename T >
const agxData::ArrayAttributeT< T >::Type & operator() (const agxData::ArrayAttributeT< T > *attribute) const
 
template<typename T >
T & operator() (const agxData::SharedAttributeT< T > *attribute)
 Shared attribute. More...
 
template<typename T >
const T & operator() (const agxData::SharedAttributeT< T > *attribute) const
 
template<typename T >
ArrayAttributeT< T >::Type & operator() (const ArrayAttributeT< T > *attribute)
 
template<typename T >
const ArrayAttributeT< T >::Type & operator() (const ArrayAttributeT< T > *attribute) const
 
template<typename T >
VectorAttributeT< T >::Type & operator() (const VectorAttributeT< T > *attribute)
 
template<typename T >
const VectorAttributeT< T >::Type & operator() (const VectorAttributeT< T > *attribute) const
 
template<typename T >
HashSetAttributeT< T >::Type & operator() (const HashSetAttributeT< T > *attribute)
 
template<typename T >
const HashSetAttributeT< T >::Type & operator() (const HashSetAttributeT< T > *attribute) const
 
bool operator< (const EntityPtr &rhs) const
 
EntityPtr & operator= (const EntityPtr &other)=default
 
EntityPtr & operator= (EntityPtr &&)=default
 
bool operator== (const EntityPtr &rhs) const
 
bool operator> (const EntityPtr &rhs) const
 
void print (std::ostream &stream) const
 
void print () const
 
void swapId (EntityPtr &other)
 Swap id with another instance. More...
 
void swapIndex (EntityPtr &other)
 Swap index with another instance. More...
 
void transfer (agxData::EntityStorage *target)
 Transfer instance to another storage. More...
 
void verifyIndex () const
 Check for broken ptr, by verifying that the id is active in the storage. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from agxData::EntityPtr
static EntityPtr createWithIndex (EntityStorage *storage, agx::Index index)
 
static void TransformToAscii (void *targetBuffer, const void *sourceBuffer, size_t numElements)
 

Detailed Description

Pointer to a entity instance of type Physics.CollisionGroup.

Definition at line 182 of file CollisionGroupEntity.h.

Member Typedef Documentation

◆ DataType

typedef CollisionGroupData agx::Physics::CollisionGroupPtr::DataType

Definition at line 186 of file CollisionGroupEntity.h.

◆ InstanceType

typedef CollisionGroupInstance agx::Physics::CollisionGroupPtr::InstanceType

Definition at line 187 of file CollisionGroupEntity.h.

◆ ModelType

Constructor & Destructor Documentation

◆ CollisionGroupPtr() [1/4]

AGXPHYSICS_EXPORT agx::Physics::CollisionGroupPtr::CollisionGroupPtr ( )

◆ CollisionGroupPtr() [2/4]

AGXPHYSICS_EXPORT agx::Physics::CollisionGroupPtr::CollisionGroupPtr ( agxData::EntityStorage *  storage,
agx::Index  id 
)

◆ CollisionGroupPtr() [3/4]

AGXPHYSICS_EXPORT agx::Physics::CollisionGroupPtr::CollisionGroupPtr ( const agxData::EntityPtr &  ptr)

◆ CollisionGroupPtr() [4/4]

AGXPHYSICS_EXPORT agx::Physics::CollisionGroupPtr::CollisionGroupPtr ( const agxData::EntityInstance &  instance)

Member Function Documentation

◆ disabledGroups() [1/2]

AGXPHYSICS_EXPORT agx::HashSet< agx::Physics::CollisionGroupPtr >& agx::Physics::CollisionGroupPtr::disabledGroups ( )
Returns
reference to the disabledGroups attribute

◆ disabledGroups() [2/2]

AGXPHYSICS_EXPORT agx::HashSet< agx::Physics::CollisionGroupPtr > const& agx::Physics::CollisionGroupPtr::disabledGroups ( ) const
Returns
const reference to the disabledGroups attribute

◆ getData() [1/2]

CollisionGroupData* agx::Physics::CollisionGroupPtr::getData ( )

◆ getData() [2/2]

const CollisionGroupData* agx::Physics::CollisionGroupPtr::getData ( ) const

◆ id() [1/2]

AGXPHYSICS_EXPORT agx::UInt32& agx::Physics::CollisionGroupPtr::id ( )
Returns
reference to the id attribute

◆ id() [2/2]

AGXPHYSICS_EXPORT agx::UInt32 const& agx::Physics::CollisionGroupPtr::id ( ) const
Returns
const reference to the id attribute

◆ instance() [1/2]

AGXPHYSICS_EXPORT CollisionGroupInstance agx::Physics::CollisionGroupPtr::instance ( )

◆ instance() [2/2]

AGXPHYSICS_EXPORT const CollisionGroupInstance agx::Physics::CollisionGroupPtr::instance ( ) const

◆ manager() [1/2]

AGXPHYSICS_EXPORT agxCollide::CollisionGroupManager*& agx::Physics::CollisionGroupPtr::manager ( )
Returns
reference to the manager attribute

◆ manager() [2/2]

AGXPHYSICS_EXPORT agxCollide::CollisionGroupManager* const& agx::Physics::CollisionGroupPtr::manager ( ) const
Returns
const reference to the manager attribute

◆ name() [1/2]

AGXPHYSICS_EXPORT agx::Name& agx::Physics::CollisionGroupPtr::name ( )
Returns
reference to the name attribute

◆ name() [2/2]

AGXPHYSICS_EXPORT agx::Name const& agx::Physics::CollisionGroupPtr::name ( ) const
Returns
const reference to the name attribute

◆ operator->() [1/2]

AGXPHYSICS_EXPORT CollisionGroupSemantics* agx::Physics::CollisionGroupPtr::operator-> ( )

◆ operator->() [2/2]

AGXPHYSICS_EXPORT const CollisionGroupSemantics* agx::Physics::CollisionGroupPtr::operator-> ( ) const

◆ operator=() [1/2]

AGXPHYSICS_EXPORT CollisionGroupPtr& agx::Physics::CollisionGroupPtr::operator= ( const agxData::EntityPtr &  ptr)

◆ operator=() [2/2]

AGXPHYSICS_EXPORT CollisionGroupPtr& agx::Physics::CollisionGroupPtr::operator= ( const agxData::EntityInstance &  instance)

◆ sets() [1/2]

AGXPHYSICS_EXPORT agx::HashSet< agx::Physics::CollisionGroupSetPtr >& agx::Physics::CollisionGroupPtr::sets ( )
Returns
reference to the sets attribute

◆ sets() [2/2]

AGXPHYSICS_EXPORT agx::HashSet< agx::Physics::CollisionGroupSetPtr > const& agx::Physics::CollisionGroupPtr::sets ( ) const
Returns
const reference to the sets attribute

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