VR-Forces 4.0.4 Class Documentation
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]

List of all members.

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.

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

Destructor.

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

Get all the current settings from the dialog.

Initialize the dialog with the values in rec.

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

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).

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 ( ) [protected, virtual]

Initializes the dialog with some default cloud values.

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

Update the dialog with the new coordinate system and values.

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


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)