|
ToolMap
|
Deals with editing data. More...
#include <tmeditmanager.h>
Public Member Functions | |
| tmEditManager (ToolMapFrame *parent, TocCtrl *toc, tmSelectedDataMemory *seldata, tmRenderer *renderer, tmGISScale *scale) | |
| Constructor. | |
| ~tmEditManager () | |
| Destructor. | |
| void | SetDatabase (DataBaseTM *database) |
| void | SetSnappingMemoryRef (tmSnappingMemory *snapping) |
| void | SetSnappingShowOnMap (bool show) |
| void | OnToolEdit () |
| User select edit tool. | |
| void | OnToolBezier () |
| void | OnToolBezierModify () |
| void | OnToolModify () |
| User select modify tool. | |
| void | OnToolEditShared () |
| void | OnToolCutLines () |
| Set tool to cut line tool. | |
| void | OnToolOrientedPoint () |
| Set oriented point tool. | |
| void | OnToolVertexDelete () |
| void | OnToolVertexInsert () |
| bool | IsDrawingAllowed () |
| Are we ready for drawing. | |
| bool | IsModificationAllowed () |
| Are we ready for drawing. | |
| bool | IsModificationBezierAllowed () |
| bool | IsLayerSpatialType (int layerType=LAYER_SPATIAL_LINE) |
| bool | IsMultipleModificationAllowed () |
| bool | DeleteSelected (bool clearSelection=true) |
| Delete the geometry and attribution of selected object. | |
| bool | UndoLastVertex () |
| Remove the last vertex from memory. | |
| bool | HasLastVertex () |
| int | GetSelectionCount () |
| Number of selected features. | |
| bool | SelectedSearch (const wxPoint &screenpt) |
| Search function. | |
| bool | CreateIntersections () |
| Create intersections. | |
| bool | EditVertexPosition () |
| Display a dialog for editing vertex position. | |
| bool | MergeSelectedLines () |
| Merge selected lines. | |
| bool | FlipLine () |
| bool | SmoothLine () |
| void | BezierClick (const wxPoint &mousepos) |
| void | BezierMove (const wxPoint &mousepos) |
| void | BezierDraw (wxGCDC *dc) |
| void | BezierClear () |
| void | BezierModifyDraw (wxGCDC *dc) |
| void | BezierModifyClickDown (const wxPoint &mousepos) |
| void | BezierModifyClickMove (const wxPoint &mousepos) |
| void | BezierModifyClickUp (const wxPoint &mousepos) |
| bool | BezierToLine (BezierSettingsData settings) |
| bool | IsBezierToLinePreviewAllowed () |
| void | SetBezierSettings (BezierSettingsData data, bool savetodb=false) |
| BezierSettingsData | GetBezierSettings () |
| void | ArcClick (const wxPoint &mousepos) |
| void | ArcMove (const wxPoint &mousepos) |
| void | ArcDraw (wxGCDC *dc) |
| void | ArcClear () |
| void | ArcModifyClickDown (const wxPoint &mousepos) |
| void | ArcModifyClickMove (const wxPoint &mousepos) |
| void | ArcModifyClickUp (const wxPoint &mousepos) |
| void | ArcVertexInsertUp (const wxPoint &mousepos) |
| void | ArcVertexDeleteUp (const wxPoint &mousePos) |
| void | DrawSnappingCircle (wxGCDC *dc) |
Deals with editing data.
This class is in charge of all stuff related to the editing process (points, lines)
| tmEditManager::tmEditManager | ( | ToolMapFrame * | parent, |
| TocCtrl * | toc, | ||
| tmSelectedDataMemory * | seldata, | ||
| tmRenderer * | renderer, | ||
| tmGISScale * | scale ) |
Constructor.
| tmEditManager::~tmEditManager | ( | ) |
Destructor.
| bool tmEditManager::CreateIntersections | ( | ) |
Create intersections.
between the selected line and all crossed lines.
| bool tmEditManager::DeleteSelected | ( | bool | clearSelection = true | ) |
Delete the geometry and attribution of selected object.
| clearSelection | true if we sould clear selection ids, if you need to delete more stuff (attribution for exemple) set to false |
| bool tmEditManager::EditVertexPosition | ( | ) |
Display a dialog for editing vertex position.
Checks are done internally for ensuring that :
| int tmEditManager::GetSelectionCount | ( | ) |
Number of selected features.
| bool tmEditManager::IsDrawingAllowed | ( | ) |
Are we ready for drawing.
| bool tmEditManager::IsModificationAllowed | ( | ) |
Are we ready for drawing.
| bool tmEditManager::MergeSelectedLines | ( | ) |
Merge selected lines.
This function Checks the following rules:
| void tmEditManager::OnToolCutLines | ( | ) |
Set tool to cut line tool.
| void tmEditManager::OnToolEdit | ( | ) |
User select edit tool.
| void tmEditManager::OnToolModify | ( | ) |
User select modify tool.
| void tmEditManager::OnToolOrientedPoint | ( | ) |
Set oriented point tool.
| bool tmEditManager::SelectedSearch | ( | const wxPoint & | screenpt | ) |
Search function.
This function is widly inspired from tmLayerManager
| screenpt | Coordinate of the clicked point |
| bool tmEditManager::UndoLastVertex | ( | ) |
Remove the last vertex from memory.
This function will only work while editing lines, calling this for points wont work