VR-Forces 4.7 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 | 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,
  GroundCoverLayer, GroundCover
}

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, bool 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 (bool enabled)
 Sets the lighting enabled or not,only apply for model layers.
virtual void setGroundCoverVisibility (bool visible)
 Sets the visibility for the groundCover.
virtual void setGroundCoverDensity (double value)
 Sets the density for the groundCover.
virtual void setGroundCoverFill (double value)
 Sets the fill percentage for the groundCover.
virtual void setGroundCoverWind (double value)
 Sets the wind effect for the groundCover.
virtual void setGroundCoverBrightness (double value)
 Sets the brightness for the groundCover.
virtual void setGroundCoverContrast (double value)
 Sets the contrast for the groundCover.
virtual void saveMaxDistanceForGroundCover (int id, float maxDistance)
 save the max distance for groundCover
virtual float getMaxDistanceForGroundCover (int id)
 get the max distance for groundCover
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_groundCoverVisibilityChanged (int)
virtual void on_groundCoverDensityChanged (double)
virtual void on_groundCoverFillChanged (double)
virtual void on_groundCoverWindChanged (double)
virtual void on_groundCoverBrightnessChanged (double)
virtual void on_groundCoverContrastChanged (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
QWidget * myLayerWidget
QGridLayout * myConfigurationLayout
QCheckBoxmyVisibleCheckBox
QLabelmyOpacityLabel
QDoubleSpinBox * myOpacitySpinBox
QCheckBoxmyLightingEnabledCheckBox
QWidget * myGroundCoverWidget
QGridLayout * myGroundCoverLayout
QCheckBoxmyGroundCoverVisibleCheckBox
QLabelmyGroundCoverDensityLabel
QDoubleSpinBox * myGroundCoverDensitySpinBox
QLabelmyGroundCoverFillLabel
QDoubleSpinBox * myGroundCoverFillSpinBox
QLabelmyGroundCoverWindLabel
QDoubleSpinBox * myGroundCoverWindSpinBox
QLabelmyGroundCoverBrightnessLabel
QDoubleSpinBox * myGroundCoverBrightnessSpinBox
QLabelmyGroundCoverContrastLabel
QDoubleSpinBox * myGroundCoverContrastSpinBox
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_groundCoverVisibilityChanged
boost::signal< void(int, int,
double)> 
signal_groundCoverDensityChanged
boost::signal< void(int, int,
double)> 
signal_groundCoverFillChanged
boost::signal< void(int, int,
double)> 
signal_groundCoverWindChanged
boost::signal< void(int, int,
double)> 
signal_groundCoverBrightnessChanged
boost::signal< void(int, int,
double)> 
signal_groundCoverContrastChanged

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,
bool  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 ( bool  enabled)
virtual

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

Implements makVrv::DtOsgEarthProfileInterface.

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

Sets the visibility for the groundCover.

Parameters
visibleThe visibility of the groundCover

Implements makVrv::DtOsgEarthProfileInterface.

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

Sets the density for the groundCover.

Parameters
visibleThe density of the groundCover

Implements makVrv::DtOsgEarthProfileInterface.

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

Sets the fill percentage for the groundCover.

Parameters
fillThe fill percentage of the groundCover

Implements makVrv::DtOsgEarthProfileInterface.

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

Sets the wind effect for the groundCover.

Parameters
windThe wind effect of the groundCover

Implements makVrv::DtOsgEarthProfileInterface.

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

Sets the brightness for the groundCover.

Parameters
brightnessThe brightness of the groundCover

Implements makVrv::DtOsgEarthProfileInterface.

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

Sets the contrast for the groundCover.

Parameters
contrastThe contrast of the groundCover

Implements makVrv::DtOsgEarthProfileInterface.

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

save the max distance for groundCover

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

Implements makVrv::DtOsgEarthProfileInterface.

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

get the max distance for groundCover

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_groundCoverVisibilityChanged ( int  )
protectedvirtualslot
virtual void makVrv::DtOsgEarthProfileDialog::on_groundCoverDensityChanged ( double  )
protectedvirtualslot
virtual void makVrv::DtOsgEarthProfileDialog::on_groundCoverFillChanged ( double  )
protectedvirtualslot
virtual void makVrv::DtOsgEarthProfileDialog::on_groundCoverWindChanged ( double  )
protectedvirtualslot
virtual void makVrv::DtOsgEarthProfileDialog::on_groundCoverBrightnessChanged ( double  )
protectedvirtualslot
virtual void makVrv::DtOsgEarthProfileDialog::on_groundCoverContrastChanged ( 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::myGroundCoverWidget
protected
QGridLayout* makVrv::DtOsgEarthProfileDialog::myGroundCoverLayout
protected
QCheckBox* makVrv::DtOsgEarthProfileDialog::myGroundCoverVisibleCheckBox
protected
QLabel* makVrv::DtOsgEarthProfileDialog::myGroundCoverDensityLabel
protected
QDoubleSpinBox* makVrv::DtOsgEarthProfileDialog::myGroundCoverDensitySpinBox
protected
QLabel* makVrv::DtOsgEarthProfileDialog::myGroundCoverFillLabel
protected
QDoubleSpinBox* makVrv::DtOsgEarthProfileDialog::myGroundCoverFillSpinBox
protected
QLabel* makVrv::DtOsgEarthProfileDialog::myGroundCoverWindLabel
protected
QDoubleSpinBox* makVrv::DtOsgEarthProfileDialog::myGroundCoverWindSpinBox
protected
QLabel* makVrv::DtOsgEarthProfileDialog::myGroundCoverBrightnessLabel
protected
QDoubleSpinBox* makVrv::DtOsgEarthProfileDialog::myGroundCoverBrightnessSpinBox
protected
QLabel* makVrv::DtOsgEarthProfileDialog::myGroundCoverContrastLabel
protected
QDoubleSpinBox* makVrv::DtOsgEarthProfileDialog::myGroundCoverContrastSpinBox
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 Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)