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

モーション補間設定リソースクラス More...

#include <GxResMotionInterpolationSettings.h>

Inheritance diagram for GxResMotionInterpolationSettings:
Collaboration diagram for GxResMotionInterpolationSettings:

Classes

class  Filter
 フィルター More...
 

Public Member Functions

初期化
 GxResMotionInterpolationSettings (void)
 コンストラクタ
 
void cleanup (void) override
 解放
 
- Public Member Functions inherited from GxResBase
s32 release (void) override
 解放
 
virtual GX_FORCE_INLINE void callback (void)
 
constexpr u64 getId (void) const
 ID取得
 
GX_FORCE_INLINE void setPath (GX_CSTR path)
 パス設定
 
constexpr GX_CSTR getPath (void) const
 パス取得
 
constexpr u32 getFileSize (void) const
 ファイルサイズ取得
 
constexpr u32 getSize (void) const
 サイズ取得
 
constexpr GxResBasegetConfig (void) const
 コンフィグ取得
 
constexpr ASYNC_STATE getAsyncState (void) const
 非同期ステート取得
 
GX_FORCE_INLINE b32 isAsyncState (ASYNC_STATE asyncState) const
 非同期ステート判定
 
GX_FORCE_INLINE b32 isAsyncStateWorking (void) const
 非同期動作中判定
 
constexpr ASYNC_PRIORITY getAsyncPriority (void) const
 非同期優先度取得
 
GX_FORCE_INLINE b32 isUsable (void) const
 使用可能判定
 
constexpr GX_CSTR getExtension (void) const
 拡張子取得
 
constexpr u32 getMagicNumber (void) const
 マジックナンバー取得
 
constexpr u32 getVersion (void) const
 バージョン取得
 
GX_FORCE_INLINE void setOriginalPath (GX_CSTR path)
 オリジナルパス設定
 
constexpr GX_CSTR getOriginalPath (void) const
 オリジナルパス取得
 
GX_FORCE_INLINE b32 isResourceBaseAttribute (RESOURCE_BASE_ATTRIBUTE attribute) const
 リソース属性判定
 
- 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 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の取得
 
virtual GX_FORCE_INLINE const GxTypedObjectgetDefaultObject (void)
 デフォルトオブジェクトを取得
 
GX_FORCE_INLINE b32 isDefaultObject (void)
 デフォルトオブジェクト判定
 

Protected Attributes

メンバ変数
u32 _motionCount
 モーション数
 
GxMotionInterpolationSetting _defaultSetting
 デフォールトの補間設定
 
u32 _settingsCount
 補間設定行列のサイズ
 
GxMotionInterpolationSetting_pSettingsArray
 補間設定行列
 
u32 _filtersCount
 フィルター数
 
Filter_pFiltersArray
 フィルター配列
 
- Protected Attributes inherited from GxClassBaseReference
s32 _referenceCount
 参照カウンタ
 
s32 _delayReleaseCount
 遅延解放カウンタ
 

定義

static const s32 FILTER_NOT_FOUND = -1
 不明フィルター値
 
 GX_RTTI_RESOURCE_NAME (GxResMotionInterpolationSettings, GxResBase, "モーション補間設定リソース")
 

操作

b32 load (GxStream &stream, u32)
 
GxMotionInterpolationSettingcreateInterpolationSetting (u32 startMotionNumber, u32 targetMotionNumber, GxMotionInterpolationSetting::MODE mode, b32 isAcceptSameSetting=false)
 補間設定行列の要素を作成
 
void removeInterpolationSetting (u32 startMotionNumber, u32 targetMotionNumber, GxMotionInterpolationSetting::MODE mode)
 補間設定行列の要素を削除
 
void addFilter (GxString name, b32 isAcceptSameName=false)
 フィルター追加
 
s32 getFilterIndex (GxString name)
 フィルターインデックスを取得
 
s32 getFilterIndex (Filter *pFilter)
 フィルターインデックスを取得
 
void deleteFilter (u32 filterNumber, b32 replaceSettings)
 フィルターを削除
 
void deleteFilter (GxString name, b32 replaceSettings)
 フィルターを削除
 
void deleteMotionFromFilter (u32 motionNumber, u32 filterNumber, b32 replaceSettings)
 モーションを削除
 
void addMotionToFilter (u32 motionNumber, u32 filterNumber, b32 isCopy=true)
 モーションを追加
 
s32 checkMotionNumberFromFilter (u32 motionNumber) const
 指定したモーションナンバーがフィルターに含まれているか判定
 

アクセサ

constexpr u32 getFilterCount (void) const
 フィルター数を取得
 
GX_FORCE_INLINE FiltergetFilter (u32 index)
 フィルターを取得
 
GxMotionInterpolationSettinggetInterpolationSetting (u32 startMotionNumber, u32 targetMotionNumber, GxMotionInterpolationSetting::MODE mode)
 補間設定行列の要素を取得
 
GxMotionInterpolationSetting const * getInterpolationSetting (u32 startMotionNumber, u32 targetMotionNumber, GxMotionInterpolationSetting::MODE mode) const
 補間設定行列の要素を取得(const版)
 
GxMotionInterpolationSettinggetDefaultInterpolationSetting (void)
 デフォールト補間設定行列の要素を取得
 
GxMotionInterpolationSetting const * getDefaultInterpolationSetting (void) const
 デフォールト補間設定行列の要素を取得(const版)
 
constexpr void setMotionCount (u32 motionCount)
 モーション数を設定
 
GX_FORCE_INLINE GxMotionInterpolationSettinggetMotionInterpolationSetting (u32 index)
 モーション補間オブジェクトを取得
 
constexpr u32 getMotionInterpolationSetting (void)
 モーション補間オブジェクト数を取得
 

Additional Inherited Members

- Public Types inherited from GxResBase
enum class  ASYNC_STATE {
  LOADING = 0 , COMPLETE , CANCEL_REQUAST , INITIALIZED ,
  ERROR_ = -1 , CANCELED = -2
}
 非同期ロード状態 More...
 
enum class  ASYNC_PRIORITY { NORMAL = 0 , LOW }
 非同期ロード優先 More...
 
enum class  RESOURCE_BASE_ATTRIBUTE {
  USE_DATA_FROM_SYSTEM , ANY_PATH_RESOURCE , USE_MAIN_MEMORY , REGISTERED_NON_REPLACED ,
  ASYNC_SET_RESOURCE
}
 基底リソース属性定義 More...
 
- Static Public Member Functions inherited from GxResBase
static void registerCustomProperty (void)
 カスタムプロパティ登録
 
static void customPropertyToString (GxProperty &property, GxTypedObject *pOwner, u32 index, GxString *pString, u32 &stringCount)
 カスタムプロパティ処理 (プロパティ → 文字列)
 
static void customPropertyFromString (GxProperty &property, GxTypedObject *pOwner, u32 index, GxString *pString, u32 stringCount)
 カスタムプロパティ処理 (文字列 → プロパティ)
 
static u32 customPropertyGetSerializedBinarySize (GxProperty &property, GxTypedObject *pOwner, u32 index)
 カスタムプロパティ処理 (シリアライズ後バイナリサイズ取得)
 
static void * customPropertySerializeBinary (GxProperty &property, GxTypedObject *pOwner, u32 index, void *pData)
 カスタムプロパティ処理 (バイナリシリアライズ)
 
static const void * customPropertyDeserializeBinary (GxProperty &property, GxTypedObject *pOwner, u32 index, const void *pData)
 カスタムプロパティ処理 (バイナリデシリアライズ)
 
- 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 GxResBase
static const u32 RESOURCE_VERSION = 2
 リソースバージョン定義
 
