User Tools

Site Tools


api:dk11:delphi:giseditor.tgis_editor.findsnappoint_tpoint_tgis_point_tgis_editorsnapresulttype

Table of Contents

TGIS_Editor.FindSnapPoint method

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

Find a snap point based on a snap type from snap-to layers.

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

Syntax

Implements IGIS_Editor.FindSnapPoint.

// Delphi
public
  function FindSnapPoint(
    const _pt : TPoint;
    var _ptg : TGIS_Point;
    var _snapType : TGIS_EditorSnapResultType
  ) : Boolean;
// C++ Builder
public:
  bool FindSnapPoint(
    TPoint* const _pt,
    TGIS_Point* &_ptg,
    TGIS_EditorSnapResultType* &_snapType
  );

Parameters

Name Type Description
_pt TPoint Mouse position
_ptg TGIS_Point found snap point coordinates
_snapType TGIS_EditorSnapResultType found type of snap point (vertex, edge, intersection, midpoint )

Result

Type Description
Boolean True if any snap point was found
2022/11/16 01:16

Page Tools