Object that holds the state seen from the user and from the solver.
More...
#include <ConstraintImplementation.h>
Object that holds the state seen from the user and from the solver.
Definition at line 112 of file ConstraintImplementation.h.
◆ ConstrainedBodiesState()
| agx::ConstraintImplementation::ConstrainedBodiesState::ConstrainedBodiesState |
( |
| ) |
|
◆ finalize()
| agx::Bool agx::ConstraintImplementation::ConstrainedBodiesState::finalize |
( |
agx::Bool |
valid | ) |
|
Finalize given state of constraint.
If valid == false the counters will be set to 0.
- Returns
- true if the constraint should be active, otherwise false
◆ getBodyIndices() [1/2]
| Int32Vector & agx::ConstraintImplementation::ConstrainedBodiesState::getBodyIndices |
( |
| ) |
|
|
inline |
◆ getBodyIndices() [2/2]
| const Int32Vector & agx::ConstraintImplementation::ConstrainedBodiesState::getBodyIndices |
( |
| ) |
const |
|
inline |
◆ getNumRecurrentMergedBodies()
| agx::UInt agx::ConstraintImplementation::ConstrainedBodiesState::getNumRecurrentMergedBodies |
( |
| ) |
const |
Counter that increments each time a merged body already has been registered and comes back.
Note that it still can be several different merged bodies in the constraint! (E.g., 4 bodies, 2 merged to mb1 and two to mb2. Recurrent merged bodies will be 2 in that case.)
◆ getOriginalInfo()
◆ getPermutation() [1/2]
| Int32Vector & agx::ConstraintImplementation::ConstrainedBodiesState::getPermutation |
( |
| ) |
|
|
inline |
◆ getPermutation() [2/2]
| const Int32Vector & agx::ConstraintImplementation::ConstrainedBodiesState::getPermutation |
( |
| ) |
const |
|
inline |
◆ getSolverBodies()
◆ getSolverInfo()
◆ increment()
Increments data given a rigid body.
- Note
- This body should not be a root body.
◆ reset()
| void agx::ConstraintImplementation::ConstrainedBodiesState::reset |
( |
agx::UInt |
numBodies | ) |
|
Resets all data and allocates for a maximum of numBodies.
- Parameters
-
| numBodies | - maximum amount of bodies (i.e., the number of bodies in the original setup) |
The documentation for this class was generated from the following file: