|
| 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 |
|
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.