VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
makVrv::DtRenderSettingsWidget Class Reference

DtRenderSettingsWidget implements the DtRenderSettingsInterface for Qt. More...

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

Classes

struct  widgetStr
 

Public Member Functions

 DtRenderSettingsWidget (DtDe &de, QWidget *parent, Qt::WindowFlags flags=Qt::Widget)
 CTOR. More...
 
virtual ~DtRenderSettingsWidget ()
 DTOR. More...
 
virtual void setWireframeEnabled (bool enabled)
 Set the wireframe enabled state. More...
 
virtual void setPerformanceOverlayShown (bool shown)
 Set the performance overlay widget. More...
 
virtual void setProfilerOverlayShown (bool shown)
 Set the function profiler overlay widget. More...
 
virtual void setImguiOverlayShown (bool shown)
 Set the developer debug overlay widget. More...
 
virtual void setChannelProjectionResizePolicy (DtChannelConfiguration::ProjectionResizePolicy policy)
 Set the channelProjectionResizePolicy. More...
 
virtual void setSymbolTransparency (int scale)
 Set value for transparency of occluded icons. More...
 
virtual void setTerrainScalingEnabled (bool enabled)
 Set the current state of terrain scaling. More...
 
virtual void setTerrainScaleFactor (double scaleFactor)
 Set the terrain scale factor. More...
 
virtual void setTerrainScalingAllowed (bool allowed)
 Indicate whether terrain scaling is currently allowed. More...
 
virtual void setClearTrackHistoriesOnTerrainScaleChanged (bool clear)
 Set the clear track histories option checkbox. More...
 
virtual void setUseAutofocus (bool useAutofocus)
 Set whether to use autofocus for depth of field. More...
 
virtual void setFocalDepth (double focalDepth)
 Set the focal depth for depth of field. More...
 
virtual void setFocalRange (double focalRange)
 Set the focal range for depth of field. More...
 
virtual void setWaterOnScreenSize (double size)
 Set the size of the water on screen effect(Rain Splash/Ocean Spray/Wave Splash) in percentage, default is 100(%) More...
 
virtual void setIndirectLodTransitionPercentage (float val)
 For indirect rendering, set the lod fade in/fade out distance as a percentage of the start and end distance for the given lod. More...
 
virtual void setCrepuscularRaysEnabled (bool state)
 Set the crepuscular rays (sun rays) state. More...
 
virtual void setOcclusionCullingEnabled (bool state)
 Set the occlusion culling state. More...
 
virtual void setDrawableColorization (bool enabled)
 Set initial state of drawable colorization checkbox. More...
 
virtual void setComponentVisualizationMode (int mode)
 Set the component visualization mode which is used to change the debug render mode. More...
 
virtual int addComponenetVisualizationEntry (QString entry)
 Add a new mode to the list of component visualization modes. More...
 
virtual void setDistanceUnitLabels (const DtUnicode &unitLabel)
 Set a label extension to use for all distance-related labels. More...
 
virtual void setDistanceDecimals (int decimals)
 Set the number of decimal places to use for all distance-related items. More...
 
virtual void setMaxFocalRange (float distance)
 Set the maximum for focal range widget. More...
 
virtual void setMaxFocalDepth (float distance)
 Set the maximum for focal depth widget. More...
 
virtual void setAtcGlobalModelEnable (bool state)
 turns on/off the Alpha to Coverage for models which don't have it set in their model definition More...
 
virtual void setAtcGlobalTerrainEnable (bool state)
 turns on/off the Alpha to Coverage for terrain patches which don't have it set in the .mtf file More...
 
virtual void setAtcEnableDither (bool state)
 turns on/off the dither shader for the objects which are using alpha to coverage. More...
 
- Public Member Functions inherited from makVrv::DtRenderSettingsInterface
virtual ~DtRenderSettingsInterface ()
 DTOR. More...
 

Protected Types

enum  WidgetStringIndex { MaterialComponentIndex = 0, MaterialComponentScalerIndex = 1 }
 
typedef struct
makVrv::DtRenderSettingsWidget::widgetStr 
WidgetStrings
 
