API:Vcl.Touch.Gestures.TGestureRecognizer.Match
Delphi
function Match(const Points, GesturePoints: array of TPoint; const Options: TGestureOptions; GestureID: TGestureID; Deviation, ErrorMargin: Integer): Single; override;
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);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | Vcl.Touch.Gestures.pas Vcl.Touch.Gestures.hpp |
Vcl.Touch.Gestures | TGestureRecognizer |
説明
入力ポイントのセットを必要なポイントのセットに一致させます。
Vcl.Touch.Gestures.TGestureRecognizer.Match は Vcl.Touch.Gestures.TCustomGestureRecognizer.Match を継承しています。以下の内容はすべて Vcl.Touch.Gestures.TCustomGestureRecognizer.Match を参照しています。
入力ポイントのセットを必要なポイントのセットに一致させます。
Match メソッドを下位クラスでオーバーライドすると、入力ポイントのセットが必要なポイントのセットに相対的に一致するかどうかを調べることができます。 Match メソッドは、収集したポイントが既知のジェスチャを構成するかどうかを確認するためにジェスチャ エンジンによって使用されます。 Match メソッドが取り得るパラメータを以下の表に記述します。
パラメータ | 説明 |
---|---|
APoints |
入力ポイントの配列。これらは必要なポイントと一致します。 |
GesturePoints |
必要なポイントの配列。これらは入力ポイントと一致します。 |
Options |
一致するルールを示す TGestureOptions 変数。 |
GestureID |
期待されるジェスチャの ID (もしあれば)。 |
Deviation |
許容偏差の最大値。 |
ErrorMargin |
許容誤差の最大値。 |
Acceleration |
ジェスチャ デバイスの計算を加速するアクセラレータを示す出力パラメータ。 |
Match の戻り値は、入力および必要なポイントがどれだけ一致しているかを示す浮動小数点数です。