13 #ifndef DtOverlaySettings_H_
14 #define DtOverlaySettings_H_
71 std::vector<std::string> availableRasterLayers();
74 virtual void getTextureScale(
double& x,
double& y)
const;
77 virtual void getTextureOffset(
double& x,
double& y)
const;
81 virtual std::string addRasterLayer(
const std::string& name =
"");
84 virtual bool removeRasterLayer(
const std::string& name);
87 virtual bool renameRasterLayer(
const std::string& oldName,
const std::string& newName);
93 bool rasterTextureEnabled(
const std::string& raster)
const;
96 void setRasterTextureEnabled(
const std::string& raster,
bool enabled);
99 void setRasterTextureWrapMode(
const std::string& raster,
int enabled);
102 int rasterTextureWrapMode(
const std::string& raster)
const;
105 void setRasterTextureBlendMode(
const std::string&,
int);
108 int rasterTextureBlendMode(
const std::string& raster)
const;
111 bool rasterTextureTransformIsSet(
const std::string& raster)
const;
114 void setRasterTextureTransformIsSet(
const std::string& raster,
bool enabled);
117 std::string rasterTextureDefinition(
const std::string& raster)
const;
120 void setRasterTextureDefinition(
const std::string& raster,
const std::string& definition);
123 void getRasterTextureScale(
const std::string& raster,
double& x,
double& y)
const;
126 void getRasterTextureOffset(
const std::string& raster,
double& x,
double& y)
const;
129 void getDatabaseOrigin(
double& x,
double& y,
double& z)
const;
132 void setRasterTextureScale(
const std::string& raster,
double x,
double y);
135 void setRasterTextureOffset(
const std::string& raster,
double x,
double y);
139 void clearRasterTexture(
const std::string& raster,
bool applyAtEnd =
true);
142 void setBlockApplyRasterSettings(
bool);
143 bool blockApplyRasterSettings()
const;
146 int rasterTexturePosition(
const std::string&)
const;
149 int rasterOperation(
const std::string&);
152 bool moveRasterLayer(
const std::string&,
int);
161 bool contourEnabled()
const;
164 bool contourIntermediateLinesEnabled()
const;
167 double contourInterval()
const;
170 double contourThickness()
const;
173 void setContourEnabled(
bool enabled);
176 void setContourIntermediateLinesEnabled(
bool enabled);
179 void setContourInterval(
double interval);
182 void setContourThickness(
double thickness);
190 bool elevationEnabled()
const;
196 void setElevationEnabled(
bool enabled);
204 void applyAllSettings();
205 void applyRasterTextureSettings(
const std::string& raster);
206 void applyContourLinesOverlaySettings();
207 void applyElevationColorOverlaySettings();
208 void applyOriginalTextureState();