ImageEn, unit iexUserInteractions

TIETransformToolInteraction


Declaration

TIETransformToolInteraction = class(TIEUserInteraction);


Description

A class of TIEUserInteraction that controls interaction for the Warp Tranformation tool (when MouseInteractGeneral is miTransformTool).
The Warp Tranformation tool allows the user to apply a Thin Plate Spline Shape Transformation to the image.
IEVision is required for the Warp Tranformation Tool.


When the Warp Tranformation tool is active:
 User can select an area of the image to transform
 User can resize the tranformation box by dragging grips
 User can click "Enter" to enact the tranformation
 User can click "Esc" to cancel the tranformation

Note:
 Specify the color of the tranformation selection using SelColor1 and SelColor2
 Specify the style of tranformation selection grips using SetSelectionGripStyle


Demo

Demo  Demos\IEVision\TPSShapeTransform\TPSShapeTransform.dpr


Examples

// Enable the Warp Tranformation tool
ImageEnView1.MouseInteractGeneral := [miTransformTool];

// Enact Tranformation (same as user clicking "Enter")
ImageEnView1.TransformTool.Enact();

// Cancel Tranformation (same as user clicking "Esc")
ImageEnView1.TransformTool.Cancel();

// Add guide lines
ImageEnView1.TransformTool.DrawGuides := True;



Methods and Properties

General
Public Method  Cancel (Same as clicking "Esc")
Public Method  Enact (Same as clicking "Enter")
Public Property  DrawGuides
Public Property  GripCount
Public Property  GripRect
Public Property  Selected
Public Method  SetSelection
Public Property  State


See Also

 OnUserInteraction
 TImageEnView Actions
 thinPlateSplineShapeTransform