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
DrawableRoadmap Class Reference

Public Member Functions

Constructor
 DrawableRoadmap (RoadmapType *_graph, const glutils::color &_color, const std::string &_name="")
 
 ~DrawableRoadmap ()
 

Public Types

Local Types
typedef RoadmapGraph< Cfg, DefaultWeight< Cfg > > RoadmapType
 
typedef RoadmapType::VI VI
 
typedef RoadmapType::EI EI
 
typedef RoadmapType::VID VID
 
typedef std::pair< VID, VID > EdgeID
 
typedef std::vector< double > CfgData
 
typedef std::vector< glutils::vector3f > PointPath
 

Protected Member Functions

Modifiers

These functions should be installed as roadmap hooks to update the rendering whenever the map changes.

void AddVertex (VI _vi)
 
void AddEdge (EI _ei)
 
void DeleteVertex (VI _vi)
 
void DeleteEdge (EI _ei)
 
Rendering Options

These functions should be installed as key press hooks to change the way the maps are rendered.

Todo:
Apply these only to the selected roadmap.
void ToggleRobot ()
 Switch between drawing the robots and drawing points for Cfgs.
 
Drawable Overloads
virtual void initialize () override
 
virtual void draw () override
 
virtual void draw_select () override
 
virtual void draw_selected () override
 
virtual void draw_highlighted () override
 

Detailed Description

Renderable representation of a Roadmap. Allows for visualization of vertex and edge insertion.

Constructor & Destructor Documentation

◆ DrawableRoadmap()

DrawableRoadmap::DrawableRoadmap ( RoadmapType _graph,
const glutils::color &  _color,
const std::string &  _name = "" 
)

Installs hooks onto _graph and populates existing vertices and edges.

Parameters
_graphThe graph this DrawableRoadmap represents.
_colorThe color to draw the cfgs and edges.
_nameA name refering to this DrawableRoadmap.

Member Function Documentation

◆ AddVertex()

void DrawableRoadmap::AddVertex ( VI  _vi)
protected

Add a vertex to the rendering.

Parameters
_viVertex iterator to the vertex just added.

◆ AddEdge()

void DrawableRoadmap::AddEdge ( EI  _ei)
protected

Add an edge to the rendering.

Parameters
_eiedge iterator to the edge just added.

◆ DeleteVertex()

void DrawableRoadmap::DeleteVertex ( VI  _vi)
protected

Remove a vertex from the rendering.

Parameters
_viVertex iterator to the vertex just added.

◆ DeleteEdge()

void DrawableRoadmap::DeleteEdge ( EI  _ei)
protected

Remove an edge from the rendering.

Parameters
_eiedge iterator to the edge just added.

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