User Tools

Site Tools


TGIS_Editor class

DK11 for ActiveX | TatukGIS_XDK11.TGIS_Editor | Classes | Methods | Properties

Editor encapsulation.

Available also on: Delphi | .NET | Java.


// C#
public class TGIS_Editor : ITGIS_Editor, IGIS_Editor, IConnectionPointContainer, ITGIS_EditorEvents 
' VisualBasic
Public Class TGIS_Editor
  Implements ITGIS_Editor
  Implements IGIS_Editor
  Implements IConnectionPointContainer
  Implements ITGIS_EditorEvents
End Class
// Oxygene
  TGIS_Editor = public class


ITGIS_Editor IGIS_Editor IConnectionPointContainer ITGIS_EditorEvents


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)
AttachDelphiObj public Only for internal use of TatukGIS.
(Inherited from ITBaseObject)
(Implements ITBaseObject.AttachDelphiObj)
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 public Create and activate editing of a new shape.
(Implements IGIS_Editor.CreateShape)
CreateShape_2 public Create and activate editing of a new shape.
(Implements IGIS_Editor.CreateShape_2)
CreateShape_3 public Create and activate editing of a new shape.
(Implements IGIS_Editor.CreateShape_3)
Create_ public Create an instance of editor inside TGIS_Viewer.
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)
DelphiObj public Only for internal use of TatukGIS.
(Inherited from ITBaseObject)
(Implements ITBaseObject.DelphiObj)
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)
PointChangeEvent public Event to notify a point change.
(Inherited from ITGIS_EditorEvents)
PointEditingEvent public Event to notify editing a point.
(Inherited from ITGIS_EditorEvents)
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)
SnapPointEvent public Event to call a custom snap routine.
(Inherited from ITGIS_EditorEvents)
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 public Editing lines style.
(Implements IGIS_Editor.EditingLinesStyle)
EditingPointsStyle public Editing points style.
(Implements IGIS_Editor.EditingPointsStyle)
EditorMode public 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 public 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)
PointerMode public Pointer mode ( mouse, touch or pen ).
(Implements IGIS_Editor.PointerMode)
PointPos public Position of the currently edited point.
(Implements IGIS_Editor.PointPos)
SelectTolerance public Distance tolerance of vertices selection.
(Implements IGIS_Editor.SelectTolerance)
SelectTolerancePen public Distance tolerance of vertices selection upon pen gesture.
(Implements IGIS_Editor.SelectTolerancePen)
SelectToleranceTouch public Distance tolerance of vertices selection upon touch gesture.
(Implements IGIS_Editor.SelectToleranceTouch)
ShowDraggingTrack public Show dragging track upon point move.
(Implements IGIS_Editor.ShowDraggingTrack)
ShowPoints3D public If True, show the Z coordinates for the vertices.
(Implements IGIS_Editor.ShowPoints3D)
ShowPointsNumbers public If True, show the vertex numbers.
(Implements IGIS_Editor.ShowPointsNumbers)
ShowTracking public If True, show vertices to trace from a shape in the snap-to layer.
(Implements IGIS_Editor.ShowTracking)
SnapGridSpacing public 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 public The distance tolerance from the snap-to feature for a snap to occur.
(Implements IGIS_Editor.SnapMargin)
SnapToIntersection public If True, enable snap to the point of intersections between shapes.
(Implements IGIS_Editor.SnapToIntersection)
SnapType public 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)
ViewerEnabled public Set to true if Editor Mode is enabled in a TGIS_ViewerWnd.
(Implements IGIS_Editor.ViewerEnabled)


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/03/12 19:06

Page Tools