![]() |
VR-Forces 4.10 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, DtObjectSensorPSR *psr) | |
| constructor More... | |
| virtual | ~DtObjectSensorMonitor () |
| destructor More... | |
| virtual bool | init () |
| Calls registerMessageCallbacks(). More... | |
| virtual void | setDeferMessageSending () |
| Configures monitor to use parallel tick to defer message sending. More... | |
| virtual void | registerMessageCallbacks () |
| Registers for sensorDataRequest and sensorDataUnsubscribe messages. More... | |
| 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. More... | |
| virtual void | notifyTargetsChanged () |
| Called by the object sensor whenever the target list in the PSR has changed. More... | |
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. More... | |
| virtual void | addToSubscriberList (const DtSimulationAddress &add) |
| virtual void | removeFromSubscriberList (const DtSimulationAddress &add) |
| virtual int | numberOfSubscribers () |
| returns the number of subscribers. More... | |
Private Member Functions | |
| DtObjectSensorMonitor () | |
| default constructor; not implemented More... | |
| DtObjectSensorMonitor (const DtObjectSensorMonitor &orig) | |
| copy constructor; not implemented More... | |
| const DtObjectSensorMonitor & | operator= (const DtObjectSensorMonitor &orig) |
| assignment operator; not implemented More... | |
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, | ||
| DtObjectSensorPSR * | psr | ||
| ) |
constructor
|
virtual |
destructor
|
private |
assignment operator; not implemented
|
virtual |
Calls registerMessageCallbacks().
|
virtual |
Configures monitor to use parallel tick to defer message sending.
|
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 |
|
protected |
|
protected |