VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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. More...

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

Public Member Functions

 DtLightingRenderSettingsWidget (DtDe &de, QWidget *parent, Qt::WindowFlags flags=Qt::Widget)
 CTOR.
virtual ~DtLightingRenderSettingsWidget ()
 DTOR.
virtual void setLightingDiffuseScale (float scale)
 Set the scale factor for diffuse scene light values.
virtual void setLightingAmbientScale (float scale)
 Set the scale factor for ambient scene light values.
virtual void setLightingEmissionScale (float scale)
 Set the scale factor emissive textures.
virtual void setUseGlobalDiffuse (bool useGlobalDiffuse)
 Set the use material ambient.
virtual void setGlobalDiffuseValue (float diffuseValue)
 Set the global material diffuse value.
virtual void setUseGlobalAmbient (bool useGlobalAmbient)
 Set the use material ambient flag.
virtual void setGlobalAmbientValue (float ambientValue)
 Set the global material ambient value.
virtual void setPerPixelLightingEnabled (bool state)
 Set the per-pixel lighting state.
- Public Member Functions inherited from makVrv::DtLightingRenderSettingsInterface
virtual ~DtLightingRenderSettingsInterface ()
 DTOR.

Protected Slots

void on_lightingDiffuseScaleChanged (double scale)
 Slots used to communicate between the widget and its Qt sub-widgets.
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)
void on_perPixelLightingEnabledCheckChanged (int state)

Protected Member Functions

void setupGui ()
 Sets up the widget's fields.
void connectToSignals ()
 Connects widget signals to slots.

Protected Attributes

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

Additional Inherited Members

- Public Attributes inherited from makVrv::DtLightingRenderSettingsInterface
boost::signal< void(float)> signal_lightingDiffuseScaleChanged
 Signals raised by the widget to communicate with the logic.
boost::signal< void(float)> signal_lightingAmbientScaleChanged
boost::signal< void(float)> signal_lightingEmissionScaleChanged
boost::signal< void(float)> signal_globalAmbientValueChanged
boost::signal< void(bool)> signal_useGlobalAmbientChanged
boost::signal< void(float)> signal_globalDiffuseValueChanged
boost::signal< void(bool)> signal_useGlobalDiffuseChanged
boost::signal< void(bool)> signal_perPixelLightingEnabledChanged

Detailed Description

DtLightingRenderSettingsWidget implements the DtLightingRenderSettingsInterface for Qt.

It provides the Qt widgets used to change lighting rendering settings such as lighting scalars

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.

virtual void makVrv::DtLightingRenderSettingsWidget::setPerPixelLightingEnabled ( bool  state)
virtual

Set the per-pixel lighting state.

Parameters
[in]stateis the enabled/disabled state for terrain scaling.

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
void makVrv::DtLightingRenderSettingsWidget::on_lightingEmissionScaleChanged ( double  scale)
protectedslot
void makVrv::DtLightingRenderSettingsWidget::on_globalAmbientValueSliderChanged ( double  val)
protectedslot
void makVrv::DtLightingRenderSettingsWidget::on_useGlobalAmbientCheckChanged ( int  state)
protectedslot
void makVrv::DtLightingRenderSettingsWidget::on_globalDiffuseValueSliderChanged ( double  val)
protectedslot
void makVrv::DtLightingRenderSettingsWidget::on_useGlobalDiffuseCheckChanged ( int  state)
protectedslot
void makVrv::DtLightingRenderSettingsWidget::on_perPixelLightingEnabledCheckChanged ( int  state)
protectedslot
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
QCheckBox* makVrv::DtLightingRenderSettingsWidget::myPerPixelLightingEnabledCheckbox
protected

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

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)