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

DtOsgEarthProfileDialog. More...

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

Public Types

typedef std::map< int,
QTreeWidgetItem * > 
ItemMap
 Map of id's to the QTreeWidgetItem that represents them.
typedef boost::unordered_map
< int, QTreeWidgetItem * > 
LayerTypeMap
typedef boost::unordered_map
< int, QTreeWidgetItem * > 
LayerMap
typedef boost::unordered_map
< int, float > 
MaxDistanceMap
- Public Types inherited from makVrv::DtOsgEarthProfileInterface
enum  LayerType {
  ImageLayer, ElevationLayer, ModelLayer, Building,
  LandCover, LandCoverLayer
}

Public Member Functions

 DtOsgEarthProfileDialog (DtDe &de, QWidget *parent)
 CTOR.
virtual ~DtOsgEarthProfileDialog ()
 DTOR.
virtual void osgEarthFileSelectChanged (std::string definition)
 callback when use select a different osg Earth file
virtual void addLayerType (LayerType layerType)
 Adds the type of the layer.
virtual void addLayer (int id, LayerType layerType, const std::string &name, bool enabled, bool visible, int parentId=-1)
 Adds the layer.
virtual void setVisibility (LayerType layerType, int visibility)
 Sets the visibility for the layer.
virtual void setOpacity (float opacity)
 Sets the opacity,only apply for image and elevation layers.
virtual void setLightingEnabled (int enabled)
 Sets the lighting enabled or not,only apply for model layers.
virtual void setLandCoverVisibility (bool visible)
 Sets the visibility for the landCover layer.
virtual void setLandCoverCoverDensity (double value)
 Sets the density for the landCover layer.
virtual void setLandCoverCoverFill (double value)
 Sets the fill percentage for the landCover layer.
virtual void setLandCoverCoverWind (double value)
 Sets the wind effect for the landCover layer.
virtual void setLandCoverCoverBrightness (double value)
 Sets the brightness for the landCover layer.
virtual void setLandCoverCoverContrast (double value)
 Sets the contrast for the landCover layer.
virtual void saveMaxDistanceForLandCoverLayer (int id, float maxDistance)
 save the max distance for landCover layer
virtual float getMaxDistanceForLandCoverLayer (int id)
 get the max distance for landCover layer
virtual void setLastEarthFileName (const std::string &name)
 set last earth file that this dialog diaplayed it will cleart the maxDistanceMap as well since the earth File has changed

Protected Slots

User input slots (protected).

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

virtual void on_layersTreeWidget_selectionChanged ()
virtual void on_visibilityCheckBox_valueChanged (int)
virtual void on_opacitySpinBox_valueChanged (double)
virtual void on_lightingEnabledCheckBox_valueChanged (int)
virtual void on_landCoverVisibilityChanged (int)
virtual void on_landCoverDensityChanged (double)
virtual void on_landCoverFillChanged (double)
virtual void on_landCoverWindChanged (double)
virtual void on_landCoverBrightnessChanged (double)
virtual void on_landCoverContrastChanged (double)

Protected Member Functions

virtual void cleanup ()
 Clean up the item map.
void setupGui ()
 Setups the GUI.Call in the CTOR.
virtual void closeEvent (QCloseEvent *e)
 override the closeEvent of QDialog
virtual void updateGui (int layerType)
 Updates the GUI.
virtual void showEvent (QShowEvent *e)
 Override QDialog::showEvent, create the logic here.
virtual QTreeWidgetItemfindLayerType (LayerType layerType)
 Find the widget for a particular layerType.
virtual QTreeWidgetItemfindLayer (int id)
 Find the widget for a particular layer.
virtual void setItemLayerType (QTreeWidgetItem *item, LayerType layerType)
 Sets the type of the item layer.
virtual void setItemUniqueID (QTreeWidgetItem *item, int id)
 Sets the item unique identifier.
virtual void setItemName (QTreeWidgetItem *item, const std::string &name)
 Sets the name of the item.
virtual std::string getLayerTypeName (LayerType layerType)
 gets the name for a layerType
virtual void connectToSignals ()
 call in the CTOR
virtual bool isItemLayer (QTreeWidgetItem *layer)
 Determines whether the select item is a layer.
virtual void slot_afterPopulateAllLayers ()
 Slots after populate all layers.

Protected Attributes

QVBoxLayout * myMainLayout
QHBoxLayout * myWidgetLayout
QTreeWidgetmyLayersTreeWidget
QWidgetmyLayerWidget
QGridLayout * myConfigurationLayout
QCheckBoxmyVisibleCheckBox
QLabelmyOpacityLabel
QDoubleSpinBox * myOpacitySpinBox
QCheckBoxmyLightingEnabledCheckBox
QWidgetmyLandCoverWidget
QGridLayout * myLandCoverLayout
QCheckBoxmyLandCoverVisibleCheckBox
QLabelmyLandCoverDensityLabel
QDoubleSpinBox * myLandCoverDensitySpinBox
QLabelmyLandCoverFillLabel
QDoubleSpinBox * myLandCoverFillSpinBox
QLabelmyLandCoverWindLabel
QDoubleSpinBox * myLandCoverWindSpinBox
QLabelmyLandCoverBrightnessLabel
QDoubleSpinBox * myLandCoverBrightnessSpinBox
QLabelmyLandCoverContrastLabel
QDoubleSpinBox * myLandCoverContrastSpinBox
QPushButtonmyCloseButton
LayerTypeMap myLayerTypeItems
LayerMap myLayerItems
MaxDistanceMap myMaxDistanceMap
DtDemyDe
DtOsgEarthProfileLogicmyLogic
bool myCurrentSelected
int myCurrentSelectType
int myCurrentSelectID
int myCurrentParentID
std::string myLastEarthFileName

Private Member Functions

 DtOsgEarthProfileDialog (const DtOsgEarthProfileDialog &)
 Copy Constructor not implimented – Copy not allowed.
DtOsgEarthProfileDialogoperator= (const DtOsgEarthProfileDialog &)
 Assignment Operator not implimented – Copy not allowed.

Additional Inherited Members

- Public Attributes inherited from makVrv::DtOsgEarthProfileInterface
boost::signal< void(std::string)> signal_selectOsgEarthChanged
 boost signals
boost::signal< void(int, int, int)> signal_selectLayerTreeChanged
boost::signal< void(int, int, int)> signal_layerVisibilityCheckBoxValueChanged
boost::signal< void(int, int,
double)> 
signal_layerOpacitySpinBoxValueChanged
boost::signal< void(int, int, int)> signal_lightingEnabledCheckBox_valueChanged
boost::signal< void(int, int, int)> signal_landCoverVisibilityChanged
boost::signal< void(int, int,
double)> 
signal_landCoverDensityChanged
boost::signal< void(int, int,
double)> 
signal_landCoverFillChanged
boost::signal< void(int, int,
double)> 
signal_landCoverWindChanged
boost::signal< void(int, int,
double)> 
signal_landCoverBrightnessChanged
boost::signal< void(int, int,
double)> 
signal_landCoverContrastChanged

Detailed Description

DtOsgEarthProfileDialog.

Member Typedef Documentation

Map of id's to the QTreeWidgetItem that represents them.

typedef boost::unordered_map<int, float> makVrv::DtOsgEarthProfileDialog::MaxDistanceMap

Constructor & Destructor Documentation

makVrv::DtOsgEarthProfileDialog::DtOsgEarthProfileDialog ( DtDe de,
QWidget parent 
)

CTOR.

virtual makVrv::DtOsgEarthProfileDialog::~DtOsgEarthProfileDialog ( )
virtual

DTOR.

makVrv::DtOsgEarthProfileDialog::DtOsgEarthProfileDialog ( const DtOsgEarthProfileDialog )
private

Copy Constructor not implimented – Copy not allowed.

Member Function Documentation

virtual void makVrv::DtOsgEarthProfileDialog::osgEarthFileSelectChanged ( std::string  definition)
virtual

callback when use select a different osg Earth file

Parameters
definitionThe name of the osgEarth file
virtual void makVrv::DtOsgEarthProfileDialog::addLayerType ( LayerType  layerType)
virtual

Adds the type of the layer.

Parameters
layerTypeType of the layer

Implements makVrv::DtOsgEarthProfileInterface.

virtual void makVrv::DtOsgEarthProfileDialog::addLayer ( int  id,
LayerType  layerType,
const std::string &  name,
bool  enabled,
bool  visible,
int  parentId = -1 
)
virtual

Adds the layer.

Parameters
idThe identifier
layerTypeType of the layer
nameThe name
enabledif the layer is enabled
visibleif the layer is visible

Implements makVrv::DtOsgEarthProfileInterface.

virtual void makVrv::DtOsgEarthProfileDialog::setVisibility ( LayerType  layerType,
int  visibility 
)
virtual

Sets the visibility for the layer.

Parameters
layerTypeType of the layer
visibilityThe visibility of the layer

Implements makVrv::DtOsgEarthProfileInterface.

virtual void makVrv::DtOsgEarthProfileDialog::setOpacity ( float  opacity)
virtual

Sets the opacity,only apply for image and elevation layers.

Parameters
nameopacity The opacity(between 0-1)

Implements makVrv::DtOsgEarthProfileInterface.

virtual void makVrv::DtOsgEarthProfileDialog::setLightingEnabled ( int  enabled)
virtual

Sets the lighting enabled or not,only apply for model layers.

Implements makVrv::DtOsgEarthProfileInterface.

virtual void makVrv::DtOsgEarthProfileDialog::setLandCoverVisibility ( bool  visible)
virtual

Sets the visibility for the landCover layer.

Parameters
visibleThe visibility of the layer

Implements makVrv::DtOsgEarthProfileInterface.

virtual void makVrv::DtOsgEarthProfileDialog::setLandCoverCoverDensity ( double  value)
virtual

Sets the density for the landCover layer.

Parameters
visibleThe density of the layer

Implements makVrv::DtOsgEarthProfileInterface.

virtual void makVrv::DtOsgEarthProfileDialog::setLandCoverCoverFill ( double  value)
virtual

Sets the fill percentage for the landCover layer.

Parameters
fillThe fill percentage of the layer

Implements makVrv::DtOsgEarthProfileInterface.

virtual void makVrv::DtOsgEarthProfileDialog::setLandCoverCoverWind ( double  value)
virtual

Sets the wind effect for the landCover layer.

Parameters
windThe wind effect of the layer

Implements makVrv::DtOsgEarthProfileInterface.

virtual void makVrv::DtOsgEarthProfileDialog::setLandCoverCoverBrightness ( double  value)
virtual

Sets the brightness for the landCover layer.

Parameters
brightnessThe brightness of the layer

Implements makVrv::DtOsgEarthProfileInterface.

virtual void makVrv::DtOsgEarthProfileDialog::setLandCoverCoverContrast ( double  value)
virtual

Sets the contrast for the landCover layer.

Parameters
contrastThe contrast of the layer

Implements makVrv::DtOsgEarthProfileInterface.

virtual void makVrv::DtOsgEarthProfileDialog::saveMaxDistanceForLandCoverLayer ( int  id,
float  maxDistance 
)
virtual

save the max distance for landCover layer

Parameters
idThe identifier
maxDistancethe max distance of this landCover layer(default is 1km)

Implements makVrv::DtOsgEarthProfileInterface.

virtual float makVrv::DtOsgEarthProfileDialog::getMaxDistanceForLandCoverLayer ( int  id)
virtual

get the max distance for landCover layer

Parameters
idThe identifier

Implements makVrv::DtOsgEarthProfileInterface.

virtual void makVrv::DtOsgEarthProfileDialog::setLastEarthFileName ( const std::string &  name)
virtual

set last earth file that this dialog diaplayed it will cleart the maxDistanceMap as well since the earth File has changed

Implements makVrv::DtOsgEarthProfileInterface.

DtOsgEarthProfileDialog& makVrv::DtOsgEarthProfileDialog::operator= ( const DtOsgEarthProfileDialog )
private

Assignment Operator not implimented – Copy not allowed.

virtual void makVrv::DtOsgEarthProfileDialog::cleanup ( )
protectedvirtual

Clean up the item map.

void makVrv::DtOsgEarthProfileDialog::setupGui ( )
protected

Setups the GUI.Call in the CTOR.

virtual void makVrv::DtOsgEarthProfileDialog::closeEvent ( QCloseEvent *  e)
protectedvirtual

override the closeEvent of QDialog

virtual void makVrv::DtOsgEarthProfileDialog::updateGui ( int  layerType)
protectedvirtual

Updates the GUI.

Parameters
layerTypeType of the layer
virtual void makVrv::DtOsgEarthProfileDialog::showEvent ( QShowEvent *  e)
protectedvirtual

Override QDialog::showEvent, create the logic here.

virtual QTreeWidgetItem* makVrv::DtOsgEarthProfileDialog::findLayerType ( LayerType  layerType)
protectedvirtual

Find the widget for a particular layerType.

virtual QTreeWidgetItem* makVrv::DtOsgEarthProfileDialog::findLayer ( int  id)
protectedvirtual

Find the widget for a particular layer.

virtual void makVrv::DtOsgEarthProfileDialog::setItemLayerType ( QTreeWidgetItem item,
LayerType  layerType 
)
protectedvirtual

Sets the type of the item layer.

Parameters
itemThe item
layerTypeType of the layer
virtual void makVrv::DtOsgEarthProfileDialog::setItemUniqueID ( QTreeWidgetItem item,
int  id 
)
protectedvirtual

Sets the item unique identifier.

Parameters
itemThe item
idThe identifier
virtual void makVrv::DtOsgEarthProfileDialog::setItemName ( QTreeWidgetItem item,
const std::string &  name 
)
protectedvirtual

Sets the name of the item.

virtual std::string makVrv::DtOsgEarthProfileDialog::getLayerTypeName ( LayerType  layerType)
protectedvirtual

gets the name for a layerType

virtual void makVrv::DtOsgEarthProfileDialog::connectToSignals ( )
protectedvirtual

call in the CTOR

virtual bool makVrv::DtOsgEarthProfileDialog::isItemLayer ( QTreeWidgetItem layer)
protectedvirtual

Determines whether the select item is a layer.

virtual void makVrv::DtOsgEarthProfileDialog::slot_afterPopulateAllLayers ( )
protectedvirtual

Slots after populate all layers.

Implements makVrv::DtOsgEarthProfileInterface.

virtual void makVrv::DtOsgEarthProfileDialog::on_layersTreeWidget_selectionChanged ( )
protectedvirtualslot
virtual void makVrv::DtOsgEarthProfileDialog::on_visibilityCheckBox_valueChanged ( int  )
protectedvirtualslot
virtual void makVrv::DtOsgEarthProfileDialog::on_opacitySpinBox_valueChanged ( double  )
protectedvirtualslot
virtual void makVrv::DtOsgEarthProfileDialog::on_lightingEnabledCheckBox_valueChanged ( int  )
protectedvirtualslot
virtual void makVrv::DtOsgEarthProfileDialog::on_landCoverVisibilityChanged ( int  )
protectedvirtualslot
virtual void makVrv::DtOsgEarthProfileDialog::on_landCoverDensityChanged ( double  )
protectedvirtualslot
virtual void makVrv::DtOsgEarthProfileDialog::on_landCoverFillChanged ( double  )
protectedvirtualslot
virtual void makVrv::DtOsgEarthProfileDialog::on_landCoverWindChanged ( double  )
protectedvirtualslot
virtual void makVrv::DtOsgEarthProfileDialog::on_landCoverBrightnessChanged ( double  )
protectedvirtualslot
virtual void makVrv::DtOsgEarthProfileDialog::on_landCoverContrastChanged ( double  )
protectedvirtualslot

