ToolMap
Loading...
Searching...
No Matches
tmattributiondataline.h
1/***************************************************************************
2 tmAttributionDataLine.h
3 Class for attributing line
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_LINE_H_
20#define _TM_ATTRIBUTION_DATA_LINE_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 tmAttributionDataLine(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 // copy attribution
52 // virtual bool CopyAttributesBasic (const long & copyfrom,
53 // const wxArrayLong & copyto);
54
55 // info
56 virtual bool GetInfoBasic(AttribObjType_PANEL* panel);
57
58 virtual bool GetInfoBasic(long oid, wxArrayLong& objid, wxArrayString& objcode, wxArrayString& objname);
59
60 // virtual bool GetInfoBasicValues (const long & selected,
61 // wxArrayLong & values);
62 virtual bool GetAttributionLayersID(const long& geomid, tmLayerValueArray& layersid);
63
64 virtual bool GetAttributionLayersIDFull(const long& geomid, tmLayerValueArray& layersid);
65};
66
67#endif
Definition attribution_obj_type.h:71
Definition database_tm.h:80
Definition tmattributiondataline.h:32
tmAttributionDataLine()
Default constructor.
Definition tmattributiondataline.cpp:27
virtual void Create(wxArrayLong *selected, DataBaseTM *database)
Function for two step creation.
Definition tmattributiondataline.cpp:49
virtual bool GetAttributionLayersID(const long &geomid, tmLayerValueArray &layersid)
Get Layer attributed for selected geometry.
Definition tmattributiondataline.cpp:162
virtual bool SetAttributeBasic(AttribObjType_PANEL *panel)
Basic attribution.
Definition tmattributiondataline.cpp:71
~tmAttributionDataLine()
Destructor.
Definition tmattributiondataline.cpp:60
bool GetPanelValues(AttribObjType_PANEL *panel, wxArrayLong &valueids)
Get all selected values from the panel.
Definition tmattributiondataline.cpp:101
void SetPanelValues(AttribObjType_PANEL *panel, const wxArrayLong &valueids)
Set Panel values.
Definition tmattributiondataline.cpp:151
virtual bool GetInfoBasic(AttribObjType_PANEL *panel)
Retrive the values info.
Definition tmattributiondataline.cpp:119
Class for attributing data.
Definition tmattributiondata.h:43