AGX Dynamics 2.42.2.1
Loading...
Searching...
No Matches
agx::Physics::ContactPointPtr Class Reference

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

#include <ContactPointEntity.h>

+ Inheritance diagram for agx::Physics::ContactPointPtr:

Public Types

typedef ContactPointData DataType
 
typedef ContactPointInstance InstanceType
 
typedef ContactPointModel ModelType
 

Public Member Functions

AGXPHYSICS_EXPORT ContactPointPtr ()
 
AGXPHYSICS_EXPORT ContactPointPtr (agxData::EntityStorage *storage, agx::Index id)
 
AGXPHYSICS_EXPORT ContactPointPtr (const agxData::EntityInstance &instance)
 
AGXPHYSICS_EXPORT ContactPointPtr (const agxData::EntityPtr &ptr)
 
AGXPHYSICS_EXPORT agx::Realarea ()
 
AGXPHYSICS_EXPORT agx::Real const & area () const
 
AGXPHYSICS_EXPORT agx::Realdepth ()
 
AGXPHYSICS_EXPORT agx::Real const & depth () const
 
AGXPHYSICS_EXPORT agx::RealelasticRestLengthShape1 ()
 
AGXPHYSICS_EXPORT agx::Real const & elasticRestLengthShape1 () const
 
AGXPHYSICS_EXPORT agx::RealelasticRestLengthShape2 ()
 
AGXPHYSICS_EXPORT agx::Real const & elasticRestLengthShape2 () const
 
AGXPHYSICS_EXPORT agx::Boolenabled ()
 
AGXPHYSICS_EXPORT agx::Bool const & enabled () const
 
AGXPHYSICS_EXPORT agx::UInt8faceFeature1 ()
 The face feature of shape 1 in contact (e.g. voronoi region on triangle for trimesh).
 
AGXPHYSICS_EXPORT agx::UInt8 const & faceFeature1 () const
 The face feature of shape 1 in contact (e.g. voronoi region on triangle for trimesh).
 
AGXPHYSICS_EXPORT agx::UInt8faceFeature2 ()
 The face feature of shape 2 in contact (e.g. voronoi region on triangle for trimesh).
 
AGXPHYSICS_EXPORT agx::UInt8 const & faceFeature2 () const
 The face feature of shape 2 in contact (e.g. voronoi region on triangle for trimesh).
 
AGXPHYSICS_EXPORT agx::UInt32faceIndex1 ()
 The face index of shape 1 in contact (e.g. index of triangle for trimesh).
 
AGXPHYSICS_EXPORT agx::UInt32 const & faceIndex1 () const
 The face index of shape 1 in contact (e.g. index of triangle for trimesh).
 
AGXPHYSICS_EXPORT agx::UInt32faceIndex2 ()
 The face index of shape 2 in contact (e.g. index of triangle for trimesh).
 
AGXPHYSICS_EXPORT agx::UInt32 const & faceIndex2 () const
 The face index of shape 2 in contact (e.g. index of triangle for trimesh).
 
AGXPHYSICS_EXPORT agx::Vec2friction ()
 
AGXPHYSICS_EXPORT agx::Vec2 const & friction () const
 
ContactPointData * getData ()
 
const ContactPointData * getData () const
 
AGXPHYSICS_EXPORT agx::Vec4i8indexSet ()
 
AGXPHYSICS_EXPORT agx::Vec4i8 const & indexSet () const
 
AGXPHYSICS_EXPORT ContactPointInstance instance ()
 
AGXPHYSICS_EXPORT const ContactPointInstance instance () const
 
AGXPHYSICS_EXPORT agx::Vec3localForce ()
 
AGXPHYSICS_EXPORT agx::Vec3 const & localForce () const
 
AGXPHYSICS_EXPORT agx::RealmaxNormalForce ()
 
AGXPHYSICS_EXPORT agx::Real const & maxNormalForce () const
 
AGXPHYSICS_EXPORT agx::Vec3fnormal ()
 
