![]() |
VR-Forces 4.8 Class Documentation
|
Definition of a sensor. More...
Public Member Functions | |
| DtSensor () | |
| CTOR. More... | |
| virtual | ~DtSensor () |
| DTOR. More... | |
| virtual std::string | name () const |
| Returns "DtSensor". More... | |
| virtual std::string | moduleName () const |
| Returns the sensor module this sensor is set up for. More... | |
| virtual bool | attributeExists (const std::string &attributeName) |
| Check whether the specified attribute exists in the sensor. More... | |
| virtual void | getRecord (makArchives::DtSensorRecord &record) const |
| Fill in a record from the sensor's state. More... | |
| virtual void | setFromRecord (const makArchives::DtSensorRecord &record) |
| Fill in the sensor's state from a record. More... | |
Get an attribute of the sensor | |
| virtual int | attributeInt (const std::string &attributeName) const |
| virtual float | attributeFloat (const std::string &attributeName) const |
| virtual bool | attributeBool (const std::string &attributeName) const |
| virtual const std::string & | attributeString (const std::string &attributeName) const |
Public Attributes | |
Emitted when an attribute is changed, gives the attribute name and value | |
| boost::signal< void(const std::string &, int)> | signal_attributeChangedInt |
| boost::signal< void(const std::string &, bool)> | signal_attributeChangedBool |
| boost::signal< void(const std::string &, const std::string &)> | signal_attributeChangedString |
| boost::signal< void(const std::string &, float)> | signal_attributeChangedFloat |
| boost::signal< void(const DtSensor *)> | signal_setFromRecord |
Static Public Attributes | |
| static const std::string | theNullSensorName |
| Special name used to indicate the "Null" sensor, which has no effect. More... | |
Protected Types | |
| typedef std::map< std::string, int > | AttributeMapInt |
| typedef std::map< std::string, float > | AttributeMapFloat |
| typedef std::map< std::string, bool > | AttributeMapBool |
| typedef std::map< std::string, std::string > | AttributeMapString |
Protected Member Functions | |
| virtual void | setName (const std::string &name) |
| Set the sensor's unique name. More... | |
| virtual void | setModuleName (const std::string &modName) |
| Set the sensor module this sensor is using. More... | |
Set an attribute of the sensor | |
| virtual void | setAttribute (const std::string &attributeName, int val) |
| virtual void | setAttribute (const std::string &attributeName, bool val) |
| virtual void | setAttribute (const std::string &attributeName, float val) |
| virtual void | setAttribute (const std::string &attributeName, const std::string &val) |
Protected Attributes | |
| AttributeMapInt | myAttributesInt |
| AttributeMapBool | myAttributesBool |
| AttributeMapFloat | myAttributesFloat |
| AttributeMapString | myAttributesString |
| std::string | myName |
| std::string | myModuleName |
Friends | |
| class | DtSensorController |
Definition of a sensor.
Contains sensor-specific parameters and the name of the sensor module used to realize it
|
protected |
|
protected |
|
protected |
|
protected |
| makVrv::DtSensor::DtSensor | ( | ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Returns "DtSensor".
|
virtual |
Returns the sensor module this sensor is set up for.
|
virtual |
Check whether the specified attribute exists in the sensor.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Fill in a record from the sensor's state.
|
virtual |
Fill in the sensor's state from a record.
|
protectedvirtual |
Set the sensor's unique name.
|
protectedvirtual |
Set the sensor module this sensor is using.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
friend |
|
static |
Special name used to indicate the "Null" sensor, which has no effect.
| boost::signal<void (const std::string&, int)> makVrv::DtSensor::signal_attributeChangedInt |
| boost::signal<void (const std::string&, bool)> makVrv::DtSensor::signal_attributeChangedBool |
| boost::signal<void (const std::string&, const std::string&)> makVrv::DtSensor::signal_attributeChangedString |
| boost::signal<void (const std::string&, float)> makVrv::DtSensor::signal_attributeChangedFloat |
| boost::signal<void (const DtSensor*)> makVrv::DtSensor::signal_setFromRecord |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |