AGX Dynamics 2.41.3.0
Loading...
Searching...
No Matches
agx::Physics::GeometryContactPtr Class Reference

A geometry contact hold contact information between two geometries. More...

#include <GeometryContactEntity.h>

+ Inheritance diagram for agx::Physics::GeometryContactPtr:

Public Types

typedef GeometryContactData DataType
 
typedef GeometryContactInstance InstanceType
 
typedef GeometryContactModel ModelType
 
- Public Types inherited from agx::Physics::ContactPtr
typedef ContactData DataType
 
typedef ContactInstance InstanceType
 
typedef ContactModel ModelType
 
- Public Types inherited from agx::Physics::InteractionPtr
typedef InteractionData DataType
 
typedef InteractionInstance InstanceType
 
typedef InteractionModel ModelType
 

Public Member Functions

AGXPHYSICS_EXPORT GeometryContactPtr ()
 
AGXPHYSICS_EXPORT GeometryContactPtr (agxData::EntityStorage *storage, agx::Index id)
 
AGXPHYSICS_EXPORT GeometryContactPtr (const agxData::EntityInstance &instance)
 
AGXPHYSICS_EXPORT GeometryContactPtr (const agxData::EntityPtr &ptr)
 
AGXPHYSICS_EXPORT agx::Physics::RigidBodyPtrbody1 ()
 body1 is the rigid body of geometry1, can be assumed to be a valid rigid body.
 
AGXPHYSICS_EXPORT agx::Physics::RigidBodyPtr const & body1 () const
 body1 is the rigid body of geometry1, can be assumed to be a valid rigid body.
 
AGXPHYSICS_EXPORT agx::Physics::RigidBodyPtrbody2 ()
 body2 is the rigid body of geometry2, can be NULL.
 
AGXPHYSICS_EXPORT agx::Physics::RigidBodyPtr const & body2 () const
 body2 is the rigid body of geometry2, can be NULL.
 
AGXPHYSICS_EXPORT agx::Physics::BroadPhasePairPtrbroadPhasePair ()
 
AGXPHYSICS_EXPORT agx::Physics::BroadPhasePairPtr const & broadPhasePair () const
 
AGXPHYSICS_EXPORT void *& customData ()
 
AGXPHYSICS_EXPORT void *const & customData () const
 
AGXPHYSICS_EXPORT agx::Boolenabled ()
 
AGXPHYSICS_EXPORT agx::Bool const & enabled () const
 
AGXPHYSICS_EXPORT agx::Physics::GeometryPtrgeometry1 ()
 
AGXPHYSICS_EXPORT agx::Physics::GeometryPtr const & geometry1 () const
 
AGXPHYSICS_EXPORT agx::Physics::GeometryPtrgeometry2 ()
 
AGXPHYSICS_EXPORT agx::Physics::GeometryPtr const & geometry2 () const
 
GeometryContactData * getData ()
 
const GeometryContactData * getData () const
 
AGXPHYSICS_EXPORT agx::BoolhasInternalMaterial ()
 
AGXPHYSICS_EXPORT agx::Bool const & hasInternalMaterial () const
 
AGXPHYSICS_EXPORT agx::BoolhasSurfaceVelocity ()
 
AGXPHYSICS_EXPORT agx::Bool const & hasSurfaceVelocity () const
 
AGXPHYSICS_EXPORT agx::Boolimmediately ()
 
AGXPHYSICS_EXPORT agx::Bool const & immediately () const
 
AGXPHYSICS_EXPORT GeometryContactInstance instance ()
 
AGXPHYSICS_EXPORT const GeometryContactInstance instance () const
 
AGXPHYSICS_EXPORT GeometryContactSemantics * operator-> ()
 
AGXPHYSICS_EXPORT const GeometryContactSemantics * operator-> () const
 
AGXPHYSICS_EXPORT GeometryContactPtroperator= (const agxData::EntityInstance &instance)
 
