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
DrawableBody Class Referencefinal

Drawable representation of a pmpl Body. More...

Public Member Functions

Construction
Parameters
_parentthe owning Drawable object
_bodythe body to draw
_wiredDraw the boundary in wire frame?
 DrawableBody (DrawableMultiBody *const _parent, Body *const _body, bool _wired=false)
 
virtual ~DrawableBody ()=default
 
Body Support
BodyGetBody () 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 GMSPolyhedronm_polyhedron
 The polyhedron to visualize.
 
glutils::color m_color
 The rendering color.
 
bool m_wire {false}
 Render a wireframe only?
 

Detailed Description

Drawable representation of a pmpl Body.

Member Function Documentation

◆ BuildAdjacencyMap()

std::set< std::pair< size_t, size_t > > DrawablePolyhedron::BuildAdjacencyMap ( )
protectedinherited

Builds a map showing the lines of adjacent polygons and whether they need to be drawn.

Returns
The adjacency map of the current polyhedron.

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