PPL API Reference |
|
---|
Public Member Functions | |
Constructor | |
DrawableBoundary (const Boundary *const _boundary, const glutils::color &_color, const bool _wire=false) | |
Rendering Options | |
void | ToggleRenderMode () |
Toggle between wire and full-frame rendering. | |
Protected Member Functions | |
DrawalbePolyhedron Overrides | |
void | build () override |
drawable_display_list overrides | |
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 | |
GMSPolyhedron | m_polyhedron |
The boundary polyhedron. | |
Internal State | |
glutils::color | m_color |
The rendering color. | |
bool | m_wire {false} |
Render a wireframe only? | |
Drawable representation of a pmpl boundary. Does not get updated if the boundary is adjusted.
DrawableBoundary::DrawableBoundary | ( | const Boundary *const | _boundary, |
const glutils::color & | _color, | ||
const bool | _wire = false |
||
) |
Build a new drawable boundary.
_boundary | Boundary to be drawn |
_color | The color to render the boundary. |
_wire | Draw the boundary in wire frame? |
|
overrideprotectedvirtual |
Reimplemented from DrawablePolyhedron.
|
protectedinherited |
Builds a map showing the lines of adjacent polygons and whether they need to be drawn.