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

Public Member Functions

bool OnSave (bool progress_callback(int)=NULL)
 
bool OnLoad ()
 
bool AppendDataFrom (vtLayer *pL)
 Merge the contents of another layer (of the same type)
 
void GetPropertyText (wxString &str)
 
bool CanBeSaved ()
 
wxString GetFileExtension ()
 
void SetVegType (VegLayerType type)
 
VegLayerType GetVegType ()
 
void AddElementsFromLULC (vtLULCFile *pLULC)
 
bool AddElementsFromSHP_Polys (const wxString &filename, const vtProjection &proj, int fieldindex, VegImportFieldType datatype)
 
bool AddElementsFromSHP_Points (const wxString &filename, const vtProjection &proj, VegPointOptions &opt)
 
float FindDensity (const DPoint2 &p)
 
int FindBiotype (const DPoint2 &p)
 
bool ExportToSHP (const char *fname)
 
vtPlantInstanceArrayGetPIA ()
 
vtFeatureSetPolygonGetPS ()
 
- Public Member Functions inherited from vtRawLayer
void SetGeomType (OGRwkbGeometryType type)
 
OGRwkbGeometryType GetGeomType ()
 
vtFeatureSetGetFeatureSet ()
 
void SetFeatureSet (vtFeatureSet *pSet)
 
bool GetExtent (DRECT &rect)
 Get the extents.
 
void DrawLayer (wxDC *pDC, vtScaledView *pView)
 
bool TransformCoords (vtProjection &proj)
 Transform the coordinates into another CRS.
 
void GetProjection (vtProjection &proj)
 Get the CRS.
 
void SetProjection (const vtProjection &proj)
 Set the CRS, which does not reproject.
 
void Offset (const DPoint2 &p)
 Shift all the coordinates by a horizontal offset.
 
void OnLeftDown (BuilderView *pView, UIContext &ui)
 
void AddPoint (const DPoint2 &p2)
 
bool CreateFromOGRLayer (OGRLayer *pOGRLayer)
 
bool ReadFeaturesFromWFS (const char *szServerURL, const char *layername)
 
bool LoadWithOGR (const char *filename, bool progress_callback(int)=NULL)
 
void ScaleHorizontally (double factor)
 
void ScaleVertically (double factor)
 
void OffsetVertically (double amount)
 
void SetDrawStyle (const DrawStyle &style)
 
DrawStyle GetDrawStyle ()
 
vtProjectionGetAtProjection ()
 
wxString GetLayerFilename ()
 
void SetLayerFilename (const wxString &fname)
 
void ReadGeoURL ()
 
bool ImportFromXML (const char *fname)
 
void CreateIndex (int iSize)
 
void FreeIndex ()
 
- 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 SetExtent (const DRECT &rect)
 
virtual bool AskForSaveFilename ()
 
vtString GetExportFilename (const wxString &format_filter)
 
bool GetAreaExtent (DRECT &rect)
 
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
 

Public Attributes

vtProjection m_proj
 

Protected Attributes

VegLayerType m_VLType
 
int m_field_density
 
int m_field_biotype
 
- Protected Attributes inherited from vtRawLayer
vtFeatureSetm_pSet
 
DrawStyle m_DrawStyle
 
bool m_bExtentComputed
 
DRECT m_Extents
 
- 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

- Static Public Member Functions inherited from vtLayer
static vtLayerCreateNewLayer (LayerType ltype)
 
- Static Public Attributes inherited from vtLayer
static wxArrayString LayerTypeNames
 
static const wxChar * LayerFileExtension []
 
- Protected Member Functions inherited from vtLayer
wxString GetSaveFileDialogFilter ()
 
void SetMessageText (const wxString &msg)
 

Member Function Documentation

bool vtVegLayer::AddElementsFromSHP_Points ( const wxString &  filename,
const vtProjection proj,
VegPointOptions opt 
)

Extract point data from a SHP/DBF file and intepret it as a vegetation layer. This produces a set of vegetation instances.

The 'opt' parameter contains a description of how the fields in the imported file are to be interpreted.

bool vtVegLayer::AddElementsFromSHP_Polys ( const wxString &  filename,
const vtProjection proj,
int  iField,
VegImportFieldType  datatype 
)

Extract data from a SHP/DBF file and intepret it as a vegetation layer. This produces a single-valued polygonal coverage.

'iField' is the index of the field from which to pull the single value. 'datatype' is either 0, 1, or 2 for whether the indicated field should be intepreted as a density value (double), the name of a biotype (string), or the ID of a biotype (int).


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