AGXPHYSICS_EXPORT GeometryContactPtroperator= (const agxData::EntityPtr &ptr)
 
AGXPHYSICS_EXPORT agxData::Array< agx::Physics::ContactPointPtr > & points ()
 The list of contact points.
 
AGXPHYSICS_EXPORT agxData::Array< agx::Physics::ContactPointPtr > const & points () const
 The list of contact points.
 
AGXPHYSICS_EXPORT agx::BoolusingPPGS ()
 
AGXPHYSICS_EXPORT agx::Bool const & usingPPGS () const
 
- Public Member Functions inherited from agx::Physics::ContactPtr
AGXPHYSICS_EXPORT ContactPtr ()
 
AGXPHYSICS_EXPORT ContactPtr (agxData::EntityStorage *storage, agx::Index id)
 
AGXPHYSICS_EXPORT ContactPtr (const agxData::EntityInstance &instance)
 
AGXPHYSICS_EXPORT ContactPtr (const agxData::EntityPtr &ptr)
 
AGXPHYSICS_EXPORT agx::UInt32constraintIndex ()
 
AGXPHYSICS_EXPORT agx::UInt32 const & constraintIndex () const
 
AGXPHYSICS_EXPORT agx::UInt32contactZoneIndex ()
 
AGXPHYSICS_EXPORT agx::UInt32 const & contactZoneIndex () const
 
AGXPHYSICS_EXPORT agx::UInt16contactZoneSlot ()
 
AGXPHYSICS_EXPORT agx::UInt16 const & contactZoneSlot () const
 
ContactData * getData ()
 
const ContactData * getData () const
 
AGXPHYSICS_EXPORT ContactInstance instance ()
 
AGXPHYSICS_EXPORT const ContactInstance instance () const
 
AGXPHYSICS_EXPORT agx::Physics::ContactMaterialPtrmaterial ()
 
AGXPHYSICS_EXPORT agx::Physics::ContactMaterialPtr const & material () const
 
AGXPHYSICS_EXPORT ContactSemantics * operator-> ()
 
AGXPHYSICS_EXPORT const ContactSemantics * operator-> () const
 
AGXPHYSICS_EXPORT ContactPtroperator= (const agxData::EntityInstance &instance)
 
AGXPHYSICS_EXPORT ContactPtroperator= (const agxData::EntityPtr &ptr)
 
- Public Member Functions inherited from agx::Physics::InteractionPtr
AGXPHYSICS_EXPORT InteractionPtr ()
 
AGXPHYSICS_EXPORT InteractionPtr (agxData::EntityStorage *storage, agx::Index id)
 
AGXPHYSICS_EXPORT InteractionPtr (const agxData::EntityInstance &instance)
 
AGXPHYSICS_EXPORT InteractionPtr (const agxData::EntityPtr &ptr)
 
InteractionData * getData ()
 
const InteractionData * getData () const
 
AGXPHYSICS_EXPORT agx::Physics::GraphNodePtrgraphNode ()
 
AGXPHYSICS_EXPORT agx::Physics::GraphNodePtr const & graphNode () const
 
AGXPHYSICS_EXPORT InteractionInstance instance ()
 
AGXPHYSICS_EXPORT const InteractionInstance instance () const
 
AGXPHYSICS_EXPORT InteractionSemantics * operator-> ()
 
AGXPHYSICS_EXPORT const InteractionSemantics * operator-> () const
 
AGXPHYSICS_EXPORT InteractionPtroperator= (const agxData::EntityInstance &instance)
 
AGXPHYSICS_EXPORT InteractionPtroperator= (const agxData::EntityPtr &ptr)
 
AGXPHYSICS_EXPORT agx::SolveModel *& solveModel ()
 
AGXPHYSICS_EXPORT agx::SolveModel *const & solveModel () const
 
