AGX Dynamics 2.41.3.0
Loading...
Searching...
No Matches
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 BodyView &other)
 Copy constructor.
 
 BodyView (const ConstrainedBodiesState::BodiesInfo &info, const ConstraintRigidBodyContainer &bodies)
 Internal, use ConstriantImplementation::getUserView().
 
const ConstraintRigidBodyContainergetBodies () const
 
agx::RigidBodygetBodyAt (agx::UInt i)
 
const agx::RigidBodygetBodyAt (agx::UInt i) const
 
agx::UInt getNumBodies () const
 
agx::UInt getNumDynamicBodies () const
 
agx::UInt getNumNonStaticBodies () const
 
BodyViewoperator= (const BodyView &)=delete
 Hidden, unsupported.
 

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 230 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 1308 of file ConstraintImplementation.h.

◆ BodyView() [2/2]

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

Copy constructor.

Definition at line 1312 of file ConstraintImplementation.h.

Member Function Documentation

◆ getBodies()

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

Definition at line 1340 of file ConstraintImplementation.h.

References agx::ConstraintImplementation::m_bodies.

◆ getBodyAt() [1/2]

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

Definition at line 1330 of file ConstraintImplementation.h.

References agxAssert, and agx::ConstraintImplementation::m_bodies.

◆ getBodyAt() [2/2]

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

Definition at line 1335 of file ConstraintImplementation.h.

References agxAssert, and agx::ConstraintImplementation::m_bodies.

◆ getNumBodies()

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

Definition at line 1326 of file ConstraintImplementation.h.

References agx::ConstraintImplementation::m_bodies, and agx::Container::size().

◆ getNumDynamicBodies()

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

Definition at line 1316 of file ConstraintImplementation.h.

◆ getNumNonStaticBodies()

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

Definition at line 1321 of file ConstraintImplementation.h.

◆ operator=()

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

Hidden, unsupported.


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