#include <MergedState.h>
|
| 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 |
| |
Definition at line 158 of file MergedState.h.
◆ Actions
◆ State
◆ ActionType
| Enumerator |
|---|
| MERGE | |
| SPLIT_FIRST | |
| SPLIT_SECOND | |
Definition at line 44 of file MergedState.h.
◆ EState
| Enumerator |
|---|
| VALID | Valid state.
|
| BOTH_ARE_NULL | None of the bodies are merged.
|
| ONE_IS_NULL | One of the bodies are merged.
|
| BOTH_ARE_VALID | Both of the bodies are merged.
|
| MERGED_BODIES_ARE_SAME | The bodies are merged together.
|
| MERGED_BODIES_ARE_DIFFERENT | Both bodies are merged but has different parents (i.e., not merged with each other).
|
| WIRE_BODY_INCLUDED | |
| GRANULATE_BODY_INCLUDED | |
Definition at line 31 of file MergedState.h.
◆ ConstraintMergedState()
Find merged state given constraint.
If the constraint doesn't have properties, allowed actions will be NOTHING.
- Parameters
-
◆ construct()
◆ firstIsMerged()
| agx::Bool agxSDK::MergedState::firstIsMerged |
( |
| ) |
const |
|
inherited |
- Returns
- true if first object during construct is merged
◆ getAllowedActions()
- Returns
- the allowed actions a merge split algorithm may perform
Definition at line 191 of file MergedState.h.
◆ getConstraintProperties()
- Returns
- the merge split properties of the constraint
◆ getMergedBody()
- Returns
- the preferred merged body (larges if two, non-null if one)
◆ getMergedBody1()
- Returns
- the merged body associated to the first object during construct
◆ getMergedBody2()
- Returns
- the merged body associated to the second object during construct
◆ getOtherMergedBody()
- Returns
- the other (not preferred) if both bodies are merged, otherwise null
◆ getProperties1()
- Returns
- properties used for first rigid body (the properties could belong to a geometry)
◆ getProperties2()
- Returns
- properties used for second rigid body (the properties could belong to a geometry)
◆ getRigidBody1()
- Returns
- first rigid body (coupled to getMergedBody1)
◆ getRigidBody2()
- Returns
- second rigid body (coupled to getMergedBody2)
◆ getState()
- Returns
- true if one or more masks matches current state
Definition at line 186 of file MergedState.h.
◆ invalid()
Creates an invalid merged state.
◆ isValid()
| agx::Bool agxSDK::MergedState::isValid |
( |
| ) |
const |
|
inherited |
- Returns
- true if the state is valid, i.e., a state different from NONE
Definition at line 196 of file MergedState.h.
◆ secondIsMerged()
| agx::Bool agxSDK::MergedState::secondIsMerged |
( |
| ) |
const |
|
inherited |
- Returns
- true if second object during construct is merged
◆ update()
Update the current state of how the bodies are merged and return this.
◆ m_allowedActions
| Actions agxSDK::MergedState::m_allowedActions |
|
protectedinherited |
◆ m_constraintProperties
◆ m_mergedBody
◆ m_preferredMergedBody
◆ m_properties
◆ m_rigidBodies
◆ m_state
| State agxSDK::MergedState::m_state |
|
protectedinherited |
The documentation for this class was generated from the following file: