19#ifndef _TM_LAYERPROPERTIES_H_
20#define _TM_LAYERPROPERTIES_H_
30#include <wx/filename.h>
31#include <wx/mstream.h>
32#include <wx/treectrl.h>
34#include "tmlayerpropertiesdef.h"
49 wxFileName m_LayerName;
51 long m_layer_parent_ID;
54 long GetLayerParentId()
const;
55 void SetLayerParentId(
long mLayerParentId);
58 TM_GIS_SPATIAL_TYPES m_LayerSpatialType;
60 TOC_GENERIC_NAME m_LayerType;
62 int m_LayerVertexFlags;
66 bool m_LabelIsVisible;
67 wxString m_LabelDefinition;
69 void InitMemberValues();
73 bool InitFromArray(
const wxArrayString& array,
bool userelativepath,
const wxString& prjpath);
75 void InitSymbology(
const wxString& itemBinSymbology);
77 bool InitFromPathAndName(
const wxString& path,
const wxString& nameext,
const wxArrayString& supportedext);
83 void SetName(
const wxFileName& filename) {
84 m_LayerName = filename;
87 inline const long GetID()
const;
89 void SetID(
long value);
91 inline const TM_GIS_SPATIAL_TYPES GetSpatialType()
const;
93 void SetSpatialType(TM_GIS_SPATIAL_TYPES value);
95 inline const bool IsVisible()
const;
97 void SetVisible(
bool value);
99 inline const TOC_GENERIC_NAME GetType()
const;
101 void SetType(TOC_GENERIC_NAME value);
103 inline const int GetVertexFlags()
const;
105 void SetVertexFlags(
int value);
107 inline const bool IsEditing()
const;
109 void SetEditing(
bool value);
111 void SetLabelVisible(
bool value) {
112 m_LabelIsVisible = value;
115 bool IsLabelVisible() {
116 return m_LabelIsVisible;
119 void SetLabelDefinition(
const wxString& value) {
120 m_LabelDefinition = value;
123 wxString GetLabelDefinition() {
124 return m_LabelDefinition;
129 void SetSymbolDirectly(
tmSymbol* value);
132 return m_SymbolRulesManager;
145inline const long tmLayerProperties::GetID()
const {
149inline const TM_GIS_SPATIAL_TYPES tmLayerProperties::GetSpatialType()
const {
150 return m_LayerSpatialType;
153inline const bool tmLayerProperties::IsVisible()
const {
154 return m_LayerVisible;
157inline const TOC_GENERIC_NAME tmLayerProperties::GetType()
const {
161inline const int tmLayerProperties::GetVertexFlags()
const {
162 return m_LayerVertexFlags;
165inline const bool tmLayerProperties::IsEditing()
const {
166 return m_LayerEditing;
Storing object of layer type.
Definition tmlayerproperties.h:47
wxString GetNameDisplay()
Return the display name for using in the TOC.
Definition tmlayerproperties.cpp:192
bool InitFromPathAndName(const wxString &path, const wxString &nameext, const wxArrayString &supportedext)
Init name, path and type member.
Definition tmlayerproperties.cpp:150
bool InitFromArray(const wxArrayString &array, bool userelativepath, const wxString &prjpath)
Init from a string array.
Definition tmlayerproperties.cpp:52
Symbol Rule manager.
Definition tmsymbolrule.h:114