User Tools

Site Tools


TGIS_Editor class

DK11 for Delphi | GisEditor.TGIS_Editor | Classes | Constructors | Methods | Properties | Events

Editor encapsulation.

Available also on: .NET | Java | ActiveX.


// Delphi
  TGIS_Editor = class( TGIS_UncountedInterfacedObject, IGIS_Editor )
// C++ Builder
class PASCALIMPLEMENTATION TGIS_Editor : public TGIS_UncountedInterfacedObject




Inherited Overrides Protected
Name Visibility Description
Create public Create an instance of editor inside TGIS_Viewer.
Destroy public Destroy instance.


Inherited Overrides Protected
Name Visibility Description
AddPoint public Add a new point.
(Implements IGIS_Editor.AddPoint)
AddPointEx public Add a new point for a group.
(Implements IGIS_Editor.AddPointEx)
AddSnapLayer public Add a snap-to layer to the list.
(Implements IGIS_Editor.AddSnapLayer)
ChangeWinding public Change winding of the current part.
(Implements IGIS_Editor.ChangeWinding)
ClearSnapLayers public Clear the list of snap-to layers.
(Implements IGIS_Editor.ClearSnapLayers)
CreatePart public Create and activate the editing procedure for a new part for the current shape.
(Implements IGIS_Editor.CreatePart)
CreateShape(TGIS_LayerAbstract; TGIS_Point3D; TGIS_ShapeType) public Create and activate editing of a new shape.
(Implements IGIS_Editor.CreateShape)
CreateShape(TGIS_LayerAbstract; TGIS_Point3D; TGIS_ShapeType; TGIS_DimensionType) public Create and activate editing of a new shape.
(Implements IGIS_Editor.CreateShape)
CreateShape(TGIS_LayerAbstract; TGIS_Point; TGIS_ShapeType) public Create and activate editing of a new shape.
(Implements IGIS_Editor.CreateShape)
DeletePart public Delete current part from shape.
(Implements IGIS_Editor.DeletePart)
DeletePoint public Delete a point from the current part of the currently edited shape.
(Implements IGIS_Editor.DeletePoint)
DeleteShape public Delete currently edited shape and end editing.
(Implements IGIS_Editor.DeleteShape)
EditShape public Starts editing of a shape given by _shp.
(Implements IGIS_Editor.EditShape)
EndEdit public End editing of the shape given by EditShape.
(Implements IGIS_Editor.EndEdit)
FindSnapLayer public Find a snap layer on the list.
(Implements IGIS_Editor.FindSnapLayer)
FindSnapPoint public Find a snap point based on a snap type from snap-to layers.
(Implements IGIS_Editor.FindSnapPoint)
InsertPoint public Insert a point to the current part of the currently edited shape.
(Implements IGIS_Editor.InsertPoint)
MouseBegin public Start the editing of a point at the location given by _pt.
(Implements IGIS_Editor.MouseBegin)
MouseEnd public End of point movement, deletion, or addition.
(Implements IGIS_Editor.MouseEnd)
MouseMove public Continuing of point movement, deletion, or addition.
(Implements IGIS_Editor.MouseMove)
MovePoint public Move a point of the current part of the currently edited shape to a new location.
(Implements IGIS_Editor.MovePoint)
Redo public Redo the previous action.
(Implements IGIS_Editor.Redo)
RefreshShape public Store the editing buffer back into the shape.
(Implements IGIS_Editor.RefreshShape)
RemoveSnapLayer public Remove a snap layer from the list.
(Implements IGIS_Editor.RemoveSnapLayer)
RevertShape public Revert currently edited shape to a saved version.
(Implements IGIS_Editor.RevertShape)
Undo public Undo the last action.
(Implements IGIS_Editor.Undo)


Inherited Protected
Name Visibility Description
CanRedo public If True, redo buffer is not empty.
(Implements IGIS_Editor.CanRedo)
CanUndo public If True, undo buffer is not empty.
(Implements IGIS_Editor.CanUndo)
CurrentShape public Currently edited shape.
(Implements IGIS_Editor.CurrentShape)
EditingLinesStyle published Editing lines style.
(Implements IGIS_Editor.EditingLinesStyle)
EditingPointsStyle published Editing points style.
(Implements IGIS_Editor.EditingPointsStyle)
EditorMode published Determines how new vertices are created relative to existing vertices.
(Implements IGIS_Editor.EditorMode)
InEdit public If True, editing is active.
(Implements IGIS_Editor.InEdit)
Layer public Layer that holds the shape being currently edited.
(Implements IGIS_Editor.Layer)
MinMove published Minimal mouse movement to perform a change.
(Implements IGIS_Editor.MinMove)
Mode public Mode of edition.
(Implements IGIS_Editor.Mode)
MustRedraw public True if editor should be redraw.
(Implements IGIS_Editor.MustRedraw)
Part public Part number of currently edited shape.
(Implements IGIS_Editor.Part)
Point public Access to individual points in a part.
(Implements IGIS_Editor.Point)
PointCount public Number of points in the current part of the currently edited shape.
(Implements IGIS_Editor.PointCount)
PointPos public Position of the currently edited point.
(Implements IGIS_Editor.PointPos)
SelectTolerance published Distance tolerance of vertices selection.
(Implements IGIS_Editor.SelectTolerance)
ShowDraggingTrack published Show dragging track upon point move.
(Implements IGIS_Editor.ShowDraggingTrack)
ShowPoints3D published If True, show the Z coordinates for the vertices.
(Implements IGIS_Editor.ShowPoints3D)
ShowPointsNumbers published If True, show the vertex numbers.
(Implements IGIS_Editor.ShowPointsNumbers)
ShowTracking published If True, show vertices to trace from a shape in the snap-to layer.
(Implements IGIS_Editor.ShowTracking)
SnapGridSpacing published The spacing of the grid to which points will be snapped.
(Implements IGIS_Editor.SnapGridSpacing)
SnapLayer public Layer containing geometry to which edited points will be snapped.
(Implements IGIS_Editor.SnapLayer)
SnapMargin published The distance tolerance from the snap-to feature for a snap to occur.
(Implements IGIS_Editor.SnapMargin)
SnapToIntersection published If True, enable snap to the point of intersections between shapes.
(Implements IGIS_Editor.SnapToIntersection)
SnapType published Snap type - how to snap to a vertex or segment.
(Implements IGIS_Editor.SnapType)
Uid public Uid of currently edited shape or -1.
(Implements IGIS_Editor.Uid)
Viewer public Viewer on which editor has been created.
(Implements IGIS_Editor.Viewer)


Inherited Protected
Name Visibility Description
PointChangeEvent published Event to notify a point change.
PointEditingEvent published Event to notify editing a point.
SnapPointEvent published Event to call a custom snap routine.


This class is closely connected to TGIS_Viewer, so never construct it independently.

The basic editing functionality includes the moving of points, moving vector vertices, creating new vector points, line, and polygons, deleting vector points and vertices, snapping, with mouse clicks.

Various objects were declared in Pointer manner to avoid circular references.


2021/02/23 19:00

Page Tools