DragHit

References
public sealed class DragHit
All the relevant data to do with a single ray-shape hit.

Properties

ActiveCurves

#
Gets the active curves to draw as dragging hints. These mark what the drag will directly affect and are drawn solid.
public Curve[] ActiveCurves { get; }

HintingCurves

#
Gets the hinting curves to draw as dragging hints. These provide context (the shape being edited, guide lines) and are drawn thin and dashed.
public Curve[] HintingCurves { get; }

LargePoints

#
Gets the large handle points to draw as dragging hints. These mark the location(s) under the cursor which would be dragged.
public Point3d[] LargePoints { get; }

Object

#
Gets the object which was hit. This is _probably_ also an IParameter, but that is not really guaranteed.
public IDragAware Object { get; }

ParameterOnRay

#
Parameter on ray closest to shape.
public double ParameterOnRay { get; }

PointOnRay

#
Gets the point on the ray at the given parameter.
public Point3d PointOnRay { get; }

PointOnShape

#
Point on shape closest to ray.
public Point3d PointOnShape { get; }

Separation

#
Gets the visual separation (in pixels) between the ray point and the shape point.
public double Separation { get; }

Site

#
Gets the site within the persistent data tree which was hit.
public Site Site { get; }

SmallPoints

#
Gets the small handle points to draw as dragging hints. These mark draggable locations that are not the current target.
public Point3d[] SmallPoints { get; }

Tag

#
Optional tag for additional hit information. This will need to be populated by some sort of value when sub-objects are dragged.
public object Tag { get; set; }

Tree

#
Gets the persistent data at the moment of ray hit.
public ITree Tree { get; }

Methods

AddCurves

#
Add one or more curves at the given kind. PointKind.None adds nothing.
public void AddCurves(
kind,
params Curve[]
curves
)

AddCurves

#
Add one or more lines at the given kind. PointKind.None adds nothing.
public void AddCurves(
kind,
params Line[]
lines
)

AddPoints

#
Add one or more handle points at the given kind. PointKind.None adds nothing.
public void AddPoints(
kind,
params Point3d[]
points
)