AGXPHYSICS_EXPORT agx::Vec3f const & normal () const
 
AGXPHYSICS_EXPORT ContactPointSemantics * operator-> ()
 
AGXPHYSICS_EXPORT const ContactPointSemantics * operator-> () const
 
AGXPHYSICS_EXPORT ContactPointPtroperator= (const agxData::EntityInstance &instance)
 
AGXPHYSICS_EXPORT ContactPointPtroperator= (const agxData::EntityPtr &ptr)
 
AGXPHYSICS_EXPORT agx::Vec3point ()
 
AGXPHYSICS_EXPORT agx::Vec3 const & point () const
 
AGXPHYSICS_EXPORT agx::Vec3restitution ()
 
AGXPHYSICS_EXPORT agx::Vec3 const & restitution () const
 
AGXPHYSICS_EXPORT agx::Physics::Geometry::ShapePtrshape1 ()
 Shape number 1 in contact.
 
AGXPHYSICS_EXPORT agx::Physics::Geometry::ShapePtr const & shape1 () const
 Shape number 1 in contact.
 
AGXPHYSICS_EXPORT agx::Physics::Geometry::ShapePtrshape2 ()
 Shape number 2 in contact.
 
AGXPHYSICS_EXPORT agx::Physics::Geometry::ShapePtr const & shape2 () const
 Shape number 2 in contact.
 
AGXPHYSICS_EXPORT agx::UInt8state ()
 Contact point state, such as impacting, resting etc.
 
AGXPHYSICS_EXPORT agx::UInt8 const & state () const
 Contact point state, such as impacting, resting etc.
 
AGXPHYSICS_EXPORT agx::Vec2tangentialCohesion ()
 
AGXPHYSICS_EXPORT agx::Vec2 const & tangentialCohesion () const
 
AGXPHYSICS_EXPORT agx::Vec3ftangentU ()
 
AGXPHYSICS_EXPORT agx::Vec3f const & tangentU () const
 
AGXPHYSICS_EXPORT agx::Vec3ftangentV ()
 
AGXPHYSICS_EXPORT agx::Vec3f const & tangentV () const
 
AGXPHYSICS_EXPORT agx::Vec3fvelocity ()
 
AGXPHYSICS_EXPORT agx::Vec3f const & velocity () const
 
AGXPHYSICS_EXPORT agx::Realvolume ()
 
AGXPHYSICS_EXPORT agx::Real const & volume () const
 
AGXPHYSICS_EXPORT agx::RealyoungsModulus ()
 
AGXPHYSICS_EXPORT agx::Real const & youngsModulus () 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

Pointer to a entity instance of type Physics.ContactPoint.

Definition at line 284 of file ContactPointEntity.h.

Member Typedef Documentation

◆ DataType

typedef ContactPointData agx::Physics::ContactPointPtr::DataType

Definition at line 288 of file ContactPointEntity.h.

◆ InstanceType

typedef ContactPointInstance agx::Physics::ContactPointPtr::InstanceType

Definition at line 289 of file ContactPointEntity.h.

◆ ModelType

Constructor & Destructor Documentation

◆ ContactPointPtr() [1/4]

AGXPHYSICS_EXPORT agx::Physics::ContactPointPtr::ContactPointPtr ( )

◆ ContactPointPtr() [2/4]

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

◆ ContactPointPtr() [3/4]

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

◆ ContactPointPtr() [4/4]

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

Member Function Documentation

◆ area() [1/2]

AGXPHYSICS_EXPORT agx::Real & agx::Physics::ContactPointPtr::area ( )
Returns
reference to the area attribute

Referenced by agxCollide::ContactPoint::clear().

◆ area() [2/2]

AGXPHYSICS_EXPORT agx::Real const & agx::Physics::ContactPointPtr::area ( ) const
Returns
const reference to the area attribute

◆ depth() [1/2]

