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
DrawableBoundary Class 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?
 

Detailed Description

Drawable representation of a pmpl boundary. Does not get updated if the boundary is adjusted.

Constructor & Destructor Documentation

◆ DrawableBoundary()

DrawableBoundary::DrawableBoundary ( const Boundary *const  _boundary,
const glutils::color &  _color,
const bool  _wire = false 
)

Build a new drawable boundary.

Parameters
_boundaryBoundary to be drawn
_colorThe color to render the boundary.
_wireDraw the boundary in wire frame?

Member Function Documentation

◆ build()

void DrawableBoundary::build ( )
overrideprotectedvirtual

Reimplemented from DrawablePolyhedron.

◆ 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: