Menge
Modular Pedestrian Simulation Framework for Research and Development
|
A simple class for drawing a simulation obstacle (line segment). The obstacle is drawn with lines in 3D space. More...
#include <VisObstacle.h>
Public Member Functions | |
VisObstacle (const Vector3 &p0, const Vector3 &p1) | |
Constructor. More... | |
void | drawGL (bool select=false) |
Draws the object into the OpenGL context. More... | |
Public Member Functions inherited from Menge::SceneGraph::GLNode | |
GLNode (GLDagNode *parent=0x0) | |
Constructor. More... | |
virtual | ~GLNode () |
Virtual destructor. | |
void | setVisible (bool state) |
Sets the visible state of the node. More... | |
virtual void | newContext () |
Allows the node to recreate any unique OpenGL objects based on the acquisition of a new OpenGL context. More... | |
GLDagNode * | getParent () |
Returns a pointer to the node's parent (possibly NULL). More... | |
Protected Attributes | |
Vector3 | _p0 |
The line segment's first end point. | |
Vector3 | _p1 |
The line segment's second end point. | |
Protected Attributes inherited from Menge::SceneGraph::GLNode | |
GLDagNode * | _parent |
The GLDagNode that serves as this node's parent. | |
bool | _visible |
The visibility state of this node. If visible (true) the node and its children will be drawn into the scene, if invisible (false) it will not be drawn. | |
Additional Inherited Members | |
Protected Member Functions inherited from Menge::SceneGraph::GLNode | |
void | setParent (GLDagNode *p) |
Assigns this node to a parent GLDagNode. More... | |
A simple class for drawing a simulation obstacle (line segment). The obstacle is drawn with lines in 3D space.
Constructor.
p0 | The first end point of the line segment. |
p1 | The second end point of the line segment. |
|
virtual |
Draws the object into the OpenGL context.
select | Determines if the object is being drawn in a selection context (true) or visualization (false). |
Implements Menge::SceneGraph::GLNode.