Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
vtElevLayer Class Reference
Inheritance diagram for vtElevLayer:
vtLayer

Public Member Functions

 vtElevLayer (const DRECT &area, int iColumns, int iRows, bool bFloats, float fScale, const vtProjection &proj)
 
 vtElevLayer (vtElevationGrid *grid)
 
bool GetExtent (DRECT &rect)
 Get the extents.
 
void DrawLayer (wxDC *pDC, vtScaledView *pView)
 
bool TransformCoords (vtProjection &proj)
 Transform the coordinates into another CRS.
 
bool OnSave (bool progress_callback(int)=NULL)
 
bool OnLoad ()
 
void GetProjection (vtProjection &proj)
 Get the CRS.
 
void SetProjection (const vtProjection &proj)
 Set the CRS, which does not reproject.
 
bool SetExtent (const DRECT &rect)
 
void GetPropertyText (wxString &str)
 
wxString GetFileExtension ()
 
bool AskForSaveFilename ()
 
bool GetAreaExtent (DRECT &rect)
 
int GetMemoryUsed () const
 
int MemoryNeededToLoad () const
 
void FreeData ()
 
bool HasData ()
 
void OnLeftDown (BuilderView *pView, UIContext &ui)
 
void OnLeftUp (BuilderView *pView, UIContext &ui)
 
void OnMouseMove (BuilderView *pView, UIContext &ui)
 
void DrawLayerBitmap (wxDC *pDC, vtScaledView *pView)
 
void DrawLayerOutline (wxDC *pDC, vtScaledView *pView)
 
bool AppendDataFrom (vtLayer *pL)
 Merge the contents of another layer (of the same type)
 
void ReRender ()
 
void ReImage ()
 
bool IsGrid ()
 
void SetPreferGZip (bool val)
 
void SetupDefaults ()
 
vtHeightFieldGetHeightField ()
 
void Offset (const DPoint2 &p)
 Shift all the coordinates by a horizontal offset.
 
float GetElevation (const DPoint2 &p)
 
bool GetHeightExtents (float &fMinHeight, float &fMaxHeight) const
 
bool ImportFromFile (const wxString &strFileName, bool progress_callback(int)=NULL)
 
bool CreateFromPoints (vtFeatureSet *set, int iXSize, int iYSize, float fDistanceRatio)
 
void SetGrid (vtElevationGrid *grid)
 
vtElevationGridGetGrid ()
 
int RemoveElevRange (float zmin, float zmax, const DRECT *area=NULL)
 
int SetUnknown (float fValue, const DRECT *area=NULL)
 
void DetermineMeterSpacing ()
 
bool WriteGridOfElevTilePyramids (TilingOptions &opts, BuilderView *pView)
 
bool ImportFromDB (const char *szFileName, bool progress_callback(int))
 
void SetTin (vtTin2d *pTin)
 
vtTin2dGetTin ()
 
void MergeSharedVerts (bool bSilent=false)
 
void SetupTinTriangleBins (int target_triangles_per_bin)
 
void SetupBitmap (wxDC *pDC)
 
void RenderBitmap ()
 
bool NeedsDraw ()
 
- Public Member Functions inherited from vtLayer
 vtLayer (LayerType type)
 
LayerType GetType ()
 
bool SetVisible (bool bVisible)
 
bool GetVisible ()
 
void SetModified (bool bModified)
 
bool GetModified ()
 
void SetSticky (bool bSticky)
 
bool GetSticky ()
 
bool IsNative ()
 
wxString GetImportedFrom ()
 
void SetImportedFrom (const wxString &fname)
 
bool Save (bool progress_callback(int)=NULL)
 
bool SaveAs (const wxString &filename=_T(""), bool progress_callback(int)=NULL)
 
bool Load (const wxString &filename=_T(""))
 
virtual bool CanBeSaved ()
 
virtual wxString GetLayerFilename ()
 
virtual void SetLayerFilename (const wxString &fname)
 
vtString GetExportFilename (const wxString &format_filter)
 
bool GetAreaExtent (DRECT &rect)
 
virtual void OnRightDown (BuilderView *pView, UIContext &ui)
 
virtual void OnRightUp (BuilderView *pView, UIContext &ui)
 
virtual void OnLeftDoubleClick (BuilderView *pView, UIContext &ui)
 
virtual void SetLayerName (const vtString &fname)=0
 
virtual vtString GetLayerName ()=0
 
virtual void SetVisible (bool vis)=0
 
virtual bool GetVisible ()=0
 

Static Public Member Functions

static void SetupDefaultColors (ColorMap &cmap)
 
- Static Public Member Functions inherited from vtLayer
static vtLayerCreateNewLayer (LayerType ltype)
 

Static Public Attributes

static ElevDrawOptions m_draw
 
static bool m_bDefaultGZip = false
 
static int m_iElevMemLimit = -1
 
- Static Public Attributes inherited from vtLayer
static wxArrayString LayerTypeNames
 
static const wxChar * LayerFileExtension []
 

Protected Attributes

vtElevationGridm_pGrid
 
vtTin2dm_pTin
 
bool m_bNeedsDraw
 
bool m_bBitmapRendered
 
bool m_bHasMask
 
float m_fSpacing
 
bool m_bPreferGZip
 
int m_iImageWidth
 
int m_iImageHeight
 
vtBitmapm_pBitmap
 
wxMask * m_pMask
 
- Protected Attributes inherited from vtLayer
wxString m_wsFilename
 
wxString m_wsImportedFrom
 
LayerType m_type
 
bool m_bVisible
 
bool m_bModified
 
bool m_bNative
 
bool m_bSticky
 

Additional Inherited Members

- Protected Member Functions inherited from vtLayer
wxString GetSaveFileDialogFilter ()
 
void SetMessageText (const wxString &msg)
 

Member Function Documentation

void vtElevLayer::DetermineMeterSpacing ( )

Determine the approximate spacing, in meters, between each grid cell, in the X direction. The result is placed in the m_fSpacing member for use in shading.

bool vtElevLayer::HasData ( )

If an elevation layer is waiting to be paged in, then it has some basic information like extents, but no data yet.

bool vtElevLayer::ImportFromDB ( const char *  szFileName,
bool   progress_callbackint 
)

Loads from a "DB" file, which is the format of libMini tilesets tiles.

Returns
true if the file was successfully opened and read.

The documentation for this class was generated from the following files: