次の方法で共有


CInterpolatorBase クラス

更新 : 2011 年 3 月

Visual Studio 2010 SP1 が必要です。

アニメーション変数の新しい値を計算する必要があるときに、Animation API によって呼び出されるコールバックを実装します。

class CInterpolatorBase : public CUIAnimationInterpolatorBase<CInterpolatorBase>;

メンバー

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

名前

説明

CInterpolatorBase::CInterpolatorBase

CInterpolatorBase オブジェクトを構築します。

パブリック メソッド

名前

説明

CInterpolatorBase::CreateInstance

CInterpolatorBase のインスタンスを作成し、イベントを処理するカスタムのインターポレータへのポインターを格納します。

CInterpolatorBase::GetDependencies

インターポレータの依存関係を取得します (CUIAnimationInterpolatorBase::GetDependencies をオーバーライドします)。

CInterpolatorBase::GetDuration

インターポレータの継続時間を取得します (CUIAnimationInterpolatorBase::GetDuration をオーバーライドします)。

CInterpolatorBase::GetFinalValue

インターポレータによる最終値を取得します (CUIAnimationInterpolatorBase::GetFinalValue をオーバーライドします)。

CInterpolatorBase::InterpolateValue

指定したオフセット位置で値を補間します (CUIAnimationInterpolatorBase::InterpolateValue をオーバーライドします)。

CInterpolatorBase::InterpolateVelocity

指定したオフセット位置で速度を補間します (CUIAnimationInterpolatorBase::InterpolateVelocity をオーバーライドします)。

CInterpolatorBase::SetCustomInterpolator

イベントを処理するカスタムのインターポレータへのポインターを格納します。

CInterpolatorBase::SetDuration

インターポレータの継続時間を設定します (CUIAnimationInterpolatorBase::SetDuration をオーバーライドします)。

CInterpolatorBase::SetInitialValueAndVelocity

インターポレータの初期値および初期速度を設定します (CUIAnimationInterpolatorBase::SetInitialValueAndVelocity をオーバーライドします)。

解説

このハンドラーは、(CAnimationController::AnimateGroup によって開始される) アニメーション初期化プロセスの一環として CCustomTransition オブジェクトが作成されるときに作成され、IUIAnimationTransitionFactory::CreateTransition に渡されます。 通常は、このクラスを直接使用する必要はありません。このクラスは、CCustomTransition のコンストラクターにポインターが渡された CCustomInterpolator の派生クラスにすべてのイベントをルーティングするだけです。

継承階層

MFC クラス

CUIAnimationCallbackBase

CUIAnimationInterpolatorBase

CInterpolatorBase

必要条件

ヘッダー: afxanimationcontroller.h

参照

その他の技術情報

MFC クラス

履歴の変更

日付

履歴

理由

2011 年 3 月

このコンテンツを追加。

SP1 機能変更