AGXPHYSICS_EXPORT agx::Real & agx::Physics::ContactPointPtr::depth ( )
Returns
reference to the depth attribute

Referenced by agxCollide::ContactPoint::clear(), and agxCollide::ContactPoint::getWitnessPoint().

◆ depth() [2/2]

AGXPHYSICS_EXPORT agx::Real const & agx::Physics::ContactPointPtr::depth ( ) const
Returns
const reference to the depth attribute

◆ elasticRestLengthShape1() [1/2]

AGXPHYSICS_EXPORT agx::Real & agx::Physics::ContactPointPtr::elasticRestLengthShape1 ( )
Returns
reference to the elasticRestLengthShape1 attribute

◆ elasticRestLengthShape1() [2/2]

AGXPHYSICS_EXPORT agx::Real const & agx::Physics::ContactPointPtr::elasticRestLengthShape1 ( ) const
Returns
const reference to the elasticRestLengthShape1 attribute

◆ elasticRestLengthShape2() [1/2]

AGXPHYSICS_EXPORT agx::Real & agx::Physics::ContactPointPtr::elasticRestLengthShape2 ( )
Returns
reference to the elasticRestLengthShape2 attribute

◆ elasticRestLengthShape2() [2/2]

AGXPHYSICS_EXPORT agx::Real const & agx::Physics::ContactPointPtr::elasticRestLengthShape2 ( ) const
Returns
const reference to the elasticRestLengthShape2 attribute

◆ enabled() [1/2]

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

Referenced by agxCollide::ContactPoint::clear().

◆ enabled() [2/2]

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

◆ faceFeature1() [1/2]

AGXPHYSICS_EXPORT agx::UInt8 & agx::Physics::ContactPointPtr::faceFeature1 ( )

The face feature of shape 1 in contact (e.g. voronoi region on triangle for trimesh).

Referenced by agxCollide::ContactPoint::clear(), and agxCollide::ContactPoint::faceFeature().

◆ faceFeature1() [2/2]

AGXPHYSICS_EXPORT agx::UInt8 const & agx::Physics::ContactPointPtr::faceFeature1 ( ) const

The face feature of shape 1 in contact (e.g. voronoi region on triangle for trimesh).

◆ faceFeature2() [1/2]

AGXPHYSICS_EXPORT agx::UInt8 & agx::Physics::ContactPointPtr::faceFeature2 ( )

The face feature of shape 2 in contact (e.g. voronoi region on triangle for trimesh).

Referenced by agxCollide::ContactPoint::clear(), and agxCollide::ContactPoint::faceFeature().

◆ faceFeature2() [2/2]

AGXPHYSICS_EXPORT agx::UInt8 const & agx::Physics::ContactPointPtr::faceFeature2 ( ) const

The face feature of shape 2 in contact (e.g. voronoi region on triangle for trimesh).

◆ faceIndex1() [1/2]

AGXPHYSICS_EXPORT agx::UInt32 & agx::Physics::ContactPointPtr::faceIndex1 ( )

The face index of shape 1 in contact (e.g. index of triangle for trimesh).

Referenced by agxCollide::ContactPoint::clear(), and agxCollide::ContactPoint::faceIndex().

◆ faceIndex1() [2/2]

AGXPHYSICS_EXPORT agx::UInt32 const & agx::Physics::ContactPointPtr::faceIndex1 ( ) const

The face index of shape 1 in contact (e.g. index of triangle for trimesh).

◆ faceIndex2() [1/2]

AGXPHYSICS_EXPORT agx::UInt32 & agx::Physics::ContactPointPtr::faceIndex2 ( )

The face index of shape 2 in contact (e.g. index of triangle for trimesh).

Referenced by agxCollide::ContactPoint::clear(), and agxCollide::ContactPoint::faceIndex().

◆ faceIndex2() [2/2]

AGXPHYSICS_EXPORT agx::UInt32 const & agx::Physics::ContactPointPtr::faceIndex2 ( ) const

The face index of shape 2 in contact (e.g. index of triangle for trimesh).

