![]() |
VR-Forces 4.10 Class Documentation
|
Manages sensor and sensor module objects and their settings. More...

Public Types | |
| typedef std::vector< DtSensor * > | SensorVec |
| List of sensors. More... | |
| typedef std::vector< const DtSensorModule * > | SensorModuleVec |
| List of sensor modules. More... | |
Public Member Functions | |
| virtual | ~DtSensorManager () |
| DTOR. More... | |
| virtual void | addSensor (DtSensor *sensor)=0 |
| Add a new sensor to the manager. More... | |
| virtual void | removeSensor (DtSensor *sensor)=0 |
| Remove the sensor from the manager. More... | |
| virtual DtSensor * | findSensor (const std::string &sensorName) const =0 |
| Find a sensor by name. More... | |
| virtual unsigned int | getSensorId (DtSensor *sensor)=0 |
| Gets the sensorId based on where it is in the map Returns the sensorId for this DtSensor object. More... | |
| virtual void | getSensors (SensorVec &sensorVec) const =0 |
| Get a list of all getSensors currently in the manager. More... | |
| virtual void | addSensorModule (DtSensorModule *sensorModule)=0 |
| Add a new sensor module to the manager. More... | |
| virtual void | removeSensorModule (DtSensorModule *sensorModule)=0 |
| Remove the sensor module from the manager. More... | |
| virtual std::string | generateName ()=0 |
| Generate a unique sensor name for a new sensor. More... | |
| virtual DtSensorModule * | findSensorModule (const std::string &sensorModuleName)=0 |
| Find a sensor module by name. More... | |
| virtual void | getSensorModules (SensorModuleVec &moduleVec) const =0 |
| Get a list of all registered sensor modules. More... | |
| virtual void | setSensorsFromRecord (const makArchives::DtSensorSetRecord &rec)=0 |
| Set the getSensors in the manager from a record. More... | |
| virtual void | getSensorsRecord (makArchives::DtSensorSetRecord &rec) const =0 |
| Get a record containing the getSensors in the manager. More... | |
| virtual void | loadDefaults (bool loadOnlyFactorySettings=false)=0 |
| Load the default settings. More... | |
| virtual void | saveAsDefaults ()=0 |
| Called to save the current settings as the default settings. More... | |
| virtual void | exportSettings (const std::string &fileName)=0 |
| Exports the current cache settings to a file. More... | |
| virtual void | importSettings (const std::string &fileName)=0 |
| Import the current cache settings from a file. More... | |
| virtual DtBackupInterface * | backup ()=0 |
| Get the settings backup for the sensor settings. More... | |
| virtual void | enableSensor (DtSensor *sensor, DtChannel &channel)=0 |
| Enable the specified sensor on the channel. More... | |
| virtual void | disableSensor (DtSensor *sensor, DtChannel &channel)=0 |
| Disable the specified sensor on the channel. More... | |
| virtual bool | hasSensorModuleForSensor (const std::string &sensorName) const =0 |
| See if the sensor manager has the sensor module for this sensor by name. More... | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. More... | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. More... | |
Static Public Member Functions | |
| static DtSensorManager & | instance (DtDe &de) |
| Get the sensor manager instance rooted on the DtDe. More... | |
| static void | registerInstance (DtSensorManager *mgr, DtDe &de) |
| Register the sensor manager with the DtDe. More... | |
| static DtSensorManager * | findInstance (DtDe &de) |
| Find the sensor manager instance rooted on the DtDe. More... | |
Public Attributes | |
| boost::signalslib::signal < void(DtSensor *)> | signal_sensorAdded |
| Emitted when a sensor is added to the manager. More... | |
| boost::signalslib::signal < void(DtSensor *)> | signal_sensorRemoved |
| Emitted when a sensor is removed from the manager. More... | |
| boost::signalslib::signal < void(DtSensor *)> | signal_sensorAboutToBeDeleted |
| Emitted before the manager deletes a sensor. More... | |
| boost::signalslib::signal < void(DtSensor *, const std::string &)> | signal_sensorRenamed |
| Emitted when the manager renames a sensor. More... | |
| boost::signalslib::signal < void(DtChannel *, const std::string &)> | signal_sensorEnabled |
| Emitted when the manager enables a sensor. More... | |
Manages sensor and sensor module objects and their settings.
All DtSensor and DtSensorModule objects must be registered here
| typedef std::vector<DtSensor*> makVrv::DtSensorManager::SensorVec |
List of sensors.
| typedef std::vector<const DtSensorModule*> makVrv::DtSensorManager::SensorModuleVec |
List of sensor modules.
|
virtual |
DTOR.
|
static |
Get the sensor manager instance rooted on the DtDe.
Creates and registers a DtSensorManager if none is found in the DtDe
|
static |
|
static |
Find the sensor manager instance rooted on the DtDe.
Returns 0 if none is found
|
pure virtual |
Add a new sensor to the manager.
If a sensor already exists with the same name, this will delete and overwrite it with the passed in sensor
|
pure virtual |
Remove the sensor from the manager.
Gives memory ownership of the sensor to the caller
|
pure virtual |
Find a sensor by name.
Returns null if no matching sensor was found Use a DtSensorControllerAgent to modify the sensor
Gets the sensorId based on where it is in the map Returns the sensorId for this DtSensor object.
|
pure virtual |
Get a list of all getSensors currently in the manager.
|
pure virtual |
Add a new sensor module to the manager.
If a sensor module already exists with the same name, this will delete and overwrite it with the passed in sensor module
|
pure virtual |
Remove the sensor module from the manager.
Gives memory ownership of the sensor module to the caller
|
pure virtual |
Generate a unique sensor name for a new sensor.
|
pure virtual |
Find a sensor module by name.
Returns null if no matching sensor module was found
|
pure virtual |
Get a list of all registered sensor modules.
|
pure virtual |
Set the getSensors in the manager from a record.
|
pure virtual |
Get a record containing the getSensors in the manager.
|
pure virtual |
Load the default settings.
|
pure virtual |
Called to save the current settings as the default settings.
|
pure virtual |
Exports the current cache settings to a file.
|
pure virtual |
Import the current cache settings from a file.
|
pure virtual |
Get the settings backup for the sensor settings.
|
pure virtual |
Enable the specified sensor on the channel.
|
pure virtual |
Disable the specified sensor on the channel.
|
pure virtual |
See if the sensor manager has the sensor module for this sensor by name.
For example, if you are asking for a CameraFX sensor by name and you are running Vantage in SensorFX mode, the function will return false. If the sensor module corresponding to the sensor name is available return true. Also, if you pass an unknown sensor (ex. No Sensor) then return true.
| boost::signalslib::signal<void (DtSensor*)> makVrv::DtSensorManager::signal_sensorAdded |
Emitted when a sensor is added to the manager.
| boost::signalslib::signal<void (DtSensor*)> makVrv::DtSensorManager::signal_sensorRemoved |
Emitted when a sensor is removed from the manager.
| boost::signalslib::signal<void (DtSensor*)> makVrv::DtSensorManager::signal_sensorAboutToBeDeleted |
Emitted before the manager deletes a sensor.
| boost::signalslib::signal<void (DtSensor*, const std::string&)> makVrv::DtSensorManager::signal_sensorRenamed |
Emitted when the manager renames a sensor.
Arguments are the renamed sensor and the sensor's previous name
| boost::signalslib::signal<void (DtChannel*, const std::string&)> makVrv::DtSensorManager::signal_sensorEnabled |
Emitted when the manager enables a sensor.