VR-Forces 4.8 Class Documentation
 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. More...

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

Public Types

enum  ModelType { ModelTypeDefault, ModelTypeDiGuy, ModelTypeEntity }
 used by the lighting shader to know which adjustment to use based on model type More...
 

Public Member Functions

 DtSenSimSensorModule (DtDe &de)
 CTOR. More...
 
virtual ~DtSenSimSensorModule ()
 DTOR. More...
 
virtual std::string name () const
 Unique name of the sensor module. More...
 
virtual std::string displayName () const
 Get the user interface display name for this module. More...
 
virtual void enableSensor (DtSensor &sensor, DtChannel &channel)
 Apply the sensor to the specified channel. More...
 
virtual void disableSensor (DtSensor &sensor, DtChannel &channel)
 Stop using the sensor on the specified channel. More...
 
virtual void defaultSensorConfiguration (makArchives::DtSensorRecord &rec)
 Fill a sensor record with defaults for this sensor module. More...
 
virtual DtSenSimsenSim (DtOsgChannel *osgChannel)
 Get the internal sensim object. More...
 
virtual void initModel (DtModelInstance &model)
 slot for the signal_modelCreated signal so we can set the model type in a uniform More...
 
- Public Member Functions inherited from makVrv::DtSensorModule
virtual ~DtSensorModule ()
 DTOR. More...
 
virtual bool pendingObjectInitialization () const
 used by the SensorFX module to provide information about if the objects are initialized yet. More...
 

Protected Types

typedef std::map< DtChannel
*, DtSenSim * > 
ChannelToSenSim
 Map of channels to DtSenSim objects. More...
 
typedef std::map< DtChannel
*, DtSignalConnectionManager * > 
ChannelToSignalManager
 
typedef std::map
< DtOsgModelInstance
*, DtUniqueID
ModelInstanceIdMap
 

Protected Member Functions

virtual void slot_postInit ()
 slot for the post initialization signal, initialize the rest of the signal connections here. More...
 
void updateCameraUniforms (const DtSensor *sensor, DtOsgChannel *osgChannel)
 sets up the camera uniforms based on the sensor settings for the lighting override values More...
 
virtual void cleanupChannel (DtChannel &channel)
 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. More...
 
virtual void modelToBeDestroyed (DtModelInstance &model)
 slot for the model to be destroyed signal. More...
 
virtual void initInstance (DtUniqueID id, DtModel *model)
 slot for instance created from the instance manager save off the model and id so we can update active regions More...
 
virtual void updateActiveRegion (DtOsgModelInstance *model, const std::string &regionName, bool value)
 slot for the active region signal from the model instance send the value of the active region to the instance manager/model More...
 
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 myModelInstanceToInstanceId
 

Detailed Description

JRM SenSim sensor module implementation.

Limited to one channel per window

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 model)
virtual

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

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::initInstance ( DtUniqueID  id,
DtModel model 
)
protectedvirtual

slot for instance created from the instance manager 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::myModelInstanceToInstanceId
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)