typedef WidgetStrings WidgetStringCollection [2]
 

Protected Slots

User input slots.

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

void on_refreshColorizedDrawablesButtonClicked ()
 
void on_reloadShaderButton_clicked ()
 
void on_wireframeCheckChanged (int state)
 
void on_renderStatsChanged (int state)
 
void on_renderProfilerChanged (int state)
 
void on_renderImguiChanged (int state)
 
void on_myChannelProjectionResizePolicyCombo_currentIndexChanged (int index)
 
void on_SymbolTransparencyChanged (int state)
 
void on_terrainScalingEnabledCheckChanged (int state)
 
void on_terrainScaleFactorSliderChanged (int val)
 
void on_ClearTrackHistoriesCheckChanged (int state)
 
void on_useAutofocusCheckChanged (int state)
 
void on_focalDepthSliderChanged (double val)
 
void on_focalRangeSliderChanged (double val)
 
void on_waterOnScreenSizeSliderChanged (double val)
 
void on_indirectLodTransitionPercentageChanged (double val)
 
void on_crepuscularRaysCheckChanged (int state)
 
void on_occlusionCullingCheckChanged (int state)
 
void on_atcGlobalTerrainEnableCheckChanged (int state)
 
void on_atcGlobalModelEnableCheckChanged (int state)
 
void on_atcEnableDitherCheckChanged (int state)
 
void on_componentVisualizationCombo_currentIndexChanged (int selectedIndex)
 
void on_colorizeDrawablesCheckChanged (int state)
 

Protected Member Functions

void setupGui ()
 Sets up the widget's fields. More...
 
void connectToSignals ()
 Connects widget signals to slots. More...
 
void setupMaterialWidget (DtSliderDoubleSpinboxWidget *widget, QLabel *label, bool useMaterial, const WidgetStringCollection &strings)
 

Protected Attributes

DtDemyDe
 
QCheckBoxmyWireframeCheckbox
 
QCheckBoxmyRenderStatsCheckbox
 
QCheckBoxmyRenderProfilerCheckbox
 
QCheckBoxmyImguiCheckbox
 
QLabelmyChannelProjectionResizePolicyLabel
 
QComboBoxmyChannelProjectionResizePolicyCombo
 
QLabelmySymbolTransparencyLabel
 
QSlider * mySymbolTransparencySlider
 
QCheckBoxmyTerrainScalingEnabledCheckBox
 
QLabelmyTerrainScaleFactorLabel
 
QSlider * myTerrainScaleFactorSlider
 
QCheckBoxmyClearTrackHistoriesCheckBox
 
QCheckBoxmyCrepuscularRaysCheckbox
 
QCheckBoxmyOcclusionCullingCheckbox
 
QCheckBoxmyUseAutofocusCheckbox
 
QLabelmyFocalDepthLabel
 
DtSliderDoubleSpinboxWidgetmyFocalDepthSlider
 
QLabelmyFocalRangeLabel
 
DtSliderDoubleSpinboxWidgetmyFocalRangeSlider
 
QLabelmyWaterOnScreenSizeLabel
 
DtSliderDoubleSpinboxWidgetmyWaterOnScreenSizeSlider
 
QLabelmyIndirectLodTransitionPercentageLabel
 
DtSliderDoubleSpinboxWidgetmyIndirectLodTransitionPercentageSlider
 
QLabelmyComponentVisualizationLabel
 
QComboBoxmyComponentVisualizationCombo
 
QCheckBoxmyColorizedDrawablesCheckbox
 
QPushButtonmyRefreshColorizedDrawablesButton
 
QPushButtonmyReloadShaderButton
 
QCheckBoxmyAtcGlobalModelEnableCheckbox
 
QCheckBoxmyAtcGlobalTerrainEnableCheckbox
 
QCheckBoxmyAtcEnableDitherCheckbox
 
DtSignalConnectionManager myConnections
 

Additional Inherited Members

- Public Attributes inherited from makVrv::DtRenderSettingsInterface
boost::signal< void(void)> signal_reloadShader
 
boost::signal< void(bool)> signal_wireframeSet
 
