Instructions for drawing a pmpl MultiBody in the Simulator.
More...
|
|
| DrawableMultiBody (MultiBody *const _m) |
|
virtual void | initialize () override |
|
virtual void | uninitialize () override |
|
virtual | ~DrawableMultiBody ()=default |
|
|
MultiBody * | GetMultiBody () const noexcept |
| Get the PMPL multibody.
|
|
size_t | GetNumBodies () const noexcept |
| Get the number of bodies in this drawable.
|
|
DrawableBody * | GetDrawableBody (const size_t _i) noexcept |
|
void | PushTransform (const size_t _i, const glutils::transform &_t) |
|
void | UpdateTransform () |
| Update the transform queue for all bodies.
|
|
|
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 |
|
Instructions for drawing a pmpl MultiBody in the Simulator.
◆ DrawableMultiBody()
DrawableMultiBody::DrawableMultiBody |
( |
MultiBody *const |
_m | ) |
|
Construct a drawable representation of a PMPL multibody.
- Parameters
-
[in] | _m | The PMPL multibody to draw. |
◆ 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] | _i | The 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] | _i | The index of the body to update. |
[in] | _t | The transform to push. |
The documentation for this class was generated from the following files:
- DrawableMultiBody.h
- DrawableMultiBody.cpp