Show / Hide Table of Contents

Class SnapPointFinder

Ths class serves as a parameter to FindSnapPoint(SnapPointFinder). It keeps the best snappoint, the object, which caused it and the distance to the mouse point.

Inheritance
System.Object
SnapPointFinder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: CADability.GeoObject
Assembly: CADability.dll
Syntax
public class SnapPointFinder

Constructors

| Improve this Doc View Source

SnapPointFinder()

Declaration
public SnapPointFinder()

Fields

| Improve this Doc View Source

BasePoint

Declaration
public GeoPoint BasePoint
Field Value
Type Description
GeoPoint
| Improve this Doc View Source

BasePointValid

Declaration
public bool BasePointValid
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

BestDist

Declaration
public double BestDist
Field Value
Type Description
System.Double
| Improve this Doc View Source

BestObject

Declaration
public IGeoObject BestObject
Field Value
Type Description
IGeoObject
| Improve this Doc View Source

DidSnap

Declaration
public SnapPointFinder.DidSnapModes DidSnap
Field Value
Type Description
SnapPointFinder.DidSnapModes
| Improve this Doc View Source

faceDist

Declaration
public double faceDist
Field Value
Type Description
System.Double
| Improve this Doc View Source

FilterList

Declaration
public FilterList FilterList
Field Value
Type Description
FilterList
| Improve this Doc View Source

IgnoreList

Declaration
public GeoObjectList IgnoreList
Field Value
Type Description
GeoObjectList
| Improve this Doc View Source

MaxDist

Declaration
public double MaxDist
Field Value
Type Description
System.Double
| Improve this Doc View Source

pickArea

Declaration
public Projection.PickArea pickArea
Field Value
Type Description
Projection.PickArea
| Improve this Doc View Source

Projection

Declaration
public Projection Projection
Field Value
Type Description
Projection
| Improve this Doc View Source

Snap30

Declaration
public bool Snap30
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

Snap45

Declaration
public bool Snap45
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

SnapGlobalOrigin

Declaration
public bool SnapGlobalOrigin
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

SnapLocalOrigin

Declaration
public bool SnapLocalOrigin
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

SnapMode

Declaration
public SnapPointFinder.SnapModes SnapMode
Field Value
Type Description
SnapPointFinder.SnapModes
| Improve this Doc View Source

SnapPoint

Declaration
public GeoPoint SnapPoint
Field Value
Type Description
GeoPoint
| Improve this Doc View Source

SnapPointIndex

Declaration
public int SnapPointIndex
Field Value
Type Description
System.Int32
| Improve this Doc View Source

SourceBeam

Declaration
public Axis SourceBeam
Field Value
Type Description
Axis
| Improve this Doc View Source

SourcePoint

Postition of the source point on the projection plane

Declaration
public GeoPoint2D SourcePoint
Field Value
Type Description
GeoPoint2D

Properties

| Improve this Doc View Source

AdjustOrtho

Declaration
public bool AdjustOrtho { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

SnapToDropPoint

Declaration
public bool SnapToDropPoint { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

SnapToFaceSurface

Declaration
public bool SnapToFaceSurface { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

SnapToGridPoint

Declaration
public bool SnapToGridPoint { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

SnapToIntersectionPoint

Declaration
public bool SnapToIntersectionPoint { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

SnapToObjectCenter

Declaration
public bool SnapToObjectCenter { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

SnapToObjectPoint

Declaration
public bool SnapToObjectPoint { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

SnapToObjectSnapPoint

Declaration
public bool SnapToObjectSnapPoint { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

SnapToTangentPoint

Declaration
public bool SnapToTangentPoint { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

SnapToZero

Declaration
public bool SnapToZero { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

SourcePoint3D

Declaration
public GeoPoint SourcePoint3D { get; }
Property Value
Type Description
GeoPoint

Gets the source point (which is the mouse position on the projection plane) as a 3D point. Together with the direction of the projection this makes a line that is perpendicular to the screen and goes through the mouse point.

Methods

| Improve this Doc View Source

Accept(IGeoObject)

Declaration
public bool Accept(IGeoObject toTest)
Parameters
Type Name Description
IGeoObject toTest
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Check(GeoPoint, IGeoObject, SnapPointFinder.DidSnapModes)

The IGeoObject obj offers the point p as a snappoint in the given mode. This method checks whether to use this point as the closest snap point. This method is typically called by GeoObjects from the FindSnapPoint(SnapPointFinder) method.

Declaration
public void Check(GeoPoint p, IGeoObject obj, SnapPointFinder.DidSnapModes mode)
Parameters
Type Name Description
GeoPoint p
IGeoObject obj
SnapPointFinder.DidSnapModes mode
| Improve this Doc View Source

Init(Point, Projection, SnapPointFinder.SnapModes, Int32)

Declaration
public void Init(Point SourcePoint, Projection projection, SnapPointFinder.SnapModes SnapMode, int MaxDist)
Parameters
Type Name Description
System.Drawing.Point SourcePoint
Projection projection
SnapPointFinder.SnapModes SnapMode
System.Int32 MaxDist
| Improve this Doc View Source

Init(Point, Projection, SnapPointFinder.SnapModes, Int32, GeoPoint)

Declaration
public void Init(Point SourcePoint, Projection projection, SnapPointFinder.SnapModes SnapMode, int MaxDist, GeoPoint BasePoint)
Parameters
Type Name Description
System.Drawing.Point SourcePoint
Projection projection
SnapPointFinder.SnapModes SnapMode
System.Int32 MaxDist
GeoPoint BasePoint
| Improve this Doc View Source

SnapHierarchy(SnapPointFinder.DidSnapModes)

Declaration
public int SnapHierarchy(SnapPointFinder.DidSnapModes mode)
Parameters
Type Name Description
SnapPointFinder.DidSnapModes mode
Returns
Type Description
System.Int32
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX