PPL API Reference
Overview Core Algorithm Abstractions Utilities Parallel Methods
Modules Class Hierarchy Classes Functions
Todo List Bug List Dead Code
List of all members
DrawableMultiBody Class Referencefinal

Instructions for drawing a pmpl MultiBody in the Simulator. More...

Public Member Functions

Construction
 DrawableMultiBody (MultiBody *const _m)
 
virtual void initialize () override
 
virtual void uninitialize () override
 
virtual ~DrawableMultiBody ()=default
 
MultiBody Support
MultiBodyGetMultiBody () const noexcept
 Get the PMPL multibody.
 
size_t GetNumBodies () const noexcept
 Get the number of bodies in this drawable.
 
DrawableBodyGetDrawableBody (const size_t _i) noexcept
 
void PushTransform (const size_t _i, const glutils::transform &_t)
 
void UpdateTransform ()
 Update the transform queue for all bodies.
 
Drawable Overrides
virtual void draw () override
 
virtual void draw_select () override
 
virtual void draw_selected () override
 
virtual void draw_highlighted () override
 
virtual void select () noexcept override
 
virtual void deselect () noexcept override
 
virtual void highlight () noexcept override
 
virtual void unhighlight () noexcept override
 

Detailed Description

Instructions for drawing a pmpl MultiBody in the Simulator.

Constructor & Destructor Documentation

◆ DrawableMultiBody()

DrawableMultiBody::DrawableMultiBody ( MultiBody *const  _m)

Construct a drawable representation of a PMPL multibody.

Parameters
[in]_mThe PMPL multibody to draw.

Member Function Documentation

◆ uninitialize()

void DrawableMultiBody::uninitialize ( )
overridevirtual

Since this is a container, uninit requests must be passed on to the child bodies.

◆ GetDrawableBody()

DrawableBody * DrawableMultiBody::GetDrawableBody ( const size_t  _i)
noexcept

Get a child drawable body.

Parameters
[in]_iThe index of the drawable body to get.
Returns
A pointer to the drawable.

◆ PushTransform()

void DrawableMultiBody::PushTransform ( const size_t  _i,
const glutils::transform &  _t 
)

Push a transform for a given body.

Parameters
[in]_iThe index of the body to update.
[in]_tThe transform to push.

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