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 Member Functions | Protected Attributes
makVrv::DtOceanRenderSettingsWidget Class Reference

DtOceanRenderSettingsWidget implements the DtOceanRenderSettingsInterface for Qt. More...

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

Public Types

enum  TritonQuality { TritonQuality_Good, TritonQuality_Better, TritonQuality_Best }
 

Public Member Functions

 DtOceanRenderSettingsWidget (DtDe &de, QWidget *parent, Qt::WindowFlags flags=Qt::Widget)
 CTOR. More...
 
virtual ~DtOceanRenderSettingsWidget ()
 DTOR. More...
 
virtual void setOceanPlanarReflectionsEnabled (bool state)
 Set the planar reflections state. More...
 
virtual void setOceanPlanarReflectionsLODScale (float scale)
 Set the scale factor for objects processed by the reflections camera. More...
 
virtual void setOceanPlanarReflectionsLODScaleRange (float max, float min, float step)
 Set the range for ocean planar reflections lod scale slider. More...
 
virtual void setWaveSprayEffectEnabled (bool state)
 Set the sea spray particle effect state. More...
 
virtual void setRotorWashDecalEnabled (bool state)
 Set the rotor wash detailed texture decal state. More...
 
virtual void setTidalStreamWakesEnabled (bool state)
 Set the tidal stream wakes state. More...
 
virtual void setOceanHeightMapResolution (double res)
 Set the resolution of the ocean height map. More...
 
virtual void setOceanHeightMapResolutionRange (float max, float min, float step)
 Set the range for ocean height map resolution slider. More...
 
virtual void setRegenerateHeightMapPercThreshold (double threshold)
 Set the threshold distance for height map regeneration as a percentage of the height map dimensions. More...
 
virtual void setRegenerateHeightMapPercThresholdRange (float max, float min, float step)
 Set the range for ocean height map precent threshold slider. More...
 
virtual void setOceanHeightMapTextureSize (int val)
 Set the size of the texture used for creating an ocean height map. More...
 
virtual void setOceanHeightMapTextureSizeRange (int max, int min, int step)
 Set the range for ocean height map texture size slider. More...
 
virtual void setRegenerateCubeMapThreshold (double threshold)
 Set the threshold distance for cube map regeneration. More...
 
virtual void setRegenerateCubeMapThresholdRange (float max, float min, float step)
 Set the range for regenerate cube map threshold slider. More...
 
virtual void setOmitCloudInCubeMap (bool state)
 Set the state to enable/disble cloud rendering in cube maps. More...
 
virtual void setPlanarReflectionTextureWidth (int val)
 Set the height of the texture used for creating planar reflections. More...
 
virtual void setPlanarReflectionTextureWidthRange (int max, int min, int step)
 Set the range for ocean planar reflections texture width slider. More...
 
virtual void setPlanarReflectionTextureHeight (int val)
 Set the height of the texture used for creating planar reflections. More...
 
virtual void setPlanarReflectionTextureHeightRange (int max, int min, int step)
 Set the range for ocean planar reflections texture height slider. More...
 
virtual void setOceanQuality (unsigned int quality)
 Set the ocean quality. More...
 
virtual void setPlanarReflectionsShowSpeedTrees (bool val)
 Set the flag that controls if speedtrees should be drawn in the planar reflection. More...
 
- Public Member Functions inherited from makVrv::DtOceanRenderSettingsInterface
virtual ~DtOceanRenderSettingsInterface ()
 DTOR. More...
 

Protected Slots

User input slots.

Receives notification that the user has changed a widget's value.

void on_oceanPlanarReflectionsCheckChanged (int state)
 
void on_oceanPlanarReflectionsLODScaleChanged (double scale)
 
void on_waveSprayEffectCheckChanged (int state)
 
void on_rotorWashDecalCheckChanged (int state)
 
void on_tidalStreamWakesCheckChanged (int state)
 
void on_oceanHeightMapResolutionChanged (double res)
 
void on_regenerateCubeMapThreshold (double threshold)
 
void on_omitCloudInCubeMap (int state)
 
void on_regenerateHeightMapPercThreshold (double threshold)
 
void on_oceanHeightMapTextureSizeChanged (int val)
 
void on_planarReflectionTextureWidthChanged (int val)
 
