VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
makVrv::DtEnvironmentWidget Class Reference

A widget for configuring the environment. More...

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

List of all members.

Public Member Functions

 DtEnvironmentWidget (DtDe &de, DtPersistenceControlsInterface &persistenceControls, QWidget *parent=0)
 CTOR.
virtual ~DtEnvironmentWidget ()
 DTOR.
Field value setters.

Sets the values of the widget's corresponding fields.

virtual void setListenToRemoteWeather (bool listen)
 Sets whether or not to list to simulated weather messages.
virtual void setRefreshButtonEnabled (bool enabled)
 Enables/disables the VRF refresh weather button.
virtual void addCloudLayer (QString type, QString xLocation, QString yLocation, QString altitude, bool enabled)
 Add a cloud layer to the gui.
virtual void removeAllCloudLayers ()
 Sets whether or not to list to simulated weather messages.
virtual void removeCloudLayer (int index)
 Remove a cloud layer from the gui.
virtual void setCloudLayerEnabled (unsigned int index, bool enabled)
 Set whether a cloud layer is enabled or not.
virtual void setPrecipitationEnabled (bool enabledFlag)
 Set the precipitation enabled checkbox.
virtual void setPrecipitationType (const std::string &type)
 Set the precipitation type combobox.
virtual void setPrecipitationIntensity (float intensity)
 Set the precipitation intensity box.
virtual void setTurbidity (float value)
 Set the air turbidity box.
virtual void setVisibleDistance (float distance)
 Set the visibile distance box.
virtual void setVisibleDistanceDecimals (int decimals)
 Set the visible distance decimal places.
virtual void setVisibleDistanceUnits (const DtUnicode &units)
 Set the visible distance units.
virtual void setAxisLabels (const DtUnicode &x, const DtUnicode &y, const DtUnicode &z)
 Set the X and Y axis labels.
Display requests for user input dialogs.
virtual void queryUserForNewCloudLayer ()
 Shows the user the new cloud layer dialog.
virtual void queryUserToEditCloudLayer (int index)
 Shows the user the new cloud layer dialog, populated with the settings of the selected layer.

Protected Types

enum  {
  CloudTreeColumnType = 0, CloudTreeColumnX, CloudTreeColumnY, CloudTreeColumnAltitude,
  CloudTreeColumnEnabled
}

Protected Slots

User input slots.

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

void on_myListenToVrfBox_stateChanged (int)
void on_myRefreshVrfWeatherButton_clicked ()
void on_myCloudLayersTree_itemSelectionChanged ()
void on_myCloudLayersTree_itemChanged (QTreeWidgetItem *item, int column)
void on_myAddCloudLayerButton_clicked ()
void on_myDeleteCloudLayerButton_clicked ()
void on_myEditCloudLayerButton_clicked ()
void on_myTurbidityBox_currentIndexChanged (int)
void on_myTurbiditySpinBox_valueChanged (double)
void on_myVisibilityBox_valueChanged (double)
void on_myPrecipitationGroup_toggled (bool state)
void on_myPrecipitationTypeBox_indexChanged (int index)
void on_myPrecipitationIntensityBox_valueChanged (double value)

Protected Member Functions

void setupGui ()
 Sets up the widget's fields.
void connectToSignals ()
 Connects widget signals to slots.
std::string untranslatePrecipitationType (QString type) const
 Returns the untranslated type for the given (translated) precipitation type.
QString translatePrecipitationType (const std::string &type) const
 Returns the translated precipitation type.

Protected Attributes

DtDemyDe
DtEnvironmentLogicmyLogic
QCheckBoxmyListenToVrfBox
QPushButtonmyRefreshVrfWeatherButton
QLabelmyCloudLayerLabel
QTreeWidgetmyCloudLayersTree
QPushButtonmyAddCloudLayerButton
QPushButtonmyDeleteCloudLayerButton
QPushButtonmyEditCloudLayerButton
QLabelmyTurbidityLabel
QComboBoxmyTurbidityBox
QDoubleSpinBox * myTurbiditySpinBox
QLabelmyVisibilityLabel
QDoubleSpinBox * myVisibilityBox
QCheckBoxmyPrecipitionCheckbox
QLabelmyPrecipitionTypeLabel
QComboBoxmyPrecipitationTypeBox
QLabelmyPrecipitionIntensityLabel
QDoubleSpinBox * myPrecipitionIntensityBox
std::vector< std::pair
< QString, float > > 
myPredefinedValues

Detailed Description

A widget for configuring the environment.


Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
CloudTreeColumnType 
CloudTreeColumnX 
CloudTreeColumnY 
CloudTreeColumnAltitude 
CloudTreeColumnEnabled 

Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

virtual void makVrv::DtEnvironmentWidget::setListenToRemoteWeather ( bool  listen) [virtual]

Sets whether or not to list to simulated weather messages.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironmentWidget::setRefreshButtonEnabled ( bool  enabled) [virtual]

Enables/disables the VRF refresh weather button.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironmentWidget::addCloudLayer ( QString  type,
QString  xLocation,
QString  yLocation,
QString  altitude,
bool  enabled 
) [virtual]

Add a cloud layer to the gui.

Implements makVrv::DtEnvironmentInterface.

Sets whether or not to list to simulated weather messages.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironmentWidget::removeCloudLayer ( int  index) [virtual]

Remove a cloud layer from the gui.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironmentWidget::setCloudLayerEnabled ( unsigned int  index,
bool  enabled 
) [virtual]

Set whether a cloud layer is enabled or not.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironmentWidget::setPrecipitationEnabled ( bool  enabledFlag) [virtual]

Set the precipitation enabled checkbox.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironmentWidget::setPrecipitationType ( const std::string &  type) [virtual]

Set the precipitation type combobox.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironmentWidget::setPrecipitationIntensity ( float  intensity) [virtual]

Set the precipitation intensity box.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironmentWidget::setTurbidity ( float  value) [virtual]

Set the air turbidity box.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironmentWidget::setVisibleDistance ( float  distance) [virtual]

Set the visibile distance box.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironmentWidget::setVisibleDistanceDecimals ( int  decimals) [virtual]

Set the visible distance decimal places.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironmentWidget::setVisibleDistanceUnits ( const DtUnicode units) [virtual]

Set the visible distance units.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironmentWidget::setAxisLabels ( const DtUnicode x,
const DtUnicode y,
const DtUnicode z 
) [virtual]

Set the X and Y axis labels.

Implements makVrv::DtEnvironmentInterface.

Shows the user the new cloud layer dialog.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironmentWidget::queryUserToEditCloudLayer ( int  index) [virtual]

Shows the user the new cloud layer dialog, populated with the settings of the selected layer.

Implements makVrv::DtEnvironmentInterface.

Sets up the widget's fields.

Non-virtual (Called from CTOR).

Connects widget signals to slots.

Non-virtual (Called from CTOR).

std::string makVrv::DtEnvironmentWidget::untranslatePrecipitationType ( QString  type) const [protected]

Returns the untranslated type for the given (translated) precipitation type.

QString makVrv::DtEnvironmentWidget::translatePrecipitationType ( const std::string &  type) const [protected]

Returns the translated precipitation type.

void makVrv::DtEnvironmentWidget::on_myCloudLayersTree_itemChanged ( QTreeWidgetItem item,
int  column 
) [protected, slot]

Member Data Documentation

QDoubleSpinBox* makVrv::DtEnvironmentWidget::myVisibilityBox [protected]
std::vector<std::pair<QString,float> > makVrv::DtEnvironmentWidget::myPredefinedValues [protected]

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)