![]() |
VR-Forces 5.0.2 Developer's Guide
|
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.
Public Member Functions | |
| DtHazardAreaManager (const DtSimulationServices *) | |
| virtual | ~DtHazardAreaManager () |
| virtual bool | loadHazardAreaInformationFile (const DtFilename &filename, bool clear) |
| virtual void | addHazardAreaType (const DtEntityType &) |
| virtual void | removeHazardAreaType (const DtEntityType &) |
| virtual std::vector < DtSimObjectReference > | hazardAreas (const DtEntityType &) const |
| virtual const std::vector < DtEntityType > & | hazardAreaTypes () const |
| virtual const std::map < unsigned long long, DtSimObjectReference > & | hazardAreas () const |
| virtual const DtRwHazardAreaInformation & | hazardAreaInformation () const |
Protected Member Functions | |
| virtual void | processHazardAreaInformation (DtSimMessage *msg) |
| virtual void | processHazardAreaAdded (DtSimObjectReference) |
| virtual void | processHazardAreaDeleted (const DtSimObject *) |
Static Protected Member Functions | |
| static void | requestHazardAreaInformationCallback (DtSimMessage *msg, void *usr) |
Protected Attributes | |
| const DtSimulationServices * | mySimulationServices |
| DtRwHazardAreaInformation | myHazardAreaInformation |
| std::vector< DtEntityType > | myHazardAreaTypes |
| std::map< unsigned long long, DtSimObjectReference > | myHazardAreas |
| boost::signals2::scoped_connection | mySimObjectAddedConnection |
Private Member Functions | |
| DtHazardAreaManager (const DtHazardAreaManager &orig) | |
| DtHazardAreaManager & | operator= (const DtHazardAreaManager &orig) |
| DtHazardAreaManager::DtHazardAreaManager | ( | const DtSimulationServices * | ) |
CTOR.
|
virtual |
DTOR.
|
private |
copy constructor
|
virtual |
Loads hazard area information file from given directory.
|
private |
assignment operator
|
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 |
|
protectedvirtual |
Called when a hazard area is added via the sim object manager.
|
protectedvirtual |
Called when a hazard area is removed.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |