6 #include "swCommonLib/ParameterAnimation/Parameters/DirectPropertyh.h"
11 #include <DirectXMath.h>
12 #include <DirectXPackedVector.h>
46 RTTR_REGISTRATION_FRIEND;
57 Ptr< FloatAnimation< StringPropertyPath > > FloatAnimString;
58 Ptr< FloatAnimation< PropertyPath > > FloatAnimProperty;
59 Ptr< FloatAnimation< DirectProperty > > FloatAnimDirect;
71 RTTR_REGISTRATION_FRIEND;
89 std::string StringField;
90 std::wstring WStringField;
94 DirectX::XMFLOAT4 Color4F;
95 DirectX::XMFLOAT3 Position3F;
96 DirectX::PackedVector::XMCOLOR Color;
102 template<
typename FieldType >
103 FieldType& GetField();
105 #define DEFINE_GET_FIELD( type, name ) \
107 type& GetField< type >() { return name; }
109 DEFINE_GET_FIELD( uint64, UIntField64 );
110 DEFINE_GET_FIELD( int64, IntField64 );
111 DEFINE_GET_FIELD( uint32, UIntField32 );
112 DEFINE_GET_FIELD( int32, IntField32 );
113 DEFINE_GET_FIELD( uint16, UIntField16 );
114 DEFINE_GET_FIELD( int16, IntField16 );
115 DEFINE_GET_FIELD( uint8, UIntField8 );
116 DEFINE_GET_FIELD( int8, IntField8 );
118 DEFINE_GET_FIELD(
char, CharField );
119 DEFINE_GET_FIELD(
bool, BoolField );
120 DEFINE_GET_FIELD( std::string, StringField );
121 DEFINE_GET_FIELD( std::wstring, WStringField );
123 DEFINE_GET_FIELD(
double, DoubleField );
124 DEFINE_GET_FIELD(
float, FloatField );
125 DEFINE_GET_FIELD( Methods, EnumField );
127 DEFINE_GET_FIELD( DirectX::XMFLOAT4, Color4F );
128 DEFINE_GET_FIELD( DirectX::XMFLOAT3, Position3F );
129 DEFINE_GET_FIELD( DirectX::PackedVector::XMCOLOR, Color );
131 #undef DEFINE_GET_FIELD
143 inline TestAnim::TestAnim()
149 m_otherData.SomeValue = 5.0f;
150 m_otherData.IntValue = 6;
151 m_otherData.Name =
"Nested other data";
152 m_otherData.Additional.SomeValue = 7.0f;
153 m_otherData.Additional.Name =
"Nested2 additional data";
154 m_otherData.Additional.IntValue = 8;
159 inline TestInterpolators::TestInterpolators()
176 StringField =
"To jest string";
177 WStringField = L
"To jest wstring";
179 EnumField = Methods::Integral;
Definition: TestClasses.h:68
Definition: TestClasses.h:43
Definition: TestClasses.h:24
Base clas for all objects in sleeping wombat libraries.
Definition: Object.h:42
Definition: TestClasses.h:17