ToolMap
Loading...
Searching...
No Matches
tmAttributionDataPoint Class Reference
Inheritance diagram for tmAttributionDataPoint:
tmAttributionData

Public Member Functions

 tmAttributionDataPoint ()
 Default constructor.
 
 tmAttributionDataPoint (wxArrayLong *selected, DataBaseTM *database)
 Constructor.
 
virtual void Create (wxArrayLong *selected, DataBaseTM *database)
 Function for two step creation.
 
 ~tmAttributionDataPoint ()
 Destructor.
 
virtual bool SetAttributeBasic (AttribObjType_PANEL *panel)
 Basic attribution.
 
virtual bool GetInfoBasic (AttribObjType_PANEL *panel)
 Retrive the values info.
 
virtual bool GetInfoBasic (long oid, wxArrayLong &objid, wxArrayString &objcode, wxArrayString &objname)
 
virtual bool GetAttributionLayersID (const long &geomid, tmLayerValueArray &layersid)
 Get Layer attributed for selected geometry.
 
virtual bool GetAttributionLayersIDFull (const long &geomid, tmLayerValueArray &layersid)
 
- Public Member Functions inherited from tmAttributionData
 tmAttributionData ()
 Default constructor.
 
 tmAttributionData (wxArrayLong *selected, DataBaseTM *database)
 
 ~tmAttributionData ()
 Destructor.
 
virtual void SetDataBaseTable (const wxString &tablename)
 
virtual bool SetAttributeBasicValues (wxArrayLong *values)
 Set Basic attribution.
 
virtual bool CleanAttributesAdvanced (long objectid, PrjDefMemManage *prjdef, PRJDEF_LAYERS_TYPE layertype)
 Clean advanced attribution.
 
virtual bool SetAttributesAdvanced (long objectid, PrjMemLayersArray *layers, const wxArrayString &values)
 Set advanced attribution.
 
virtual bool CopyAttributesBasic (const long &copyfrom)
 Copy attribution between objects.
 
virtual bool GetInfoBasicValues (const long &selected, wxArrayLong &values)
 Get basic attribution values for passed ID.
 
virtual bool GetInfoBasicArray (tmAttributionBasicArray &values)
 Get basic attributions for selected objets.
 
bool GetBasicNameFromID (const tmAttributionBasic &myAttribObj, wxArrayString &txtvalues)
 Get Basic attribution string from database.
 
bool GetConcatenedBasicName (const tmAttributionBasicArray &myAttrib, wxArrayString &concatenedattrib)
 Get Concatened basic attribution values for object.
 
virtual bool GetAttributesAdvanced (long objectid, PrjMemLayersArray *layers, wxArrayString &values)
 Get advanced attribution in all layers for an object ID.
 
bool GetAdvancedAttribution (ProjectDefMemoryLayers *layer, wxArrayString &values, wxArrayString &codes, long selected)
 Get advanced attribution for a layer.
 
bool GetAdvancedAttribution (int layerid, long geomoid, wxArrayString &values)
 

Protected Member Functions

bool GetPanelValues (AttribObjType_PANEL *panel, wxArrayLong &valueids)
 Get all selected values from the panel.
 
void SetPanelValues (AttribObjType_PANEL *panel, const wxArrayLong &valueids)
 Set Panel values.
 
- Protected Member Functions inherited from tmAttributionData
virtual bool IsValid ()
 Verify validity of member objects.
 
void PrepareAttributionStatement (wxString &statement, const wxString &tablename, wxArrayLong *checkedVal)
 Create MySQL statement for attribution.
 
void PrepareCleaningStatement (wxString &statement, const wxString &tablename)
 Create MySQL statement for attribution.
 
void PrepareGetInfoStatement (wxString &statement, const wxString &tablename)
 Create MySQL statement for getting info.
 
void PrepareGetInfoMultipleStatement (wxString &statement, const wxString &tablename)
 Create MySQL statement for getting info.
 
bool PrepareGetAttributionLayersID (const long &geomid, tmLayerValueArray &layersid, const wxString &tablename, int layertype)
 Get Layer attributed for selected geometry.
 
bool _GetInfoBasic (long oid, wxArrayLong &objid, wxArrayString &objcode, wxArrayString &objname, int layertype)
 

Additional Inherited Members

- Static Public Member Functions inherited from tmAttributionData
static bool IsAttributionSimilar (const tmAttributionBasicArray &values)
 Check array for similar attribution.
 
- Protected Attributes inherited from tmAttributionData
wxArrayLong * m_SelIDs
 
DataBaseTMm_pDB
 
wxString m_TableName
 

Constructor & Destructor Documentation

◆ tmAttributionDataPoint() [1/2]

tmAttributionDataPoint::tmAttributionDataPoint ( )

Default constructor.

Use the tmAttributionDataPoint::Create() function

Author
Lucien Schreiber (c) CREALP 2008
Date
06 November 2008

◆ tmAttributionDataPoint() [2/2]

tmAttributionDataPoint::tmAttributionDataPoint ( wxArrayLong *  selected,
DataBaseTM database 
)

Constructor.

Parameters
selectedAdress of an array of selected geometry objects (must be valid)
databaseAdress of a DataBaseTM object
Author
Lucien Schreiber (c) CREALP 2008
Date
06 November 2008

◆ ~tmAttributionDataPoint()

tmAttributionDataPoint::~tmAttributionDataPoint ( )

Destructor.

doesn't do anything actually

Author
Lucien Schreiber (c) CREALP 2008
Date
06 November 2008

Member Function Documentation

◆ Create()

void tmAttributionDataPoint::Create ( wxArrayLong *  selected,
DataBaseTM database 
)
virtual

Function for two step creation.

If using the default constructor, one must use this function for initialization to take place

Parameters
selectedAdress of an array of selected geometry objects (must be valid)
databaseAdress of a DataBaseTM object
Author
Lucien Schreiber (c) CREALP 2008
Date
06 November 2008

Reimplemented from tmAttributionData.

◆ GetAttributionLayersID()

bool tmAttributionDataPoint::GetAttributionLayersID ( const long &  geomid,
tmLayerValueArray &  layersid 
)
virtual

Get Layer attributed for selected geometry.

See tmAttributionData::PrepareGetAttributionLayersID() for description.

Author
Lucien Schreiber (c) CREALP 2009
Date
16 March 2009

Reimplemented from tmAttributionData.

◆ GetAttributionLayersIDFull()

bool tmAttributionDataPoint::GetAttributionLayersIDFull ( const long &  geomid,
tmLayerValueArray &  layersid 
)
virtual

Reimplemented from tmAttributionData.

◆ GetInfoBasic() [1/2]

bool tmAttributionDataPoint::GetInfoBasic ( AttribObjType_PANEL panel)
virtual

Retrive the values info.

Call this function only if there is one feature selected

Parameters
panelAdress of a AttribObjType_PANEL used for setting values to
Returns
true if info where returned (object contain attributes)
Author
Lucien Schreiber (c) CREALP 2008
Date
06 November 2008

Reimplemented from tmAttributionData.

◆ GetInfoBasic() [2/2]

bool tmAttributionDataPoint::GetInfoBasic ( long  oid,
wxArrayLong &  objid,
wxArrayString &  objcode,
wxArrayString &  objname 
)
virtual

Reimplemented from tmAttributionData.

◆ GetPanelValues()

bool tmAttributionDataPoint::GetPanelValues ( AttribObjType_PANEL panel,
wxArrayLong &  valueids 
)
protected

Get all selected values from the panel.

Parameters
valueidsif true was returned, valueids contain all value choosen for attribution
panelAdress of a AttribObjType_PANEL used for getting values from
Returns
true if there is selected values (attribution), false otherwise (cleaning)
Author
Lucien Schreiber (c) CREALP 2008
Date
06 November 2008

◆ SetAttributeBasic()

bool tmAttributionDataPoint::SetAttributeBasic ( AttribObjType_PANEL panel)
virtual

Basic attribution.

This function save the basic attribution data into the database

Parameters
panelAdress of a AttribObjType_PANEL for getting selected values
Returns
true if the attribution was saved sucessfully into the database, false otherwise (error message is sent in debug mode)
Author
Lucien Schreiber (c) CREALP 2008
Date
06 November 2008

Reimplemented from tmAttributionData.

◆ SetPanelValues()

void tmAttributionDataPoint::SetPanelValues ( AttribObjType_PANEL panel,
const wxArrayLong &  valueids 
)
protected

Set Panel values.

Parameters
panelAdress of a AttribObjType_PANEL used for setting values to
valueidscontain all attribution value
Author
Lucien Schreiber (c) CREALP 2008
Date
06 November 2008

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