VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtCloudLayerDialogLogic.h
Go to the documentation of this file.
1 /********************************************************************
2  * Copyright (c) 2011 MaK Technologies, Inc.
3  * All rights reserved.
4  ********************************************************************/
5 /********************************************************************
6  * $RCSfile: DtCloudLayerDialogLogic.h,v $ $Revision: 1.19 $ $State: Exp $
7  ********************************************************************/
8 
12 
13 #pragma once
15 
16 #include <vrvCore/DtCloudLayer.h>
19 
21 
22 namespace makVrv
23 {
28  {
29  public:
30 
33 
35  virtual ~DtCloudLayerDialogLogic();
36 
39  virtual void onCoordSysChanged( const DtUnicode& s );
40 
43  virtual void onCloudTypeChanged(DtCloudTypeMapper::CloudType type);
44 
46  virtual const DtCloudLayer* cloudLayer();
47 
49  virtual void editLayer(const DtCloudLayer& layer);
50 
53  virtual void centerOnObserver();
54 
56  double currentLayerAltitude() const;
57 
59  virtual void setCurrentLayerAltitude(double alt);
60 
63  virtual void centerOnTerrain();
64 
66  virtual void setPositionFromDisplayUnitStrings(DtUnicode x, DtUnicode y, DtUnicode z);
67 
69  virtual void setWidthFromDisplayUnit(double duValue);
70 
72  virtual void setLengthFromDisplayUnit(double duValue);
73 
75  virtual void setThicknessFromDisplayUnit(double duValue);
76 
78  virtual void setDensity(double value);
79 
81  virtual void setInfinite(bool isInfinite);
82 
83  protected:
84 
87 
89  virtual void initGui();
90 
94  void updateCloudLayerTypeProperties();
95 
98  void updateCloudLayerPositionProperties();
99 
101  void updateCloudLayerSizeProperties();
102 
103 // //! \brief Helper function to translate from the cloud type strings
104 // //! from DtEnvironment to a more user friendly type
105 // QString translateCloudType(const std::string& cloudType);
106 //
107 // //! \brief Helper function to translate from the user friendly cloud
108 // //! string to the ones DtEnvironment expects
109 // std::string untranslateCloudType(const QString& cloudType);
110 
113  DtVector convertStringCoords(DtUnicode x, DtUnicode y, DtUnicode z);
114 
115  protected:
121  };
122 
125  {
126  public:
127 
129  static DtCloudLayerDialogLogicCreator& instance(DtDe& de);
130 
132  static void registerInstance(DtDe& de, DtCloudLayerDialogLogicCreator*);
133 
135  virtual DtCloudLayerDialogLogic* create( DtDe& de,
137  };
138 }

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)