VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
makVrv::DtSenSimSensorModule Class Reference

JRM SenSim sensor module implementation.

Limited to one channel per window

Inheritance diagram for makVrv::DtSenSimSensorModule:
Inheritance graph
[legend]

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 DtSenSimsenSim (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 &regionName, 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
 
DtDemyDe
 
DtSignalConnectionManager mySignalManager
 
ModelInstanceIdMap myModelInstanceToUniqueId
 

Member Typedef Documentation

Map of channels to DtSenSim objects.

Member Enumeration Documentation

used by the lighting shader to know which adjustment to use based on model type

Enumerator
ModelTypeDefault 
ModelTypeDiGuy 
ModelTypeEntity 

Constructor & Destructor Documentation

makVrv::DtSenSimSensorModule::DtSenSimSensorModule ( DtDe de)

CTOR.

virtual makVrv::DtSenSimSensorModule::~DtSenSimSensorModule ( )
virtual

DTOR.

Member Function Documentation

virtual std::string makVrv::DtSenSimSensorModule::name ( ) const
virtual

Unique name of the sensor module.

Returns "CameraFxSensorModule"

Implements makVrv::DtSensorModule.

virtual std::string makVrv::DtSenSimSensorModule::displayName ( ) const
virtual

Get the user interface display name for this module.

Returns "CameraFX"

Implements makVrv::DtSensorModule.

virtual void makVrv::DtSenSimSensorModule::enableSensor ( DtSensor sensor,
DtChannel channel 
)
virtual

Apply the sensor to the specified channel.

Implements makVrv::DtSensorModule.

virtual void makVrv::DtSenSimSensorModule::disableSensor ( DtSensor sensor,
DtChannel channel 
)
virtual

Stop using the sensor on the specified channel.

Implements makVrv::DtSensorModule.

virtual void makVrv::DtSenSimSensorModule::defaultSensorConfiguration ( makArchives::DtSensorRecord rec)
virtual

Fill a sensor record with defaults for this sensor module.

Implements makVrv::DtSensorModule.

virtual DtSenSim* makVrv::DtSenSimSensorModule::senSim ( DtOsgChannel osgChannel)
virtual

Get the internal sensim object.

virtual void makVrv::DtSenSimSensorModule::initModel ( DtModelInstance modelInstance)
virtual

slot for the signal_modelCreated signal so we can set the model type in a uniform

virtual void makVrv::DtSenSimSensorModule::initDiGuy ( DtDiGuyModelInstance diguyModel)
protectedvirtual

helper function for initializing diguy instances. Called by initModel and connect to the diguyModelInstanceChagned signal

virtual void makVrv::DtSenSimSensorModule::diguyModelInstanceToBeDestroyed ( DtDiGuyModelInstance diguyModel)
protectedvirtual

slot for the signal triggered when a diguy model is going to be destoruyed. Disconnects the slots.

virtual void makVrv::DtSenSimSensorModule::slot_postInit ( )
protectedvirtual

slot for the post initialization signal, initialize the rest of the signal connections here.

void makVrv::DtSenSimSensorModule::updateCameraUniforms ( const DtSensor sensor,
DtOsgChannel osgChannel 
)
protected

sets up the camera uniforms based on the sensor settings for the lighting override values

virtual void makVrv::DtSenSimSensorModule::slot_attributeChangedBool ( DtSenSim sensim,
const std::string &  attributeName,
bool  val,
const DtSensor sensor,
DtOsgChannel osgChannel 
)
protectedvirtual
virtual void makVrv::DtSenSimSensorModule::slot_attributeChangedFloat ( DtSenSim sensim,
const std::string &  attributeName,
float  val,
const DtSensor sensor,
DtOsgChannel osgChannel 
)
protectedvirtual
virtual void makVrv::DtSenSimSensorModule::slot_setFromRecord ( const DtSensor sensor,
DtOsgChannel osgChannel 
)
protectedvirtual
virtual void makVrv::DtSenSimSensorModule::slot_channelToBeDestroyed ( DtChannel channel)
protectedvirtual
virtual void makVrv::DtSenSimSensorModule::cleanupChannel ( DtChannel channel)
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.

virtual void makVrv::DtSenSimSensorModule::modelToBeDestroyed ( DtModelInstance model)
protectedvirtual

slot for the model to be destroyed signal. handle cleanup for this model here

virtual void makVrv::DtSenSimSensorModule::indirectEntityAdded ( DtModel model,
DtUniqueID  id 
)
protectedvirtual

slot for indirect entity added signal. Save off the model and id so we can update active regions.

virtual void makVrv::DtSenSimSensorModule::updateActiveRegion ( DtOsgModelInstance model,
const std::string &  regionName,
bool  value 
)
protectedvirtual

slot for the active region signal from the model instance send the value of the active region to the instance manager/model

Member Data Documentation

ChannelToSenSim makVrv::DtSenSimSensorModule::mySenSimChannels
protected
ChannelToSignalManager makVrv::DtSenSimSensorModule::myChannelToSignalMap
protected
DtDe& makVrv::DtSenSimSensorModule::myDe
protected
DtSignalConnectionManager makVrv::DtSenSimSensorModule::mySignalManager
protected
ModelInstanceIdMap makVrv::DtSenSimSensorModule::myModelInstanceToUniqueId
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)