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

リアルタイムデモ管理ユニット More...

#include <GxUnitRealTimeDemo.h>

Inheritance diagram for GxUnitRealTimeDemo:
Collaboration diagram for GxUnitRealTimeDemo:

Classes

class  GxReplaceUnit
 置き換えユニット管理クラス More...
 
class  GxRtdUnit
 ユニット情報保持用クラス More...
 

Public Member Functions

初期化
 GxUnitRealTimeDemo (void)
 デフォルトコンストラクタ
 
void cleanup (void) override
 解放処理
 
- Public Member Functions inherited from GxUnitLocate
 GxUnitLocate (void)
 コンストラクタ
 
GX_FORCE_INLINE const GxMatrixAffinegetWorldMatrix (void) const
 ワールドマトリクスの取得
 
void getWorldMatrix (GxMatrixAffine &matrix) const
 ワールドマトリクスの取得(再計算を行う)
 
GX_FORCE_INLINE void setWorldMatrix (const GxMatrixAffine &matrix)
 ワールドマトリクスの設定
 
GX_FORCE_INLINE GxMatrixAffinegetWorldMatrixAddress (void)
 ワールドマトリクスアドレスの取得
 
GX_FORCE_INLINE const GxVector3getPosition (void) const
 位置の取得
 
virtual GX_FORCE_INLINE void setPosition (const GxVector3 &position)
 位置の設定
 
GX_FORCE_INLINE const GxVector3getLocalPosition (void) const
 ローカル位置の取得
 
virtual GX_FORCE_INLINE void setLocalPosition (const GxVector3 &position)
 ローカル位置の設定
 
GX_FORCE_INLINE GxQuaternion getQuaternion (void) const
 回転値の取得
 
GX_FORCE_INLINE void setQuaternion (const GxQuaternion &quaternion)
 回転値の設定
 
GX_FORCE_INLINE const GxQuaterniongetLocalQuaternion (void) const
 ローカル回転値の取得
 
GX_FORCE_INLINE void setLocalQuaternion (const GxQuaternion &quaternion)
 ローカル回転値の設定
 
GX_FORCE_INLINE GxVector3 getScale (void) const
 拡縮率の取得
 
virtual GX_FORCE_INLINE void setScale (const GxVector3 &scale)
 拡縮率の設定
 
GX_FORCE_INLINE const GxVector3getLocalScale (void) const
 ローカル拡縮率の取得
 
virtual GX_FORCE_INLINE void setLocalScale (const GxVector3 &scale)
 ローカル拡縮率の設定
 
GX_FORCE_INLINE const GxShapeSpheregetBoundingSphere (void) const
 バウンディング球を取得
 
GX_FORCE_INLINE void setBoundingSphere (const GxShapeSphere &sphere)
 バウンディング球を設定
 
void getBoundingSphereWorld (GxShapeSphere &sphere) const
 ワールド座標のバウンディング球の取得
 
GX_FORCE_INLINE b32 isCulling (RENDER_VIEW view, u32 subView) const
 カリングされているか判定
 
GX_FORCE_INLINE b32 isCullingEnable (void) const
 カリングが有効かを取得
 
GX_FORCE_INLINE void setCullingEnable (b32 flag)
 カリングの有効設定
 
GX_FORCE_INLINE b32 enabledHierarchicalCulling (void) const
 階層カリングを有効にするオブジェクトかどうか?
 
