Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
vtLayer Class Referenceabstract

#include <Layer.h>

Inheritance diagram for vtLayer:
vtAbstractLayer vtElevLayer vtImageLayer vtImageLayer vtRawLayer vtRoadLayer vtStructureLayer vtStructureLayer vtTransitLayer vtUtilityLayer vtWaterLayer

Public Member Functions

 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 GetExtent (DRECT &rect)=0
 Get the extents.
 
virtual void DrawLayer (wxDC *pDC, vtScaledView *pView)=0
 
virtual bool TransformCoords (vtProjection &proj)=0
 Transform the coordinates into another CRS.
 
virtual bool OnSave (bool progress_callback(int)=NULL)=0
 
virtual bool OnLoad ()=0
 
virtual bool AppendDataFrom (vtLayer *pL)=0
 Merge the contents of another layer (of the same type)
 
virtual void GetProjection (vtProjection &proj)=0
 Get the CRS.
 
virtual void SetProjection (const vtProjection &proj)=0
 Set the CRS, which does not reproject.
 
virtual void Offset (const DPoint2 &p)
 Shift all the coordinates by a horizontal offset.
 
virtual bool SetExtent (const DRECT &rect)
 
virtual void GetPropertyText (wxString &str)
 
virtual wxString GetFileExtension ()
 
virtual bool CanBeSaved ()
 
virtual wxString GetLayerFilename ()
 
virtual void SetLayerFilename (const wxString &fname)
 
virtual bool AskForSaveFilename ()
 
vtString GetExportFilename (const wxString &format_filter)
 
bool GetAreaExtent (DRECT &rect)
 
virtual void OnLeftDown (BuilderView *pView, UIContext &ui)
 
virtual void OnLeftUp (BuilderView *pView, UIContext &ui)
 
virtual void OnRightDown (BuilderView *pView, UIContext &ui)
 
virtual void OnRightUp (BuilderView *pView, UIContext &ui)
 
virtual void OnLeftDoubleClick (BuilderView *pView, UIContext &ui)
 
virtual void OnMouseMove (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 vtLayerCreateNewLayer (LayerType ltype)
 

Static Public Attributes

static wxArrayString LayerTypeNames
 
static const wxChar * LayerFileExtension []
 

Protected Member Functions

wxString GetSaveFileDialogFilter ()
 
void SetMessageText (const wxString &msg)
 

Protected Attributes

wxString m_wsFilename
 
wxString m_wsImportedFrom
 
LayerType m_type
 
bool m_bVisible
 
bool m_bModified
 
bool m_bNative
 
bool m_bSticky
 

Detailed Description

A layer is a single blob of data, generally stored in memory and drawn in the main view. Each layer has a type (Raw, Elevation, Image, etc.) and a CRS. vtLayer is an abstract base class for all the layer classes. It defines a set of operations which each layer class may implement.

Simple abstraction class to describe all vtlib terrain layers.

Member Data Documentation

const wxChar * vtLayer::LayerFileExtension
static
Initial value:
=
{
_T(".shp"),
_T(".bt"),
_T(".tif"),
_T(".rmf"),
_T(".vtst"),
_T(".hyd"),
_T(".vf"),
}

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