Menge
Modular Pedestrian Simulation Framework for Research and Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
Menge::VisObstacle Class Reference

A simple class for drawing a simulation obstacle (line segment). The obstacle is drawn with lines in 3D space. More...

#include <VisObstacle.h>

Inheritance diagram for Menge::VisObstacle:
Menge::SceneGraph::GLNode

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...
 
GLDagNodegetParent ()
 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...
 

Detailed Description

A simple class for drawing a simulation obstacle (line segment). The obstacle is drawn with lines in 3D space.

Constructor & Destructor Documentation

Menge::VisObstacle::VisObstacle ( const Vector3 p0,
const Vector3 p1 
)

Constructor.

Parameters
p0The first end point of the line segment.
p1The second end point of the line segment.

Member Function Documentation

void Menge::VisObstacle::drawGL ( bool  select = false)
virtual

Draws the object into the OpenGL context.

Parameters
selectDetermines if the object is being drawn in a selection context (true) or visualization (false).

Implements Menge::SceneGraph::GLNode.


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