void on_planarReflectionTextureHeightChanged (int val)
 
void on_planarReflectionsShowSpeedTreesChanged (int val)
 
void on_oceanQualityClicked (int)
 

Protected Member Functions

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

Protected Attributes

DtDemyDe
 
QCheckBoxmyOceanPlanarReflectionsCheckbox
 
QCheckBoxmyWaveSprayEffect
 
QCheckBoxmyRotorWashDecal
 
QCheckBoxmyTidalStreamWakes
 
QLabelmyOceanHeightMapLabel
 
QLabelmyOceanHeightMapResolutionLabel
 
DtSliderDoubleSpinboxWidgetmyOceanHeightMapResolution
 
QLabelmyRegenerateHeightMapPercThresholdLabel
 
DtSliderDoubleSpinboxWidgetmyRegenerateHeightMapPercThresholdSlider
 
QLabelmyOceanHeightMapTextureSizeLabel
 
DtSliderSpinboxWidgetmyOceanHeightMapTextureSizeSlider
 
QLabelmyOceanPlanarReflectionsLODScaleLabel
 
DtSliderDoubleSpinboxWidgetmyOceanPlanarReflectionsLODScale
 
QLabelmyRegenerateCubeMapThresholdLabel
 
DtSliderDoubleSpinboxWidgetmyRegenerateCubeMapThresholdSpinBox
 
QCheckBoxmyOmitCloudInCubeMapCheckBox
 
QLabelmyPlanarReflectionsTextureSizeLabel
 
QLabelmyPlanarReflectionTextureWidthLabel
 
DtSliderSpinboxWidgetmyPlanarReflectionTextureWidthSlider
 
QLabelmyPlanarReflectionTextureHeightLabel
 
DtSliderSpinboxWidgetmyPlanarReflectionTextureHeightSlider
 
QSignalMapper * myOceanQualitySignalMapper
 
QButtonGroup * myOceanQualityButtonGroup
 
QRadioButton * myOceanQualityGood
 
QRadioButton * myOceanQualityBetter
 
QRadioButton * myOceanQualityBest
 
QCheckBoxmyPlanarReflectionsShowSpeedTreesCheckbox
 

Additional Inherited Members

- Public Attributes inherited from makVrv::DtOceanRenderSettingsInterface
boost::signal< void(bool)> signal_oceanPlanarReflectionsEnabledChanged
 
boost::signal< void(float)> signal_oceanPlanarReflectionsLODScaleChanged
 
boost::signal< void(double)> signal_oceanPlanarReflectionsFarClipChanged
 
boost::signal< void(bool)> signal_waveSprayEffectChanged
 
boost::signal< void(bool)> signal_rotorWashDecalChanged
 
boost::signal< void(bool)> signal_tidalStreamWakesChanged
 
boost::signal< void(double)> signal_oceanHeightMapResolutionChanged
 
boost::signal< void(double)> signal_regenerateHeightMapPercThresholdChanged
 
boost::signal< void(int)> signal_oceanHeightMapTextureSizeChanged
 
boost::signal< void(double)> signal_regenerateCubeMapThresholdChanged
 
boost::signal< void(bool)> signal_omitCloudInCubeMapChanged
 
boost::signal< void(int)> signal_planarReflectionTextureWidthChanged
 
boost::signal< void(int)> signal_planarReflectionTextureHeightChanged
 
boost::signal< void(bool)> signal_planarReflectionsShowSpeedTreesChanged
 
boost::signal< void(unsigned int)> signal_changeOceanQuality
 

Detailed Description

DtOceanRenderSettingsWidget implements the DtOceanRenderSettingsInterface for Qt.

It provides the Qt widgets used to change rendering settings such as wireframe mode and shadows

Member Enumeration Documentation

Enumerator
TritonQuality_Good 
TritonQuality_Better 
TritonQuality_Best 

Constructor & Destructor Documentation

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

CTOR.

virtual makVrv::DtOceanRenderSettingsWidget::~DtOceanRenderSettingsWidget ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtOceanRenderSettingsWidget::setOceanPlanarReflectionsEnabled ( bool  state)
virtual

Set the planar reflections state.

Parameters
[in]stateis the enabled/disabled state for planar reflections.

Implements makVrv::DtOceanRenderSettingsInterface.

