![]() |
VR-Forces 4.10 Class Documentation
|
MyLightScaleCommand is a custom VR-Vantage class that processes view control messages with the command type MyControlToolkit::Control_LightScale. More...

Public Member Functions | |
| MyLightScaleCommand () | |
| CTOR. More... | |
| virtual | ~MyLightScaleCommand () |
| Virtual DTOR. More... | |
| virtual void | execute (DtDe &de) |
| Execute makes the call(s) to the VR-Vantage API to actually make the changes requested in the message. More... | |
| virtual bool | diffuseLightScaleSet () const |
| Methods for managing the diffuse light scale parameter. More... | |
| virtual int | diffuseLightScale () const |
| Get the diffuse light scale value; used by execute() if diffuseLightScaleSet() is true. More... | |
| virtual void | setDiffuseLightScale (int scale) |
| Set the diffuse light scale value. More... | |
| virtual bool | ambientLightScaleSet () const |
| Methods for managing the ambient light scale parameter. More... | |
| virtual int | ambientLightScale () const |
| Get the ambient light scale value; used by execute() if ambientLightScaleSet() is true. More... | |
| virtual void | setAmbientLightScale (int scale) |
| Set the ambient light scale value. More... | |
Public Member Functions inherited from makVrv::DtVrvCommand | |
| DtVrvCommand () | |
| virtual | ~DtVrvCommand () |
| virtual vrvControlToolkit::DtVrvControlTypeEnum | commandType () |
Protected Attributes | |
| int | myDiffuseLightScale |
| The diffuse light scale value as set by MyLightScaleCommandCreator::create (or 0 if unset) More... | |
| int | myAmbientLightScale |
| The ambient light scale value as set by MyLightScaleCommandCreator::create (or 0 if unset) More... | |
| bool | myDiffuseLightScaleSet |
| Flag to indicate if myDiffuseLightScale was set in MyLightScaleCommandCreator::create. More... | |
| bool | myAmbientLightScaleSet |
| Flag to indicate if myAmbientLightScale was set in MyLightScaleCommandCreator::create. More... | |
Protected Attributes inherited from makVrv::DtVrvCommand | |
| vrvControlToolkit::DtVrvControlTypeEnum | myCommandType |
MyLightScaleCommand is a custom VR-Vantage class that processes view control messages with the command type MyControlToolkit::Control_LightScale.
Note that instances of this class are created and its methods called in the VR-Link connection thread, except for execute(), which is called in the Main (render) thread.
| MyViewControl::MyLightScaleCommand::MyLightScaleCommand | ( | ) |
CTOR.
|
virtual |
Virtual DTOR.
|
virtual |
Methods for managing the diffuse light scale parameter.
Should the diffuse light scale value in the message be used? Used by execute() to determine if it should change the diffuse light scale
|
virtual |
Get the diffuse light scale value; used by execute() if diffuseLightScaleSet() is true.
|
virtual |
Set the diffuse light scale value.
Used by MyLightScaleCommandCreator::create when processing the network message. If the message indicates that the diffuse light scale value should be used, then this is called. It has the side
|
virtual |
Methods for managing the ambient light scale parameter.
Should the ambient light scale value in the message be used? Used by execute() to determine if it should change the ambient light scale
|
virtual |
Get the ambient light scale value; used by execute() if ambientLightScaleSet() is true.
|
virtual |
Set the ambient light scale value.
Used by MyLightScaleCommandCreator::create when processing the network message. If the message indicates that the ambient light scale value should be used, then this is called. It has the side
|
virtual |
Execute makes the call(s) to the VR-Vantage API to actually make the changes requested in the message.
Since it is passed a de (Display Engine) reference, it has access to most of the VR-Vantage API
Implements makVrv::DtVrvCommand.
|
protected |
The diffuse light scale value as set by MyLightScaleCommandCreator::create (or 0 if unset)
|
protected |
The ambient light scale value as set by MyLightScaleCommandCreator::create (or 0 if unset)
|
protected |
Flag to indicate if myDiffuseLightScale was set in MyLightScaleCommandCreator::create.
|
protected |
Flag to indicate if myAmbientLightScale was set in MyLightScaleCommandCreator::create.