User Tools

Site Tools


api:dk11:delphi:giseditor.tgis_editor



TGIS_Editor class

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

Editor encapsulation.

Available also on: .NET | Java | ActiveX | Python.

Syntax

// Delphi
type
  TGIS_Editor = class( TGIS_UncountedInterfacedObject, IGIS_Editor )
  end;
// C++ Builder
class PASCALIMPLEMENTATION TGIS_Editor : public TGIS_UncountedInterfacedObject
{
};

Inheritance

Implements

Constructors

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

Methods

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)
DeletePointEx public Delete a point from the current part of the currently edited shape.
(Implements IGIS_Editor.DeletePointEx)
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)
InsertPointEx public Insert a point to the current part of the currently edited shape for a group.
(Implements IGIS_Editor.InsertPointEx)
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)
MovePointEx public Move a point of the current part of the currently edited shape to a new location.
(Implements IGIS_Editor.MovePointEx)
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)

Properties

Inherited Protected
Name Visibility Description
BlockSnapping public If True, block snapping operations during adding points.
(Implements IGIS_Editor.BlockSnapping)
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)
EditingEdgeLengthsStyle published Edges lengths style.
(Implements IGIS_Editor.EditingEdgeLengthsStyle)
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)
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 published Distance tolerance of vertices selection.
(Implements IGIS_Editor.SelectTolerance)
SelectTolerancePen published Distance tolerance of vertices selection upon pen gesture.
(Implements IGIS_Editor.SelectTolerancePen)
SelectToleranceTouch published Distance tolerance of vertices selection upon touch gesture.
(Implements IGIS_Editor.SelectToleranceTouch)
ShowDraggingTrack published Show dragging track upon point move.
(Implements IGIS_Editor.ShowDraggingTrack)
ShowEdgesLengths published If True, show edges lengths from vertex to vertex.
(Implements IGIS_Editor.ShowEdgesLengths)
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)
ViewerEnabled published Set to true if Editor Mode is enabled in a TGIS_ViewerWnd.
(Implements IGIS_Editor.ViewerEnabled)

Events

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.

Remarks

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.

References

2024/12/20 22:18

Page Tools