- Public Member Functions inherited from agxData::EntityPtr
 EntityPtr ()
 
 EntityPtr (agxData::EntityStorage *storage, agx::Index id)
 
 EntityPtr (const agxData::EntityInstance &instance)
 
 EntityPtr (const agxData::EntityPtr &other)=default
 
 ~EntityPtr ()=default
 
agx::Index calculateIndex () const
 Calculate the index using the indirect id.
 
agxData::EntityPtr copy ()
 Create a copy instance in the same storage.
 
agxData::EntityPtr copy (agxData::EntityStorage *target)
 Copy instance to another storage.
 
void copyAttributes (agxData::EntityPtr source)
 Copy instance attributes to an existing target instance.
 
template<typename T >
T & dataSet ()
 
template<typename T >
const T & dataSet () const
 
void destroy ()
 Remove the entity from the active storage.
 
agxData::EntityData * getData ()
 
const agxData::EntityData * getData () const
 
agx::Index getId () const
 
agxData::EntityModelgetModel ()
 
const agxData::EntityModelgetModel () const
 
agxData::EntityStoragegetStorage () const
 
agx::UInt32 hash () const
 
void init (agxData::EntityStorage *storage, agx::Index id)
 Set the target storage and id.
 
agxData::EntityInstance instance ()
 
const agxData::EntityInstance instance () const
 
void invalidate ()
 Invalidate the entity pointer.
 
bool isInstanceOf (agxData::EntityModel *model) const
 
bool isValid () const
 
 operator bool () const
 
bool operator! () const
 
bool operator!= (const EntityPtr &rhs) const
 
template<typename T >
agxData::ArrayAttributeT< T >::Type & operator() (const agxData::ArrayAttributeT< T > *attribute)
 Array attribute.
 
template<typename T >
const agxData::ArrayAttributeT< T >::Type & operator() (const agxData::ArrayAttributeT< T > *attribute) const
 
template<typename T >
agxData::HashSetAttributeT< T >::Type & operator() (const agxData::HashSetAttributeT< T > *attribute)
 HashSet attribute.
 
template<typename T >
const agxData::HashSetAttributeT< T >::Type & operator() (const agxData::HashSetAttributeT< T > *attribute) const
 
template<typename T >
T & operator() (const agxData::PointerAttributeT< T > *attribute)
 Pointer attribute.
 
template<typename T >
const T & operator() (const agxData::PointerAttributeT< T > *attribute) const
 
template<typename T >
T & operator() (const agxData::ScalarAttributeT< T > *attribute)
 Access the value of a specific attribute.
 
template<typename T >
const T & operator() (const agxData::ScalarAttributeT< T > *attribute) const
 
template<typename T >
T & operator() (const agxData::SharedAttributeT< T > *attribute)
 Shared attribute.
 
template<typename T >
const T & operator() (const agxData::SharedAttributeT< T > *attribute) const
 
template<typename T >
agxData::VectorAttributeT< T >::Type & operator() (const agxData::VectorAttributeT< T > *attribute)
 Vector attribute.
 
