![]() |
VR-Forces 4.2 Class Documentation
|
Class which manages the sending of sensor contact information to the GUI from one particular sensor on an entity. More...
Public Member Functions | |
| DtObjectSensorMonitor (DtVrfObject *hostObject, const DtSensorContactInfoList *contactInfoList, const DtString &sensorName, int sensorType) | |
| constructor | |
| virtual | ~DtObjectSensorMonitor () |
| destructor | |
| virtual bool | init () |
| Calls registerMessageCallbacks(). | |
| virtual void | registerMessageCallbacks () |
| Registers for sensorDataRequest and sensorDataUnsubscribe messages. | |
| virtual void | processSensorDataRequest (DtSimMessage *msg) |
| virtual void | processSensorDataUnsubscribe (DtSimMessage *msg) |
| virtual void | createAndSendSensorDataMessage () |
| Constructs a DtSensorData message based on the current state of the sensor PSR, and sends it to the network. | |
| virtual void | notifyTargetsChanged () |
| Called by the object sensor whenever the target list in the PSR has changed. | |
Static Public Member Functions | |
| static void | sensorDataRequestCallback (DtSimMessage *msg, void *usrData) |
| static void | sensorDataUnsubscribeCallback (DtSimMessage *msg, void *usrData) |
Protected Types | |
| typedef std::list < DtSimulationAddress > | DtSubscriberList |
Protected Member Functions | |
| virtual bool | onSubscriberList (const DtSimulationAddress &add) const |
| Returns true if this address is on the current subscriber list. | |
| virtual void | addToSubscriberList (const DtSimulationAddress &add) |
| virtual void | removeFromSubscriberList (const DtSimulationAddress &add) |
| virtual int | numberOfSubscribers () |
| returns the number of subscribers. | |
Protected Attributes | |
| DtVrfObject * | myHostObject |
| const DtSensorContactInfoList * | mySensorContactInfoList |
| int | mySensorType |
| DtString | mySensorName |
| DtSubscriberList | mySubscriberList |
Private Member Functions | |
| DtObjectSensorMonitor () | |
| default constructor; not implemented | |
| DtObjectSensorMonitor (const DtObjectSensorMonitor &orig) | |
| copy constructor; not implemented | |
| const DtObjectSensorMonitor & | operator= (const DtObjectSensorMonitor &orig) |
| assignment operator; not implemented | |
Class which manages the sending of sensor contact information to the GUI from one particular sensor on an entity.
|
protected |
|
private |
default constructor; not implemented
|
private |
copy constructor; not implemented
| DtObjectSensorMonitor::DtObjectSensorMonitor | ( | DtVrfObject * | hostObject, |
| const DtSensorContactInfoList * | contactInfoList, | ||
| const DtString & | sensorName, | ||
| int | sensorType | ||
| ) |
constructor
|
virtual |
destructor
|
private |
assignment operator; not implemented
|
virtual |
Calls registerMessageCallbacks().
|
virtual |
Registers for sensorDataRequest and sensorDataUnsubscribe messages.
|
static |
|
virtual |
|
static |
|
virtual |
|
virtual |
Constructs a DtSensorData message based on the current state of the sensor PSR, and sends it to the network.
|
virtual |
Called by the object sensor whenever the target list in the PSR has changed.
This triggers sensorData messages to be sent out, if anyone is currently subscribed.
|
protectedvirtual |
Returns true if this address is on the current subscriber list.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
returns the number of subscribers.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |