12 #include "vtdata/ElevationGrid.h"
13 #include "vtdata/HeightField.h"
15 #include "ElevDrawOptions.h"
16 #include "TilingOptions.h"
18 #define SHADING_BIAS 200
44 bool OnSave(
bool progress_callback(
int) = NULL);
50 bool SetExtent(
const DRECT &rect);
51 void GetPropertyText(wxString &str);
52 wxString GetFileExtension();
53 bool AskForSaveFilename();
54 bool GetAreaExtent(
DRECT &rect);
56 int GetMemoryUsed()
const;
57 int MemoryNeededToLoad()
const;
70 bool IsGrid() {
return m_pGrid != NULL; }
71 void SetPreferGZip(
bool val) { m_bPreferGZip = val; }
78 float GetElevation(
const DPoint2 &p);
79 bool GetHeightExtents(
float &fMinHeight,
float &fMaxHeight)
const;
80 bool ImportFromFile(
const wxString &strFileName,
bool progress_callback(
int) = NULL);
81 bool CreateFromPoints(
vtFeatureSet *set,
int iXSize,
int iYSize,
82 float fDistanceRatio);
87 int RemoveElevRange(
float zmin,
float zmax,
const DRECT *area = NULL);
88 int SetUnknown(
float fValue,
const DRECT *area = NULL);
91 bool ImportFromDB(
const char *szFileName,
bool progress_callback(
int));
95 vtTin2d *GetTin() {
return m_pTin; }
96 void MergeSharedVerts(
bool bSilent =
false);
97 void SetupTinTriangleBins(
int target_triangles_per_bin);
100 void SetupBitmap(wxDC *pDC);
102 static void SetupDefaultColors(
ColorMap &cmap);
105 static bool m_bDefaultGZip;
108 static int m_iElevMemLimit;
119 bool m_bBitmapRendered;
124 int m_iImageWidth, m_iImageHeight;
131 FPoint3 LightDirection(
float angle,
float direction);
132 bool MatchTilingToResolution(
const DRECT &original_area,
const DPoint2 &resolution,
133 int &iTileSize,
bool bGrow,
bool bShrink,
DRECT &new_area,
135 bool ElevCacheOpen(
vtElevLayer *pLayer,
const char *fname,
enum vtElevError *err);
139 #endif // ELEVLAYER_H