//-------------------------------------------------------------------------------------------------- public void Stop() { if (_HintCircle != null) { _HintCircle.Remove(); _HintCircle = null; } if (_HintLine != null) { _HintLine.Remove(); _HintLine = null; } for (int i = 0; i < _Marker.Length; i++) { if (_Marker[i] != null) { _Marker[i].Remove(); } _Marker[i] = null; } _Element?.Remove(); _PointAction?.Stop(); _SketchEditorTool.WorkspaceController.HudManager?.RemoveElement(_Coord2DHudElement); _Coord2DHudElement = null; _SketchEditorTool.WorkspaceController.HudManager?.RemoveElement(_ValueHudElement); _ValueHudElement = null; }
//-------------------------------------------------------------------------------------------------- public void Stop() { if (_PreviewLine != null) { _PreviewLine.Remove(); _PreviewLine = null; } for (int i = 0; i < _HintLines.Length; i++) { if (_HintLines[i] != null) { _HintLines[i].Remove(); } _HintLines[i] = null; } _Element?.Remove(); _PointAction.ConstraintPoint -= _PointActionOnConstraintPoint; _PointAction.Stop(); _SketchEditorTool.WorkspaceController.HudManager?.RemoveElement(_Coord2DHudElement); _Coord2DHudElement = null; _SketchEditorTool.WorkspaceController.HudManager?.RemoveElement(_LabelHudElement); _LabelHudElement = null; }
//-------------------------------------------------------------------------------------------------- void _ClearHints() { _HintCircle?.Remove(); _HintCircle = null; if (_HintAngles != null) { foreach (var hintLine in _HintAngles) { hintLine?.Remove(); } _HintAngles = null; } WorkspaceController.Invalidate(); }