VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOverlaySettings.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtOverlaySettings.h,v $ $Revision: 1.22 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtOverlaySettings_H_
14 #define DtOverlaySettings_H_
15 
16 #include <vrvCore/vrvCore.h>
19 
20 #include <string>
21 #include <vector>
22 
23 namespace makVrv
24 {
25  class DtTerrainPatch;
26 
35  {
36  public:
37 
38  friend class DtTerrainPatch;
39 
40  protected:
41 
43  explicit DtOverlaySettings(DtTerrainPatch* patch = 0);
44 
49  DtOverlaySettings& operator=( const DtOverlaySettings& orig );
50 
54  void setPatch(DtTerrainPatch* patch);
55 
56  public:
57 
59  DtTerrainPatch* patch();
60 
62  virtual ~DtOverlaySettings();
63 
65  void getRecord(makArchives::DtOverlaySettingsRecord& rec) const;
66 
68  void setFromRecord(const makArchives::DtOverlaySettingsRecord& rec);
69 
71  std::vector<std::string> availableRasterLayers();
72 
74  virtual void getTextureScale(double& x, double& y) const;
75 
77  virtual void getTextureOffset(double& x, double& y) const;
78 
81  virtual std::string addRasterLayer(const std::string& name = "");
82 
84  virtual bool removeRasterLayer(const std::string& name);
85 
87  virtual bool renameRasterLayer(const std::string& oldName, const std::string& newName);
88 
90 
91 
93  bool rasterTextureEnabled(const std::string& raster) const;
94 
96  void setRasterTextureEnabled(const std::string& raster, bool enabled);
97 
99  void setRasterTextureWrapMode(const std::string& raster, int enabled);
100 
102  int rasterTextureWrapMode(const std::string& raster) const;
103 
105  void setRasterTextureBlendMode(const std::string&, int);
106 
108  int rasterTextureBlendMode(const std::string& raster) const;
109 
111  bool rasterTextureTransformIsSet(const std::string& raster) const;
112 
114  void setRasterTextureTransformIsSet(const std::string& raster, bool enabled);
115 
117  std::string rasterTextureDefinition(const std::string& raster) const;
118 
120  void setRasterTextureDefinition(const std::string& raster, const std::string& definition);
121 
123  void getRasterTextureScale(const std::string& raster, double& x, double& y) const;
124 
126  void getRasterTextureOffset(const std::string& raster, double& x, double& y) const;
127 
129  void getDatabaseOrigin(double& x, double& y, double& z) const;
130 
132  void setRasterTextureScale(const std::string& raster, double x, double y);
133 
135  void setRasterTextureOffset(const std::string& raster, double x, double y);
136 
139  void clearRasterTexture(const std::string& raster, bool applyAtEnd = true);
140 
142  void setBlockApplyRasterSettings(bool);
143  bool blockApplyRasterSettings() const;
144 
146  int rasterTexturePosition(const std::string&) const;
147 
149  int rasterOperation(const std::string&);
150 
152  bool moveRasterLayer(const std::string&, int);
153 
155 
156 
158 
159 
161  bool contourEnabled() const;
162 
164  bool contourIntermediateLinesEnabled() const;
165 
167  double contourInterval() const;
168 
170  double contourThickness() const;
171 
173  void setContourEnabled(bool enabled);
174 
176  void setContourIntermediateLinesEnabled(bool enabled);
177 
179  void setContourInterval(double interval);
180 
182  void setContourThickness(double thickness);
184 
185 
187 
188 
190  bool elevationEnabled() const;
191 
193  const makArchives::DtOverlaySettingsRecord::ControlPointList& elevationGradient() const;
194 
196  void setElevationEnabled(bool enabled);
197 
199  void setElevationGradient(const makArchives::DtOverlaySettingsRecord::ControlPointList& gradient);
201 
202  protected:
203 
204  void applyAllSettings();
205  void applyRasterTextureSettings(const std::string& raster);
206  void applyContourLinesOverlaySettings();
207  void applyElevationColorOverlaySettings();
208  void applyOriginalTextureState();
209 
210  protected:
211 
215  };
216 }
217 
218 #endif
219 

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)