VR-Forces 4.3.1 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)
 Slots used to communicate between the widget and its Qt sub-widgets.
void on_lightingEmissionScaleChanged (double scale)
 Slots used to communicate between the widget and its Qt sub-widgets.
void on_globalAmbientValueSliderChanged (double val)
 Slots used to communicate between the widget and its Qt sub-widgets.
void on_useGlobalAmbientCheckChanged (int state)
 Slots used to communicate between the widget and its Qt sub-widgets.
void on_globalDiffuseValueSliderChanged (double val)
 Slots used to communicate between the widget and its Qt sub-widgets.
void on_useGlobalDiffuseCheckChanged (int state)
 Slots used to communicate between the widget and its Qt sub-widgets.
void on_perPixelLightingEnabledCheckChanged (int state)
 Slots used to communicate between the widget and its Qt sub-widgets.

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
 Signals raised by the widget to communicate with the logic.
boost::signal< void(float)> signal_lightingEmissionScaleChanged
 Signals raised by the widget to communicate with the logic.
boost::signal< void(float)> signal_globalAmbientValueChanged
 Signals raised by the widget to communicate with the logic.
boost::signal< void(bool)> signal_useGlobalAmbientChanged
 Signals raised by the widget to communicate with the logic.
boost::signal< void(float)> signal_globalDiffuseValueChanged
 Signals raised by the widget to communicate with the logic.
boost::signal< void(bool)> signal_useGlobalDiffuseChanged
 Signals raised by the widget to communicate with the logic.
boost::signal< void(bool)> signal_perPixelLightingEnabledChanged
 Signals raised by the widget to communicate with the logic.

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

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::on_perPixelLightingEnabledCheckChanged ( 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
QCheckBox* makVrv::DtLightingRenderSettingsWidget::myPerPixelLightingEnabledCheckbox
protected

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

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)