#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.
| Enumerator |
|---|
| MERGE |
|
| SPLIT_FIRST |
|
| SPLIT_SECOND |
|
Definition at line 44 of file MergedState.h.
| 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.
Find merged state given constraint.
If the constraint doesn't have properties, allowed actions will be NOTHING.
- Parameters
-
| agx::Bool agxSDK::MergedState::firstIsMerged |
( |
| ) |
const |
|
inherited |
- Returns
- true if first object during construct is merged
- Returns
- the merge split properties of the constraint
- Returns
- the preferred merged body (larges if two, non-null if one)
- Returns
- the merged body associated to the first object during construct
- Returns
- the merged body associated to the second object during construct
- Returns
- the other (not preferred) if both bodies are merged, otherwise null
- Returns
- properties used for first rigid body (the properties could belong to a geometry)
- Returns
- properties used for second rigid body (the properties could belong to a geometry)
- Returns
- first rigid body (coupled to getMergedBody1)
- Returns
- second rigid body (coupled to getMergedBody2)
Creates an invalid merged state.
| agx::Bool agxSDK::MergedState::isValid |
( |
| ) |
const |
|
inherited |
| agx::Bool agxSDK::MergedState::secondIsMerged |
( |
| ) |
const |
|
inherited |
- Returns
- true if second object during construct is merged
Update the current state of how the bodies are merged and return this.
| Actions agxSDK::MergedState::m_allowedActions |
|
protectedinherited |
| State agxSDK::MergedState::m_state |
|
protectedinherited |
The documentation for this class was generated from the following file: