#include <SensorMgr.h>
Public Member Functions | |
| void | shutdown () |
| bool | init () |
| void | update () |
| Call update on all registrated sensors. | |
| void | registerSensor (osgSensor::Sensor *sensor) |
| Registrate a sensor. | |
| bool | unRegisterSensor (osgSensor::Sensor *sensor) |
| unregistrate a sensor. | |
| Sensor * | find (const std::string &name) |
Static Public Member Functions | |
| static SensorMgr * | instance (void) |
| Return the singleton object. | |
All classes inherited from the Sensor class will automatically be registrated to this manager.
When SensorMgr::update() is called, all registrated Sensors update method will be called.
Same goes for SensorMgr::shutdown()
|
|
Find a named sensor and return it.
|
|
|
Initializes the SensorManager. |
|
|
Shutdown all registrated sensors |
1.4.4