PPL API 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.
| |
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 |
Renderable representation of a Roadmap. Allows for visualization of vertex and edge insertion.
DrawableRoadmap::DrawableRoadmap | ( | RoadmapType * | _graph, |
const glutils::color & | _color, | ||
const std::string & | _name = "" |
||
) |
Installs hooks onto _graph and populates existing vertices and edges.
_graph | The graph this DrawableRoadmap represents. |
_color | The color to draw the cfgs and edges. |
_name | A name refering to this DrawableRoadmap. |
|
protected |
Add a vertex to the rendering.
_vi | Vertex iterator to the vertex just added. |
|
protected |
Add an edge to the rendering.
_ei | edge iterator to the edge just added. |
|
protected |
Remove a vertex from the rendering.
_vi | Vertex iterator to the vertex just added. |
|
protected |
Remove an edge from the rendering.
_ei | edge iterator to the edge just added. |