97 wxRealPoint m_INSVertexPos;
99 wxPoint m_LastMousePos;
100 tmArraySharedNodes m_SharedNodes;
101 wxOverlay m_OverlaySharedNodes;
102 wxColour m_SelectionColour;
108 bool m_SnappingShowOnMap;
110 wxRealPointList m_BezierPoints;
111 wxRealPointList m_BezierPointsControl;
112 wxArrayInt m_BezierSnappedPointsIndexes;
113 wxPoint m_BezierActualP1;
114 wxPoint m_BezierActualP2;
115 wxPoint m_BezierActualC1;
116 wxPoint m_BezierActualC2;
117 bool m_BezierDrawControlPoints;
118 wxRect m_BezierRefreshRect;
119 int m_BezierModifyIndexPoint;
120 int m_BezierModifyIndexControl;
121 bool m_BezierModifyControlInverted;
125 wxRealPointList m_ArcPoints;
126 wxArrayLong m_ArcSnappedPointsIndexes;
127 wxPoint m_ArcActualPt;
128 wxRect m_ArcRefreshRect;
129 int m_ArcModifyIndexPoint;
133 void InitMemberValues();
136 void OnEditStart(wxCommandEvent& event);
138 void OnEditStop(wxCommandEvent& event);
140 void OnDrawFeatureValidate(wxCommandEvent& event);
142 void OnDrawFeatureEscape(wxCommandEvent& event);
144 void OnCutLines(wxCommandEvent& event);
146 void OnShowVertexPosition(wxCommandEvent& event);
148 void OnSetRenderFocus(wxCommandEvent& event);
150 void OnEditSharedDown(wxCommandEvent& event);
152 void OnEditSharedUp(wxCommandEvent& event);
154 void OnEditSharedMove(wxCommandEvent& event);
156 void OnOrientedPtsDown(wxCommandEvent& event);
158 void OnOrientedPtsMove(wxCommandEvent& event);
160 void OnOrientedPtsUp(wxCommandEvent& event);
162 void OnMenuInsertVertex(wxCommandEvent& event);
164 void OnMenuDeleteVertex(wxCommandEvent& event);
167 bool IsCorrectLayerSelected();
169 bool IsObjectSelected();
171 bool IsObjectMinNumberSelected(
unsigned int iNumbermin = 1);
173 bool IsLayerTypeSelected(
int layertype = LAYER_SPATIAL_LINE);
176 bool EMGetSnappingCoord(wxRealPoint& pt);
178 wxRealPoint* EMIterateAllSnappingLayers(
const wxRealPoint& clickedpoint);
180 long _SaveToDatabase();
183 bool _LoadSnappingStatus();
185 wxArrayLong _GetErrorLines(wxArrayLong linetocheck);
187 void _ProcessChaikin();
189 DECLARE_EVENT_TABLE()
204 m_SnapMem = snapping;
207 void SetSnappingShowOnMap(
bool show) {
208 m_SnappingShowOnMap = show;
216 void OnToolBezierModify();
220 void OnToolEditShared();
226 void OnToolVertexDelete();
228 void OnToolVertexInsert();
234 bool IsModificationBezierAllowed();
236 bool IsLayerSpatialType(
int layerType = LAYER_SPATIAL_LINE);
238 bool IsMultipleModificationAllowed();
244 bool HasLastVertex();
260 void BezierClick(
const wxPoint& mousepos);
262 void BezierMove(
const wxPoint& mousepos);
264 void BezierDraw(wxGCDC* dc);
268 void BezierModifyDraw(wxGCDC* dc);
270 void BezierModifyClickDown(
const wxPoint& mousepos);
272 void BezierModifyClickMove(
const wxPoint& mousepos);
274 void BezierModifyClickUp(
const wxPoint& mousepos);
278 bool IsBezierToLinePreviewAllowed();
283 return m_BezierSettings;
286 void ArcClick(
const wxPoint& mousepos);
288 void ArcMove(
const wxPoint& mousepos);
290 void ArcDraw(wxGCDC* dc);
294 void ArcModifyClickDown(
const wxPoint& mousepos);
296 void ArcModifyClickMove(
const wxPoint& mousepos);
298 void ArcModifyClickUp(
const wxPoint& mousepos);
300 void ArcVertexInsertUp(
const wxPoint& mousepos);
302 void ArcVertexDeleteUp(
const wxPoint& mousePos);
304 void DrawSnappingCircle(wxGCDC* dc);