次の方法で共有


CCustomInterpolator クラス

更新 : 2011 年 3 月

Visual Studio 2010 SP1 が必要です。

基本のインターポレータを実装します。

class CCustomInterpolator;

メンバー

パブリック コンストラクター

名前

説明

CCustomInterpolator::CCustomInterpolator

オーバーロードされます。 カスタムのインターポレータ オブジェクトを構築し、継続時間および速度を指定した値に初期化します。

パブリック メソッド

名前

説明

CCustomInterpolator::GetDependencies

インターポレータの依存関係を取得します。

CCustomInterpolator::GetDuration

インターポレータの継続時間を取得します。

CCustomInterpolator::GetFinalValue

インターポレータによる最終値を取得します。

CCustomInterpolator::Init

継続時間および最終値を初期化します。

CCustomInterpolator::InterpolateValue

指定したオフセット位置で値を補間します。

CCustomInterpolator::InterpolateVelocity

指定したオフセット位置で速度を補間します。

CCustomInterpolator::SetDuration

インターポレータの継続時間を設定します。

CCustomInterpolator::SetInitialValueAndVelocity

インターポレータの初期値および初期速度を設定します。

プロテクト データ メンバー

名前

説明

CCustomInterpolator::m_currentValue

補間された値。

CCustomInterpolator::m_currentVelocity

補間された速度。

CCustomInterpolator::m_duration

遷移の継続時間。

CCustomInterpolator::m_finalValue

遷移の終了時の変数の最終値。

CCustomInterpolator::m_initialValue

遷移の開始時の変数の値。

CCustomInterpolator::m_initialVelocity

遷移の開始時の変数の速度。

解説

カスタムの補間アルゴリズムを実装するには、CCustomInterpolator の派生クラスを作成し、必要なすべてのメソッドをオーバーライドします。 このクラスへのポインターを、パラメーターとして CCustomTransition に渡します。

継承階層

CCustomInterpolator

必要条件

ヘッダー: afxanimationcontroller.h

参照

その他の技術情報

MFC クラス

履歴の変更

日付

履歴

理由

2011 年 3 月

このコンテンツを追加。

SP1 機能変更