IDragAware

References
public interface IDragAware
Implement this interface in your Parameter type if you wish to participate in viewport dragging.

Methods

DragShape

#
bool DragShape(Vector3d motion, DragHit hit)
Drag part of a shape. Mote that this method is never called when the DragRay.PickMode equals DragPickingMode.OneObject or DragPickingMode.AllObjects, as those cases are handled by invoking the appropriate type assistant ITypeAssistant.Transform(object, Transform) method. If your geometry cannot be translated via regular means, you should not allow it to be part of a dragging process.

Do not expire the object upon making any modifications, that is the responsibility of the caller.

motion (Vector3d)Accumulated motion.
hit (DragHit)Hit instance created at start of drag operation.
True on success.

HitShape

#
bool HitShape(DragRay ray, out DragHit hit)
Test whether a ray hits one of the modifiable values in this parameter.
ray (DragRay)Ray being shot.
hit (out DragHit)Hit data.
True on hit.