C# Class MapAround.UI.WinForms.Snapper

Contains an information about snapping.
显示文件 Open project: gkrsu/maparound.core

Public Methods

Method Description
Snapper ( ) : System

Initializes a new instance of the MapAround.UI.WinForms.SnapInfo which describes a no snapping abilities.

Snapper ( ICoordinate gridOrigin, double gridCellSize ) : System

Initializes a new instance of the MapAround.UI.WinForms.SnapInfo which describes a snapping to the regular grid.

Snapper ( IEnumerable points ) : System

Initializes a new instance of the MapAround.UI.WinForms.SnapInfo which describes a snapping to the points.

Snapper ( IEnumerable points, IEnumerable segments ) : System

Initializes a new instance of the MapAround.UI.WinForms.SnapInfo which describes a snapping to the points and the segments.

Snapper ( IEnumerable points, SnapMethodDelegate snapMethod ) : System

Initializes a new instance of the MapAround.UI.WinForms.SnapInfo which describes a snapping by the custom method.

Snapper ( IEnumerable segments ) : System

Initializes a new instance of the MapAround.UI.WinForms.SnapInfo which describes a snapping to the segments.

Private Methods

Method Description
emptySnapMethod ( ICoordinate c ) : ICoordinate
gridSnapMethod ( ICoordinate c ) : ICoordinate
pointsAndSegmentsSnapMethod ( ICoordinate c ) : ICoordinate
pointsSnapMethod ( ICoordinate c ) : ICoordinate
segmentsSnapMethod ( ICoordinate c ) : ICoordinate

Method Details

Snapper() public method

Initializes a new instance of the MapAround.UI.WinForms.SnapInfo which describes a no snapping abilities.
public Snapper ( ) : System
return System

Snapper() public method

Initializes a new instance of the MapAround.UI.WinForms.SnapInfo which describes a snapping to the regular grid.
public Snapper ( ICoordinate gridOrigin, double gridCellSize ) : System
gridOrigin ICoordinate
gridCellSize double
return System

Snapper() public method

Initializes a new instance of the MapAround.UI.WinForms.SnapInfo which describes a snapping to the points.
public Snapper ( IEnumerable points ) : System
points IEnumerable
return System

Snapper() public method

Initializes a new instance of the MapAround.UI.WinForms.SnapInfo which describes a snapping to the points and the segments.
public Snapper ( IEnumerable points, IEnumerable segments ) : System
points IEnumerable
segments IEnumerable
return System

Snapper() public method

Initializes a new instance of the MapAround.UI.WinForms.SnapInfo which describes a snapping by the custom method.
public Snapper ( IEnumerable points, SnapMethodDelegate snapMethod ) : System
points IEnumerable
snapMethod SnapMethodDelegate
return System

Snapper() public method

Initializes a new instance of the MapAround.UI.WinForms.SnapInfo which describes a snapping to the segments.
public Snapper ( IEnumerable segments ) : System
segments IEnumerable
return System