ToolMap
Loading...
Searching...
No Matches
tmAttributionManager Class Reference

Central point for object attribution. More...

#include <tmattributionmanager.h>

Inheritance diagram for tmAttributionManager:

Public Member Functions

 tmAttributionManager (wxWindow *parent, TocCtrl *toc, AttribObjType_PANEL *panel, tmSelectedDataMemory *selection)
 Constructor.
 
 ~tmAttributionManager ()
 Destructor.
 
bool InitAttributionManager (DataBaseTM *pDb, PrjDefMemManage *memprojdef)
 Init attribution manager.
 
void UnInitAttributionManager ()
 Uninit attribution manager.
 
int GetSelectionCount ()
 
bool AAttributionButtonShow ()
 Advanced Attribution button is pressed.
 
void AAttributionBatchShow ()
 
void DisplayInformationsWnd ()
 Show the information dialog if not visible.
 

Static Public Member Functions

static tmAttributionDataCreateAttributionData (int type)
 Create an object of tmAttributionData type.
 

Detailed Description

Central point for object attribution.

This class deals with the attribution process and should know following object :

  • The TOC, to get the actual layer type
  • The Attibution Panel
  • The Selected data
  • The database
    Author
    Lucien Schreiber (c) CREALP 2008
    Date
    04 November 2008

Constructor & Destructor Documentation

◆ tmAttributionManager()

tmAttributionManager::tmAttributionManager ( wxWindow *  parent,
TocCtrl toc,
AttribObjType_PANEL panel,
tmSelectedDataMemory selection 
)

Constructor.

Parameters
parentAdress of the parent, used for event processing
tocAdress of a #tmTOCCtrl
panelAdress of a AttribObjType_PANEL object
selectionAdress of a tmSelectedDataMemory object
Author
Lucien Schreiber (c) CREALP 2008
Date
04 November 2008

◆ ~tmAttributionManager()

tmAttributionManager::~tmAttributionManager ( )

Destructor.

Doesn't do anything actually

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

Member Function Documentation

◆ AAttributionButtonShow()

bool tmAttributionManager::AAttributionButtonShow ( )

Advanced Attribution button is pressed.

Returns
true if the advanced attribution succeed, false if cancelled or if an error occur
Author
Lucien Schreiber (c) CREALP 2009
Date
11 March 2009

◆ CreateAttributionData()

tmAttributionData * tmAttributionManager::CreateAttributionData ( int  type)
static

Create an object of tmAttributionData type.

This function may be used for getting a valid pointer on one of the tmAttributionData derived class.

Parameters
typeone of the following :
  • TOC_NAME_LINES
  • TOC_NAME_LABELS
  • TOC_NAME_POINTS
  • TOC_NAME_ANNOTATION
Returns
A valid pointer of type tmAttributionData class
Author
Lucien Schreiber (c) CREALP 2008
Date
06 November 2008

◆ DisplayInformationsWnd()

void tmAttributionManager::DisplayInformationsWnd ( )

Show the information dialog if not visible.

If the informations windows was allready visible then we don't do anything

Author
Lucien Schreiber (c) CREALP 2009
Date
07 April 2009

◆ InitAttributionManager()

bool tmAttributionManager::InitAttributionManager ( DataBaseTM pDb,
PrjDefMemManage memprojdef 
)

Init attribution manager.

This function should be the first called for beeing able to use the attibution manager

Returns
true if Database, TOC, selection data, and panel are valid
Author
Lucien Schreiber (c) CREALP 2008
Date
04 November 2008

◆ UnInitAttributionManager()

void tmAttributionManager::UnInitAttributionManager ( )

Uninit attribution manager.

Mark the attribution manager as not valid.

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

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