Vcl.Touch.GestureMgr.TGestureCollectionItem.GetDeviation

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetDeviation: Integer; override;

C++

virtual int __fastcall GetDeviation();

Properties

Type Visibility Source Unit Parent
function class protected
Vcl.Touch.GestureMgr.pas
Vcl.Touch.GestureMgr.hpp
Vcl.Touch.GestureMgr TGestureCollectionItem

Description

GetDeviation is the abstract getter method for the Deviation property.

Use the value of the GetDeviation method to specify how close a collection point in a user-drawn gesture must be to the corresponding point in a saved gesture so that the gesture is recognized. Picture a gesture with each point in the collection surrounded by a circle. A collection point in a user-drawn gesture must lie within the circle of a sample point in the saved gesture so that point is recognized. As the deviation is increased, the circles decrease in radius.

The value returned by GetDeviation is the deviation value last set by the SetDeviation, AssigTo, or ReadDeviation method.

See Also