AGX Dynamics  2.37.3.2
agx::ConstraintImplementation::BodyView Class Reference

Interface to the bodies, either user or solver, since these bodies can differ when e.g., a body is merged. More...

#include <ConstraintImplementation.h>

+ Inheritance diagram for agx::ConstraintImplementation::BodyView:

Public Member Functions

 BodyView (const ConstrainedBodiesState::BodiesInfo &info, const ConstraintRigidBodyContainer &bodies)
 Internal, use ConstriantImplementation::getUserView(). More...
 
 BodyView (const BodyView &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
 
BodyView & operator= (const BodyView &)=delete
 Hidden, unsupported. More...
 

Detailed Description

Interface to the bodies, either user or solver, since these bodies can differ when e.g., a body is merged.

Definition at line 232 of file ConstraintImplementation.h.

Constructor & Destructor Documentation

◆ BodyView() [1/2]

agx::ConstraintImplementation::BodyView::BodyView ( const ConstrainedBodiesState::BodiesInfo &  info,
const ConstraintRigidBodyContainer &  bodies 
)

Internal, use ConstriantImplementation::getUserView().

Construct given info and bodies container.

Definition at line 1302 of file ConstraintImplementation.h.

◆ BodyView() [2/2]

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

Copy constructor.

Definition at line 1306 of file ConstraintImplementation.h.

Member Function Documentation

◆ getBodies()

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

Definition at line 1334 of file ConstraintImplementation.h.

◆ getBodyAt() [1/2]

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

Definition at line 1324 of file ConstraintImplementation.h.

References agxAssert, and getNumBodies().

Referenced by agx::ConstraintImplementation::SolverBodyView::getPermutedBodyAt().

◆ getBodyAt() [2/2]

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

Definition at line 1329 of file ConstraintImplementation.h.

References agxAssert, and getNumBodies().

◆ getNumBodies()

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

Definition at line 1320 of file ConstraintImplementation.h.

References agx::Container::size().

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

◆ getNumDynamicBodies()

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

Definition at line 1310 of file ConstraintImplementation.h.

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

◆ getNumNonStaticBodies()

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

Definition at line 1315 of file ConstraintImplementation.h.

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

◆ operator=()

BodyView& agx::ConstraintImplementation::BodyView::operator= ( const BodyView &  )
delete

Hidden, unsupported.


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