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

DtLightingRenderSettingsWidget implements the DtLightingRenderSettingsInterface for Qt. It provides the Qt widgets used to change lighting rendering settings such as lighting scalars.

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

Public Member Functions

 DtLightingRenderSettingsWidget (DtDe &de, QWidget *parent, Qt::WindowFlags flags=Qt::Widget)
 
virtual ~DtLightingRenderSettingsWidget ()
 
virtual void setLightingDiffuseScale (float scale)
 
virtual void setLightingAmbientScale (float scale)
 
virtual void setLightingEmissionScale (float scale)
 
virtual void setUseGlobalDiffuse (bool useGlobalDiffuse)
 
virtual void setGlobalDiffuseValue (float diffuseValue)
 
virtual void setUseGlobalAmbient (bool useGlobalAmbient)
 
virtual void setGlobalAmbientValue (float ambientValue)
 
- Public Member Functions inherited from makVrv::DtLightingRenderSettingsInterface
virtual ~DtLightingRenderSettingsInterface ()
 

Protected Slots

void on_lightingDiffuseScaleChanged (double scale)
 
void on_lightingAmbientScaleChanged (double scale)
 
void on_lightingEmissionScaleChanged (double scale)
 
void on_globalAmbientValueSliderChanged (double val)
 
void on_useGlobalAmbientCheckChanged (int state)
 
void on_globalDiffuseValueSliderChanged (double val)
 
void on_useGlobalDiffuseCheckChanged (int state)
 

Protected Member Functions

void setupGui ()
 
void connectToSignals ()
 

Protected Attributes

DtDemyDe
 
QLabelmyLightingDiffuseScaleLabel
 
DtSliderDoubleSpinboxWidgetmyLightingDiffuseScaleSlider
 
QLabelmyLightingAmbientScaleLabel
 
DtSliderDoubleSpinboxWidgetmyLightingAmbientScaleSlider
 
QLabelmyLightingEmissionScaleLabel
 
DtSliderDoubleSpinboxWidgetmyLightingEmissionScaleSlider
 
QCheckBoxmyUseGlobalDiffuseCheckbox
 
QLabelmyGlobalDiffuseValueLabel
 
DtSliderDoubleSpinboxWidgetmyGlobalDiffuseValueSlider
 
QCheckBoxmyUseGlobalAmbientCheckbox
 
QLabelmyGlobalAmbientValueLabel
 
DtSliderDoubleSpinboxWidgetmyGlobalAmbientValueSlider
 

Constructor & Destructor Documentation

makVrv::DtLightingRenderSettingsWidget::DtLightingRenderSettingsWidget ( DtDe de,
QWidget *  parent,
Qt::WindowFlags  flags = Qt::Widget 
)

CTOR.

virtual makVrv::DtLightingRenderSettingsWidget::~DtLightingRenderSettingsWidget ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtLightingRenderSettingsWidget::setLightingDiffuseScale ( float  scale)
virtual

Set the scale factor for diffuse scene light values.

Parameters
[in]scaleis the scale to apply to the diffuse lighting values that come from Silverlining

Implements makVrv::DtLightingRenderSettingsInterface.

virtual void makVrv::DtLightingRenderSettingsWidget::setLightingAmbientScale ( float  scale)
virtual

Set the scale factor for ambient scene light values.

Parameters
[in]scaleis the scale to apply to the ambient lighting values that come from Silverlining

Implements makVrv::DtLightingRenderSettingsInterface.

virtual void makVrv::DtLightingRenderSettingsWidget::setLightingEmissionScale ( float  scale)
virtual

Set the scale factor emissive textures.

Parameters
[in]scaleis the scale to apply to the emissive textures

Implements makVrv::DtLightingRenderSettingsInterface.

virtual void makVrv::DtLightingRenderSettingsWidget::setUseGlobalDiffuse ( bool  useGlobalDiffuse)
virtual

Set the use material ambient.

Parameters
[in]useGlobalDiffuseboolean value to enable/disable the usage of the diffuse material value placed on individual objects

Implements makVrv::DtLightingRenderSettingsInterface.

virtual void makVrv::DtLightingRenderSettingsWidget::setGlobalDiffuseValue ( float  diffuseValue)
virtual

