AGXDynamics  2.31.1.0
agx::ConstraintImplementation::SolverBodyView Class Reference

#include <ConstraintImplementation.h>

+ Inheritance diagram for agx::ConstraintImplementation::SolverBodyView:

Public Member Functions

 SolverBodyView (ConstrainedBodiesState &state)
 Internal, use ConstriantImplementation::getSolverView(). More...
 
 SolverBodyView (const SolverBodyView &other)
 Copy constructor. More...
 
const ConstraintRigidBodyContainer & getBodies () const
 
agx::RigidBody * getBodyAt (agx::UInt i)
 
const agx::RigidBody * getBodyAt (agx::UInt i) const
 
agx::UInt getNumBodies () const
 
agx::UInt getNumDynamicBodies () const
 
agx::UInt getNumNonStaticBodies () const
 
agx::RigidBody * getPermutedBodyAt (agx::UInt i)
 
const agx::RigidBody * getPermutedBodyAt (agx::UInt i) const
 
const ConstrainedBodiesState & getState () const
 
ConstrainedBodiesState & getState ()
 

Detailed Description

Definition at line 285 of file ConstraintImplementation.h.

Constructor & Destructor Documentation

◆ SolverBodyView() [1/2]

agx::ConstraintImplementation::SolverBodyView::SolverBodyView ( ConstrainedBodiesState &  state)

Internal, use ConstriantImplementation::getSolverView().

Construct given current state.

Definition at line 1343 of file ConstraintImplementation.h.

◆ SolverBodyView() [2/2]

agx::ConstraintImplementation::SolverBodyView::SolverBodyView ( const SolverBodyView &  other)

Copy constructor.

Definition at line 1348 of file ConstraintImplementation.h.

Member Function Documentation

◆ getBodies()

const ConstraintRigidBodyContainer & agx::ConstraintImplementation::BodyView::getBodies ( ) const
inherited
Returns
the rigid bodies

Definition at line 1338 of file ConstraintImplementation.h.

◆ getBodyAt() [1/2]

RigidBody * agx::ConstraintImplementation::BodyView::getBodyAt ( agx::UInt  i)
inherited
Returns
rigid body at index

Definition at line 1328 of file ConstraintImplementation.h.

References agxAssert, and agx::ConstraintImplementation::BodyView::getNumBodies().

Referenced by getPermutedBodyAt().

◆ getBodyAt() [2/2]

const RigidBody * agx::ConstraintImplementation::BodyView::getBodyAt ( agx::UInt  i) const
inherited
Returns
rigid body at index

Definition at line 1333 of file ConstraintImplementation.h.

References agxAssert, and agx::ConstraintImplementation::BodyView::getNumBodies().

◆ getNumBodies()

UInt agx::ConstraintImplementation::BodyView::getNumBodies ( ) const
inherited
Returns
the number of bodies from this view

Definition at line 1324 of file ConstraintImplementation.h.

References agx::Container::size().

Referenced by agx::ConstraintImplementation::BodyView::getBodyAt(), and getPermutedBodyAt().

◆ getNumDynamicBodies()

UInt agx::ConstraintImplementation::BodyView::getNumDynamicBodies ( ) const
inherited
Returns
the number of dynamic bodies from this view

Definition at line 1314 of file ConstraintImplementation.h.

References agx::ConstraintImplementation::ConstrainedBodiesState::BodiesInfo::numDynamicBodies().

◆ getNumNonStaticBodies()

UInt agx::ConstraintImplementation::BodyView::getNumNonStaticBodies ( ) const
inherited
Returns
the number of non-static bodies from this view

Definition at line 1319 of file ConstraintImplementation.h.

References agx::ConstraintImplementation::ConstrainedBodiesState::BodiesInfo::numNonStaticBodies().

◆ getPermutedBodyAt() [1/2]

RigidBody * agx::ConstraintImplementation::SolverBodyView::getPermutedBodyAt ( agx::UInt  i)

◆ getPermutedBodyAt() [2/2]

const RigidBody * agx::ConstraintImplementation::SolverBodyView::getPermutedBodyAt ( agx::UInt  i) const

◆ getState() [1/2]

const ConstraintImplementation::ConstrainedBodiesState & agx::ConstraintImplementation::SolverBodyView::getState ( ) const
Returns
current state

Definition at line 1353 of file ConstraintImplementation.h.

◆ getState() [2/2]

ConstraintImplementation::ConstrainedBodiesState & agx::ConstraintImplementation::SolverBodyView::getState ( )
Returns
current state

Definition at line 1358 of file ConstraintImplementation.h.


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