IDragAware

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

Methods

DragShape

#
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.

bool DragShape(
motion,
Accumulated motion.
hit
Hit instance created at start of drag operation.
)
True on success.

HitShape

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