Set the global material diffuse value.

Parameters
[in]diffuseValueis the diffuse material value of all per-pixel lighting material

Implements makVrv::DtLightingRenderSettingsInterface.

virtual void makVrv::DtLightingRenderSettingsWidget::setUseGlobalAmbient ( bool  useGlobalAmbient)
virtual

Set the use material ambient flag.

Parameters
[in]useGlobalAmbientboolean value to enable/disable the usage of the ambient material value placed on individual objects

Implements makVrv::DtLightingRenderSettingsInterface.

virtual void makVrv::DtLightingRenderSettingsWidget::setGlobalAmbientValue ( float  ambientValue)
virtual

Set the global material ambient value.

Parameters
[in]ambientValueis the ambient material value of all per-pixel lighting material

Implements makVrv::DtLightingRenderSettingsInterface.

void makVrv::DtLightingRenderSettingsWidget::on_lightingDiffuseScaleChanged ( double  scale)
protectedslot

Slots used to communicate between the widget and its Qt sub-widgets.

void makVrv::DtLightingRenderSettingsWidget::on_lightingAmbientScaleChanged ( double  scale)
protectedslot

Slots used to communicate between the widget and its Qt sub-widgets.

void makVrv::DtLightingRenderSettingsWidget::on_lightingEmissionScaleChanged ( double  scale)
protectedslot

Slots used to communicate between the widget and its Qt sub-widgets.

void makVrv::DtLightingRenderSettingsWidget::on_globalAmbientValueSliderChanged ( double  val)
protectedslot

Slots used to communicate between the widget and its Qt sub-widgets.

void makVrv::DtLightingRenderSettingsWidget::on_useGlobalAmbientCheckChanged ( int  state)
protectedslot

Slots used to communicate between the widget and its Qt sub-widgets.

void makVrv::DtLightingRenderSettingsWidget::on_globalDiffuseValueSliderChanged ( double  val)
protectedslot

Slots used to communicate between the widget and its Qt sub-widgets.

void makVrv::DtLightingRenderSettingsWidget::on_useGlobalDiffuseCheckChanged ( int  state)
protectedslot

Slots used to communicate between the widget and its Qt sub-widgets.

void makVrv::DtLightingRenderSettingsWidget::setupGui ( )
protected

Sets up the widget's fields. Non-virtual (Called from CTOR).

void makVrv::DtLightingRenderSettingsWidget::connectToSignals ( )
protected

Connects widget signals to slots. Non-virtual (Called from CTOR).

Member Data Documentation

DtDe& makVrv::DtLightingRenderSettingsWidget::myDe
protected
QLabel* makVrv::DtLightingRenderSettingsWidget::myLightingDiffuseScaleLabel
protected
DtSliderDoubleSpinboxWidget* makVrv::DtLightingRenderSettingsWidget::myLightingDiffuseScaleSlider
protected
QLabel* makVrv::DtLightingRenderSettingsWidget::myLightingAmbientScaleLabel
protected
DtSliderDoubleSpinboxWidget* makVrv::DtLightingRenderSettingsWidget::myLightingAmbientScaleSlider
protected
QLabel* makVrv::DtLightingRenderSettingsWidget::myLightingEmissionScaleLabel
protected
DtSliderDoubleSpinboxWidget* makVrv::DtLightingRenderSettingsWidget::myLightingEmissionScaleSlider
protected
QCheckBox* makVrv::DtLightingRenderSettingsWidget::myUseGlobalDiffuseCheckbox
protected
QLabel* makVrv::DtLightingRenderSettingsWidget::myGlobalDiffuseValueLabel
protected
DtSliderDoubleSpinboxWidget* makVrv::DtLightingRenderSettingsWidget::myGlobalDiffuseValueSlider
protected
QCheckBox* makVrv::DtLightingRenderSettingsWidget::myUseGlobalAmbientCheckbox
protected
QLabel* makVrv::DtLightingRenderSettingsWidget::myGlobalAmbientValueLabel
protected
DtSliderDoubleSpinboxWidget* makVrv::DtLightingRenderSettingsWidget::myGlobalAmbientValueSlider
protected

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

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)