boost::signal< void(bool)> signal_shadowStateChanged
 
boost::signal< void(bool)> signal_showPerformanceOverlaySet
 
boost::signal< void(bool)> signal_showProfilerOverlaySet
 
boost::signal< void(bool)> signal_showImguiOverlaySet
 
boost::signal< void(DtChannelConfiguration::ProjectionResizePolicy)> signal_channelProjectionResizePolicySet
 
boost::signal< void(int)> signal_symbolTransparencyChanged
 
boost::signal< void(const
std::string &)> 
signal_activeStatsChanged
 
boost::signal< void(bool)> signal_terrainScalingEnabledChanged
 
boost::signal< void(double)> signal_terrainScaleFactorChanged
 
boost::signal< void(bool)> signal_clearTrackHistoriesOnTerrainScaleChanged
 
boost::signal< void(bool)> signal_dofUseAutofocusChanged
 
boost::signal< void(double)> signal_dofFocalDepthChanged
 
boost::signal< void(double)> signal_dofFocalRangeChanged
 
boost::signal< void(double)> signal_waterOnScreenSizeChanged
 
boost::signal< void(float)> signal_indirectLodTransitionPercentageChanged
 
boost::signal< void(bool)> signal_crepuscularRaysEnabledChanged
 
boost::signal< void(bool)> signal_occlusionCullingEnabledChanged
 
boost::signal< void(bool)> signal_atcGlobalTerrainEnableChanged
 
boost::signal< void(bool)> signal_atcGlobalModelEnableChanged
 
boost::signal< void(bool)> signal_atcEnableDitherChanged
 
boost::signal< void(int)> signal_componentVisualizationComboChanged
 
boost::signal< void(bool)> signal_colorizeDrawablesChanged
 
boost::signal< void(void)> signal_refreshColorizedDrawables
 

Detailed Description

DtRenderSettingsWidget implements the DtRenderSettingsInterface for Qt.

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

Member Typedef Documentation

typedef WidgetStrings makVrv::DtRenderSettingsWidget::WidgetStringCollection[2]
protected

Member Enumeration Documentation

Enumerator
MaterialComponentIndex 
MaterialComponentScalerIndex 

Constructor & Destructor Documentation

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

CTOR.

virtual makVrv::DtRenderSettingsWidget::~DtRenderSettingsWidget ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtRenderSettingsWidget::setWireframeEnabled ( bool  enabled)
virtual

Set the wireframe enabled state.

Parameters
[in]enabledis the enabled/disabled state for wire-frame.

Implements makVrv::DtRenderSettingsInterface.

virtual void makVrv::DtRenderSettingsWidget::setPerformanceOverlayShown ( bool  shown)
virtual

Set the performance overlay widget.

Parameters
[in]shownis the show/hide state for displaying the overlay.

Implements makVrv::DtRenderSettingsInterface.

virtual void makVrv::DtRenderSettingsWidget::setProfilerOverlayShown ( bool  shown)
virtual

Set the function profiler overlay widget.

Parameters
[in]shownis the show/hide state for displaying the overlay.

Implements makVrv::DtRenderSettingsInterface.

virtual void makVrv::DtRenderSettingsWidget::setImguiOverlayShown ( bool  shown)
virtual

Set the developer debug overlay widget.

Parameters
[in]shownis the show/hide state for displaying the overlay.

Implements makVrv::DtRenderSettingsInterface.

virtual void makVrv::DtRenderSettingsWidget::setChannelProjectionResizePolicy ( DtChannelConfiguration::ProjectionResizePolicy  policy)
virtual

Set the channelProjectionResizePolicy.

Parameters
[in]policydescribes how to resize channel projections.

Implements makVrv::DtRenderSettingsInterface.

virtual void makVrv::DtRenderSettingsWidget::setSymbolTransparency ( int  scale)
virtual

Set value for transparency of occluded icons.

Parameters
[in]scaleis the transparency value (0 - 32).

Implements makVrv::DtRenderSettingsInterface.

virtual void makVrv::DtRenderSettingsWidget::setTerrainScalingEnabled ( bool  enabled)
virtual

