AGX Dynamics  2.35.0.1
agxSDK::ConstraintMergedState Class Reference

#include <MergedState.h>

+ Inheritance diagram for agxSDK::ConstraintMergedState:

Public Member Functions

 ConstraintMergedState (const agx::HighLevelConstraintImplementation *constraint, const agxSDK::MergeSplitHandler *handler)
 Find merged state given constraint. More...
 
const agxSDK::MergeSplitProperties * getConstraintProperties () const
 
- Public Member Functions inherited from agxSDK::MergedState
 MergedState (agx::RigidBody *rb1, agx::RigidBody *rb2, const agxSDK::MergeSplitHandler *handler)
 Find merged state given two rigid bodies. More...
 
 MergedState (agxCollide::Geometry *geometry1, agxCollide::Geometry *geometry2, const agxSDK::MergeSplitHandler *handler)
 Find merged state given two geometries. More...
 
agx::Bool firstIsMerged () const
 
Actions getAllowedActions () const
 
agx::MergedBody * getMergedBody () const
 
agx::MergedBody * getMergedBody1 () const
 
agx::MergedBody * getMergedBody2 () const
 
agx::MergedBody * getOtherMergedBody () const
 
const agxSDK::MergeSplitProperties * getProperties1 () const
 
const agxSDK::MergeSplitProperties * getProperties2 () const
 
agx::RigidBody * getRigidBody1 () const
 
agx::RigidBody * getRigidBody2 () const
 
State getState () const
 
agx::Bool isValid () const
 
agx::Bool secondIsMerged () const
 
MergedState & update ()
 Update the current state of how the bodies are merged and return this. More...
 

Static Public Member Functions

static ConstraintMergedState invalid ()
 Creates an invalid merged state. More...
 
- Static Public Member Functions inherited from agxSDK::MergedState
static MergedState invalid ()
 Creates an invalid merged state. More...
 

Protected Attributes

const agxSDK::MergeSplitProperties * m_constraintProperties
 
- Protected Attributes inherited from agxSDK::MergedState
Actions m_allowedActions
 
agx::MergedBody * m_mergedBody [2]
 
agx::MergedBody * m_preferredMergedBody
 
const agxSDK::MergeSplitProperties * m_properties [2]
 
agx::RigidBody * m_rigidBodies [2]
 
State m_state
 

Additional Inherited Members

- Public Types inherited from agxSDK::MergedState
typedef agx::BitState< ActionType, agx::Int16 > Actions
 
enum  ActionType : agx::Int16 { MERGE = 1 << 0 , SPLIT_FIRST = 1 << 1 , SPLIT_SECOND = 1 << 2 }
 
enum  EState {
  VALID = 1 << 0 , BOTH_ARE_NULL = 1 << 1 , ONE_IS_NULL = 1 << 2 , BOTH_ARE_VALID = 1 << 3 ,
  MERGED_BODIES_ARE_SAME = 1 << 4 , MERGED_BODIES_ARE_DIFFERENT = 1 << 5 , WIRE_BODY_INCLUDED = 1 << 6 , GRANULATE_BODY_INCLUDED = 1 << 7
}
 
typedef agx::BitState< EState, agx::Int32 > State
 
- Protected Member Functions inherited from agxSDK::MergedState
void construct (agx::RigidBody *rb1, agx::RigidBody *rb2)
 Delegating constructor. More...
 

Detailed Description

Definition at line 158 of file MergedState.h.

Constructor & Destructor Documentation

◆ ConstraintMergedState()

agxSDK::ConstraintMergedState::ConstraintMergedState ( const agx::HighLevelConstraintImplementation *  constraint,
const agxSDK::MergeSplitHandler *  handler 
)

Find merged state given constraint.

If the constraint doesn't have properties, allowed actions will be NOTHING.

Parameters
constraint- constraint

Member Function Documentation

◆ getConstraintProperties()

const agxSDK::MergeSplitProperties* agxSDK::ConstraintMergedState::getConstraintProperties ( ) const
Returns
the merge split properties of the constraint

◆ invalid()

static ConstraintMergedState agxSDK::ConstraintMergedState::invalid ( )
static

Creates an invalid merged state.

Member Data Documentation

◆ m_constraintProperties

const agxSDK::MergeSplitProperties* agxSDK::ConstraintMergedState::m_constraintProperties
protected

Definition at line 180 of file MergedState.h.


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