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()
Assembly: CADability.dll
Syntax
public class SnapPointFinder
Constructors
|
Improve this Doc
View Source
SnapPointFinder()
Declaration
Fields
|
Improve this Doc
View Source
BasePoint
Declaration
public GeoPoint BasePoint
Field Value
|
Improve this Doc
View Source
BasePointValid
Declaration
public bool BasePointValid
Field Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
BestDist
Declaration
Field Value
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
BestObject
Declaration
public IGeoObject BestObject
Field Value
|
Improve this Doc
View Source
DidSnap
Declaration
public SnapPointFinder.DidSnapModes DidSnap
Field Value
|
Improve this Doc
View Source
faceDist
Declaration
Field Value
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
FilterList
Declaration
public FilterList FilterList
Field Value
|
Improve this Doc
View Source
IgnoreList
Declaration
public GeoObjectList IgnoreList
Field Value
|
Improve this Doc
View Source
MaxDist
Declaration
Field Value
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
pickArea
Declaration
public Projection.PickArea pickArea
Field Value
|
Improve this Doc
View Source
Projection
Declaration
public Projection Projection
Field Value
|
Improve this Doc
View Source
Snap30
Declaration
Field Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
Snap45
Declaration
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
|
Improve this Doc
View Source
SnapPoint
Declaration
public GeoPoint SnapPoint
Field Value
|
Improve this Doc
View Source
SnapPointIndex
Declaration
public int SnapPointIndex
Field Value
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
SourceBeam
Declaration
Field Value
|
Improve this Doc
View Source
SourcePoint
Postition of the source point on the projection plane
Declaration
public GeoPoint2D SourcePoint
Field Value
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
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
|
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
|
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
|
Improve this Doc
View Source
SnapHierarchy(SnapPointFinder.DidSnapModes)
Declaration
public int SnapHierarchy(SnapPointFinder.DidSnapModes mode)
Parameters
Returns
| Type |
Description |
| System.Int32 |
|