![]() |
VR-Forces 4.8 Class Documentation
|
The DtHazardAreaManager will keep track of all hazard area objects and their state. More...
Public Member Functions | |
| DtHazardAreaManager (DtSimManager *) | |
| CTOR. More... | |
| virtual | ~DtHazardAreaManager () |
| DTOR. More... | |
| virtual bool | loadHazardAreaInformationFile (const DtFilename &filename, bool clear) |
| Loads hazard area information file from given directory. More... | |
| virtual DtSimManager * | simManager () const |
| virtual void | addHazardAreaType (const DtEntityType &) |
| Adds a new hazard area to watch. Will redo internal list to contain new area. More... | |
| virtual void | removeHazardAreaType (const DtEntityType &) |
| Removes a hazard area to watch. More... | |
| virtual std::vector< const DtVrfObject * > | hazardAreas (const DtEntityType &) const |
| Returns a list of hazard areas that match the given type. More... | |
| virtual const std::vector < DtEntityType > & | hazardAreaTypes () const |
| virtual const std::set< const DtVrfObject * > & | hazardAreas () const |
| Returns all hazard areas. More... | |
| virtual const DtRwHazardAreaInformation & | hazardAreaInformation () const |
| Returns the full hazard area information. More... | |
Protected Member Functions | |
| virtual void | processHazardAreaInformation (DtSimMessage *msg) |
| virtual void | processHazardAreaAdded (const DtVrfObject *) |
| virtual void | processHazardAreaRemoved (const DtVrfObject *) |
Static Protected Member Functions | |
| static void | requestHazardAreaInformationCallback (DtSimMessage *msg, void *usr) |
| static void | hazardAreaAddedCallback (const DtVrfObject *, void *) |
| Called when a hazard area is added via the object manager. More... | |
| static void | hazardAreaRemovedCallback (const DtVrfObject *, void *) |
| Called when a hazard area is removed from the object manager. More... | |
Protected Attributes | |
| DtSimManager * | mySimManager |
| DtRwHazardAreaInformation | myHazardAreaInformation |
| std::vector< DtEntityType > | myHazardAreaTypes |
| std::set< const DtVrfObject * > | myHazardAreas |
Private Member Functions | |
| DtHazardAreaManager (const DtHazardAreaManager &orig) | |
| copy constructor More... | |
| DtHazardAreaManager & | operator= (const DtHazardAreaManager &orig) |
| assignment operator More... | |
The DtHazardAreaManager will keep track of all hazard area objects and their state.
Hazard areas are predefined as part of this class. Call the add/remove methods to add or remove areas to watch
| DtHazardAreaManager::DtHazardAreaManager | ( | DtSimManager * | ) |
CTOR.
|
virtual |
DTOR.
|
private |
copy constructor
|
virtual |
Loads hazard area information file from given directory.
|
private |
assignment operator
|
virtual |
|
virtual |
Adds a new hazard area to watch. Will redo internal list to contain new area.
|
virtual |
Removes a hazard area to watch.
Will redo internal list to contain correct areas. Note that if a wildcarded type is supplied, all types that match that type will be removed
|
virtual |
Returns a list of hazard areas that match the given type.
|
virtual |
|
virtual |
Returns all hazard areas.
|
virtual |
Returns the full hazard area information.
|
staticprotected |
|
protectedvirtual |
|
staticprotected |
Called when a hazard area is added via the object manager.
|
protectedvirtual |
|
staticprotected |
Called when a hazard area is removed from the object manager.
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |