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

DtOsgEarthProfileLogic. More...

Public Member Functions

virtual ~DtOsgEarthProfileLogic ()
 DTOR.

Public Attributes

boost::signal< void()> singal_afterPopulateAllLayers
 The singal emit after populate all layers.

Protected Types

enum  LayerOffset { TerrainLayerOffset = 0, BuildingLayerOffset = 100, GroundCoverLayerOffset = 200, GroundCoverOffset = 300 }
typedef std::vector
< osgEarth::Splat::GroundCoverLayer * > 
GroundCoverLayersVector
typedef std::vector
< osgEarth::Splat::GroundCover * > 
GroundCoversVector

Protected Member Functions

 DtOsgEarthProfileLogic (DtDe &de, DtOsgEarthProfileInterface *iFace)
 Protected Constructor.
virtual void connectSignals ()
 connect the signals
virtual void disconnectSignals ()
 disconnect the signals
virtual void populateLayers ()
 Populates the layers.
virtual void setBuildingExtensionVisible (osgEarth::Extension *extension, bool visible)
 set whether a building extension is visible by node mask
virtual bool isBuildingExtensionVisible (osgEarth::Extension *extension)
 return whether a building extension is visible by its node mask(0x0 invisble,other visible)
virtual void populateGroundCovers (osgEarth::Splat::GroundCoverLayer *groundCoverLayer, int parentID)
 populate all the GroundCovers for this groundCoverLayer
virtual void changeGroundCoverVisibility (osgEarth::Splat::GroundCover *groundCover, float maxDistance, bool visible)
 Sets the visibility for the landCover layer.
virtual void changeGroundCoverDensity (osgEarth::Splat::GroundCover *groundCover, double density)
 Sets the density for the landCover layer.
virtual void changeGroundCoverFill (osgEarth::Splat::GroundCover *groundCover, double fill)
 Sets the fill percentage for the landCover layer.
virtual void changeGroundCoverWind (osgEarth::Splat::GroundCover *groundCover, double wind)
 Sets the wind effect for the landCover layer.
virtual void changeGroundCoverBrightness (osgEarth::Splat::GroundCover *groundCover, double brightness)
 Sets the brightness for the landCover layer.
virtual void changeGroundCoverContrast (osgEarth::Splat::GroundCover *groundCover, double contrast)
 Sets the contrast for the landCover layer.
virtual void slot_selectOsgEarthChanged (const std::string &file)
virtual void slot_selectLayerTreeChanged (int parentID, int layerType, int layerID)
virtual void slot_layerVisibilityCheckBoxValueChanged (int layerType, int layerID, int checked)
virtual void slot_layerOpacitySpinBoxValueChanged (int layerType, int layerID, double value)
virtual void slot_lightingEnabledCheckBox_valueChanged (int layerType, int layerID, int checked)
virtual void slot_groundCoverVisibilityChanged (int parentID, int layerID, int checked)
virtual void slot_groundCoverDensityChanged (int parentID, int layerID, double value)
virtual void slot_groundCoverFillChanged (int parentID, int layerID, double value)
virtual void slot_groundCoverWindChanged (int parentID, int layerID, double value)
virtual void slot_groundCoverBrightnessChanged (int parentID, int layerID, double value)
virtual void slot_groundCoverContrastChanged (int parentID, int layerID, double value)

Protected Attributes

DtDemyDe
std::string myCurrentOsgEarthFileName
osgEarth::MapNode * myMapNode
DtOsgEarthProfileInterfacemyInterface
DtSignalConnectionManager mySignals
std::vector
< osgEarth::Extension * > 
myOsgEarthExtensions
GroundCoverLayersVector myGroundCoverLayers
GroundCoversVector myGroundCovers

Private Member Functions

 DtOsgEarthProfileLogic (const DtOsgEarthProfileLogic &)
 Copy Constructor not implimented – Copy not allowed.
DtOsgEarthProfileLogicoperator= (const DtOsgEarthProfileLogic &)
 Assignment Operator not implimented – Copy not allowed.

Friends

class DtOsgEarthProfileLogicCreator

Detailed Description

DtOsgEarthProfileLogic.

Member Typedef Documentation

typedef std::vector<osgEarth::Splat::GroundCoverLayer*> makVrv::DtOsgEarthProfileLogic::GroundCoverLayersVector
protected
typedef std::vector<osgEarth::Splat::GroundCover*> makVrv::DtOsgEarthProfileLogic::GroundCoversVector
protected

Member Enumeration Documentation

Enumerator:
TerrainLayerOffset 

Include Image Layer, Height Map Layer and Model Layer.

BuildingLayerOffset 
GroundCoverLayerOffset 
GroundCoverOffset 

Constructor & Destructor Documentation

virtual makVrv::DtOsgEarthProfileLogic::~DtOsgEarthProfileLogic ( )
virtual

DTOR.

makVrv::DtOsgEarthProfileLogic::DtOsgEarthProfileLogic ( const DtOsgEarthProfileLogic )
private

Copy Constructor not implimented – Copy not allowed.

makVrv::DtOsgEarthProfileLogic::DtOsgEarthProfileLogic ( DtDe de,
DtOsgEarthProfileInterface iFace 
)
protected

Protected Constructor.

Use DtOsgEarthProfileLogicCreator to create instances of this class

Member Function Documentation

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

Assignment Operator not implimented – Copy not allowed.

virtual void makVrv::DtOsgEarthProfileLogic::connectSignals ( )
protectedvirtual

connect the signals

virtual void makVrv::DtOsgEarthProfileLogic::disconnectSignals ( )
protectedvirtual

disconnect the signals