virtual void makVrv::DtOceanRenderSettingsWidget::setOceanPlanarReflectionsLODScale ( float  scale)
virtual

Set the scale factor for objects processed by the reflections camera.

Parameters
[in]scaleis the LOD scale applied when culling in the reflections camera

Implements makVrv::DtOceanRenderSettingsInterface.

virtual void makVrv::DtOceanRenderSettingsWidget::setOceanPlanarReflectionsLODScaleRange ( float  max,
float  min,
float  step 
)
virtual

Set the range for ocean planar reflections lod scale slider.

Parameters
[in]maxis the maximum value for the slider
[in]minis the minimum value for the slider
[in]stepis the step the slider will use

Implements makVrv::DtOceanRenderSettingsInterface.

virtual void makVrv::DtOceanRenderSettingsWidget::setWaveSprayEffectEnabled ( bool  state)
virtual

Set the sea spray particle effect state.

Parameters
[in]stateis the enabled/disabled state for sea spray effect.

Implements makVrv::DtOceanRenderSettingsInterface.

virtual void makVrv::DtOceanRenderSettingsWidget::setRotorWashDecalEnabled ( bool  state)
virtual

Set the rotor wash detailed texture decal state.

Parameters
[in]stateis the enabled/disabled state for rotor wash decal.

Implements makVrv::DtOceanRenderSettingsInterface.

virtual void makVrv::DtOceanRenderSettingsWidget::setTidalStreamWakesEnabled ( bool  state)
virtual

Set the tidal stream wakes state.

Parameters
[in]stateis the enabled/disabled state for tidal stream wakes.

Implements makVrv::DtOceanRenderSettingsInterface.

virtual void makVrv::DtOceanRenderSettingsWidget::setOceanHeightMapResolution ( double  res)
virtual

Set the resolution of the ocean height map.

Parameters
[in]resis the map resolution in meters per pixel.

Implements makVrv::DtOceanRenderSettingsInterface.

virtual void makVrv::DtOceanRenderSettingsWidget::setOceanHeightMapResolutionRange ( float  max,
float  min,
float  step 
)
virtual

Set the range for ocean height map resolution slider.

Parameters
[in]maxis the maximum value for the slider
[in]minis the minimum value for the slider
[in]stepis the step the slider will use

Implements makVrv::DtOceanRenderSettingsInterface.

virtual void makVrv::DtOceanRenderSettingsWidget::setRegenerateHeightMapPercThreshold ( double  threshold)
virtual

Set the threshold distance for height map regeneration as a percentage of the height map dimensions.

Parameters
[in]thresholdis the threshold distance for height map regeneration as a percentage of the height map dimensions

Implements makVrv::DtOceanRenderSettingsInterface.

virtual void makVrv::DtOceanRenderSettingsWidget::setRegenerateHeightMapPercThresholdRange ( float  max,
float  min,
float  step 
)
virtual

Set the range for ocean height map precent threshold slider.

Parameters
[in]maxis the maximum value for the slider
[in]minis the minimum value for the slider
[in]stepis the step the slider will use

Implements makVrv::DtOceanRenderSettingsInterface.

virtual void makVrv::DtOceanRenderSettingsWidget::setOceanHeightMapTextureSize ( int  val)
virtual

Set the size of the texture used for creating an ocean height map.

Parameters
[in]Valuewill be clamped between 256 and 16384. Note that specific graphics cards may reduce the value

Implements makVrv::DtOceanRenderSettingsInterface.

virtual void makVrv::DtOceanRenderSettingsWidget::setOceanHeightMapTextureSizeRange ( int  max,
int  min,
int  step 
)
virtual

Set the range for ocean height map texture size slider.

Parameters
[in]maxis the maximum value for the slider
[in]minis the minimum value for the slider
[in]stepis the step the slider will use

Implements makVrv::DtOceanRenderSettingsInterface.

virtual void makVrv::DtOceanRenderSettingsWidget::setRegenerateCubeMapThreshold ( double  threshold)
virtual

Set the threshold distance for cube map regeneration.

Parameters
[in]thresholdis the threshold distance for cube map regeneration

Implements makVrv::DtOceanRenderSettingsInterface.