static constexpr u32 RESOURCE_PATH_MAX = GxMath::VALUE_256
 リソースパス最大長
 
static constexpr u32 RESOURCE_CUSTOM_PROPERTY_STRING_NUM = GxMath::VALUE_2
 リソースカスタムプロパティ文字列登録数 (クラス名 + パス)
 
static constexpr u32 RESOURCE_PATH_ENCRYPT_KEY_NUM = GxMath::VALUE_8
 暗号化キー個数
 
- Static Public Attributes inherited from GxClassBaseReference
static constexpr s32 DELAY_RELEASE_COUNT_INFINITY = -1
 遅延解放の無限待ち定義
 
- Protected Member Functions inherited from GxResBase
 GxResBase (void)
 コンストラクタ (※本クラスの直接インスタンス化禁止)
 
void createCallback (void *pUser)
 生成時コールバック
 
b32 load (GxStream &stream, u32 size)
 ロード
 
b32 loadBinary (GxStream &stream)
 バイナリリソースのロード
 
constexpr void setId (u64 id)
 ID設定
 
constexpr void setFileSize (u32 fileSize)
 ファイルサイズ設定
 
constexpr void setSize (u32 size)
 サイズ設定
 
GX_FORCE_INLINE void setConfig (GxResBase *pConfig)
 コンフィグ設定
 
constexpr void setAsyncState (ASYNC_STATE asyncState)
 非同期ステート設定
 
constexpr void setAsyncPriority (ASYNC_PRIORITY asyncPriority)
 非同期優先度設定
 
constexpr GX_HANDLE getAsyncHandle (void) const
 非同期読込みハンドル取得
 
constexpr void setAsyncHandle (GX_HANDLE handle)
 非同期読込みハンドル設定
 
GX_FORCE_INLINE void setUsable (b32 flag)
 使用可能設定
 
GX_FORCE_INLINE GxZlibgetZlib (void)
 Zlib取得
 
constexpr void * getDataFromSystem (void)
 システム受け渡しデータを取得
 
GX_FORCE_INLINE void setResourceBaseAttribute (RESOURCE_BASE_ATTRIBUTE attribute, b32 enable)
 リソース属性設定
 

Detailed Description

モーション補間設定リソースクラス

Member Function Documentation

◆ addFilter()

void GxResMotionInterpolationSettings::addFilter ( GxString name,
b32 isAcceptSameName = false )

フィルター追加

Parameters
name[in] 名前
isAcceptSameName[in] 同名を許可するならtrue
Here is the call graph for this function:

◆ addMotionToFilter()

void GxResMotionInterpolationSettings::addMotionToFilter ( u32 motionNumber,
u32 filterNumber,
b32 isCopy = true )

モーションを追加

Parameters
motionNumber[in] モーション番号
filterNumber[in] フィルター番号
isCopy[in] コピーするならtrue
Here is the call graph for this function:

◆ checkMotionNumberFromFilter()

s32 GxResMotionInterpolationSettings::checkMotionNumberFromFilter ( u32 motionNumber) const

指定したモーションナンバーがフィルターに含まれているか判定

Parameters
motionNumber[in] モーション番号
Returns
インデックス(含まれてなければ-1)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cleanup()

void GxResMotionInterpolationSettings::cleanup ( void )
overridevirtual

解放

Reimplemented from GxResBase.

Here is the call graph for this function:

◆ createInterpolationSetting()

GxMotionInterpolationSetting * GxResMotionInterpolationSettings::createInterpolationSetting ( u32 startMotionNumber,
u32 targetMotionNumber,
GxMotionInterpolationSetting::MODE mode,
b32 isAcceptSameSetting = false )

補間設定行列の要素を作成

Parameters
startMotionNumber[in] 開始モーション番号
targetMotionNumber[in] 終了モーション番号
Returns
作成された補間設定ポインタ
Note
設定がすでに存在するなら、直接その設定を返します
Here is the call graph for this function:
Here is the caller graph for this function:

◆ deleteFilter() [1/2]

void GxResMotionInterpolationSettings::deleteFilter ( GxString name,
b32 replaceSettings )

フィルターを削除

Parameters
name[in] フィルター名
replaceSettings[in] 置き換え設定があればtrue
Here is the call graph for this function:

◆ deleteFilter() [2/2]

void GxResMotionInterpolationSettings::deleteFilter ( u32 filterNumber,
b32 replaceSettings )

フィルターを削除

Parameters
filterNumber[in] フィルター番号
replaceSettings[in] 置き換え設定があればtrue
Here is the call graph for this function:
Here is the caller graph for this function:

◆ deleteMotionFromFilter()

void GxResMotionInterpolationSettings::deleteMotionFromFilter ( u32 motionNumber,
u32 filterNumber,
b32 replaceSettings )

モーションを削除

Parameters
motionNumber[in] モーション番号
filterNumber[in] フィルター番号
replaceSettings[in] 置き換え設定があればtrue
Here is the call graph for this function:

◆ getDefaultInterpolationSetting() [1/2]

GxMotionInterpolationSetting * GxResMotionInterpolationSettings::getDefaultInterpolationSetting ( void )

デフォールト補間設定行列の要素を取得

Returns
補間設定データ
Here is the caller graph for this function:

◆ getDefaultInterpolationSetting() [2/2]

const GxMotionInterpolationSetting * GxResMotionInterpolationSettings::getDefaultInterpolationSetting ( void ) const

デフォールト補間設定行列の要素を取得(const版)

Returns
補間設定データ

◆ getFilterIndex() [1/2]

s32 GxResMotionInterpolationSettings::getFilterIndex ( Filter * pFilter)

フィルターインデックスを取得

Parameters
pFilter[in] フィルター
Returns
インデックス(含まれてなければ-1)

◆ getFilterIndex() [2/2]

s32 GxResMotionInterpolationSettings::getFilterIndex ( GxString name)

フィルターインデックスを取得

Parameters
name[in] フィルター名
Returns
インデックス(含まれてなければ-1)
Here is the caller graph for this function:

◆ getInterpolationSetting() [1/2]

GxMotionInterpolationSetting * GxResMotionInterpolationSettings::getInterpolationSetting ( u32 startMotionNumber,
u32 targetMotionNumber,
GxMotionInterpolationSetting::MODE mode )

補間設定行列の要素を取得

Parameters
startMotionNumber[in] 開始モーション番号
targetMotionNumber[in] 終了モーション番号
mode[in] 補間モード
Returns
指定された補間設定データ
Here is the caller graph for this function:

◆ getInterpolationSetting() [2/2]

GxMotionInterpolationSetting const * GxResMotionInterpolationSettings::getInterpolationSetting ( u32 startMotionNumber,
u32 targetMotionNumber,
GxMotionInterpolationSetting::MODE mode ) const

補間設定行列の要素を取得(const版)

Parameters
startMotionNumber[in] 開始モーション番号
targetMotionNumber[in] 終了モーション番号
mode[in] 補間モード
Returns
指定された補間設定データ

◆ load()

b32 GxResMotionInterpolationSettings::load ( GxStream & stream,
u32  )
Parameters
stream[in,out] 読み込みストリーム
stream[in] 入力ストリーム
dataSize[in] データサイズ(未使用)
Returns
成功ならtrue
Here is the call graph for this function:

◆ removeInterpolationSetting()

void GxResMotionInterpolationSettings::removeInterpolationSetting ( u32 startMotionNumber,
u32 targetMotionNumber,
GxMotionInterpolationSetting::MODE mode )

補間設定行列の要素を削除

Parameters
startMotionNumber[in] 開始モーション番号
targetMotionNumber[in] 終了モーション番号
mode[in] 補間モード
Returns
指定された補間設定データ
Here is the caller graph for this function:

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