AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
agx::SplitNode Class Referenceabstract

#include <SolveIslandSplitAlgorithm.h>

+ Inheritance diagram for agx::SplitNode:

Public Member Functions

agx::Index getBodyIndex () const
 
agxCollide::Geometry * getFirstGeometry (const agx::Physics::GraphNodeData *graphNode) const
 
agx::Index getIslandIndex () const
 
agx::Vec3 getOldAcceleration () const
 
agx::RigidBody * getRigidBody (const agx::Physics::GraphNodeData *graphNode) const
 
size_t getWeight () const
 
bool isSplittable () const
 
virtual void setChoosenToSplit (bool splittable)=0
 
void setIslandIndex (agx::Index)
 
void setOldAcceleration (agx::Vec3 oldAcc)
 
void setWeight (size_t weight)
 
- Public Member Functions inherited from agx::Referenced
 Referenced ()
 Default constructor.
 
 Referenced (const Referenced &)
 
template<typename T >
T * as ()
 Subclass casting.
 
template<typename T >
const T * as () const
 
template<typename T >
T * asSafe ()
 Safe subclass casting, return nullptr if template type does not match.
 
template<typename T >
const T * asSafe () const
 
int getReferenceCount () const
 
template<typename T >
bool is () const
 Subclass test.
 
Referenced & operator= (const Referenced &)
 Assignment operator. Will increment the number of references to the referenced object.
 
void reference (void *ptr=nullptr) const
 Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
 
void unreference (void *ptr=nullptr) const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
 
void unreference_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
 

Protected Member Functions

virtual ~SplitNode ()
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor.
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 

Protected Attributes

agx::Index m_bodyId
 
agx::Index m_islandIndex
 
agx::Vec3 m_oldAcc
 
bool m_splittable
 
size_t m_weight
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Additional Inherited Members

- Static Public Member Functions inherited from agx::Referenced
template<typename T >
static bool ValidateCast (const Referenced *object)
 
- 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.
 

Detailed Description

Definition at line 36 of file SolveIslandSplitAlgorithm.h.

Constructor & Destructor Documentation

◆ ~SplitNode()

virtual agx::SplitNode::~SplitNode ( )
inlineprotectedvirtual

Definition at line 53 of file SolveIslandSplitAlgorithm.h.

Member Function Documentation

◆ getBodyIndex()

agx::Index agx::SplitNode::getBodyIndex ( ) const

◆ getFirstGeometry()

agxCollide::Geometry * agx::SplitNode::getFirstGeometry ( const agx::Physics::GraphNodeData *  graphNode) const

◆ getIslandIndex()

agx::Index agx::SplitNode::getIslandIndex ( ) const

◆ getOldAcceleration()

agx::Vec3 agx::SplitNode::getOldAcceleration ( ) const

◆ getRigidBody()

agx::RigidBody * agx::SplitNode::getRigidBody ( const agx::Physics::GraphNodeData *  graphNode) const

◆ getWeight()

size_t agx::SplitNode::getWeight ( ) const

◆ isSplittable()

bool agx::SplitNode::isSplittable ( ) const

◆ setChoosenToSplit()

virtual void agx::SplitNode::setChoosenToSplit ( bool  splittable)
pure virtual

Implemented in agx::SplitNodeSeparator.

◆ setIslandIndex()

void agx::SplitNode::setIslandIndex ( agx::Index  )

◆ setOldAcceleration()

void agx::SplitNode::setOldAcceleration ( agx::Vec3  oldAcc)

◆ setWeight()

void agx::SplitNode::setWeight ( size_t  weight)

Member Data Documentation

◆ m_bodyId

agx::Index agx::SplitNode::m_bodyId
protected

Definition at line 57 of file SolveIslandSplitAlgorithm.h.

◆ m_islandIndex

agx::Index agx::SplitNode::m_islandIndex
protected

Definition at line 59 of file SolveIslandSplitAlgorithm.h.

◆ m_oldAcc

agx::Vec3 agx::SplitNode::m_oldAcc
protected

Definition at line 60 of file SolveIslandSplitAlgorithm.h.

◆ m_splittable

bool agx::SplitNode::m_splittable
protected

Definition at line 58 of file SolveIslandSplitAlgorithm.h.

◆ m_weight

size_t agx::SplitNode::m_weight
protected

Definition at line 56 of file SolveIslandSplitAlgorithm.h.


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