template<typename T >
const agxData::VectorAttributeT< T >::Type & operator() (const agxData::VectorAttributeT< 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 >
HashSetAttributeT< T >::Type & operator() (const HashSetAttributeT< T > *attribute)
 
template<typename T >
const HashSetAttributeT< T >::Type & operator() (const HashSetAttributeT< 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
 
bool operator< (const EntityPtr &rhs) const
 
EntityPtroperator= (const EntityPtr &other)=default
 
EntityPtroperator= (EntityPtr &&)=default
 
bool operator== (const EntityPtr &rhs) const
 
bool operator> (const EntityPtr &rhs) const
 
void print () const
 
void print (std::ostream &stream) const
 
void swapId (EntityPtr &other)
 Swap id with another instance.
 
void swapIndex (EntityPtr &other)
 Swap index with another instance.
 
void transfer (agxData::EntityStorage *target)
 Transfer instance to another storage.
 
void verifyIndex () const
 Check for broken ptr, by verifying that the id is active in the storage.
 

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

A geometry contact hold contact information between two geometries.

Definition at line 224 of file GeometryContactEntity.h.

Member Typedef Documentation

◆ DataType

typedef GeometryContactData agx::Physics::GeometryContactPtr::DataType

Definition at line 228 of file GeometryContactEntity.h.

◆ InstanceType

typedef GeometryContactInstance agx::Physics::GeometryContactPtr::InstanceType

Definition at line 229 of file GeometryContactEntity.h.

◆ ModelType

Constructor & Destructor Documentation

◆ GeometryContactPtr() [1/4]

AGXPHYSICS_EXPORT agx::Physics::GeometryContactPtr::GeometryContactPtr ( )

◆ GeometryContactPtr() [2/4]

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

◆ GeometryContactPtr() [3/4]

AGXPHYSICS_EXPORT agx::Physics::GeometryContactPtr::GeometryContactPtr ( const agxData::EntityPtr ptr)

◆ GeometryContactPtr() [4/4]

AGXPHYSICS_EXPORT agx::Physics::GeometryContactPtr::GeometryContactPtr ( const agxData::EntityInstance instance)

Member Function Documentation

◆ body1() [1/2]

AGXPHYSICS_EXPORT agx::Physics::RigidBodyPtr & agx::Physics::GeometryContactPtr::body1 ( )

body1 is the rigid body of geometry1, can be assumed to be a valid rigid body.

◆ body1() [2/2]

AGXPHYSICS_EXPORT agx::Physics::RigidBodyPtr const & agx::Physics::GeometryContactPtr::body1 ( ) const

body1 is the rigid body of geometry1, can be assumed to be a valid rigid body.

◆ body2() [1/2]

AGXPHYSICS_EXPORT agx::Physics::RigidBodyPtr & agx::Physics::GeometryContactPtr::body2 ( )

body2 is the rigid body of geometry2, can be NULL.

◆ body2() [2/2]

AGXPHYSICS_EXPORT agx::Physics::RigidBodyPtr const & agx::Physics::GeometryContactPtr::body2 ( ) const

body2 is the rigid body of geometry2, can be NULL.

◆ broadPhasePair() [1/2]

AGXPHYSICS_EXPORT agx::Physics::BroadPhasePairPtr & agx::Physics::GeometryContactPtr::broadPhasePair ( )
Returns
reference to the broadPhasePair attribute

Referenced by agxCollide::GeometryContact::state().

◆ broadPhasePair() [2/2]

AGXPHYSICS_EXPORT agx::Physics::BroadPhasePairPtr const & agx::Physics::GeometryContactPtr::broadPhasePair ( ) const
Returns
const reference to the broadPhasePair attribute

◆ customData() [1/2]

AGXPHYSICS_EXPORT void *& agx::Physics::GeometryContactPtr::customData ( )
Returns
reference to the customData attribute

Referenced by agxCollide::GeometryContact::getCustomData(), and agxCollide::GeometryContact::setCustomData().

◆ customData() [2/2]

AGXPHYSICS_EXPORT void *const & agx::Physics::GeometryContactPtr::customData ( ) const
Returns
const reference to the customData attribute

◆ enabled() [1/2]

AGXPHYSICS_EXPORT agx::Bool & agx::Physics::GeometryContactPtr::enabled ( )

◆ enabled() [2/2]

AGXPHYSICS_EXPORT agx::Bool const & agx::Physics::GeometryContactPtr::enabled ( ) const
Returns
const reference to the enabled attribute

◆ geometry1() [1/2]

AGXPHYSICS_EXPORT agx::Physics::GeometryPtr & agx::Physics::GeometryContactPtr::geometry1 ( )
Returns
reference to the geometry1 attribute

Referenced by agxCollide::GeometryContact::calculateSurfaceVelocity(), and agxCollide::GeometryContact::geometry().

◆ geometry1() [2/2]

AGXPHYSICS_EXPORT agx::Physics::GeometryPtr const & agx::Physics::GeometryContactPtr::geometry1 ( ) const
Returns
const reference to the geometry1 attribute

◆ geometry2() [1/2]

AGXPHYSICS_EXPORT agx::Physics::GeometryPtr & agx::Physics::GeometryContactPtr::geometry2 ( )
Returns
reference to the geometry2 attribute

Referenced by agxCollide::GeometryContact::calculateSurfaceVelocity(), and agxCollide::GeometryContact::geometry().

◆ geometry2() [2/2]

AGXPHYSICS_EXPORT agx::Physics::GeometryPtr const & agx::Physics::GeometryContactPtr::geometry2 ( ) const
Returns
const reference to the geometry2 attribute

◆ getData() [1/2]

GeometryContactData * agx::Physics::GeometryContactPtr::getData ( )

◆ getData() [2/2]

const GeometryContactData * agx::Physics::GeometryContactPtr::getData ( ) const

◆ hasInternalMaterial() [1/2]

AGXPHYSICS_EXPORT agx::Bool & agx::Physics::GeometryContactPtr::hasInternalMaterial ( )
Returns
reference to the hasInternalMaterial attribute

◆ hasInternalMaterial() [2/2]

AGXPHYSICS_EXPORT agx::Bool const & agx::Physics::GeometryContactPtr::hasInternalMaterial ( ) const
Returns
const reference to the hasInternalMaterial attribute

◆ hasSurfaceVelocity() [1/2]

AGXPHYSICS_EXPORT agx::Bool & agx::Physics::GeometryContactPtr::hasSurfaceVelocity ( )
Returns
reference to the hasSurfaceVelocity attribute

Referenced by agxCollide::GeometryContact::calculateSurfaceVelocity().

◆ hasSurfaceVelocity() [2/2]

AGXPHYSICS_EXPORT agx::Bool const & agx::Physics::GeometryContactPtr::hasSurfaceVelocity ( ) const
Returns
const reference to the hasSurfaceVelocity attribute

◆ immediately() [1/2]

AGXPHYSICS_EXPORT agx::Bool & agx::Physics::GeometryContactPtr::immediately ( )
Returns
reference to the immediately attribute

◆ immediately() [2/2]

AGXPHYSICS_EXPORT agx::Bool const & agx::Physics::GeometryContactPtr::immediately ( ) const
Returns
const reference to the immediately attribute

◆ instance() [1/2]

AGXPHYSICS_EXPORT GeometryContactInstance agx::Physics::GeometryContactPtr::instance ( )

◆ instance() [2/2]

AGXPHYSICS_EXPORT const GeometryContactInstance agx::Physics::GeometryContactPtr::instance ( ) const

◆ operator->() [1/2]

AGXPHYSICS_EXPORT GeometryContactSemantics * agx::Physics::GeometryContactPtr::operator-> ( )

◆ operator->() [2/2]

AGXPHYSICS_EXPORT const GeometryContactSemantics * agx::Physics::GeometryContactPtr::operator-> ( ) const

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ points() [1/2]

AGXPHYSICS_EXPORT agxData::Array< agx::Physics::ContactPointPtr > & agx::Physics::GeometryContactPtr::points ( )

The list of contact points.

Referenced by agxCollide::GeometryContact::points().

◆ points() [2/2]

AGXPHYSICS_EXPORT agxData::Array< agx::Physics::ContactPointPtr > const & agx::Physics::GeometryContactPtr::points ( ) const

The list of contact points.

◆ usingPPGS() [1/2]

AGXPHYSICS_EXPORT agx::Bool & agx::Physics::GeometryContactPtr::usingPPGS ( )
Returns
reference to the usingPPGS attribute

◆ usingPPGS() [2/2]

AGXPHYSICS_EXPORT agx::Bool const & agx::Physics::GeometryContactPtr::usingPPGS ( ) const
Returns
const reference to the usingPPGS attribute

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