virtual void makVrv::DtOceanRenderSettingsWidget::setRegenerateCubeMapThresholdRange ( float  max,
float  min,
float  step 
)
virtual

Set the range for regenerate cube map threshold slider.

Parameters
[in]maxis the maximum value for the slider
[in]minis the minimum value for the slider
[in]stepis the step the slider will use

Implements makVrv::DtOceanRenderSettingsInterface.

virtual void makVrv::DtOceanRenderSettingsWidget::setOmitCloudInCubeMap ( bool  state)
virtual

Set the state to enable/disble cloud rendering in cube maps.

Parameters
[in]stateis the enabled/disabled state for clouds rendering in cube maps

Implements makVrv::DtOceanRenderSettingsInterface.

virtual void makVrv::DtOceanRenderSettingsWidget::setPlanarReflectionTextureWidth ( int  val)
virtual

Set the height of the texture used for creating planar reflections.

Parameters
[in]Valuewill be clamped between 256 and 4096. Note that specific graphics cards may reduce the value

Implements makVrv::DtOceanRenderSettingsInterface.

virtual void makVrv::DtOceanRenderSettingsWidget::setPlanarReflectionTextureWidthRange ( int  max,
int  min,
int  step 
)
virtual

Set the range for ocean planar reflections texture width slider.

Parameters
[in]maxis the maximum value for the slider
[in]minis the minimum value for the slider
[in]stepis the step the slider will use

Implements makVrv::DtOceanRenderSettingsInterface.

virtual void makVrv::DtOceanRenderSettingsWidget::setPlanarReflectionTextureHeight ( int  val)
virtual

Set the height of the texture used for creating planar reflections.

Parameters
[in]Valuewill be clamped between 256 and 4096. Note that specific graphics cards may reduce the value

Implements makVrv::DtOceanRenderSettingsInterface.

virtual void makVrv::DtOceanRenderSettingsWidget::setPlanarReflectionTextureHeightRange ( int  max,
int  min,
int  step 
)
virtual

Set the range for ocean planar reflections texture height slider.

Parameters
[in]maxis the maximum value for the slider
[in]minis the minimum value for the slider
[in]stepis the step the slider will use

Implements makVrv::DtOceanRenderSettingsInterface.

virtual void makVrv::DtOceanRenderSettingsWidget::setOceanQuality ( unsigned int  quality)
virtual

Set the ocean quality.

Parameters
[in]qualityis the ocean display quality

Implements makVrv::DtOceanRenderSettingsInterface.

virtual void makVrv::DtOceanRenderSettingsWidget::setPlanarReflectionsShowSpeedTrees ( bool  val)
virtual

Set the flag that controls if speedtrees should be drawn in the planar reflection.

Parameters
[in]Valueto set the flag to

Implements makVrv::DtOceanRenderSettingsInterface.

void makVrv::DtOceanRenderSettingsWidget::on_oceanPlanarReflectionsCheckChanged ( int  state)
protectedslot
void makVrv::DtOceanRenderSettingsWidget::on_oceanPlanarReflectionsLODScaleChanged ( double  scale)
protectedslot
void makVrv::DtOceanRenderSettingsWidget::on_waveSprayEffectCheckChanged ( int  state)
protectedslot
void makVrv::DtOceanRenderSettingsWidget::on_rotorWashDecalCheckChanged ( int  state)
protectedslot
void makVrv::DtOceanRenderSettingsWidget::on_tidalStreamWakesCheckChanged ( int  state)
protectedslot
void makVrv::DtOceanRenderSettingsWidget::on_oceanHeightMapResolutionChanged ( double  res)
protectedslot
void makVrv::DtOceanRenderSettingsWidget::on_regenerateCubeMapThreshold ( double  threshold)
protectedslot
void makVrv::DtOceanRenderSettingsWidget::on_omitCloudInCubeMap ( int  state)
protectedslot
void makVrv::DtOceanRenderSettingsWidget::on_regenerateHeightMapPercThreshold ( double  threshold)
protectedslot
void makVrv::DtOceanRenderSettingsWidget::on_oceanHeightMapTextureSizeChanged ( int  val)
protectedslot
void makVrv::DtOceanRenderSettingsWidget::on_planarReflectionTextureWidthChanged ( int  val)
protectedslot
void makVrv::DtOceanRenderSettingsWidget::on_planarReflectionTextureHeightChanged ( int  val)
protectedslot
void makVrv::DtOceanRenderSettingsWidget::on_planarReflectionsShowSpeedTreesChanged ( int  val)
protectedslot
void makVrv::DtOceanRenderSettingsWidget::on_oceanQualityClicked ( int  )
protectedslot
void makVrv::DtOceanRenderSettingsWidget::setupGui ( )
protected