virtual void makVrv::DtOsgEarthProfileLogic::slot_selectOsgEarthChanged ( const std::string &  file)
protectedvirtual
virtual void makVrv::DtOsgEarthProfileLogic::slot_selectLayerTreeChanged ( int  parentID,
int  layerType,
int  layerID 
)
protectedvirtual
virtual void makVrv::DtOsgEarthProfileLogic::slot_layerVisibilityCheckBoxValueChanged ( int  layerType,
int  layerID,
int  checked 
)
protectedvirtual
virtual void makVrv::DtOsgEarthProfileLogic::slot_layerOpacitySpinBoxValueChanged ( int  layerType,
int  layerID,
double  value 
)
protectedvirtual
virtual void makVrv::DtOsgEarthProfileLogic::slot_lightingEnabledCheckBox_valueChanged ( int  layerType,
int  layerID,
int  checked 
)
protectedvirtual
virtual void makVrv::DtOsgEarthProfileLogic::slot_groundCoverVisibilityChanged ( int  parentID,
int  layerID,
int  checked 
)
protectedvirtual
virtual void makVrv::DtOsgEarthProfileLogic::slot_groundCoverDensityChanged ( int  parentID,
int  layerID,
double  value 
)
protectedvirtual
virtual void makVrv::DtOsgEarthProfileLogic::slot_groundCoverFillChanged ( int  parentID,
int  layerID,
double  value 
)
protectedvirtual
virtual void makVrv::DtOsgEarthProfileLogic::slot_groundCoverWindChanged ( int  parentID,
int  layerID,
double  value 
)
protectedvirtual
virtual void makVrv::DtOsgEarthProfileLogic::slot_groundCoverBrightnessChanged ( int  parentID,
int  layerID,
double  value 
)
protectedvirtual
virtual void makVrv::DtOsgEarthProfileLogic::slot_groundCoverContrastChanged ( int  parentID,
int  layerID,
double  value 
)
protectedvirtual
virtual void makVrv::DtOsgEarthProfileLogic::populateLayers ( )
protectedvirtual

Populates the layers.

virtual void makVrv::DtOsgEarthProfileLogic::setBuildingExtensionVisible ( osgEarth::Extension *  extension,
bool  visible 
)
protectedvirtual

set whether a building extension is visible by node mask

Parameters
nameextension The osgEarth Building extension
namevisible the visible flag
virtual bool makVrv::DtOsgEarthProfileLogic::isBuildingExtensionVisible ( osgEarth::Extension *  extension)
protectedvirtual

return whether a building extension is visible by its node mask(0x0 invisble,other visible)

Parameters
nameextension The osgEarth Building extension
virtual void makVrv::DtOsgEarthProfileLogic::populateGroundCovers ( osgEarth::Splat::GroundCoverLayer *  groundCoverLayer,
int  parentID 
)
protectedvirtual

populate all the GroundCovers for this groundCoverLayer

virtual void makVrv::DtOsgEarthProfileLogic::changeGroundCoverVisibility ( osgEarth::Splat::GroundCover *  groundCover,
float  maxDistance,
bool  visible 
)
protectedvirtual

Sets the visibility for the landCover layer.

Parameters
theoriginal max distance for this layer
visibleThe visibility of the layer
virtual void makVrv::DtOsgEarthProfileLogic::changeGroundCoverDensity ( osgEarth::Splat::GroundCover *  groundCover,
double  density 
)
protectedvirtual

Sets the density for the landCover layer.

Parameters
visibleThe density of the layer
virtual void makVrv::DtOsgEarthProfileLogic::changeGroundCoverFill ( osgEarth::Splat::GroundCover *  groundCover,
double  fill 
)
protectedvirtual

Sets the fill percentage for the landCover layer.

Parameters
fillThe fill percentage of the layer
virtual void makVrv::DtOsgEarthProfileLogic::changeGroundCoverWind ( osgEarth::Splat::GroundCover *  groundCover,
double  wind 
)
protectedvirtual

Sets the wind effect for the landCover layer.

Parameters
windThe wind effect of the layer
virtual void makVrv::DtOsgEarthProfileLogic::changeGroundCoverBrightness ( osgEarth::Splat::GroundCover *  groundCover,
double  brightness 
)
protectedvirtual

Sets the brightness for the landCover layer.

Parameters
brightnessThe brightness of the layer
virtual void makVrv::DtOsgEarthProfileLogic::changeGroundCoverContrast ( osgEarth::Splat::GroundCover *  groundCover,
double  contrast 
)
protectedvirtual

Sets the contrast for the landCover layer.

Parameters
contrastThe contrast of the layer

Friends And Related Function Documentation

friend class DtOsgEarthProfileLogicCreator
friend

Member Data Documentation

boost::signal<void()> makVrv::DtOsgEarthProfileLogic::singal_afterPopulateAllLayers

The singal emit after populate all layers.

DtDe& makVrv::DtOsgEarthProfileLogic::myDe
protected
std::string makVrv::DtOsgEarthProfileLogic::myCurrentOsgEarthFileName
protected
osgEarth::MapNode* makVrv::DtOsgEarthProfileLogic::myMapNode
protected
DtOsgEarthProfileInterface* makVrv::DtOsgEarthProfileLogic::myInterface
protected
DtSignalConnectionManager makVrv::DtOsgEarthProfileLogic::mySignals
protected
std::vector<osgEarth::Extension*> makVrv::DtOsgEarthProfileLogic::myOsgEarthExtensions
protected
GroundCoverLayersVector makVrv::DtOsgEarthProfileLogic::myGroundCoverLayers
protected
GroundCoversVector makVrv::DtOsgEarthProfileLogic::myGroundCovers
protected

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

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)