ToolMap
Loading...
Searching...
No Matches
tmattributiondatalabel.h
1/***************************************************************************
2 tmAttributionDatalabel.h
3 Class for attributing label
4 -------------------
5 copyright : (C) 2008 CREALP Lucien Schreiber
6 ***************************************************************************/
7
8/***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16
17// comment doxygen
18
19#ifndef _TM_ATTRIBUTION_DATA_LABEL_H_
20#define _TM_ATTRIBUTION_DATA_LABEL_H_
21
22// For compilers that support precompilation, includes "wx/wx.h".
23#include <wx/wxprec.h>
24
25// Include wxWidgets' headers
26#ifndef WX_PRECOMP
27#include <wx/wx.h>
28#endif
29
30#include "tmattributiondata.h"
31
33 private:
34 protected:
35 bool GetPanelValues(AttribObjType_PANEL* panel, wxArrayLong& valueids);
36
37 void SetPanelValues(AttribObjType_PANEL* panel, const wxArrayLong& valueids);
38
39 public:
40 // ctor - dtor
42
43 tmAttributionDataLabel(wxArrayLong* selected, DataBaseTM* database);
44
45 virtual void Create(wxArrayLong* selected, DataBaseTM* database);
46
48
49 // attribution
50 virtual bool SetAttributeBasic(AttribObjType_PANEL* panel);
51
52 // info
53 virtual bool GetInfoBasic(AttribObjType_PANEL* panel);
54
55 virtual bool GetInfoBasic(long oid, wxArrayLong& objid, wxArrayString& objcode, wxArrayString& objname);
56
57 // for compatibility
58 virtual bool GetAttributionLayersID(const long& geomid, tmLayerValueArray& layersid);
59
60 virtual bool GetAttributionLayersIDFull(const long& geomid, tmLayerValueArray& layersid);
61};
62
63#endif
Definition attribution_obj_type.h:71
Definition database_tm.h:80
Definition tmattributiondatalabel.h:32
virtual void Create(wxArrayLong *selected, DataBaseTM *database)
Function for two step creation.
Definition tmattributiondatalabel.cpp:49
virtual bool SetAttributeBasic(AttribObjType_PANEL *panel)
Basic attribution.
Definition tmattributiondatalabel.cpp:71
void SetPanelValues(AttribObjType_PANEL *panel, const wxArrayLong &valueids)
Set Panel values.
Definition tmattributiondatalabel.cpp:150
bool GetPanelValues(AttribObjType_PANEL *panel, wxArrayLong &valueids)
Get all selected values from the panel.
Definition tmattributiondatalabel.cpp:102
virtual bool GetInfoBasic(AttribObjType_PANEL *panel)
Retrive the values info.
Definition tmattributiondatalabel.cpp:117
~tmAttributionDataLabel()
Destructor.
Definition tmattributiondatalabel.cpp:60
tmAttributionDataLabel()
Default constructor.
Definition tmattributiondatalabel.cpp:27
virtual bool GetAttributionLayersID(const long &geomid, tmLayerValueArray &layersid)
Get Layer attributed for selected geometry.
Definition tmattributiondatalabel.cpp:161
Class for attributing data.
Definition tmattributiondata.h:43