Sleeping Wombat GUI
0.100
swGUI
|
#include "swCommonLib/External/Catch/catch.hpp"
#include "swCommonLib/ParameterAnimation/Animation/Animation.h"
#include "swCommonLib/ParameterAnimation/Interpolators/CosinusInterpolator.h"
#include "swCommonLib/ParameterAnimation/Parameters/DirectPropertyh.h"
#include "swCommonLib/ParameterAnimation/Parameters/PropertyPath.h"
#include "swCommonLib/ParameterAnimation/Parameters/StringPropertyPath.h"
#include "TestClasses.h"
#include <string>
#include "swCommonLib/ParameterAnimation/Interpolators/DefaultInterpolators.inl"
Functions | |
rttr::registration::class_< DirectX::XMFLOAT3 > ("DirectX::XMFLOAT3").property("X" | |
&DirectX::XMFLOAT3::x | property ("Y",&DirectX::XMFLOAT3::y).property("Z" |
rttr::registration::class_< DirectX::XMFLOAT2 > ("DirectX::XMFLOAT2").property("X" | |
&DirectX::XMFLOAT2::x | property ("Y",&DirectX::XMFLOAT2::y) |
rttr::registration::enumeration< Methods >("Methods")(rttr &TestInterpolators::DoubleField | property ("FloatField",&TestInterpolators::FloatField).property("UIntField64" |
rttr::registration::enumeration< Methods >("Methods")(rttr &TestInterpolators::DoubleField &TestInterpolators::UIntField64 | property ("IntField64",&TestInterpolators::IntField64).property("UIntField32" |
rttr::registration::enumeration< Methods >("Methods")(rttr &TestInterpolators::DoubleField &TestInterpolators::UIntField64 &TestInterpolators::UIntField32 | property ("IntField32",&TestInterpolators::IntField32).property("UIntField16" |
rttr::registration::enumeration< Methods >("Methods")(rttr &TestInterpolators::DoubleField &TestInterpolators::UIntField64 &TestInterpolators::UIntField32 &TestInterpolators::UIntField16 | property ("IntField16",&TestInterpolators::IntField16).property("UIntField8" |
rttr::registration::enumeration< Methods >("Methods")(rttr &TestInterpolators::DoubleField &TestInterpolators::UIntField64 &TestInterpolators::UIntField32 &TestInterpolators::UIntField16 &TestInterpolators::UIntField8 | property ("IntField8",&TestInterpolators::IntField8).property("CharField" |
rttr::registration::enumeration< Methods >("Methods")(rttr &TestInterpolators::DoubleField &TestInterpolators::UIntField64 &TestInterpolators::UIntField32 &TestInterpolators::UIntField16 &TestInterpolators::UIntField8 &TestInterpolators::CharField | property ("BoolField",&TestInterpolators::BoolField).property("StringField" |
rttr::registration::enumeration< Methods >("Methods")(rttr &TestInterpolators::DoubleField &TestInterpolators::UIntField64 &TestInterpolators::UIntField32 &TestInterpolators::UIntField16 &TestInterpolators::UIntField8 &TestInterpolators::CharField &TestInterpolators::StringField | property ("WStringField",&TestInterpolators::WStringField).property("EnumField" |
rttr::registration::enumeration< Methods >("Methods")(rttr &TestInterpolators::DoubleField &TestInterpolators::UIntField64 &TestInterpolators::UIntField32 &TestInterpolators::UIntField16 &TestInterpolators::UIntField8 &TestInterpolators::CharField &TestInterpolators::StringField &TestInterpolators::EnumField | property ("Color4F",&TestInterpolators::Color4F).property("Position3F" |
ENABLE_PARAMETER_ANIMATION (DirectX::XMFLOAT4) | |
template<typename PropType > | |
void | TestProperty (TestInterpolators &animClass, const std::string &propertyPath) |
template<typename PropType , Size ListSize> | |
void | TestPropertyDiscrete (TestInterpolators &animClass, const std::string &propertyPath, PropType(&valuesList)[ListSize], TimeType(&timeList)[ListSize]) |
TEST_CASE ("Interpolators","[Interpolators Types]") | |
TEST_CASE ("Interpolators change") | |
Variables | |
RTTR_REGISTRATION | |
rttr::registration::enumeration< Methods >("Methods")(rttr &TestInterpolators::DoubleField &TestInterpolators::UIntField64 &TestInterpolators::UIntField32 &TestInterpolators::UIntField16 &TestInterpolators::UIntField8 &TestInterpolators::CharField &TestInterpolators::StringField &TestInterpolators::EnumField &TestInterpolators::Position3F | BIND_AS_PTR |
ENABLE_PARAMETER_ANIMATION | ( | DirectX::XMFLOAT4 | ) |
& DirectX::XMFLOAT3::x property | ( | "Y" | , |
&DirectX::XMFLOAT3::y | |||
) |
& DirectX::XMFLOAT2::x property | ( | "Y" | , |
&DirectX::XMFLOAT2::y | |||
) |
rttr::registration::enumeration< Methods > ( "Methods" ) ( rttr & TestInterpolators::DoubleField property | ( | "FloatField" | , |
&TestInterpolators::FloatField | |||
) |
rttr::registration::enumeration< Methods > ( "Methods" ) ( rttr & TestInterpolators::DoubleField & TestInterpolators::UIntField64 property | ( | "IntField64" | , |
&TestInterpolators::IntField64 | |||
) |
rttr::registration::enumeration< Methods > ( "Methods" ) ( rttr & TestInterpolators::DoubleField & TestInterpolators::UIntField64 & TestInterpolators::UIntField32 property | ( | "IntField32" | , |
&TestInterpolators::IntField32 | |||
) |
rttr::registration::enumeration< Methods > ( "Methods" ) ( rttr & TestInterpolators::DoubleField & TestInterpolators::UIntField64 & TestInterpolators::UIntField32 & TestInterpolators::UIntField16 property | ( | "IntField16" | , |
&TestInterpolators::IntField16 | |||
) |
rttr::registration::enumeration< Methods > ( "Methods" ) ( rttr & TestInterpolators::DoubleField & TestInterpolators::UIntField64 & TestInterpolators::UIntField32 & TestInterpolators::UIntField16 & TestInterpolators::UIntField8 property | ( | "IntField8" | , |
&TestInterpolators::IntField8 | |||
) |
rttr::registration::enumeration< Methods > ( "Methods" ) ( rttr & TestInterpolators::DoubleField & TestInterpolators::UIntField64 & TestInterpolators::UIntField32 & TestInterpolators::UIntField16 & TestInterpolators::UIntField8 & TestInterpolators::CharField property | ( | "BoolField" | , |
&TestInterpolators::BoolField | |||
) |
rttr::registration::enumeration< Methods > ( "Methods" ) ( rttr & TestInterpolators::DoubleField & TestInterpolators::UIntField64 & TestInterpolators::UIntField32 & TestInterpolators::UIntField16 & TestInterpolators::UIntField8 & TestInterpolators::CharField & TestInterpolators::StringField property | ( | "WStringField" | , |
&TestInterpolators::WStringField | |||
) |
rttr::registration::enumeration< Methods > ( "Methods" ) ( rttr & TestInterpolators::DoubleField & TestInterpolators::UIntField64 & TestInterpolators::UIntField32 & TestInterpolators::UIntField16 & TestInterpolators::UIntField8 & TestInterpolators::CharField & TestInterpolators::StringField & TestInterpolators::EnumField property | ( | "Color4F" | , |
&TestInterpolators::Color4F | |||
) |
rttr::registration::class_< DirectX::XMFLOAT2 > | ( | "DirectX::XMFLOAT2" | ) |
rttr::registration::class_< DirectX::XMFLOAT3 > | ( | "DirectX::XMFLOAT3" | ) |
TEST_CASE | ( | "Interpolators" | , |
"" | [Interpolators Types] | ||
) |
TEST_CASE | ( | "Interpolators change" | ) |
void TestProperty | ( | TestInterpolators & | animClass, |
const std::string & | propertyPath | ||
) |
void TestPropertyDiscrete | ( | TestInterpolators & | animClass, |
const std::string & | propertyPath, | ||
PropType(&) | valuesList[ListSize], | ||
TimeType(&) | timeList[ListSize] | ||
) |
rttr::registration::enumeration< Methods > ( "Methods" ) ( rttr & TestInterpolators::DoubleField & TestInterpolators::UIntField64 & TestInterpolators::UIntField32 & TestInterpolators::UIntField16 & TestInterpolators::UIntField8 & TestInterpolators::CharField & TestInterpolators::StringField & TestInterpolators::EnumField & TestInterpolators::Position3F BIND_AS_PTR |
RTTR_REGISTRATION |