ToolMap
Loading...
Searching...
No Matches
AttribObjType_PANEL Class Reference
Inheritance diagram for AttribObjType_PANEL:
ManagedAuiWnd

Public Member Functions

 AttribObjType_PANEL (wxWindow *parent, wxAuiManager *AuiManager)
 
bool UpdateObjectPointList (DataBaseTM *pDB)
 Update items in the object point list.
 
bool UpdateObjectPolyList (DataBaseTM *pDB)
 Update items in the object polygon list.
 
bool UpdateObjectLineList (DataBaseTM *pDB)
 Update items in the object line list.
 
void SetDataBaseToList (DataBaseTM *pDB)
 Pass database to check box list.
 
void SetAttributeBtn (int nbfeatures, bool editmode)
 Set the text for the button.
 
void SetInfoBtn (int nbfeatures)
 Enable or disable the Info button.
 
void SetVisibleNotebook (TOC_GENERIC_NAME notebooktype)
 Set visible notebook.
 
TOC_GENERIC_NAME GetVisibleNotebook ()
 Get visible notebook page.
 
int GetSelectedValues (TOC_GENERIC_NAME panel_name, wxArrayLong &values, bool panel_freq=false)
 Get checked values from lists.
 
void SetSelectedValues (TOC_GENERIC_NAME panel_name, const wxArrayLong &values, bool panel_freq=false)
 Set checked values to the lists.
 
bool IsAutoDisplayAttributeChecked ()
 Get Status of Auto display attributes checkbox.
 
bool IsEmptyListValuesRequired ()
 
bool IsFullAttributionEnabled ()
 
void EmptyListValues ()
 Clear all attributes set when called.
 
void ResetFilterFields ()
 
void OnDisplayAttributesAuto (wxCommandEvent &event)
 Called when Auto Display Attributes is enabled.
 
void OnEmptyListAffterAttributes (wxCommandEvent &event)
 Switch status of cleaning attribution each time called.
 
void OnFullAttribution (wxCommandEvent &event)
 
- Public Member Functions inherited from ManagedAuiWnd
 ManagedAuiWnd (wxAuiManager *AuiManager)
 
void AddManagedPane (wxWindow *window, const wxAuiPaneInfo &paneinfo, bool bShow=FALSE)
 
void ShowPanel ()
 
void HidePanel ()
 
bool IsPanelShown ()
 

Public Attributes

tmCheckListBoxRankm_pObjList_PT_Freq
 
tmCheckListBoxRankm_pObjList_PT_NoFreq
 
tmCheckListBoxRankm_pObjList_PLG_Freq
 
tmCheckListBoxRankm_pObjList_PLG_NoFreq
 
tmCheckListBoxRankm_pObjList_L_Freq
 
tmCheckListBoxRankm_pObjList_L_NoFreq
 

Additional Inherited Members

- Protected Member Functions inherited from ManagedAuiWnd
void InitValues ()
 
- Protected Attributes inherited from ManagedAuiWnd
wxAuiManager * m_AuiMgr
 
wxString m_AuiPanelName
 

Member Function Documentation

◆ EmptyListValues()

void AttribObjType_PANEL::EmptyListValues ( )

Clear all attributes set when called.

Author
Lucien Schreiber (c) CREALP 2009
Date
13 February 2009

◆ GetSelectedValues()

int AttribObjType_PANEL::GetSelectedValues ( TOC_GENERIC_NAME  panel_name,
wxArrayLong &  values,
bool  panel_freq = false 
)

Get checked values from lists.

Parameters
panel_nameone of the TOC_GENERIC_NAME. Allowed values are :
  • TOC_NAME_LINES
  • TOC_NAME_POINTS
  • TOC_NAME_LABELS
valuesreturn all ids of checked values
panel_freqif true, get values for Frequent lines. Usefull only if panel_name = TOC_NAME_LINES
Returns
number of values checked
Author
Lucien Schreiber (c) CREALP 2008
Date
06 November 2008

◆ GetVisibleNotebook()

TOC_GENERIC_NAME AttribObjType_PANEL::GetVisibleNotebook ( )

Get visible notebook page.

Return the selected notebook page.

Returns
One of the following values :
  • TOC_NAME_LINES
  • TOC_NAME_POINTS
  • TOC_NAME_LABELS
  • TOC_NAME_ANNOTATIONS
  • TOC_NAME_UNKNOWN in case of error
Author
Lucien Schreiber (c) CREALP 2008
Date
05 November 2008

◆ IsAutoDisplayAttributeChecked()

bool AttribObjType_PANEL::IsAutoDisplayAttributeChecked ( )

Get Status of Auto display attributes checkbox.

Returns
true if "Auto Display Attribute" check box is checked, false otherwise
Author
Lucien Schreiber (c) CREALP 2008
Date
07 November 2008

◆ OnDisplayAttributesAuto()

void AttribObjType_PANEL::OnDisplayAttributesAuto ( wxCommandEvent &  event)

Called when Auto Display Attributes is enabled.

Switch state of Auto dispaly attributes each time this is called

Author
Lucien Schreiber (c) CREALP 2008
Date
09 December 2008

◆ OnEmptyListAffterAttributes()

void AttribObjType_PANEL::OnEmptyListAffterAttributes ( wxCommandEvent &  event)

Switch status of cleaning attribution each time called.

Author
Lucien Schreiber (c) CREALP 2009
Date
13 February 2009

◆ SetAttributeBtn()

void AttribObjType_PANEL::SetAttributeBtn ( int  nbfeatures,
bool  editmode 
)

Set the text for the button.

This function allows a visual indication about the numer of item selected. Bellow are the possible case based on the number of selected features :

  • 0 : Button is disabled
  • 1 : Button is normal
  • 1+ : Button is bold and number of features are specified next to the label
    Parameters
    nbfeaturesNumber of features selected
    editmodeset to true if we are in edit mode
    Author
    Lucien Schreiber (c) CREALP 2008
    Date
    04 November 2008

◆ SetDataBaseToList()

void AttribObjType_PANEL::SetDataBaseToList ( DataBaseTM pDB)

Pass database to check box list.

Parameters
pDBpointer to a valid database instance
Author
Lucien Schreiber (c) CREALP 2008
Date
21 May 2008

◆ SetInfoBtn()

void AttribObjType_PANEL::SetInfoBtn ( int  nbfeatures)

Enable or disable the Info button.

Based on the number of features passed, this function enable or not the info button :

  • 0 features, button disabled
  • 1 feature, button enabled
  • 1+ feature, button disabled
    Parameters
    nbfeaturesNumber of selected features
    Author
    Lucien Schreiber (c) CREALP 2008
    Date
    07 November 2008

◆ SetSelectedValues()

void AttribObjType_PANEL::SetSelectedValues ( TOC_GENERIC_NAME  panel_name,
const wxArrayLong &  values,
bool  panel_freq = false 
)

Set checked values to the lists.

Parameters
panel_nameone of the TOC_GENERIC_NAME. Allowed values are :
  • TOC_NAME_LINES
  • TOC_NAME_POINTS
  • TOC_NAME_LABELS
valuescontain all values to check
panel_freqif true, set values for Frequent lines. Usefull only if panel_name = TOC_NAME_LINES
Author
Lucien Schreiber (c) CREALP 2008
Date
06 November 2008

◆ SetVisibleNotebook()

void AttribObjType_PANEL::SetVisibleNotebook ( TOC_GENERIC_NAME  notebooktype)

Set visible notebook.

Activate the correct notebook depending on the selected object type. Case supported are :

  • TOC_NAME_LINES
  • TOC_NAME_POINTS
  • TOC_NAME_LABELS
  • TOC_NAME_ANNOTATIONS for other case, nothing is changed
    Parameters
    notebooktypeone of the TOC_GENERIC_NAME values
    Author
    Lucien Schreiber (c) CREALP 2008
    Date
    05 November 2008

◆ UpdateObjectLineList()

bool AttribObjType_PANEL::UpdateObjectLineList ( DataBaseTM pDB)

Update items in the object line list.

This functions delete all items in the list and add items directly from the database

Parameters
pDBobject of DataBaseTM
Returns
TRUE if operations was a succes, false otherwise
Author
Lucien Schreiber (c) CREALP 2008
Date
16 May 2008

◆ UpdateObjectPointList()

bool AttribObjType_PANEL::UpdateObjectPointList ( DataBaseTM pDB)

Update items in the object point list.

This functions delete all items in the list and add items directly from the database

Parameters
pDBobject of DataBaseTM
Returns
TRUE if operations was a succes, false otherwise
Author
Lucien Schreiber (c) CREALP 2008
Date
15 May 2008

◆ UpdateObjectPolyList()

bool AttribObjType_PANEL::UpdateObjectPolyList ( DataBaseTM pDB)

Update items in the object polygon list.

This functions delete all items in the list and add items directly from the database

Parameters
pDBobject of DataBaseTM
Returns
TRUE if operations was a succes, false otherwise
Author
Lucien Schreiber (c) CREALP 2008
Date
16 May 2008

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