Sets up the widget's fields.

Non-virtual (Called from CTOR).

void makVrv::DtOceanRenderSettingsWidget::connectToSignals ( )
protected

Connects widget signals to slots.

Non-virtual (Called from CTOR).

void makVrv::DtOceanRenderSettingsWidget::enablePlanarReflectionParameters ( bool  enabled)
protected

Member Data Documentation

DtDe& makVrv::DtOceanRenderSettingsWidget::myDe
protected
QCheckBox* makVrv::DtOceanRenderSettingsWidget::myOceanPlanarReflectionsCheckbox
protected
QCheckBox* makVrv::DtOceanRenderSettingsWidget::myWaveSprayEffect
protected
QCheckBox* makVrv::DtOceanRenderSettingsWidget::myRotorWashDecal
protected
QCheckBox* makVrv::DtOceanRenderSettingsWidget::myTidalStreamWakes
protected
QLabel* makVrv::DtOceanRenderSettingsWidget::myOceanHeightMapLabel
protected
QLabel* makVrv::DtOceanRenderSettingsWidget::myOceanHeightMapResolutionLabel
protected
DtSliderDoubleSpinboxWidget* makVrv::DtOceanRenderSettingsWidget::myOceanHeightMapResolution
protected
QLabel* makVrv::DtOceanRenderSettingsWidget::myRegenerateHeightMapPercThresholdLabel
protected
DtSliderDoubleSpinboxWidget* makVrv::DtOceanRenderSettingsWidget::myRegenerateHeightMapPercThresholdSlider
protected
QLabel* makVrv::DtOceanRenderSettingsWidget::myOceanHeightMapTextureSizeLabel
protected
DtSliderSpinboxWidget* makVrv::DtOceanRenderSettingsWidget::myOceanHeightMapTextureSizeSlider
protected
QLabel* makVrv::DtOceanRenderSettingsWidget::myOceanPlanarReflectionsLODScaleLabel
protected
DtSliderDoubleSpinboxWidget* makVrv::DtOceanRenderSettingsWidget::myOceanPlanarReflectionsLODScale
protected
QLabel* makVrv::DtOceanRenderSettingsWidget::myRegenerateCubeMapThresholdLabel
protected
DtSliderDoubleSpinboxWidget* makVrv::DtOceanRenderSettingsWidget::myRegenerateCubeMapThresholdSpinBox
protected
QCheckBox* makVrv::DtOceanRenderSettingsWidget::myOmitCloudInCubeMapCheckBox
protected
QLabel* makVrv::DtOceanRenderSettingsWidget::myPlanarReflectionsTextureSizeLabel
protected
QLabel* makVrv::DtOceanRenderSettingsWidget::myPlanarReflectionTextureWidthLabel
protected
DtSliderSpinboxWidget* makVrv::DtOceanRenderSettingsWidget::myPlanarReflectionTextureWidthSlider
protected
QLabel* makVrv::DtOceanRenderSettingsWidget::myPlanarReflectionTextureHeightLabel
protected
DtSliderSpinboxWidget* makVrv::DtOceanRenderSettingsWidget::myPlanarReflectionTextureHeightSlider
protected
QSignalMapper* makVrv::DtOceanRenderSettingsWidget::myOceanQualitySignalMapper
protected
QButtonGroup* makVrv::DtOceanRenderSettingsWidget::myOceanQualityButtonGroup
protected
QRadioButton* makVrv::DtOceanRenderSettingsWidget::myOceanQualityGood
protected
QRadioButton* makVrv::DtOceanRenderSettingsWidget::myOceanQualityBetter
protected
QRadioButton* makVrv::DtOceanRenderSettingsWidget::myOceanQualityBest
protected
QCheckBox* makVrv::DtOceanRenderSettingsWidget::myPlanarReflectionsShowSpeedTreesCheckbox
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)