19#ifndef _TM_SELECTEDDATAMEMORY_H_
20#define _TM_SELECTEDDATAMEMORY_H_
30#include <wx/dynarray.h>
32WX_DEFINE_SORTED_ARRAY_LONG(
long, tmArraySortedLong);
46 tmArraySortedLong* m_SelectedIDs;
50 void InitMemberValues();
53 int Search(
const long& value);
64 bool Remove(wxArrayLong* selected =
nullptr);
76 m_SelectedIDs->Clear();
79 wxColour GetSelectionColour() {
83 void SetSelectionColour(
const wxColour& col) {
87 void SetSelectionHalo(
bool hashalo) {
91 bool GetSelectionHalo() {
95 long GetSelectedLayer() {
Store ID of selected data into memory.
Definition tmselecteddatamemory.h:43
~tmSelectedDataMemory()
Destructor.
Definition tmselecteddatamemory.cpp:42
long GetSelectedUnique()
Get the selected value.
Definition tmselecteddatamemory.cpp:217
wxArrayLong * GetSelectedValues()
Getting selected values.
Definition tmselecteddatamemory.cpp:199
bool Remove(wxArrayLong *selected=nullptr)
Removing items from the array.
Definition tmselecteddatamemory.cpp:134
void SetSelected(long selected)
Save any geometry into database.
Definition tmselecteddatamemory.cpp:102
bool AddSelected(wxArrayLong *selected)
Add selected ID to memory.
Definition tmselecteddatamemory.cpp:71
int Search(const long &value)
Search for existing item in the array.
Definition tmselecteddatamemory.cpp:117
bool IsSelected(const long &value)
Is this object selected.
Definition tmselecteddatamemory.cpp:161
tmSelectedDataMemory()
Constructor.
Definition tmselecteddatamemory.cpp:32
unsigned int GetCount()
Count the number of selected features.
Definition tmselecteddatamemory.cpp:172
void SetLayerID(long layerID)
Set on which layer we are working on.
Definition tmselecteddatamemory.cpp:186