![]() |
Menge
Modular Pedestrian Simulation Framework for Research and Development
|
The basic interface of extendible Menge Elements. More...
#include <Element.h>
Public Member Functions | |
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... | |
The basic interface of extendible Menge Elements.
A Menge element is a component of the Menge framework. A particular crowd simulator is defined by the instantiation of various types of elements.
|
inline |
This supplants the destructor.
In order to avoid potential problems in windows when dlls do not share the same c-runtime library, the destructor is held to be protected. To garbage collect a Condition, the destroy method should be called (which in turn, will call the destructor from its own memory space, averting run-time crashes).
Once this has been called, the TransitionTarget no longer exists. Calling methods or accessing members will produce indetermine behavior (most likely errors).
|
inlinevirtual |
Returns an optional visualization element associated with the element.
This element will simply be added to the scene graph and will be destroyed by the scene graph. It should not be used if the visualization is context dependent.
|
inlinevirtual |
Return an optional task associated with this element.
An element can have an accompanying Task for performing synchronized work. Most element implementations will not have a task. If a task is required, override this function to return an appropriate instance of the required task.
Reimplemented in Menge::Agents::NavMeshSpatialQuery, Menge::BFSM::NavMeshVelComponent, Menge::Agents::NavMeshElevation, Menge::BFSM::FarthestNMGoalSelector, and Menge::BFSM::NearestNMGoalSelector.