OROCHI
 
Loading...
Searching...
No Matches
GxResMotionInterpolationTool.h
Go to the documentation of this file.
1//===========================================================================
10//===========================================================================
11#pragma once
12
13#if GX_DEVELOP
14
15GX_MOTION_NAMESPACE_BEGIN()
16
17//===========================================================================
19//===========================================================================
20class GxResMotionInterpolationTool : public GxResBase
21{
22 //-----------------------------------------------------------
24 //-----------------------------------------------------------
26public:
27 // RTTI定義
28 GX_RTTI_RESOURCE_NAME(GxResMotionInterpolationTool, GxResBase, "モーション補間編集用リソース");
29 // GxClassBaseReference継承クラス用禁止宣言
30 GX_PROHIBIT_CLASS_BASE_REFERENCE(GxResMotionInterpolationTool)
31
32
33 //-----------------------------------------------------------
35 //-----------------------------------------------------------
37public:
39 GxResMotionInterpolationTool(void){}
40
42 //-----------------------------------------------------------
44 //-----------------------------------------------------------
46public:
49 b32 load(GxStream& stream, u32 /*dataSize*/);
52 b32 save(GxStream& stream);
53
55};
56
57//===========================================================================
59//===========================================================================
60class GxResMotionInterpolationToolXml : public GxResMotionInterpolationTool
61{
62 //-----------------------------------------------------------
64 //-----------------------------------------------------------
66public:
67 // RTTI定義
68 GX_RTTI_RESOURCE_NAME(GxResMotionInterpolationToolXml, GxResMotionInterpolationTool, "モーション補間編集用XMLリソース");
69 // GxClassBaseReference継承クラス用禁止宣言
70 GX_PROHIBIT_CLASS_BASE_REFERENCE(GxResMotionInterpolationToolXml)
71
72
73 //-----------------------------------------------------------
75 //-----------------------------------------------------------
77public:
79 GxResMotionInterpolationToolXml(void);
80
82 //-----------------------------------------------------------
84 //-----------------------------------------------------------
86protected:
88 b32 load(GxStream& in, u32 /*dataSize*/);
90 b32 save(GxStream& out);
91
93 //-----------------------------------------------------------
95 //-----------------------------------------------------------
97
98#if GX_EDITOR
100 void getToolRtti(GxArray& arrayTool) const override;
101#endif //GX_EDITOR
102public:
104 constexpr GxResModel* getResModel(void) const { return _pResModel; }
106 constexpr void setResModel(GxResModel* pResModel) { _pResModel = pResModel; }
108 constexpr GxResMotionPackage* getResMotionPackage(void) const { return _pResMotionPackage; }
110 constexpr void setResMotionPackage(GxResMotionPackage* pResMotionPackage) { _pResMotionPackage = pResMotionPackage; }
112 constexpr GxResMotionInterpolationSettingsXml* getResMotionInterpolationSettingsXml(void) const { return _pResMotionInterpolationSettingsXml; }
114 constexpr void setResMotionInterpolationSettingsXml(GxResMotionInterpolationSettingsXml* pResMotionInterpolationSettingsXml) { _pResMotionInterpolationSettingsXml = pResMotionInterpolationSettingsXml; }
115
117 //-----------------------------------------------------------
119 //-----------------------------------------------------------
121private:
122 GxResModel* _pResModel;
123 GxResMotionPackage* _pResMotionPackage;
124 GxResMotionInterpolationSettingsXml* _pResMotionInterpolationSettingsXml;
125
127};
128
129GX_MOTION_NAMESPACE_END()
130
131#endif // GX_DEVELOP
#define GX_PROHIBIT_CLASS_BASE_REFERENCE(__CLASS__)
GxClassBaseReference継承の禁止宣言(new以外の生成禁止 + コピー禁止)
Definition GxBase.h:244
配列クラス
Definition GxArray.h:18
リソース基底クラス
Definition GxResBase.h:23
モデルリソースクラス
Definition GxResModel.h:20
モーションパッケージリソース
Definition GxResMotionPackage.h:20
ストリーム基礎クラス
Definition GxStream.h:20
32bitブーリアン
Definition GxDefine.h:173