OROCHI
 
Loading...
Searching...
No Matches
GxMotionCurvesContainerEuler Class Reference

モーションの曲線関数を管理するクラス(オイラーベース) More...

#include <GxMotionCurvesContainer.h>

Inheritance diagram for GxMotionCurvesContainerEuler:
Collaboration diagram for GxMotionCurvesContainerEuler:

Classes

struct  GxMotionCurve
 モーションカーブクラス More...
 

定義

enum class  FUNCTION_CURVE {
  STATIC_0 , STATIC_BASEPOSE , STATIC_HALF_PI , STATIC_PI ,
  STATIC_ONE_HALF_PI , STATIC_DATA , SPLINE_EXIST , SPLINE_SLOPE_0 = SPLINE_EXIST ,
  SPLINE_DATA , DATA_MASK = 7
}
 曲線関数の種類 More...
 
enum class  MOTION_DATA { LOCATOR_ROTATE_Y = 0 , LOCATOR_TRANSLATE_Y }
 GMPファイル中のデータアクセス用定義 More...
 
static const f32 FLOAT_MAX = 9.9999997e+37
 固定値:GxModMotionDataPlayerに、ベースポーズを使いたいと伝えたい時
 
static constexpr u32 MOTION_DATA_COMPONENT_COUNT = 3
 モーションデータ種類の数:スケール+回転+位置
 
static const f32 STATIC_VALUE_TABLE [static_cast< s32 >(FUNCTION_CURVE::STATIC_DATA)]
 静的値テーブル
 
 GX_OPERATOR_NEW_DELETE_USE_ARRAY (GxAllocatorList::ALLOCATOR_TYPE::UNIT)
 

初期化

 GxMotionCurvesContainerEuler (void)
 デフォルトコンストラクタ
 
 ~GxMotionCurvesContainerEuler (void) override
 デストラクタ
 
b32 initialize (const void *pAddress, const u32 jointCount) override
 初期化
 

アクセサ

void setFrame (f32 frame) override
 現在のフレームを設定
 
constexpr void setFrameWithoutComputeCurves (f32 frame)
 現在のフレームを設定(カーブ情報の再計算は行いません)
 
constexpr f32 const * getCurrentValuesArray (void) const
 格カーブの現在の値の行列を取得
 
GX_FORCE_INLINE f32 getMotionRotateY (void) override
 rot_y関節の回転値を取得
 
GX_FORCE_INLINE f32 getMotionTranslateY (void) override
 rot_y関節の移動値を取得
 
constexpr s32 getFunctionCurveCount (void) const
 カーブ数を取得
 

Additional Inherited Members

- Public Member Functions inherited from GxMotionCurvesContainer
 GX_OPERATOR_NEW_DELETE_USE_ARRAY (GxAllocatorList::ALLOCATOR_TYPE::UNIT)
 
 GxMotionCurvesContainer (void)
 デフォルトコンストラクタ
 
 ~GxMotionCurvesContainer (void) override
 デストラクタ
 
constexpr f32 getFrame (void) const
 現在のフレームを取得
 
- Public Member Functions inherited from GxClassBase
constexpr GxClassBase (void)
 コンストラクタ
 
constexpr GxClassBase (const GxClassBase &base)
 コピーコンストラクタ
 
 ~GxClassBase (void) override
 デストラクタ
 
- Public Member Functions inherited from GxClassBaseRoot
constexpr GxClassBaseRoot (void)
 コンストラクタ
 
constexpr GxClassBaseRoot (const GxClassBaseRoot &)
 コピーコンストラクタ
 
virtual ~GxClassBaseRoot (void)
 デストラクタ
 
constexpr GxClassBaseRootoperator= (const GxClassBaseRoot &)
 代入演算子
 
virtual GxRttigetRtti (void) const =0
 Rttiの取得
 
virtual GX_FORCE_INLINE const GxTypedObjectgetDefaultObject (void)
 デフォルトオブジェクトを取得
 
GX_FORCE_INLINE b32 isDefaultObject (void)
 デフォルトオブジェクト判定
 
- Static Public Member Functions inherited from GxClassBaseRoot
static GX_FORCE_INLINE GxRtti__getStaticRtti (void)
 Rttiの取得
 
- Protected Attributes inherited from GxMotionCurvesContainer
f32 * _pMotionCurvesCurrentValuesArray
 各カーブの現在の値の行列
 
f32 _frame
 現在のフレーム
 

Detailed Description

モーションの曲線関数を管理するクラス(オイラーベース)

Member Enumeration Documentation

◆ FUNCTION_CURVE

曲線関数の種類

Enumerator
STATIC_0 

0固定のカーブ

STATIC_BASEPOSE 

ベースポーズと同じのカーブ

STATIC_HALF_PI 

π/2のカーブ

STATIC_PI 

πのカーブ

STATIC_ONE_HALF_PI 

1.5πのカーブ

STATIC_DATA 

値が同じカーブ

SPLINE_EXIST 

データカーブがあるカーブ

SPLINE_SLOPE_0 

値のカーブデータがあるが、スロープデータがないカーブ

SPLINE_DATA 

値のカーブデータもスロープデータもあるカーブ

DATA_MASK 

3bitマスク [0111]

◆ MOTION_DATA

GMPファイル中のデータアクセス用定義

Enumerator
LOCATOR_ROTATE_Y 

モーションデータの始めはrot_yの角度

LOCATOR_TRANSLATE_Y 

rot_yの座標

Member Function Documentation

◆ getMotionRotateY()

GX_FORCE_INLINE f32 GxMotionCurvesContainerEuler::getMotionRotateY ( void )
inlineoverridevirtual

rot_y関節の回転値を取得

Implements GxMotionCurvesContainer.

◆ getMotionTranslateY()

GX_FORCE_INLINE f32 GxMotionCurvesContainerEuler::getMotionTranslateY ( void )
inlineoverridevirtual

rot_y関節の移動値を取得

Implements GxMotionCurvesContainer.

◆ initialize()

b32 GxMotionCurvesContainerEuler::initialize ( const void * pMotionRawDataStart,
const u32 jointCount )
overridevirtual

初期化

カーブ数とフレーム数をセットし、格カーブの全てのプロパーティをせっと - sets _curvesCount, _framesCount, and properties for each curve, and calls computecurvevaluesbegin 注意:カレントフレームを0.fにリセット

Parameters
pMotionRawDataStart[in] ひとつのモーションのローデータ (one motion's raw data from the .gmp file)
jointCount[in] 関節数(未使用)
Returns
成功ならtrue

Implements GxMotionCurvesContainer.

Here is the call graph for this function:

◆ setFrame()

void GxMotionCurvesContainerEuler::setFrame ( f32 frame)
overridevirtual

現在のフレームを設定

Parameters
frame[in] フレーム

Implements GxMotionCurvesContainer.

Member Data Documentation

◆ STATIC_VALUE_TABLE

const f32 GxMotionCurvesContainerEuler::STATIC_VALUE_TABLE
static
Initial value:
=
{
0.0f,
PI_2,
PI,
PI + PI_2,
}
static const f32 FLOAT_MAX
固定値:GxModMotionDataPlayerに、ベースポーズを使いたいと伝えたい時
Definition GxMotionCurvesContainer.h:92

静的値テーブル


The documentation for this class was generated from the following files: