Manages sensor and sensor module objects and their settings.
All DtSensor and DtSensorModule objects must be registered here
| virtual makVrv::DtSensorManager::~DtSensorManager |
( |
| ) |
|
|
virtual |
Get the sensor manager instance rooted on the DtDe.
Creates and registers a DtSensorManager if none is found in the DtDe
Register the sensor manager with the DtDe.
This will override and delete any existing sensor manager rooted on the DtDe.
Find the sensor manager instance rooted on the DtDe.
Returns 0 if none is found
| virtual void makVrv::DtSensorManager::addSensor |
( |
DtSensor * |
sensor | ) |
|
|
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
| virtual void makVrv::DtSensorManager::removeSensor |
( |
DtSensor * |
sensor | ) |
|
|
pure virtual |
Remove the sensor from the manager.
Gives memory ownership of the sensor to the caller
| virtual DtSensor* makVrv::DtSensorManager::findSensor |
( |
const std::string & |
sensorName | ) |
const |
|
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.
| virtual void makVrv::DtSensorManager::getSensors |
( |
SensorVec & |
sensorVec | ) |
const |
|
pure virtual |
Get a list of all getSensors currently in the manager.
| virtual void makVrv::DtSensorManager::addSensorModule |
( |
DtSensorModule * |
sensorModule | ) |
|
|
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
| virtual void makVrv::DtSensorManager::removeSensorModule |
( |
DtSensorModule * |
sensorModule | ) |
|
|
pure virtual |
Remove the sensor module from the manager.
Gives memory ownership of the sensor module to the caller
| virtual std::string makVrv::DtSensorManager::generateName |
( |
| ) |
|
|
pure virtual |
Generate a unique sensor name for a new sensor.
| virtual DtSensorModule* makVrv::DtSensorManager::findSensorModule |
( |
const std::string & |
sensorModuleName | ) |
|
|
pure virtual |
Find a sensor module by name.
Returns null if no matching sensor module was found
| virtual void makVrv::DtSensorManager::getSensorModules |
( |
SensorModuleVec & |
moduleVec | ) |
const |
|
pure virtual |
Get a list of all registered sensor modules.
Set the getSensors in the manager from a record.
Get a record containing the getSensors in the manager.
| virtual void makVrv::DtSensorManager::loadDefaults |
( |
bool |
loadOnlyFactorySettings = false | ) |
|
|
pure virtual |
Load the default settings.
| virtual void makVrv::DtSensorManager::saveAsDefaults |
( |
| ) |
|
|
pure virtual |
Called to save the current settings as the default settings.
| virtual void makVrv::DtSensorManager::exportSettings |
( |
const std::string & |
fileName | ) |
|
|
pure virtual |
Exports the current cache settings to a file.
| virtual void makVrv::DtSensorManager::importSettings |
( |
const std::string & |
fileName | ) |
|
|
pure virtual |
Import the current cache settings from a file.
Get the settings backup for the sensor settings.
| virtual void makVrv::DtSensorManager::enableSensor |
( |
DtSensor * |
sensor, |
|
|
DtChannel & |
channel |
|
) |
| |
|
pure virtual |
Enable the specified sensor on the channel.
| virtual void makVrv::DtSensorManager::disableSensor |
( |
DtSensor * |
sensor, |
|
|
DtChannel & |
channel |
|
) |
| |
|
pure virtual |
Disable the specified sensor on the channel.
| virtual bool makVrv::DtSensorManager::hasSensorModuleForSensor |
( |
const std::string & |
sensorName | ) |
const |
|
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.
| virtual void makVrv::DtSensorManager::emitSensorDataReady |
( |
| ) |
|
|
pure virtual |
Trigger that the currently enable sensor has data ready.
| 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.
| boost::signalslib::signal<void()> makVrv::DtSensorManager::signal_sensorDataReady |
Emitted when the currently enabled sensor has a data available.
The documentation for this class was generated from the following file:
- /data/exports/nrhent7-1/nightly/docs/vrForces.vrf5-2-branch/include/vrvCore/DtSensorManager.h