Set the current state of terrain scaling.

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

Implements makVrv::DtRenderSettingsInterface.

virtual void makVrv::DtRenderSettingsWidget::setTerrainScaleFactor ( double  scaleFactor)
virtual

Set the terrain scale factor.

Parameters
[in]scaleFactoris the multiplier for scaling terrain.

Implements makVrv::DtRenderSettingsInterface.

virtual void makVrv::DtRenderSettingsWidget::setTerrainScalingAllowed ( bool  allowed)
virtual

Indicate whether terrain scaling is currently allowed.

If not, the terrain scaling enabled and terrain scale factor widgets will be grayed out.

Implements makVrv::DtRenderSettingsInterface.

virtual void makVrv::DtRenderSettingsWidget::setClearTrackHistoriesOnTerrainScaleChanged ( bool  clear)
virtual

Set the clear track histories option checkbox.

Parameters
[in]clearis the enabled/disabled state for clearing histories.

Implements makVrv::DtRenderSettingsInterface.

virtual void makVrv::DtRenderSettingsWidget::setUseAutofocus ( bool  useAutofocus)
virtual

Set whether to use autofocus for depth of field.

Parameters
[in]useAutofocusis the bool for whether to have the camera focus on the object in the center of the screen for depth of field.

Implements makVrv::DtRenderSettingsInterface.

virtual void makVrv::DtRenderSettingsWidget::setFocalDepth ( double  focalDepth)
virtual

Set the focal depth for depth of field.

Parameters
[in]focalDepthis the focal distance for depth of field

Implements makVrv::DtRenderSettingsInterface.

virtual void makVrv::DtRenderSettingsWidget::setFocalRange ( double  focalRange)
virtual

Set the focal range for depth of field.

Parameters
[in]focalRangeis the distance before and after the focalDepth which is in focus

Implements makVrv::DtRenderSettingsInterface.

virtual void makVrv::DtRenderSettingsWidget::setWaterOnScreenSize ( double  size)
virtual

Set the size of the water on screen effect(Rain Splash/Ocean Spray/Wave Splash) in percentage, default is 100(%)

Parameters
[in]sizeThe percentage of the size ,defaulte is 100(%).

Implements makVrv::DtRenderSettingsInterface.

virtual void makVrv::DtRenderSettingsWidget::setIndirectLodTransitionPercentage ( float  val)
virtual

For indirect rendering, set the lod fade in/fade out distance as a percentage of the start and end distance for the given lod.

Default is 20(%))

Implements makVrv::DtRenderSettingsInterface.

virtual void makVrv::DtRenderSettingsWidget::setCrepuscularRaysEnabled ( bool  state)
virtual

Set the crepuscular rays (sun rays) state.

Parameters
[in]stateis the enabled/disabled state for crepuscular rays.

Implements makVrv::DtRenderSettingsInterface.

virtual void makVrv::DtRenderSettingsWidget::setOcclusionCullingEnabled ( bool  state)
virtual

Set the occlusion culling state.

Parameters
[in]stateis the enabled/disabled state for occlusion culling.

Implements makVrv::DtRenderSettingsInterface.

virtual void makVrv::DtRenderSettingsWidget::setDrawableColorization ( bool  enabled)
virtual

Set initial state of drawable colorization checkbox.

Implements makVrv::DtRenderSettingsInterface.

virtual void makVrv::DtRenderSettingsWidget::setComponentVisualizationMode ( int  mode)
virtual

Set the component visualization mode which is used to change the debug render mode.

Implements makVrv::DtRenderSettingsInterface.

virtual int makVrv::DtRenderSettingsWidget::addComponenetVisualizationEntry ( QString  entry)
virtual

Add a new mode to the list of component visualization modes.

Parameters
[in]stringto use for this mode in the combo box
Returns
index for this new mode
virtual void makVrv::DtRenderSettingsWidget::setDistanceUnitLabels ( const DtUnicode unitLabel)
virtual

Set a label extension to use for all distance-related labels.

Implements makVrv::DtRenderSettingsInterface.

virtual void makVrv::DtRenderSettingsWidget::setDistanceDecimals ( int  decimals)
virtual