Member Data Documentation

QVBoxLayout* makVrv::DtOsgEarthProfileDialog::myMainLayout
protected
QHBoxLayout* makVrv::DtOsgEarthProfileDialog::myWidgetLayout
protected
QTreeWidget* makVrv::DtOsgEarthProfileDialog::myLayersTreeWidget
protected
QWidget* makVrv::DtOsgEarthProfileDialog::myLayerWidget
protected
QGridLayout* makVrv::DtOsgEarthProfileDialog::myConfigurationLayout
protected
QCheckBox* makVrv::DtOsgEarthProfileDialog::myVisibleCheckBox
protected
QLabel* makVrv::DtOsgEarthProfileDialog::myOpacityLabel
protected
QDoubleSpinBox* makVrv::DtOsgEarthProfileDialog::myOpacitySpinBox
protected
QCheckBox* makVrv::DtOsgEarthProfileDialog::myLightingEnabledCheckBox
protected
QWidget* makVrv::DtOsgEarthProfileDialog::myLandCoverWidget
protected
QGridLayout* makVrv::DtOsgEarthProfileDialog::myLandCoverLayout
protected
QCheckBox* makVrv::DtOsgEarthProfileDialog::myLandCoverVisibleCheckBox
protected
QLabel* makVrv::DtOsgEarthProfileDialog::myLandCoverDensityLabel
protected
QDoubleSpinBox* makVrv::DtOsgEarthProfileDialog::myLandCoverDensitySpinBox
protected
QLabel* makVrv::DtOsgEarthProfileDialog::myLandCoverFillLabel
protected
QDoubleSpinBox* makVrv::DtOsgEarthProfileDialog::myLandCoverFillSpinBox
protected
QLabel* makVrv::DtOsgEarthProfileDialog::myLandCoverWindLabel
protected
QDoubleSpinBox* makVrv::DtOsgEarthProfileDialog::myLandCoverWindSpinBox
protected
QLabel* makVrv::DtOsgEarthProfileDialog::myLandCoverBrightnessLabel
protected
QDoubleSpinBox* makVrv::DtOsgEarthProfileDialog::myLandCoverBrightnessSpinBox
protected
QLabel* makVrv::DtOsgEarthProfileDialog::myLandCoverContrastLabel
protected
QDoubleSpinBox* makVrv::DtOsgEarthProfileDialog::myLandCoverContrastSpinBox
protected
QPushButton* makVrv::DtOsgEarthProfileDialog::myCloseButton
protected
LayerTypeMap makVrv::DtOsgEarthProfileDialog::myLayerTypeItems
protected
LayerMap makVrv::DtOsgEarthProfileDialog::myLayerItems
protected
MaxDistanceMap makVrv::DtOsgEarthProfileDialog::myMaxDistanceMap
protected
DtDe& makVrv::DtOsgEarthProfileDialog::myDe
protected
DtOsgEarthProfileLogic* makVrv::DtOsgEarthProfileDialog::myLogic
protected
bool makVrv::DtOsgEarthProfileDialog::myCurrentSelected
protected
int makVrv::DtOsgEarthProfileDialog::myCurrentSelectType
protected
int makVrv::DtOsgEarthProfileDialog::myCurrentSelectID
protected
int makVrv::DtOsgEarthProfileDialog::myCurrentParentID
protected
std::string makVrv::DtOsgEarthProfileDialog::myLastEarthFileName
protected

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

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)