GX_FORCE_INLINE void setHierarchicalCulling (b32 flag)
 階層カリングを有効にするかどうか?を設定(規定値は無効
 
GX_FORCE_INLINE b32 isDoneHierarchicalCulling (void) const
 階層カリングが既に行われた後かどうか?を判断する
 
GX_FORCE_INLINE void doneHierarchicalCulling (b32 flag)
 階層カリングを既に行ったかどうか?を設定する
 
constexpr u32 getCullingState (void) const
 カリングの結果のフラスタムの内外ステータスを取得する。
 
constexpr void setCullingState (u32 flag)
 カリングの結果のフラスタムの内外ステータスを保持する。
 
constexpr void clearCullingState (void)
 カリングの結果のフラスタムの内外ステータスを保持する。
 
GX_FORCE_INLINE b32 isMovable (MOVABLE movable) const
 可動性を判定
 
void setMovable (MOVABLE movable)
 可動性を設定
 
GX_FORCE_INLINE b32 isDirtyMovable (void) const
 可動性の変更を判定
 
GX_FORCE_INLINE void setDirtyMovable (b32 enable)
 可動性の変更を設定
 
void kill (void) override
 消去リクエスト
 
virtual void frustumCulling (void *pFrustum)
 カリングを実行
 
virtual void forceSetCullingFlag (u32 argument)
 オブジェクトのカリングフラグを強制設定
 
virtual void buildSpaceGraph (void *pOctree)
 空間木に追加
 
virtual void eraseSpaceGraph (void *pOctree)
 空間木から削除
 
virtual GX_FORCE_INLINE void updateLocalMatrix (void)
 ローカルマトリクスの更新
 
virtual void updateWorldMatrix (void)
 ワールドマトリクスの更新
 
void addX (f32 value)
 X軸方向に移動
 
void addY (f32 value)
 Y軸方向に移動
 
void addZ (f32 value)
 Z軸方向に移動
 
void addPosition (const GxVector3 &moveVector)
 指定方向に移動
 
void addQuaternion (const GxQuaternion &quaternion)
 クウォータニオン加算
 
void rotateAxisY (const GxVector3 &vector, f32 radian)
 Y軸を回転軸として、ワールドのZ軸を指定方向に回転
 
void rotateAxisZ (const GxVector3 &vector, f32 radian)
 Z軸を回転軸として、ワールドのY軸を指定方向に回転
 
b32 isAbleAddToOctree (void)
 8分木に登録可能か判定
 
b32 isAbleDeleteFromOctree (void)
 8分木から削除可能か判定
 
- Public Member Functions inherited from GxUnitBase
 GxUnitBase (void)
 コンストラクタ
 
constexpr f32 getDeltaTimeFactor (void) const
 デルタタイム係数を取得
 
constexpr void setDeltaTimeFactor (f32 deltaTimeFactor)
 デルタタイム係数を設定
 
constexpr f32 getDeltaTime (void) const
 デルタタイムを取得
 
constexpr void setDeltaTime (f32 deltaTime)
 デルタタイムを設定
 
constexpr f32 getDeltaTimeRatio (void) const
 デルタタイムレート(通常のフレームレートの何倍か)を取得
 
constexpr void setDeltaTimeRatio (f32 deltaTimeRatio)
 デルタタイムレート(通常のフレームレートの何倍か)を設定
 
constexpr STATE getState (void) const
 状態を取得
 
constexpr void setState (STATE state)
 状態を設定(ユーザーは使用してはならない内部使用)
 
GX_FORCE_INLINE b32 isEnable (void) const
 有効か判定
 
constexpr u32 getAttribute (void) const
 属性を取得
 
GX_FORCE_INLINE b32 isAttribute (ATTRIBUTE attribute) const
 属性を判定
 
GX_FORCE_INLINE void setAttribute (ATTRIBUTE attribute, b32 enable)
 属性を設定
 
GX_FORCE_INLINE b32 isRender (void) const
 描画フラグ判定
 
void setRender (b32 enable, b32 withChildren=false)
 描画フラグを設定
 
GX_FORCE_INLINE GxFlag32Index< RENDER_VIEWgetRenderViewFlag (void) const
 描画するビューフラグを取得
 
GX_FORCE_INLINE b32 isRenderView (RENDER_VIEW view) const
 描画するビューを判定
 
GX_FORCE_INLINE void setRenderView (RENDER_VIEW view, b32 enable)
 描画するビューを設定
 
GX_FORCE_INLINE b32 isRenderSubView (RENDER_SUB_VIEW subView) const
 描画するサブビューを判定
 
GX_FORCE_INLINE void setRenderSubView (RENDER_SUB_VIEW subView, b32 enable)
 描画するサブビューを設定
 
GX_FORCE_INLINE b32 isUpdateEnable (UPDATE_TYPE updateType) const
 更新を呼ぶかを判定
 
GX_FORCE_INLINE void setUpdateEnable (UPDATE_TYPE updateType, b32 enable)
 更新を呼ぶかを設定
 
GX_FORCE_INLINE void getPropertyAttributeUpdate (void *const pValue)
 プロパティ用:更新処理の属性を取得
 
GX_FORCE_INLINE void setPropertyAttributeUpdate (const void *const pValue)
 プロパティ用:更新処理の属性を設定
 
template<typename T >
T * getModule (void) const
 モジュールを取得
 
constexpr u32 getChildCount (void) const
 子ユニット数を取得
 
constexpr GxUnitBasegetChild (u32 index) const
 子ユニットを取得
 
constexpr GxUnitBasegetParent (void) const
 親ユニットを取得
 
void setParent (GxUnitBase *pParent)
 親ユニットを設定
 
constexpr GxResUnitInstancegetResUnitInstance (void) const
 ユニットインスタンスリソースを取得
 
void setResUnitInstance (GxResUnitInstance *pResUnitInstance)
 ユニットインスタンスリソースを設定
 
constexpr void getPropertyResUnitInstance (void *const pValue)
 ユニットインスタンスリソースプロパティの取得
 
void setPropertyResUnitInstance (const void *const pValue)
 ユニットインスタンスリソースプロパティの設定
 
GX_FORCE_INLINE const GxTypedObjectgetDefaultObject (void) override
 デフォルトオブジェクトを取得
 
constexpr GxUnitBasegetDefaultUnit (void) const
 デフォルトユニットを取得
 
void setDefaultUnit (GxUnitBase *pDefaultUnit)
 デフォルトユニットを設定
 
void sleep (f32 time)
 スリープ(スクリプト用)
 
template<typename T >
T * createAndAddChild (u32 listProcessNumber=U32_MAX, u32 listKindNumber=U32_MAX, b32 isSerialize=false, const GxRtti *pRtti=nullptr)
 子ユニットを追加作成
 
- Public Member Functions inherited from GxClassBaseReference
 GxClassBaseReference (void)
 コンストラクタ
 
 GxClassBaseReference (const GxClassBaseReference &base)
 コピーコンストラクタ
 
 ~GxClassBaseReference (void) override
 デストラクタ
 
constexpr GxClassBaseReferenceoperator= (const GxClassBaseReference &base)
 代入演算子
 
virtual s32 addReference (void)
 参照カウンタを加算
 
virtual s32 release (void)
 解放
 
virtual s32 getReferenceCount (void) const
 参照カウンタを取得
 
constexpr void setDelayReleaseCount (s32 count)
 遅延解放カウンタを設定
 
void setDelayReleaseCountInfinity (b32 on)
 無限解放待ちの設定
 
- 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の取得
 
GX_FORCE_INLINE b32 isDefaultObject (void)
 デフォルトオブジェクト判定
 

定義

enum class  INTERPOLATE_TYPE {
  TRIGGER , STEP , LINEAR , ADD_FRAME ,
  MAX , TYPE_RESERVED = 100
}
 キーの補間タイプ More...
 
enum class  END_FRAME_MODE { KEEP_UPDATE = 0 , DISABLE_RENDER , OLD }
 再生終了時の扱い More...
 
static constexpr u32 RESOURCE_MAX = GxMath::VALUE_4
 リソースの保持数
 

操作

void play (f32 targetFrame=INVALID_FRAME)
 再生リクエスト
 
void playLoop (f32 targetFrame=INVALID_FRAME, s32 count=-1)
 ループ再生リクエスト
 
void pause (void)
 一時停止リクエスト
 
void resume (void)
 再開リクエスト
 
void stop (void)
 停止リクエスト
 
void updateKeyFrame (void)
 キーフレームの更新
 
b32 addReplaceUnit (s32 discrimID, GxUnitBase *pUnit)
 置き換えユニットの追加登録
 
void clearReplaceUnit (void)
 登録された置き換えユニットのクリア
 
void asyncUpdate (void) override
 並列更新
 
void sequentialUpdate (void) override
 逐次更新
 
void forceAsyncUpdate (void) override
 強制並列更新
 
virtual GxUnitRealTimeDemo::GxRtdUnitcreateUnit (GxResRealTimeDemo::GxRtdUnit *pRtdUnit)
 ユニットを作成
 
virtual GX_FORCE_INLINE void playCall (void)
 再生開始時コールバック関数
 
virtual GX_FORCE_INLINE void stopCall (void)
 停止時コールバック関数
 
virtual GX_FORCE_INLINE void preCreateUnitCall (void)
 ユニット生成直前コールバック関数
 
virtual GX_FORCE_INLINE void afterCreateUnitCall (void)
 ユニット生成直後コールバック関数
 

アクセサ

void setResourceAsync (GxResRealTimeDemo *pRes, u32 index, b32 loadKeyResourceAsync=true)
 リソースを設定
 
constexpr GxResRealTimeDemogetResource (u32 index)
 リソースを取得
 
constexpr GxResRealTimeDemogetRTDResource (u32 index)
 リソースを取得
 
void setRTDResource (GxResRealTimeDemo *pRes, u32 index, b32 loadKeyResourceAsync=true)
 リソースを設定
 
b32 isPlayable (void) const
 再生可能かを判定
 
b32 isPlaying (void) const
 再生中判定(リクエストを考慮)
 
b32 _isPlaying (void) const
 再生中判定(実際に再生中か)
 
GX_FORCE_INLINE b32 isPausing (void) const
 一時停止中判定(リクエストを考慮)
 
GX_FORCE_INLINE b32 _isPausing (void) const
 一時停止中判定(実際に一時停止中か)
 
f32 getNowFrame (void) const
 現在フレームを取得
 
f32 getStartFrame (void) const
 開始フレームを取得
 
f32 getEndFrame (void) const
 終了フレームを取得
 
GX_FORCE_INLINE b32 isScreenShot (void)
 撮影モードか判定
 
GX_FORCE_INLINE void setScreenShot (b32 on)
 撮影モードを設定
 
void setPrecreateUnit (b32 enable)
 事前ユニット生成を設定
 
GxUnitBasegetUnit (u32 resourceIndex, u32 unitNodeId)
 ユニットを取得
 
GxUnitBasegetUnitFromDiscrimID (u32 resourceIndex, s32 discrimId)
 識別IDからユニットを取得
 
b32 getPropertyValueAsString (GxString &value, GxRtti *&pRtti, u32 resourceIndex, u32 unitNodeId, u32 propertyNodeId)
 プロパティの値を文字列として取得
 
b32 getPropertyValuePointer (GxTypedObject *&pValue, u32 resourceIndex, u32 unitNodeId, u32 targetPropertyNodeId)
 プロパティの値のアドレスを取得
 
b32 getPropertyValuePointer (GxTypedObject *&pValue, u32 resourceIndex, GxResRealTimeDemo::GxRtdUnit *pUnit, u32 targetPropertyNodeId)
 プロパティの値のアドレスを取得
 
void updatePlayState (void)
 再生状態の更新(特殊用途)
 
constexpr void setEndFrameMode (END_FRAME_MODE mode)
 再生終了時のふるまい方を設定
 
constexpr END_FRAME_MODE getEndFrameMode (void) const
 再生終了時のふるまい方を取得
 
virtual b32 getKeyValueB32 (const GxResRealTimeDemo::GxRtdUnit *pOwnerUnit, const GxTypedObject *pOwner, const GxResRealTimeDemo::GxRtdProp *pProperty, f32 nowFrame, f32 bkFrame, b32 &value)
 現在のキーの値を取得(B32)
 
virtual b32 getKeyValueS32 (const GxResRealTimeDemo::GxRtdUnit *pOwnerUnit, const GxTypedObject *pOwner, const GxResRealTimeDemo::GxRtdProp *pProperty, f32 nowFrame, f32 bkFrame, s32 &value)
 現在のキーの値を取得(S32)
 
virtual b32 getKeyValueU32 (const GxResRealTimeDemo::GxRtdUnit *pOwnerUnit, const GxTypedObject *pOwner, const GxResRealTimeDemo::GxRtdProp *pProperty, f32 nowFrame, f32 bkFrame, u32 &value)
 現在のキーの値を取得(U32)
 
virtual b32 getKeyValueF32 (const GxResRealTimeDemo::GxRtdUnit *pOwnerUnit, const GxTypedObject *pOwner, const GxResRealTimeDemo::GxRtdProp *pProperty, f32 nowFrame, f32 bkFrame, f32 &value)
 現在のキーの値を取得(F32)
 
virtual b32 getKeyValueVector2 (const GxResRealTimeDemo::GxRtdUnit *pOwnerUnit, const GxTypedObject *pOwner, const GxResRealTimeDemo::GxRtdProp *pProperty, f32 nowFrame, f32 bkFrame, GxVector2 &value)
 現在のキーの値を取得(Vector2)
 
virtual b32 getKeyValueVector3 (const GxResRealTimeDemo::GxRtdUnit *pOwnerUnit, const GxTypedObject *pOwner, const GxResRealTimeDemo::GxRtdProp *pProperty, f32 nowFrame, f32 bkFrame, GxVector3 &value)
 現在のキーの値を取得(Vector3)
 
virtual b32 getKeyValueQuaternion (const GxResRealTimeDemo::GxRtdUnit *pOwnerUnit, const GxTypedObject *pOwner, const GxResRealTimeDemo::GxRtdProp *pProperty, f32 nowFrame, f32 bkFrame, GxQuaternion &value)
 現在のキーの値を取得(Quaternion)
 
virtual b32 getKeyValueResource (const GxResRealTimeDemo::GxRtdUnit *pOwnerUnit, const GxTypedObject *pOwner, const GxResRealTimeDemo::GxRtdProp *pProperty, f32 nowFrame, f32 bkFrame, GxClassBaseRoot *&value)
 現在のキーの値を取得(Resource)
 
virtual b32 getKeyValueColor (const GxResRealTimeDemo::GxRtdUnit *pOwnerUnit, const GxTypedObject *pOwner, const GxResRealTimeDemo::GxRtdProp *pProperty, f32 nowFrame, f32 bkFrame, GxColor &value)
 現在のキーの値を取得(Color)
 
virtual b32 getKeyValueColorHDR (const GxResRealTimeDemo::GxRtdUnit *pOwnerUnit, const GxTypedObject *pOwner, const GxResRealTimeDemo::GxRtdProp *pProperty, f32 nowFrame, f32 bkFrame, GxColorHDR &value)
 現在のキーの値を取得(ColorHDR)
 
virtual b32 getKeyValueEvent (const GxResRealTimeDemo::GxRtdUnit *pOwnerUnit, const GxTypedObject *pOwner, const GxResRealTimeDemo::GxRtdProp *pProperty, f32 nowFrame, f32 bkFrame)
 現在のキーの値を取得(Event)
 
virtual b32 getKeyValueString (const GxResRealTimeDemo::GxRtdUnit *pOwnerUnit, const GxTypedObject *pOwner, const GxResRealTimeDemo::GxRtdProp *pProperty, f32 nowFrame, f32 bkFrame, GxString &value)
 現在のキーの値を取得(String)
 
GX_FORCE_INLINE const GxArrayClassBasegetReplaceUnitArray (void)
 置き換えユニット配列の取得
 
GX_FORCE_INLINE void setCallbackStop (GxCallback::GxHandlerBase handler)
 停止時コールバックを設定
 
GX_FORCE_INLINE void setForceSkipPlayMode (b32 enable)
 
GX_FORCE_INLINE b32 isForceSkipPlayMode (void) const
 スキップ再生モードを強制するか否かを取得
 
virtual f32 getDeltaFrame (void)
 デルタ時間をフレーム数単位で取得
 
virtual GX_FORCE_INLINE b32 isSetupFinished (void)
 追加リソースロード待ち関数(主にリソースシステムに管理されない外部ライブラリとの連携用)
 
GX_FORCE_INLINE GxArrayClassBasegetUnitArray (u32 index)
 ユニット配列を取得
 
b32 getPreviousNextKey (const GxResRealTimeDemo::GxRtdProp *pProperty, f32 nowFrame, f32 beforeFrame, GxResRealTimeDemo::GxRtdKeyBase *&pPreviousKey, GxResRealTimeDemo::GxRtdKeyBase *&pNextKey)
 現在フレームの前後のキーを取得
 
virtual void pauseMotion (void)
 モーションを一時停止
 
virtual void resumeMotion (void)
 モーションを再開
 
static b32 isSupport (GxProperty *pProperty)
 プロパティタイプがサポートされているか判定
 
static GX_FORCE_INLINE GxRttigetRttiCreateCharacter (void)
 継承するRTD用キャラクタクラスを取得
 
static constexpr void setRttiCreateCharacter (GxRtti *pRtti)
 継承するRTD用キャラクタクラスを設定
 
static GX_FORCE_INLINE GxRttigetRttiCreateCamera (void)
 継承するRTD用カメラクラスを取得
 
static constexpr void setRttiCreateCamera (GxRtti *pRtti)
 継承するRTD用カメラクラスを設定
 

Additional Inherited Members

- Public Types inherited from GxUnitLocate
enum class  MOVABLE { NONE , STATIC , DYNAMIC , MAX }
 可動性定義 More...
 
enum class  CULLING_FRUSTUM {
  NORMAL , SHADOW_0 , SHADOW_1 , SHADOW_2 ,
  SHADOW_3 , POINT_SHADOW_0 , POINT_SHADOW_1 , REFLECTION ,
  POST , OTHER , MAX
}
 フラスタムカリング定義 More...
 
- Public Types inherited from GxUnitBase
enum class  STATE { SETUP , RUNNING , DELETE_ }
 状態 More...
 
enum  ATTRIBUTE {
  ATTRIBUTE_UPDATE = (1 << 0) , ATTRIBUTE_SELECTED = (1 << 1) , ATTRIBUTE_LOCK = (1 << 2) , ATTRIBUTE_SLOW = (1 << 3) ,
  ATTRIBUTE_NOSERIALIZE = (1 << 4)
}
 属性 More...
 
- Static Public Member Functions inherited from GxClassBaseReference
static void initializeDelayRelease (void)
 遅延解放リストの初期化
 
static void terminateDelayRelease (void)
 遅延解放リストの終了
 
static void updateDelayRelease (void)
 遅延解放リストの更新
 
static b32 isDelayReleaseEnable (void)
 遅延解放システムの有効判定
 
static u32 getDelayReleaseListCount (void)
 遅延解放待ちの数を取得
 
- Static Public Member Functions inherited from GxClassBaseRoot
static GX_FORCE_INLINE GxRtti__getStaticRtti (void)
 Rttiの取得
 
- Static Public Attributes inherited from GxClassBaseReference
static constexpr s32 DELAY_RELEASE_COUNT_INFINITY = -1
 遅延解放の無限待ち定義
 
- Protected Member Functions inherited from GxUnitLocate
virtual void updateSpaceGraph (GxOtFrustumCulling *pOctree)
 
b32 setup (void) override
 初期化
 
void preAsyncUpdate (void) override
 並列更新(asyncUpdateの前に実行される)
 
void render (void) override
 描画
 
- Protected Member Functions inherited from GxUnitBase
virtual void postAsyncUpdate (void)
 並列更新(asyncUpdateの後に実行される)
 
virtual b32 setRenderMaterial (GxRenderMaterial *pMaterial, const GxResModel::GxMeshGroup *pMeshGroup)
 マテリアルの描画設定
 
template<typename T >
T * addModule (void)
 モジュールを作成
 
template<typename T >
void removeModule (void)
 モジュールを削除
 
- Static Protected Member Functions inherited from GxUnitLocate
static CULLING_FRUSTUM getFrustumType (const RENDER_SUB_VIEW subview)
 サブビューモードからカリングフラスタムのタイプを取得
 
- Protected Attributes inherited from GxClassBaseReference
s32 _referenceCount
 参照カウンタ
 
s32 _delayReleaseCount
 遅延解放カウンタ
 

Detailed Description

リアルタイムデモ管理ユニット

Member Enumeration Documentation

◆ END_FRAME_MODE

再生終了時の扱い

Enumerator
KEEP_UPDATE 

紐づいているユニットのアップデートを回す

DISABLE_RENDER 

紐づいているユニットのアップデートを止める時に、描画もしないようにする

OLD 

紐づいているユニットのアップデートは止めるが、描画はする(旧処理)

◆ INTERPOLATE_TYPE

キーの補間タイプ

Enumerator
TRIGGER 

キーフレームが打たれた瞬間のみ値を適用

STEP 

補間無し

LINEAR 

線形補間

ADD_FRAME 

キー値+経過フレーム(数値型以外はSTEPと同じ)

MAX 

定義数

TYPE_RESERVED 

GxUnitRealTimeDemoで定義される補間タイプの予約分

Member Function Documentation

◆ _isPlaying()

b32 GxUnitRealTimeDemo::_isPlaying ( void ) const

再生中判定(実際に再生中か)

Returns
再生中ならtrue
Here is the caller graph for this function:

◆ addReplaceUnit()

b32 GxUnitRealTimeDemo::addReplaceUnit ( s32 discrimID,
GxUnitBase * pUnit )

置き換えユニットの追加登録

Parameters
discrimID[in] 識別ID
pUnit[in] 置き換えて再生するユニット
Returns
成功ならtrue
Here is the call graph for this function:

◆ asyncUpdate()

void GxUnitRealTimeDemo::asyncUpdate ( void )
overrideprotectedvirtual

並列更新

Reimplemented from GxUnitLocate.

Here is the call graph for this function:

◆ cleanup()

void GxUnitRealTimeDemo::cleanup ( void )
overridevirtual

解放処理

Reimplemented from GxUnitLocate.

Here is the call graph for this function:

◆ createUnit()

GxUnitRealTimeDemo::GxRtdUnit * GxUnitRealTimeDemo::createUnit ( GxResRealTimeDemo::GxRtdUnit * pRtdUnit)
protectedvirtual

ユニットを作成

Parameters
pRtdUnit[in] ユニット情報
Returns
生成したユニット
Here is the call graph for this function:
Here is the caller graph for this function:

◆ forceAsyncUpdate()

void GxUnitRealTimeDemo::forceAsyncUpdate ( void )
overrideprotectedvirtual

強制並列更新

Reimplemented from GxUnitLocate.

◆ getDeltaFrame()

f32 GxUnitRealTimeDemo::getDeltaFrame ( void )
protectedvirtual

デルタ時間をフレーム数単位で取得

Returns
デルタフレーム
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getEndFrame()

f32 GxUnitRealTimeDemo::getEndFrame ( void ) const

終了フレームを取得

Returns
終了フレーム
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getKeyValueB32()

b32 GxUnitRealTimeDemo::getKeyValueB32 ( const GxResRealTimeDemo::GxRtdUnit * pOwnerUnit,
const GxTypedObject * pOwner,
const GxResRealTimeDemo::GxRtdProp * pProperty,
f32 nowFrame,
f32 beforeFrame,
b32 & value )
virtual

現在のキーの値を取得(B32)

Parameters
pUnit[in] ユニット(未使用)
pObject[in] オブジェクト(未使用)
pProperty[in] プロパティ
nowFrame[in] 現在のフレーム
beforeFrame [in]前のフレーム
value[in] 取得値
Returns
成功ならtrue
Here is the call graph for this function:

◆ getKeyValueColor()

b32 GxUnitRealTimeDemo::getKeyValueColor ( const GxResRealTimeDemo::GxRtdUnit * pOwnerUnit,
const GxTypedObject * pOwner,
const GxResRealTimeDemo::GxRtdProp * pProperty,
f32 nowFrame,
f32 beforeFrame,
GxColor & value )
virtual

現在のキーの値を取得(Color)

Parameters
pUnit[in] ユニット(未使用)
pObject[in] オブジェクト(未使用)
pProperty[in] プロパティ
nowFrame[in] 現在のフレーム
beforeFrame [in]前のフレーム
value[in] 取得値
Returns
成功ならtrue
Here is the call graph for this function:

◆ getKeyValueColorHDR()

b32 GxUnitRealTimeDemo::getKeyValueColorHDR ( const GxResRealTimeDemo::GxRtdUnit * pOwnerUnit,
const GxTypedObject * pOwner,
const GxResRealTimeDemo::GxRtdProp * pProperty,
f32 nowFrame,
f32 beforeFrame,
GxColorHDR & value )
virtual

現在のキーの値を取得(ColorHDR)

Parameters
pUnit[in] ユニット(未使用)
pObject[in] オブジェクト(未使用)
pProperty[in] プロパティ
nowFrame[in] 現在のフレーム
beforeFrame [in]前のフレーム
value[in] 取得値
Returns
成功ならtrue
Here is the call graph for this function:

◆ getKeyValueEvent()

b32 GxUnitRealTimeDemo::getKeyValueEvent ( const GxResRealTimeDemo::GxRtdUnit * pOwnerUnit,
const GxTypedObject * pOwner,
const GxResRealTimeDemo::GxRtdProp * pProperty,
f32 nowFrame,
f32 beforeFrame )
virtual

現在のキーの値を取得(Event)

Parameters
pUnit[in] ユニット(未使用)
pObject[in] オブジェクト(未使用)
pProperty[in] プロパティ
nowFrame[in] 現在のフレーム
beforeFrame [in]前のフレーム
Returns
成功ならtrue
Here is the call graph for this function:

◆ getKeyValueF32()

b32 GxUnitRealTimeDemo::getKeyValueF32 ( const GxResRealTimeDemo::GxRtdUnit * pOwnerUnit,
const GxTypedObject * pOwner,
const GxResRealTimeDemo::GxRtdProp * pProperty,
f32 nowFrame,
f32 beforeFrame,
f32 & value )
virtual

現在のキーの値を取得(F32)

Parameters
pUnit[in] ユニット(未使用)
pObject[in] オブジェクト(未使用)
pProperty[in] プロパティ
nowFrame[in] 現在のフレーム
beforeFrame [in]前のフレーム
value[in] 取得値
Returns
成功ならtrue
Here is the call graph for this function:

◆ getKeyValueQuaternion()

b32 GxUnitRealTimeDemo::getKeyValueQuaternion ( const GxResRealTimeDemo::GxRtdUnit * pOwnerUnit,
const GxTypedObject * pOwner,
const GxResRealTimeDemo::GxRtdProp * pProperty,
f32 nowFrame,
f32 beforeFrame,
GxQuaternion & value )
virtual

現在のキーの値を取得(Quaternion)

Parameters
pUnit[in] ユニット(未使用)
pObject[in] オブジェクト(未使用)
pProperty[in] プロパティ
nowFrame[in] 現在のフレーム
beforeFrame [in]前のフレーム
value[in] 取得値
Returns
成功ならtrue
Here is the call graph for this function:

◆ getKeyValueResource()

b32 GxUnitRealTimeDemo::getKeyValueResource ( const GxResRealTimeDemo::GxRtdUnit * pOwnerUnit,
const GxTypedObject * pOwner,
const GxResRealTimeDemo::GxRtdProp * pProperty,
f32 nowFrame,
f32 beforeFrame,
GxClassBaseRoot *& value )
virtual

現在のキーの値を取得(Resource)

Parameters
pUnit[in] ユニット(未使用)
pObject[in] オブジェクト(未使用)
pProperty[in] プロパティ
nowFrame[in] 現在のフレーム
beforeFrame [in]前のフレーム
value[in] 取得値
Returns
成功ならtrue
Here is the call graph for this function:

◆ getKeyValueS32()

b32 GxUnitRealTimeDemo::getKeyValueS32 ( const GxResRealTimeDemo::GxRtdUnit * pOwnerUnit,
const GxTypedObject * pOwner,
const GxResRealTimeDemo::GxRtdProp * pProperty,
f32 nowFrame,
f32 beforeFrame,
s32 & value )
virtual

現在のキーの値を取得(S32)

Parameters
pUnit[in] ユニット(未使用)
pObject[in] オブジェクト(未使用)
pProperty[in] プロパティ
nowFrame[in] 現在のフレーム
beforeFrame [in]前のフレーム
value[in] 取得値
Returns
成功ならtrue
Here is the call graph for this function:

◆ getKeyValueString()

b32 GxUnitRealTimeDemo::getKeyValueString ( const GxResRealTimeDemo::GxRtdUnit * pOwnerUnit,
const GxTypedObject * pOwner,
const GxResRealTimeDemo::GxRtdProp * pProperty,
f32 nowFrame,
f32 beforeFrame,
GxString & value )
virtual

現在のキーの値を取得(String)

Parameters
pUnit[in] ユニット(未使用)
pObject[in] オブジェクト(未使用)
pProperty[in] プロパティ
nowFrame[in] 現在のフレーム
beforeFrame [in]前のフレーム
value[in] 取得値
Returns
成功ならtrue
Here is the call graph for this function:

◆ getKeyValueU32()

b32 GxUnitRealTimeDemo::getKeyValueU32 ( const GxResRealTimeDemo::GxRtdUnit * pOwnerUnit,
const GxTypedObject * pOwner,
const GxResRealTimeDemo::GxRtdProp * pProperty,
f32 nowFrame,
f32 beforeFrame,
u32 & value )
virtual

現在のキーの値を取得(U32)

Parameters
pUnit[in] ユニット(未使用)
pObject[in] オブジェクト(未使用)
pProperty[in] プロパティ
nowFrame[in] 現在のフレーム
beforeFrame [in]前のフレーム
value[in] 取得値
Returns
成功ならtrue
Here is the call graph for this function:

◆ getKeyValueVector2()

b32 GxUnitRealTimeDemo::getKeyValueVector2 ( const GxResRealTimeDemo::GxRtdUnit * pOwnerUnit,
const GxTypedObject * pOwner,
const GxResRealTimeDemo::GxRtdProp * pProperty,
f32 nowFrame,
f32 beforeFrame,
GxVector2 & value )
virtual

現在のキーの値を取得(Vector2)

Parameters
pUnit[in] ユニット(未使用)
pObject[in] オブジェクト(未使用)
pProperty[in] プロパティ
nowFrame[in] 現在のフレーム
beforeFrame [in]前のフレーム
value[in] 取得値
Returns
成功ならtrue
Here is the call graph for this function:

◆ getKeyValueVector3()

b32 GxUnitRealTimeDemo::getKeyValueVector3 ( const GxResRealTimeDemo::GxRtdUnit * pOwnerUnit,
const GxTypedObject * pOwner,
const GxResRealTimeDemo::GxRtdProp * pProperty,
f32 nowFrame,
f32 beforeFrame,
GxVector3 & value )
virtual

現在のキーの値を取得(Vector3)

Parameters
pUnit[in] ユニット(未使用)
pObject[in] オブジェクト(未使用)
pProperty[in] プロパティ
nowFrame[in] 現在のフレーム
beforeFrame [in]前のフレーム
value[in] 取得値
Returns
成功ならtrue
Here is the call graph for this function:

◆ getNowFrame()

f32 GxUnitRealTimeDemo::getNowFrame ( void ) const

現在フレームを取得

Returns
現在フレーム

◆ getPreviousNextKey()

b32 GxUnitRealTimeDemo::getPreviousNextKey ( const GxResRealTimeDemo::GxRtdProp * pProperty,
f32 nowFrame,
f32 beforeFrame,
GxResRealTimeDemo::GxRtdKeyBase *& pPreviousKey,
GxResRealTimeDemo::GxRtdKeyBase *& pNextKey )
protected

現在フレームの前後のキーを取得

Parameters
pProperty[in] プロパティ
nowFrame[in] 現在のフレーム
beforeFrame [in]前のフレーム(未使用)
pPreviousKey[in] 前のキー
pNextKey[in] 次のキー
Returns
成功ならtrue
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPropertyValueAsString()

b32 GxUnitRealTimeDemo::getPropertyValueAsString ( GxString & value,
GxRtti *& pRtti,
u32 resourceIndex,
u32 unitNodeId,
u32 propertyNodeId )

プロパティの値を文字列として取得

Parameters
value[in] 格納する文字列
pRtti[in] RTTI
resourceIndex[in] リソースインデックス
unitNodeId[in] ユニットのノードID
propertyNodeId[in] プロパティのノードID
Returns
成功ならtrue
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPropertyValuePointer() [1/2]

b32 GxUnitRealTimeDemo::getPropertyValuePointer ( GxTypedObject *& pValue,
u32 resourceIndex,
GxResRealTimeDemo::GxRtdUnit * pUnit,
u32 targetPropertyNodeId )

プロパティの値のアドレスを取得

Parameters
pValue[in] 格納ポインタ
resourceIndex[in] リソースインデックス
pUnit[in] ユニット
targetPropertyNodeId[in] 対象プロパティのノードID
Returns
成功ならtrue
Here is the call graph for this function:

◆ getPropertyValuePointer() [2/2]

b32 GxUnitRealTimeDemo::getPropertyValuePointer ( GxTypedObject *& pValue,
u32 resourceIndex,
u32 unitNodeId,
u32 targetPropertyNodeId )

プロパティの値のアドレスを取得

Parameters
pValue[in] 格納ポインタ
resourceIndex[in] リソースインデックス
unitNodeId[in] ユニットのノードID
targetPropertyNodeId[in] 対象プロパティのノードID
Returns
成功ならtrue
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getStartFrame()

f32 GxUnitRealTimeDemo::getStartFrame ( void ) const

開始フレームを取得

Returns
開始フレーム
Here is the call graph for this function:

◆ getUnit()

GxUnitBase * GxUnitRealTimeDemo::getUnit ( u32 resourceIndex,
u32 unitNodeId )

ユニットを取得

Parameters
resourceIndex[in] リソースインデックス
unitNodeId[in] ユニットのノードID
Returns
ユニット
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getUnitFromDiscrimID()

GxUnitBase * GxUnitRealTimeDemo::getUnitFromDiscrimID ( u32 resourceIndex,
s32 discrimId )

識別IDからユニットを取得

Parameters
resourceIndex[in] リソースインデックス
discrimId[in] 識別ID
Returns
ユニット
Here is the call graph for this function:

◆ isPlayable()

b32 GxUnitRealTimeDemo::isPlayable ( void ) const

再生可能かを判定

Returns
再生可能ならtrue
Here is the caller graph for this function:

◆ isPlaying()

b32 GxUnitRealTimeDemo::isPlaying ( void ) const

再生中判定(リクエストを考慮)

Returns
再生中ならtrue
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isSupport()

b32 GxUnitRealTimeDemo::isSupport ( GxProperty * pProperty)
static

プロパティタイプがサポートされているか判定

Parameters
pProperty[in] プロパティ
Returns
サポートされているか
Here is the call graph for this function:

◆ play()

void GxUnitRealTimeDemo::play ( f32 targetFrame = INVALID_FRAME)

再生リクエスト

Parameters
targetFrame[in] 再生目標フレーム
Here is the call graph for this function:
Here is the caller graph for this function:

◆ playLoop()

void GxUnitRealTimeDemo::playLoop ( f32 targetFrame = INVALID_FRAME,
s32 count = -1 )

ループ再生リクエスト

Parameters
targetFrame[in] 再生目標フレーム
count[in] ループ回数(-1なら無限ループ)
Here is the call graph for this function:

◆ sequentialUpdate()

void GxUnitRealTimeDemo::sequentialUpdate ( void )
overrideprotectedvirtual

逐次更新

Reimplemented from GxUnitBase.

Here is the call graph for this function:

◆ setForceSkipPlayMode()

GX_FORCE_INLINE void GxUnitRealTimeDemo::setForceSkipPlayMode ( b32 enable)
inline

スキップ再生モードを強制するか否かを設定 なお、可変フレームレート時はこの設定の有無に関わらず、スキップ再生モードで動作します。

◆ setPrecreateUnit()

void GxUnitRealTimeDemo::setPrecreateUnit ( b32 enable)

事前ユニット生成を設定

Parameters
enable[in] 有効にするか
Here is the call graph for this function:

◆ setRTDResource()

void GxUnitRealTimeDemo::setRTDResource ( GxResRealTimeDemo * pRes,
u32 index,
b32 loadKeyResourceAsync = true )

リソースを設定

Parameters
pRes[in] 設定リソース
index[in] インデックス
loadKeyResourceAsync[in] 非同期ロードするならtrue
Here is the call graph for this function:

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