User Tools

Site Tools


Table of Contents

ITGIS_Editor.FindSnapPoint method

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_Editor.FindSnapPoint | Methods | Properties

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

Available also on: Delphi | .NET | Java.


// C#
public WordBool FindSnapPoint(
  ITPoint _pt,
  ref ITGIS_Point _ptg,
  ref TGIS_EditorSnapResultType _snapType
' VisualBasic
Public Function FindSnapPoint(
  ByVal _pt As ITPoint,
  ByRef _ptg As ITGIS_Point,
  ByRef _snapType As TGIS_EditorSnapResultType
) As WordBool
// Oxygene
  function FindSnapPoint(
    _pt : ITPoint;
    var _ptg : ITGIS_Point;
    var _snapType : TGIS_EditorSnapResultType
  ) : WordBool;


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


Type Description
WordBool True if any snap point was found
2020/09/22 01:03

Page Tools