Menge
Modular Pedestrian Simulation Framework for Research and Development
|
Definition of obstacle set class which produces obstacles based on explicit definition in an XML file. More...
#include <ListObstacleSet.h>
Public Member Functions | |
ListObstacleSet () | |
Constructor. | |
virtual size_t | obstacleCount () |
Reports the number of obstacles in the set. More... | |
virtual Obstacle * | getObstacle (size_t i) |
Get the ith obstacle. More... | |
bool | addObstacle (Obstacle *o) |
Adds an obstacle to the generator. More... | |
bool | addObstacle (ObstacleVertexList o) |
Adds an obstacle to the generator from a list of vertices. More... | |
Public Member Functions inherited from Menge::Agents::ObstacleSet | |
ObstacleSet () | |
Default constructor. | |
virtual void | setClass (size_t cl) |
Sets the class of this obstacle set. More... | |
virtual size_t | getClass () |
Gets the class of this obstacle set. More... | |
Public Member Functions inherited from Menge::Element | |
void | destroy () |
This supplants the destructor. More... | |
virtual BFSM::Task * | getTask () |
Return an optional task associated with this element. More... | |
virtual SceneGraph::GLNode * | getSGNode () |
Returns an optional visualization element associated with the element. More... | |
Protected Member Functions | |
~ListObstacleSet () | |
Destructor. | |
Protected Member Functions inherited from Menge::Agents::ObstacleSet | |
virtual | ~ObstacleSet () |
Protected destructor. The destroy method should be used to delete an instance of an obstacle set. | |
Protected Attributes | |
std::vector< Obstacle * > | _obstacles |
The obstacles in an internal list. | |
Protected Attributes inherited from Menge::Agents::ObstacleSet | |
size_t | _class |
The class for the obstacles in this set. More... | |
Friends | |
class | ExplicitObstacleSetFactory |
Definition of obstacle set class which produces obstacles based on explicit definition in an XML file.
bool Menge::Agents::ListObstacleSet::addObstacle | ( | Obstacle * | o | ) |
Adds an obstacle to the generator.
o | The Obstacle Object to be added |
ObstacleSetException | if the obstacle is malformed |
bool Menge::Agents::ListObstacleSet::addObstacle | ( | ObstacleVertexList | o | ) |
Adds an obstacle to the generator from a list of vertices.
o | ObstacleVertexList struct representing the incoming obstacle |
ObstacleSetException | if the obstacle is malformed |
|
virtual |
Get the ith obstacle.
i | The index of the requested obstacle. |
ObstacleSetException | if the index, i, is invalid. |
Implements Menge::Agents::ObstacleSet.
|
inlinevirtual |
Reports the number of obstacles in the set.
Implements Menge::Agents::ObstacleSet.