Set the number of decimal places to use for all distance-related items.

Implements makVrv::DtRenderSettingsInterface.

virtual void makVrv::DtRenderSettingsWidget::setMaxFocalRange ( float  distance)
virtual

Set the maximum for focal range widget.

Implements makVrv::DtRenderSettingsInterface.

virtual void makVrv::DtRenderSettingsWidget::setMaxFocalDepth ( float  distance)
virtual

Set the maximum for focal depth widget.

Implements makVrv::DtRenderSettingsInterface.

virtual void makVrv::DtRenderSettingsWidget::setAtcGlobalModelEnable ( bool  state)
virtual

turns on/off the Alpha to Coverage for models which don't have it set in their model definition

Implements makVrv::DtRenderSettingsInterface.

virtual void makVrv::DtRenderSettingsWidget::setAtcGlobalTerrainEnable ( bool  state)
virtual

turns on/off the Alpha to Coverage for terrain patches which don't have it set in the .mtf file

Implements makVrv::DtRenderSettingsInterface.

virtual void makVrv::DtRenderSettingsWidget::setAtcEnableDither ( bool  state)
virtual

turns on/off the dither shader for the objects which are using alpha to coverage.

Implements makVrv::DtRenderSettingsInterface.

void makVrv::DtRenderSettingsWidget::on_refreshColorizedDrawablesButtonClicked ( )
protectedslot
void makVrv::DtRenderSettingsWidget::on_reloadShaderButton_clicked ( )
protectedslot
void makVrv::DtRenderSettingsWidget::on_wireframeCheckChanged ( int  state)
protectedslot
void makVrv::DtRenderSettingsWidget::on_renderStatsChanged ( int  state)
protectedslot
void makVrv::DtRenderSettingsWidget::on_renderProfilerChanged ( int  state)
protectedslot
void makVrv::DtRenderSettingsWidget::on_renderImguiChanged ( int  state)
protectedslot
void makVrv::DtRenderSettingsWidget::on_myChannelProjectionResizePolicyCombo_currentIndexChanged ( int  index)
protectedslot
void makVrv::DtRenderSettingsWidget::on_SymbolTransparencyChanged ( int  state)
protectedslot
void makVrv::DtRenderSettingsWidget::on_terrainScalingEnabledCheckChanged ( int  state)
protectedslot
void makVrv::DtRenderSettingsWidget::on_terrainScaleFactorSliderChanged ( int  val)
protectedslot
void makVrv::DtRenderSettingsWidget::on_ClearTrackHistoriesCheckChanged ( int  state)
protectedslot
void makVrv::DtRenderSettingsWidget::on_useAutofocusCheckChanged ( int  state)
protectedslot
void makVrv::DtRenderSettingsWidget::on_focalDepthSliderChanged ( double  val)
protectedslot
void makVrv::DtRenderSettingsWidget::on_focalRangeSliderChanged ( double  val)
protectedslot
void makVrv::DtRenderSettingsWidget::on_waterOnScreenSizeSliderChanged ( double  val)
protectedslot
void makVrv::DtRenderSettingsWidget::on_indirectLodTransitionPercentageChanged ( double  val)
protectedslot
void makVrv::DtRenderSettingsWidget::on_crepuscularRaysCheckChanged ( int  state)
protectedslot
void makVrv::DtRenderSettingsWidget::on_occlusionCullingCheckChanged ( int  state)
protectedslot
void makVrv::DtRenderSettingsWidget::on_atcGlobalTerrainEnableCheckChanged ( int  state)
protectedslot
void makVrv::DtRenderSettingsWidget::on_atcGlobalModelEnableCheckChanged ( int  state)
protectedslot
void makVrv::DtRenderSettingsWidget::on_atcEnableDitherCheckChanged ( int  state)
protectedslot
void makVrv::DtRenderSettingsWidget::on_componentVisualizationCombo_currentIndexChanged ( int  selectedIndex)
protectedslot
void makVrv::DtRenderSettingsWidget::on_colorizeDrawablesCheckChanged ( int  state)
protectedslot
void makVrv::DtRenderSettingsWidget::setupGui ( )
protected

