![]() |
VR-Forces Developer's Guide
|
JRM SenSim sensor module implementation.
Limited to one channel per window

Public Types | |
| enum | ModelType { ModelTypeDefault, ModelTypeDiGuy, ModelTypeEntity } |
Public Member Functions | |
| DtSenSimSensorModule (DtDe &de) | |
| virtual | ~DtSenSimSensorModule () |
| virtual std::string | name () const |
| virtual std::string | displayName () const |
| virtual void | enableSensor (DtSensor *sensor, DtChannel &channel) |
| virtual void | disableSensor (DtSensor *sensor, DtChannel &channel) |
| virtual void | defaultSensorConfiguration (makArchives::DtSensorRecord &rec) |
| virtual DtSenSim * | senSim (DtOsgChannel *osgChannel) |
| virtual void | initModel (DtModelInstance &modelInstance) |
Public Member Functions inherited from makVrv::DtSensorModule | |
| virtual | ~DtSensorModule () |
| virtual bool | pendingObjectInitialization () const |
| virtual int | numberOfObjectsPendingInitialization () const |
Protected Types | |
| typedef std::map< DtChannel *, DtSenSim * > | ChannelToSenSim |
| typedef std::map< DtChannel *, DtSignalConnectionManager * > | ChannelToSignalManager |
| typedef std::map < DtOsgModelInstance *, DtUniqueID > | ModelInstanceIdMap |
Protected Member Functions | |
| virtual void | initDiGuy (DtDiGuyModelInstance *diguyModel) |
| virtual void | diguyModelInstanceToBeDestroyed (DtDiGuyModelInstance *diguyModel) |
| virtual void | slot_postInit () |
| void | updateCameraUniforms (const DtSensor *sensor, DtOsgChannel *osgChannel) |
| virtual void | cleanupChannel (DtChannel &channel) |
| virtual void | modelToBeDestroyed (DtModelInstance &model) |
| virtual void | indirectEntityAdded (DtModel *model, DtUniqueID id) |
| virtual void | updateActiveRegion (DtOsgModelInstance *model, const std::string ®ionName, bool value) |
| virtual void | slot_attributeChangedBool (DtSenSim *sensim, const std::string &attributeName, bool val, const DtSensor *sensor, DtOsgChannel *osgChannel) |
| virtual void | slot_attributeChangedFloat (DtSenSim *sensim, const std::string &attributeName, float val, const DtSensor *sensor, DtOsgChannel *osgChannel) |
| virtual void | slot_setFromRecord (const DtSensor *sensor, DtOsgChannel *osgChannel) |
| virtual void | slot_channelToBeDestroyed (DtChannel *channel) |
Protected Attributes | |
| ChannelToSenSim | mySenSimChannels |
| ChannelToSignalManager | myChannelToSignalMap |
| DtDe & | myDe |
| DtSignalConnectionManager | mySignalManager |
| ModelInstanceIdMap | myModelInstanceToUniqueId |
|
protected |
Map of channels to DtSenSim objects.
|
protected |
|
protected |
| makVrv::DtSenSimSensorModule::DtSenSimSensorModule | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
|
virtual |
Get the user interface display name for this module.
Returns "CameraFX"
Implements makVrv::DtSensorModule.
|
virtual |
Apply the sensor to the specified channel.
Implements makVrv::DtSensorModule.
|
virtual |
Stop using the sensor on the specified channel.
Implements makVrv::DtSensorModule.
|
virtual |
Fill a sensor record with defaults for this sensor module.
Implements makVrv::DtSensorModule.
|
virtual |
Get the internal sensim object.
|
virtual |
slot for the signal_modelCreated signal so we can set the model type in a uniform
|
protectedvirtual |
helper function for initializing diguy instances. Called by initModel and connect to the diguyModelInstanceChagned signal
|
protectedvirtual |
slot for the signal triggered when a diguy model is going to be destoruyed. Disconnects the slots.
|
protectedvirtual |
slot for the post initialization signal, initialize the rest of the signal connections here.
|
protected |
sets up the camera uniforms based on the sensor settings for the lighting override values
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
helper function for cleaning up a channel when it is no longer attached to a sensor used when a sensor mode is disabled or when the channel is destroyed.
|
protectedvirtual |
slot for the model to be destroyed signal. handle cleanup for this model here
|
protectedvirtual |
slot for indirect entity added signal. Save off the model and id so we can update active regions.
|
protectedvirtual |
slot for the active region signal from the model instance send the value of the active region to the instance manager/model
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |