VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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.
virtual ~DtRenderSettingsWidget ()
 DTOR.
virtual void setWireframeEnabled (bool enabled)
 Set the wireframe enabled state.
virtual void setPerformanceOverlayShown (bool shown)
 Set the performance overlay widget.
virtual void setProfilerOverlayShown (bool shown)
 Set the function profiler overlay widget.
virtual void setChannelProjectionResizePolicy (DtChannelConfiguration::ProjectionResizePolicy policy)
 Set the channelProjectionResizePolicy.
virtual void setSymbolTransparency (int scale)
 Set value for transparency of occluded icons.
virtual void setTerrainScalingEnabled (bool enabled)
 Set the current state of terrain scaling.
virtual void setTerrainScaleFactor (double scaleFactor)
 Set the terrain scale factor.
virtual void setTerrainScalingAllowed (bool allowed)
 Indicate whether terrain scaling is currently allowed.
virtual void setClearTrackHistoriesOnTerrainScaleChanged (bool clear)
 Set the clear track histories option checkbox.
virtual void setUseAutofocus (bool useAutofocus)
 Set whether to use autofocus for depth of field.
virtual void setFocalDepth (double focalDepth)
 Set the focal depth for depth of field.
virtual void setFocalRange (double focalRange)
 Set the focal range for depth of field.
virtual void setLensFlareEnabled (bool state)
 Set the lens flare state.
virtual void setCrepuscularRaysEnabled (bool state)
 Set the crepuscular rays (sun rays) state.
virtual void setDrawableColorization (bool enabled)
 Set initial state of drawable colorization checkbox.
virtual void setComponentVisualizationMode (int mode)
 Set the component visualization mode which is used to change the debug render mode.
virtual int addComponenetVisualizationEntry (QString entry)
 Add a new mode to the list of component visualization modes.
virtual void setDistanceUnitLabels (const DtUnicode &unitLabel)
 Set a label extension to use for all distance-related labels.
virtual void setDistanceDecimals (int decimals)
 Set the number of decimal places to use for all distance-related items.
virtual void setMaxFocalRange (float distance)
 Set the maximum for focal range widget.
virtual void setMaxFocalDepth (float distance)
 Set the maximum for focal depth widget.
- Public Member Functions inherited from makVrv::DtRenderSettingsInterface
virtual ~DtRenderSettingsInterface ()
 DTOR.

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_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_lensFlareCheckChanged (int state)
void on_crepuscularRaysCheckChanged (int state)
void on_componentVisualizationCombo_currentIndexChanged (int selectedIndex)
void on_colorizeDrawablesCheckChanged (int state)

Protected Member Functions

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

Protected Attributes

DtDemyDe
QCheckBoxmyWireframeCheckbox
QCheckBoxmyRenderStatsCheckbox
QCheckBoxmyRenderProfilerCheckbox
QLabelmyChannelProjectionResizePolicyLabel
QComboBoxmyChannelProjectionResizePolicyCombo
QLabelmySymbolTransparencyLabel
QSlider * mySymbolTransparencySlider
QCheckBoxmyTerrainScalingEnabledCheckBox
QLabelmyTerrainScaleFactorLabel
QSlider * myTerrainScaleFactorSlider
QCheckBoxmyClearTrackHistoriesCheckBox
QCheckBoxmyLensFlareCheckbox
QCheckBoxmyCrepuscularRaysCheckbox
QCheckBoxmyUseAutofocusCheckbox
QLabelmyFocalDepthLabel
DtSliderDoubleSpinboxWidgetmyFocalDepthSlider
QLabelmyFocalRangeLabel
DtSliderDoubleSpinboxWidgetmyFocalRangeSlider
QLabelmyComponentVisualizationLabel
QComboBoxmyComponentVisualizationCombo
QCheckBoxmyColorizedDrawablesCheckbox
QPushButtonmyRefreshColorizedDrawablesButton
QPushButtonmyReloadShaderButton

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_showPerformanceOverlaySet
boost::signal< void(bool)> signal_showProfilerOverlaySet
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_useAutofocusChanged
boost::signal< void(double)> signal_focalDepthChanged
boost::signal< void(double)> signal_focalRangeChanged
boost::signal< void(bool)> signal_lensFlareEnabledChanged
boost::signal< void(bool)> signal_crepuscularRaysEnabledChanged
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::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::setLensFlareEnabled ( bool  state)
virtual

Set the lens flare state.

Parameters
[in]stateis the enabled/disabled state for lens flares.

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::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.

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_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_lensFlareCheckChanged ( int  state)
protectedslot
void makVrv::DtRenderSettingsWidget::on_crepuscularRaysCheckChanged ( 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
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::myLensFlareCheckbox
protected
QCheckBox* makVrv::DtRenderSettingsWidget::myCrepuscularRaysCheckbox
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::myComponentVisualizationLabel
protected
QComboBox* makVrv::DtRenderSettingsWidget::myComponentVisualizationCombo
protected
QCheckBox* makVrv::DtRenderSettingsWidget::myColorizedDrawablesCheckbox
protected
QPushButton* makVrv::DtRenderSettingsWidget::myRefreshColorizedDrawablesButton
protected
QPushButton* makVrv::DtRenderSettingsWidget::myReloadShaderButton
protected

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

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)