Sets up the widget's fields.

Non-virtual (Called from CTOR).

void makVrv::DtRenderSettingsWidget::connectToSignals ( )
protected

Connects widget signals to slots.

Non-virtual (Called from CTOR).

void makVrv::DtRenderSettingsWidget::setupMaterialWidget ( DtSliderDoubleSpinboxWidget widget,
QLabel label,
bool  useMaterial,
const WidgetStringCollection strings 
)
protected

Member Data Documentation

DtDe& makVrv::DtRenderSettingsWidget::myDe
protected
QCheckBox* makVrv::DtRenderSettingsWidget::myWireframeCheckbox
protected
QCheckBox* makVrv::DtRenderSettingsWidget::myRenderStatsCheckbox
protected
QCheckBox* makVrv::DtRenderSettingsWidget::myRenderProfilerCheckbox
protected
QCheckBox* makVrv::DtRenderSettingsWidget::myImguiCheckbox
protected
QLabel* makVrv::DtRenderSettingsWidget::myChannelProjectionResizePolicyLabel
protected
QComboBox* makVrv::DtRenderSettingsWidget::myChannelProjectionResizePolicyCombo
protected
QLabel* makVrv::DtRenderSettingsWidget::mySymbolTransparencyLabel
protected
QSlider* makVrv::DtRenderSettingsWidget::mySymbolTransparencySlider
protected
QCheckBox* makVrv::DtRenderSettingsWidget::myTerrainScalingEnabledCheckBox
protected
QLabel* makVrv::DtRenderSettingsWidget::myTerrainScaleFactorLabel
protected
QSlider* makVrv::DtRenderSettingsWidget::myTerrainScaleFactorSlider
protected
QCheckBox* makVrv::DtRenderSettingsWidget::myClearTrackHistoriesCheckBox
protected
QCheckBox* makVrv::DtRenderSettingsWidget::myCrepuscularRaysCheckbox
protected
QCheckBox* makVrv::DtRenderSettingsWidget::myOcclusionCullingCheckbox
protected
QCheckBox* makVrv::DtRenderSettingsWidget::myUseAutofocusCheckbox
protected
QLabel* makVrv::DtRenderSettingsWidget::myFocalDepthLabel
protected
DtSliderDoubleSpinboxWidget* makVrv::DtRenderSettingsWidget::myFocalDepthSlider
protected
QLabel* makVrv::DtRenderSettingsWidget::myFocalRangeLabel
protected
DtSliderDoubleSpinboxWidget* makVrv::DtRenderSettingsWidget::myFocalRangeSlider
protected
QLabel* makVrv::DtRenderSettingsWidget::myWaterOnScreenSizeLabel
protected
DtSliderDoubleSpinboxWidget* makVrv::DtRenderSettingsWidget::myWaterOnScreenSizeSlider
protected
QLabel* makVrv::DtRenderSettingsWidget::myIndirectLodTransitionPercentageLabel
protected
DtSliderDoubleSpinboxWidget* makVrv::DtRenderSettingsWidget::myIndirectLodTransitionPercentageSlider
protected
QLabel* makVrv::DtRenderSettingsWidget::myComponentVisualizationLabel
protected
QComboBox* makVrv::DtRenderSettingsWidget::myComponentVisualizationCombo
protected
QCheckBox* makVrv::DtRenderSettingsWidget::myColorizedDrawablesCheckbox
protected
QPushButton* makVrv::DtRenderSettingsWidget::myRefreshColorizedDrawablesButton
protected
QPushButton* makVrv::DtRenderSettingsWidget::myReloadShaderButton
protected
QCheckBox* makVrv::DtRenderSettingsWidget::myAtcGlobalModelEnableCheckbox
protected
QCheckBox* makVrv::DtRenderSettingsWidget::myAtcGlobalTerrainEnableCheckbox
protected
QCheckBox* makVrv::DtRenderSettingsWidget::myAtcEnableDitherCheckbox
protected
DtSignalConnectionManager makVrv::DtRenderSettingsWidget::myConnections
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)