![]() |
VR-Forces 4.10 Class Documentation
|
This class listens to signal_sensorControlRequest from the DtCigiSensorResponder, which processes CIGI packets into non-CCL containers. More...
Classes | |
| struct | DtTrackObjectStruct |
| Struct for storing all the particular objects relating to track mode type. More... | |
Public Types | |
| typedef std::map< unsigned int, DtTrackObjectStruct * > | DtTrackObjectsMap |
| Map type def for DtTrackObjects() storage , int = sensor id If the CIGI connection is using it's own thread this map is only safely accessible in the render thread. More... | |
Public Member Functions | |
| virtual | ~DtCigiSensorController () |
| Virtual DTOR. More... | |
| virtual void | addTrackObject (unsigned int sensorId, DtTrackObjectStruct *trackObject) |
| Add a track object struct to our map. More... | |
| virtual DtTrackObjectStruct * | findTrackObjectStruct (unsigned int sensorId) |
| Attempt to find the track object struct in the DtTrackObjectsMap that is associated with the in param sensor ID. More... | |
| virtual void | destroyTrackObjectStruct (unsigned int sensorId) |
| Destroy the track object struct and all the objects/pointers inside the struct. More... | |
| virtual void | slot_onSensorControlRequest (DtSensorResponder::DtSensorRequestData *request) |
| Slot for processing the struct sent from the DtSensorResponder. More... | |
| virtual void | performSensorControlRequest (DtSensorResponder::DtSensorRequestData &request) |
| This method is called from slot_onSensorControlRequest() in a thread safe manner. More... | |
| virtual void | slot_sensorTrackAcquisitionBoxComponentReceived (unsigned int sensorId, unsigned int centerX, unsigned int centerY, unsigned int boxWidth, unsigned int boxHeight, bool render) |
| Slot for signal sent from the CigiIGCOntrolProcessor. More... | |
| virtual void | performSensorTrackAcquisitionBoxComponent (unsigned int sensorId, unsigned int centerX, unsigned int centerY, unsigned int boxWidth, unsigned int boxHeight, bool render) |
| Creates or modifies the acquisition box associated with the sensor that is passed in. More... | |
| virtual void | initiateTrack (DtSensorResponder::DtSensorRequestData &request) |
| Attempts to start a track on the observer & channel associated with the viewID in the sensor request. More... | |
| virtual void | generateSensorResponse (DtSensorResponder::DtSensorResponseData &response) |
| Passes the sensor response back to the DtSensorResponder in a thread safe manner. More... | |
| virtual const DtTrackObjectsMap & | trackObjects () const |
| Get the track object map. More... | |
| virtual DtTrackObjectsMap & | trackObjects () |
Protected Member Functions | |
| DtCigiSensorController (DtDe &de, DtCigiConnection &connection) | |
| CTOR. More... | |
Protected Attributes | |
| DtDe & | myDe |
| DtCigiConnection & | myCigiConnection |
| DtSignalConnectionManager | myConnections |
| DtSensorResponseMap | mySensorResponseMap |
| Stores all the sensor responses This is here rather than the sensor responder as the responses need updated each frame from various render thread objects. More... | |
| DtTrackObjectsMap | myTrackObjects |
Private Types | |
| typedef std::map< unsigned int, DtSensorResponder::DtSensorResponseData * > | DtSensorResponseMap |
| Map type def for DtSensorResponseData() storage, int = sensor id. More... | |
Private Member Functions | |
| DtCigiSensorController () | |
| unimplemented default CTOR More... | |
| DtCigiSensorController (const DtCigiSensorController &orig) | |
| unimplemented CCTOR More... | |
| DtCigiSensorController & | operator= (DtCigiSensorController &rhs) |
| unimplemented assignment CTOR More... | |
Friends | |
| class | DtCigiSensorControllerCreator |
This class listens to signal_sensorControlRequest from the DtCigiSensorResponder, which processes CIGI packets into non-CCL containers.
This class initialises Sensor tracking through the use of DtTrackAcquirer()s and their derived classes, e.g. DtLosTrackAcquirer(). It also creates DtTrackMonitor()s to monitor the tracking of objects that are selected for tracking in the track acquirers. DtSensorResponder::DtSensorResponse structs are filled in this class from the information from both acquirers and track monitors. These structs are passed back to the DtSesnsorResponder through a signal in a thread safe manner. If you wish to use additional sensor types, IR2 for example. It must be added in the Display Settings in the vrvGui, and then added to the Cigi Mappings with a new CIGI sensor ID. This class uses SensorIDs to map and associate information with sensors. SensorIDs are used for sensor tracking, like in this class, and sensor names are used for sensor visualisation (DtCigiViewController).
| typedef std::map<unsigned int, DtTrackObjectStruct*> makVrv::DtCigiSensorController::DtTrackObjectsMap |
Map type def for DtTrackObjects() storage , int = sensor id If the CIGI connection is using it's own thread this map is only safely accessible in the render thread.
|
private |
Map type def for DtSensorResponseData() storage, int = sensor id.
|
virtual |
Virtual DTOR.
|
protected |
CTOR.
|
private |
unimplemented default CTOR
|
private |
unimplemented CCTOR
|
virtual |
Get the track object map.
|
virtual |
|
virtual |
Add a track object struct to our map.
|
virtual |
Attempt to find the track object struct in the DtTrackObjectsMap that is associated with the in param sensor ID.
|
virtual |
Destroy the track object struct and all the objects/pointers inside the struct.
|
virtual |
Slot for processing the struct sent from the DtSensorResponder.
This method checks if the Cigi connection is using a thread, if so calls performSensorControlRequest() in a thread safe manner
|
virtual |
This method is called from slot_onSensorControlRequest() in a thread safe manner.
Processes the sensor request.
|
virtual |
Slot for signal sent from the CigiIGCOntrolProcessor.
This method checks if the Cigi connection is using a thread, if so calls performSensorTrackAcquisitionBoxComponent() in a thread safe manner.
|
virtual |
Creates or modifies the acquisition box associated with the sensor that is passed in.
Called from slot_sensorTrackAcquisitionBoxComponentReceived() in a thread safe manner. This will render the acquisition box if the render flag is set. It is set from the component control state. Note this will only set values on the DtTrackAcquisitionBox, until we receive a Sensor Control packet and we determine which channel it is to be drawn on the acquisition will not be rendered
|
virtual |
Attempts to start a track on the observer & channel associated with the viewID in the sensor request.
Creates a DtTrackAcquirer() and a DtTrackAcquisitionBox() for specific track mode if one does not exist yet. If the track acquirer successfully identifies an object to track, a DtTrackMonitor is created and the DtElementId of the object is passed into it for tracking. Creates a DtSensorResponseData() and fills it with a appropriate information from the track objects. Calls generateSensorResponse().
|
virtual |
Passes the sensor response back to the DtSensorResponder in a thread safe manner.
|
private |
unimplemented assignment CTOR
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
Stores all the sensor responses This is here rather than the sensor responder as the responses need updated each frame from various render thread objects.
|
protected |