PPL API Reference |
|
---|
Drawable representation of a pmpl Body. More...
Public Member Functions | |||||||
Construction | |||||||
| |||||||
DrawableBody (DrawableMultiBody *const _parent, Body *const _body, bool _wired=false) | |||||||
virtual | ~DrawableBody ()=default | ||||||
Body Support | |||||||
Body * | GetBody () const noexcept | ||||||
drawable Overrides | |||||||
When this object is selected/unselected, propogate the event to the parent object. | |||||||
virtual void | select () noexcept override | ||||||
virtual void | deselect () noexcept override | ||||||
virtual void | highlight () noexcept override | ||||||
virtual void | unhighlight () noexcept override | ||||||
Rendering Options | |||||||
void | ToggleRenderMode () | ||||||
Toggle between wire and full-frame rendering. | |||||||
Protected Member Functions | |
drawable_display_list overrides | |
virtual void | build () override |
virtual void | build_select () override |
virtual void | build_selected () override |
Helpers | |
void | build_polyhedron () |
The build commands for the polyhedron model. | |
void | build_wireframe () |
The build commands for the wireframe model. | |
std::set< std::pair< size_t, size_t > > | BuildAdjacencyMap () |
Protected Attributes | |
Internal State | |
const GMSPolyhedron & | m_polyhedron |
The polyhedron to visualize. | |
glutils::color | m_color |
The rendering color. | |
bool | m_wire {false} |
Render a wireframe only? | |
Drawable representation of a pmpl Body.
|
protectedinherited |
Builds a map showing the lines of adjacent polygons and whether they need to be drawn.