VR-Forces 4.1.1 Class Documentation
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
makVrv::DtCloudLayerDialogLogic Class Reference

Instances of DtCloudLayerDialogLogic control DtCloudLayerDialogInterfaces. More...

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

Public Member Functions

virtual ~DtCloudLayerDialogLogic ()
 Destructor.
virtual void onCoordSysChanged (const QString &s)
 Called when the user changes the coordinate system.
virtual void onCloudTypeChanged (const QString &type)
 Called when the user changes the cloud type.
virtual const
makArchives::DtCloudLayerRecord
record ()
 Get all the current settings from the dialog.
virtual void editLayer (const makArchives::DtCloudLayerRecord &rec)
 Initialize the dialog with the values in rec.
virtual void centerOnObserver ()
 Set the coordinates to those of the observer while maintaining altitude.
double currentLayerAltitude () const
 Returns the altitude of the current cloud layer.
virtual void setCurrentLayerAltitude (double alt)
 Changes the current layers altitude (based upon it's geodetic location).
virtual void centerOnTerrain ()
 Set the coordinates to the center of the terrain while maintaining altitude.
virtual void setPositionFromDisplayUnitStrings (QString x, QString y, QString z)
 Set the position of the cloud layer from x,y,z strings.
virtual void setWidthFromDisplayUnit (double duValue)
 Set the layer width from a display unit value.
virtual void setLengthFromDisplayUnit (double duValue)
 Set the layer length from a display unit value.
virtual void setThicknessFromDisplayUnit (double duValue)
 Set the layer thickness from a display unit value.
virtual void setDensity (double value)
 Set the layer density from a value.
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor.
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor.

Protected Member Functions

 DtCloudLayerDialogLogic (DtDe &de, DtCloudLayerDialogInterface *iFace)
 Constructor (protected - use ::create() )
virtual void initGui ()
 Initializes the dialog with some default cloud values.
void updateCloudLayerTypeProperties ()
 Update the cloud image, description, and default width, length, thickness, density, and altitude for the particular cloud type.
void updateCloudLayerPositionProperties ()
 Update the dialog with the new coordinate system and values.
void updateCloudLayerSizeProperties ()
 Update the dialog with the given cloud property values.
QString translateCloudType (const std::string &cloudType)
 Helper function to translate from the cloud type strings from DtEnvironment to a more user friendly type.
std::string untranslateCloudType (const QString &cloudType)
 Helper function to translate from the user friendly cloud string to the ones DtEnvironment expects.
DtVector convertStringCoords (QString x, QString y, QString z)
 Get the coordinates from the dialog and convert to local coordinates if necessary.

Protected Attributes

DtDemyDe
DtSignalConnectionManager mySignals
DtCloudLayerDialogInterfacemyInterface
makArchives::DtDisplayUnitsSettingsRecord::CoordSys myCoordSys
makArchives::DtCloudLayerRecord myCloudLayerRecord

Friends

class DtCloudLayerDialogLogicCreator
 Allow the creator to create this logic class.

Detailed Description

Instances of DtCloudLayerDialogLogic control DtCloudLayerDialogInterfaces.

The logic for controlling the DtCloudLayerDialog

Constructor & Destructor Documentation

virtual makVrv::DtCloudLayerDialogLogic::~DtCloudLayerDialogLogic ( )
virtual

Destructor.

makVrv::DtCloudLayerDialogLogic::DtCloudLayerDialogLogic ( DtDe de,
DtCloudLayerDialogInterface iFace 
)
protected

Constructor (protected - use ::create() )

Member Function Documentation

virtual void makVrv::DtCloudLayerDialogLogic::onCoordSysChanged ( const QString &  s)
virtual

Called when the user changes the coordinate system.

Calls updateCoodinateSystem to do all the work

virtual void makVrv::DtCloudLayerDialogLogic::onCloudTypeChanged ( const QString &  type)
virtual

Called when the user changes the cloud type.

Calls updatePreview to do all the work

virtual const makArchives::DtCloudLayerRecord* makVrv::DtCloudLayerDialogLogic::record ( )
virtual

Get all the current settings from the dialog.

virtual void makVrv::DtCloudLayerDialogLogic::editLayer ( const makArchives::DtCloudLayerRecord rec)
virtual

Initialize the dialog with the values in rec.

virtual void makVrv::DtCloudLayerDialogLogic::centerOnObserver ( )
virtual

Set the coordinates to those of the observer while maintaining altitude.

double makVrv::DtCloudLayerDialogLogic::currentLayerAltitude ( ) const

Returns the altitude of the current cloud layer.

virtual void makVrv::DtCloudLayerDialogLogic::setCurrentLayerAltitude ( double  alt)
virtual

Changes the current layers altitude (based upon it's geodetic location).

virtual void makVrv::DtCloudLayerDialogLogic::centerOnTerrain ( )
virtual

Set the coordinates to the center of the terrain while maintaining altitude.

virtual void makVrv::DtCloudLayerDialogLogic::setPositionFromDisplayUnitStrings ( QString  x,
QString  y,
QString  z 
)
virtual

Set the position of the cloud layer from x,y,z strings.

virtual void makVrv::DtCloudLayerDialogLogic::setWidthFromDisplayUnit ( double  duValue)
virtual

Set the layer width from a display unit value.

virtual void makVrv::DtCloudLayerDialogLogic::setLengthFromDisplayUnit ( double  duValue)
virtual

Set the layer length from a display unit value.

virtual void makVrv::DtCloudLayerDialogLogic::setThicknessFromDisplayUnit ( double  duValue)
virtual

Set the layer thickness from a display unit value.

virtual void makVrv::DtCloudLayerDialogLogic::setDensity ( double  value)
virtual

Set the layer density from a value.

virtual void makVrv::DtCloudLayerDialogLogic::initGui ( )
protectedvirtual

Initializes the dialog with some default cloud values.

void makVrv::DtCloudLayerDialogLogic::updateCloudLayerTypeProperties ( )
protected

Update the cloud image, description, and default width, length, thickness, density, and altitude for the particular cloud type.

void makVrv::DtCloudLayerDialogLogic::updateCloudLayerPositionProperties ( )
protected

Update the dialog with the new coordinate system and values.

void makVrv::DtCloudLayerDialogLogic::updateCloudLayerSizeProperties ( )
protected

Update the dialog with the given cloud property values.

QString makVrv::DtCloudLayerDialogLogic::translateCloudType ( const std::string &  cloudType)
protected

Helper function to translate from the cloud type strings from DtEnvironment to a more user friendly type.

std::string makVrv::DtCloudLayerDialogLogic::untranslateCloudType ( const QString &  cloudType)
protected

Helper function to translate from the user friendly cloud string to the ones DtEnvironment expects.

DtVector makVrv::DtCloudLayerDialogLogic::convertStringCoords ( QString  x,
QString  y,
QString  z 
)
protected

Get the coordinates from the dialog and convert to local coordinates if necessary.

Friends And Related Function Documentation

friend class DtCloudLayerDialogLogicCreator
friend

Allow the creator to create this logic class.

Member Data Documentation

DtDe& makVrv::DtCloudLayerDialogLogic::myDe
protected
DtSignalConnectionManager makVrv::DtCloudLayerDialogLogic::mySignals
protected
DtCloudLayerDialogInterface* makVrv::DtCloudLayerDialogLogic::myInterface
protected
makArchives::DtDisplayUnitsSettingsRecord::CoordSys makVrv::DtCloudLayerDialogLogic::myCoordSys
protected
makArchives::DtCloudLayerRecord makVrv::DtCloudLayerDialogLogic::myCloudLayerRecord
protected

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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)