Vcl.Touch.Gestures.TCustomGestureRecognizer.Match

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function Match(const Points, GesturePoints: array of TPoint;
const Options: TGestureOptions; GestureID: TGestureID;
Deviation, ErrorMargin: Integer): Single; virtual; abstract;

C++

virtual float __fastcall Match(const System::Types::TPoint *Points, const int Points_High, const System::Types::TPoint *GesturePoints, const int GesturePoints_High, const Vcl::Controls::TGestureOptions Options, Vcl::Controls::TGestureID GestureID, int Deviation, int ErrorMargin) = 0 ;

プロパティ

種類 可視性 ソース ユニット
function public
Vcl.Touch.Gestures.pas
Vcl.Touch.Gestures.hpp
Vcl.Touch.Gestures TCustomGestureRecognizer

説明

入力ポイントのセットを必要なポイントのセットに一致させます。

Match メソッドを下位クラスでオーバーライドすると、入力ポイントのセットが必要なポイントのセットに相対的に一致するかどうかを調べることができます。 Match メソッドは、収集したポイントが既知のジェスチャを構成するかどうかを確認するためにジェスチャ エンジンによって使用されます。 Match メソッドが取り得るパラメータを以下の表に記述します。



パラメータ 説明

APoints

入力ポイントの配列。これらは必要なポイントと一致します。

GesturePoints

必要なポイントの配列。これらは入力ポイントと一致します。

Options

一致するルールを示す TGestureOptions 変数。

GestureID

期待されるジェスチャの ID (もしあれば)。

Deviation

許容偏差の最大値。

ErrorMargin

許容誤差の最大値。

Acceleration

ジェスチャ デバイスの計算を加速するアクセラレータを示す出力パラメータ。



Match の戻り値は、入力および必要なポイントがどれだけ一致しているかを示す浮動小数点数です。

関連項目