ToolMap
Loading...
Searching...
No Matches
tmLayerProperties Class Reference

Storing object of layer type. More...

#include <tmlayerproperties.h>

Inheritance diagram for tmLayerProperties:

Public Member Functions

long GetLayerParentId () const
 
void SetLayerParentId (long mLayerParentId)
 
bool InitFromArray (const wxArrayString &array, bool userelativepath, const wxString &prjpath)
 Init from a string array.
 
void InitSymbology (const wxString &itemBinSymbology)
 
bool InitFromPathAndName (const wxString &path, const wxString &nameext, const wxArrayString &supportedext)
 Init name, path and type member.
 
wxString GetNameDisplay ()
 Return the display name for using in the TOC.
 
wxFileName GetName ()
 
void SetName (const wxFileName &filename)
 
const long GetID () const
 
void SetID (long value)
 
const TM_GIS_SPATIAL_TYPES GetSpatialType () const
 
void SetSpatialType (TM_GIS_SPATIAL_TYPES value)
 
const bool IsVisible () const
 
void SetVisible (bool value)
 
const TOC_GENERIC_NAME GetType () const
 
void SetType (TOC_GENERIC_NAME value)
 
const int GetVertexFlags () const
 
void SetVertexFlags (int value)
 
const bool IsEditing () const
 
void SetEditing (bool value)
 
void SetLabelVisible (bool value)
 
bool IsLabelVisible ()
 
void SetLabelDefinition (const wxString &value)
 
wxString GetLabelDefinition ()
 
tmSymbolGetSymbolRef ()
 
void SetSymbolDirectly (tmSymbol *value)
 
tmSymbolRuleManagerGetSymbolRuleManagerRef ()
 
 tmLayerProperties (tmLayerProperties &layerprop)
 Copy constructor.
 

Detailed Description

Storing object of layer type.

Author
Lucien Schreiber (c) CREALP 2008
Date
07 July 2008

Constructor & Destructor Documentation

◆ tmLayerProperties()

tmLayerProperties::tmLayerProperties ( tmLayerProperties layerprop)

Copy constructor.

Author
Lucien Schreiber (c) CREALP 2008
Date
27 October 2008

Member Function Documentation

◆ GetNameDisplay()

wxString tmLayerProperties::GetNameDisplay ( )

Return the display name for using in the TOC.

Because in some case file name isn't very explicit we sould use this function for getting a good display name (exemple is ESRI binary grid)

Returns
A more explicit name
Author
Lucien Schreiber (c) CREALP 2008
Date
06 August 2008

◆ InitFromArray()

bool tmLayerProperties::InitFromArray ( const wxArrayString &  array,
bool  userelativepath,
const wxString &  prjpath 
)

Init from a string array.

This may be used for initing an tmLayerProperties object from a string array. No verifications are made on the array size

Parameters
arraystring array containing 6 values
Returns
allways TRUE
Author
Lucien Schreiber (c) CREALP 2008
Date
10 July 2008

◆ InitFromPathAndName()

bool tmLayerProperties::InitFromPathAndName ( const wxString &  path,
const wxString &  nameext,
const wxArrayString &  supportedext 
)

Init name, path and type member.

Init member based on path, name (with extension) and a list of supported GIS extension. Those extensions may be retreived using the function bellow.

static wxArrayString GetAllSupportedGISFormatsExtensions()
Returning all extensions in an array string.
Definition tmgisdata.cpp:116
Parameters
pathstring containing the path
nameextstring containing the name and extension
supportedextan array of all supported extension. See code above
Returns
TRUE if name and path aren't empty
Author
Lucien Schreiber (c) CREALP 2008
Date
06 August 2008

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