◆ friction() [1/2]

AGXPHYSICS_EXPORT agx::Vec2 & agx::Physics::ContactPointPtr::friction ( )

◆ friction() [2/2]

AGXPHYSICS_EXPORT agx::Vec2 const & agx::Physics::ContactPointPtr::friction ( ) const
Returns
const reference to the friction attribute

◆ getData() [1/2]

ContactPointData * agx::Physics::ContactPointPtr::getData ( )

◆ getData() [2/2]

const ContactPointData * agx::Physics::ContactPointPtr::getData ( ) const

◆ indexSet() [1/2]

AGXPHYSICS_EXPORT agx::Vec4i8 & agx::Physics::ContactPointPtr::indexSet ( )
Returns
reference to the indexSet attribute

◆ indexSet() [2/2]

AGXPHYSICS_EXPORT agx::Vec4i8 const & agx::Physics::ContactPointPtr::indexSet ( ) const
Returns
const reference to the indexSet attribute

◆ instance() [1/2]

AGXPHYSICS_EXPORT ContactPointInstance agx::Physics::ContactPointPtr::instance ( )

◆ instance() [2/2]

AGXPHYSICS_EXPORT const ContactPointInstance agx::Physics::ContactPointPtr::instance ( ) const

◆ localForce() [1/2]

◆ localForce() [2/2]

AGXPHYSICS_EXPORT agx::Vec3 const & agx::Physics::ContactPointPtr::localForce ( ) const
Returns
const reference to the localForce attribute

◆ maxNormalForce() [1/2]

AGXPHYSICS_EXPORT agx::Real & agx::Physics::ContactPointPtr::maxNormalForce ( )
Returns
reference to the maxNormalForce attribute

◆ maxNormalForce() [2/2]

AGXPHYSICS_EXPORT agx::Real const & agx::Physics::ContactPointPtr::maxNormalForce ( ) const
Returns
const reference to the maxNormalForce attribute

◆ normal() [1/2]

AGXPHYSICS_EXPORT agx::Vec3f & agx::Physics::ContactPointPtr::normal ( )

◆ normal() [2/2]

AGXPHYSICS_EXPORT agx::Vec3f const & agx::Physics::ContactPointPtr::normal ( ) const
Returns
const reference to the normal attribute

◆ operator->() [1/2]

AGXPHYSICS_EXPORT ContactPointSemantics * agx::Physics::ContactPointPtr::operator-> ( )

◆ operator->() [2/2]

AGXPHYSICS_EXPORT const ContactPointSemantics * agx::Physics::ContactPointPtr::operator-> ( ) const

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ point() [1/2]

AGXPHYSICS_EXPORT agx::Vec3 & agx::Physics::ContactPointPtr::point ( )

◆ point() [2/2]

AGXPHYSICS_EXPORT agx::Vec3 const & agx::Physics::ContactPointPtr::point ( ) const
Returns
const reference to the point attribute

◆ restitution() [1/2]

◆ restitution() [2/2]

AGXPHYSICS_EXPORT agx::Vec3 const & agx::Physics::ContactPointPtr::restitution ( ) const
Returns
const reference to the restitution attribute

◆ shape1() [1/2]

AGXPHYSICS_EXPORT agx::Physics::Geometry::ShapePtr & agx::Physics::ContactPointPtr::shape1 ( )

Shape number 1 in contact.

Referenced by agxCollide::ContactPoint::clear(), and agxCollide::ContactPoint::shape().

◆ shape1() [2/2]

AGXPHYSICS_EXPORT agx::Physics::Geometry::ShapePtr const & agx::Physics::ContactPointPtr::shape1 ( ) const

Shape number 1 in contact.

◆ shape2() [1/2]

AGXPHYSICS_EXPORT agx::Physics::Geometry::ShapePtr & agx::Physics::ContactPointPtr::shape2 ( )

Shape number 2 in contact.

Referenced by agxCollide::ContactPoint::clear(), and agxCollide::ContactPoint::shape().

◆ shape2() [2/2]

AGXPHYSICS_EXPORT agx::Physics::Geometry::ShapePtr const & agx::Physics::ContactPointPtr::shape2 ( ) const

Shape number 2 in contact.

◆ state() [1/2]

AGXPHYSICS_EXPORT agx::UInt8 & agx::Physics::ContactPointPtr::state ( )

Contact point state, such as impacting, resting etc.

Referenced by agxCollide::ContactPoint::clear(), agxCollide::ContactPoint::hasState(), and agxCollide::ContactPoint::setIsHolonomic().

◆ state() [2/2]

AGXPHYSICS_EXPORT agx::UInt8 const & agx::Physics::ContactPointPtr::state ( ) const

Contact point state, such as impacting, resting etc.

◆ tangentialCohesion() [1/2]

AGXPHYSICS_EXPORT agx::Vec2 & agx::Physics::ContactPointPtr::tangentialCohesion ( )
Returns
reference to the tangentialCohesion attribute

Referenced by agxCollide::ContactPoint::getTangentialCohesion(), and agxCollide::ContactPoint::setTangentialCohesion().

◆ tangentialCohesion() [2/2]

AGXPHYSICS_EXPORT agx::Vec2 const & agx::Physics::ContactPointPtr::tangentialCohesion ( ) const
Returns
const reference to the tangentialCohesion attribute

◆ tangentU() [1/2]

AGXPHYSICS_EXPORT agx::Vec3f & agx::Physics::ContactPointPtr::tangentU ( )
Returns
reference to the tangentU attribute

Referenced by agxCollide::ContactPoint::clear(), and agxCollide::ContactPoint::getTangentialForce().

◆ tangentU() [2/2]

AGXPHYSICS_EXPORT agx::Vec3f const & agx::Physics::ContactPointPtr::tangentU ( ) const
Returns
const reference to the tangentU attribute

◆ tangentV() [1/2]

AGXPHYSICS_EXPORT agx::Vec3f & agx::Physics::ContactPointPtr::tangentV ( )
Returns
reference to the tangentV attribute

Referenced by agxCollide::ContactPoint::clear(), and agxCollide::ContactPoint::getTangentialForce().

◆ tangentV() [2/2]

AGXPHYSICS_EXPORT agx::Vec3f const & agx::Physics::ContactPointPtr::tangentV ( ) const
Returns
const reference to the tangentV attribute

◆ velocity() [1/2]

AGXPHYSICS_EXPORT agx::Vec3f & agx::Physics::ContactPointPtr::velocity ( )
Returns
reference to the velocity attribute

Referenced by agxCollide::GeometryContact::calculateSurfaceVelocity(), and agxCollide::ContactPoint::clear().

◆ velocity() [2/2]

AGXPHYSICS_EXPORT agx::Vec3f const & agx::Physics::ContactPointPtr::velocity ( ) const
Returns
const reference to the velocity attribute

◆ volume() [1/2]

AGXPHYSICS_EXPORT agx::Real & agx::Physics::ContactPointPtr::volume ( )
Returns
reference to the volume attribute

Referenced by agxCollide::ContactPoint::clear().

◆ volume() [2/2]

AGXPHYSICS_EXPORT agx::Real const & agx::Physics::ContactPointPtr::volume ( ) const
Returns
const reference to the volume attribute

◆ youngsModulus() [1/2]

AGXPHYSICS_EXPORT agx::Real & agx::Physics::ContactPointPtr::youngsModulus ( )
Returns
reference to the youngsModulus attribute

Referenced by agxCollide::ContactPoint::getYoungsModulus(), and agxCollide::ContactPoint::setYoungsModulus().

◆ youngsModulus() [2/2]

AGXPHYSICS_EXPORT agx::Real const & agx::Physics::ContactPointPtr::youngsModulus ( ) const
Returns
const reference to the youngsModulus attribute

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