ToolMap
Loading...
Searching...
No Matches
tmattributiondatapoint.h
1/***************************************************************************
2 tmAttributionDataPoint.h
3 Class for attributing Point
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_POINT_H_
20#define _TM_ATTRIBUTION_DATA_POINT_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 tmAttributionDataPoint(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 virtual bool GetAttributionLayersID(const long& geomid, tmLayerValueArray& layersid);
58
59 virtual bool GetAttributionLayersIDFull(const long& geomid, tmLayerValueArray& layersid);
60};
61
62#endif
Definition attribution_obj_type.h:71
Definition database_tm.h:80
Definition tmattributiondatapoint.h:32
tmAttributionDataPoint()
Default constructor.
Definition tmattributiondatapoint.cpp:27
virtual bool GetAttributionLayersID(const long &geomid, tmLayerValueArray &layersid)
Get Layer attributed for selected geometry.
Definition tmattributiondatapoint.cpp:162
void SetPanelValues(AttribObjType_PANEL *panel, const wxArrayLong &valueids)
Set Panel values.
Definition tmattributiondatapoint.cpp:151
virtual bool GetInfoBasic(AttribObjType_PANEL *panel)
Retrive the values info.
Definition tmattributiondatapoint.cpp:116
virtual bool SetAttributeBasic(AttribObjType_PANEL *panel)
Basic attribution.
Definition tmattributiondatapoint.cpp:71
virtual void Create(wxArrayLong *selected, DataBaseTM *database)
Function for two step creation.
Definition tmattributiondatapoint.cpp:49
~tmAttributionDataPoint()
Destructor.
Definition tmattributiondatapoint.cpp:60
bool GetPanelValues(AttribObjType_PANEL *panel, wxArrayLong &valueids)
Get all selected values from the panel.
Definition tmattributiondatapoint.cpp:101
Class for attributing data.
Definition tmattributiondata.h:43