17#ifndef _TM_SNAPPING_MEMORY_H_
18#define _TM_SNAPPING_MEMORY_H_
26const int tmSNAPPING_OFF = 0;
27const int tmSNAPPING_VERTEX = 1;
28const int tmSNAPPING_BEGIN_END = 2;
29const wxString tmSNAPPING_TEXT_YES = wxTRANSLATE(
"Yes");
31const wxString tmSNAPPING_TEXT[] = {_T(
""), wxTRANSLATE(
"all vertex"), wxTRANSLATE(
"begin / end")};
35 void InitMemberValues();
61 tmSnappingObjArray m_Snapping;
75 unsigned int GetCount() {
76 return m_Snapping.GetCount();
94 void SetTolerence(
int tolereance) {
95 m_Tolerence = tolereance;
Store snapping status into memory.
Definition tmsnappingmemory.h:59
int FindSnappingItem(const long &lid)
Search for specified layer ID in memory array.
Definition tmsnappingmemory.cpp:137
~tmSnappingMemory()
Destructor.
Definition tmsnappingmemory.cpp:46
bool GetSnappingInfo(unsigned int iIndex, long &lid, int &snapstatus)
Get snapping info by index.
Definition tmsnappingmemory.cpp:122
bool DeleteSnappingMemory(const long &lid)
Delete a layer from the memory array.
Definition tmsnappingmemory.cpp:75
bool IsSnappingEnabled()
Checks if snapping is enabled.
Definition tmsnappingmemory.cpp:170
int GetSnappingMemoryStatus(const long &lid)
Get the snapping status for specified layer.
Definition tmsnappingmemory.cpp:91
void AddSnappingMemory(long lid, int snapstatus)
Add snapping to memory.
Definition tmsnappingmemory.cpp:60
bool SetSnappingMemoryStatus(const long &lid, int snapstatus)
Change, or set snapping to existing layer.
Definition tmsnappingmemory.cpp:106
void ClearSnappingStatus()
Set all snapping status to tmSNAPPING_OFF.
Definition tmsnappingmemory.cpp:155
tmSnappingMemory()
Constructor.
Definition tmsnappingmemory.cpp:37
Definition tmsnappingmemory.h:33