Sleeping Wombat GUI  0.100
swGUI
Classes | Namespaces | Macros | Functions
DefaultInterpolators.h File Reference
#include "IInterpolator.h"
#include "swCommonLib/ParameterAnimation/Key.h"
#include <string>

Go to the source code of this file.

Classes

struct  DefaultInterpolators::is_param_animation_enabled< KeyType >
 Trait for enabling types for parameter animation. More...
 

Namespaces

 DefaultInterpolators
 Interpolators helpers functions.
 

Macros

#define DECLARE_SPECIALIZATON(type, Function)
 

Functions

template<typename KeyType >
UPtr< IInterpolator< KeyType > > DefaultInterpolators::CreateLinear (const Key< KeyType > &leftKey, const Key< KeyType > &rightKey, UPtr< const IInterpolator< KeyType > > &leftInterpolator, UPtr< const IInterpolator< KeyType > > &rightInterpolator)
 
template<typename KeyType >
UPtr< IInterpolator< KeyType > > DefaultInterpolators::CreateDiscrete (const Key< KeyType > &leftKey, const Key< KeyType > &rightKey, UPtr< const IInterpolator< KeyType > > &leftInterpolator, UPtr< const IInterpolator< KeyType > > &rightInterpolator)
 
template<typename KeyType >
UPtr< IInterpolator< KeyType > > DefaultInterpolators::CreateCosinus (const Key< KeyType > &leftKey, const Key< KeyType > &rightKey, UPtr< const IInterpolator< KeyType > > &leftInterpolator, UPtr< const IInterpolator< KeyType > > &rightInterpolator)
 
template<typename KeyType >
UPtr< IInterpolator< KeyType > > DefaultInterpolators::Create (InterpolatorType type, const Key< KeyType > &leftKey, const Key< KeyType > &rightKey, UPtr< const IInterpolator< KeyType > > &leftInterpolator, UPtr< const IInterpolator< KeyType > > &rightInterpolator)
 
template<typename KeyType >
UPtr< IInterpolator< typename std::enable_if< std::is_floating_point< KeyType >::value, KeyType >::type > > DefaultInterpolators::Create (const Key< KeyType > &leftKey, const Key< KeyType > &rightKey, UPtr< const IInterpolator< KeyType > > &leftInterpolator, UPtr< const IInterpolator< KeyType > > &rightInterpolator)
 Function for creating default interpolators for different types of keys. Specialize this template in .cpp file. More...
 
template<typename KeyType >
UPtr< IInterpolator< typename std::enable_if< std::is_integral< KeyType >::value, KeyType >::type > > DefaultInterpolators::Create (const Key< KeyType > &leftKey, const Key< KeyType > &rightKey, UPtr< const IInterpolator< KeyType > > &leftInterpolator, UPtr< const IInterpolator< KeyType > > &rightInterpolator)
 
template<>
UPtr< IInterpolator< bool > > DefaultInterpolators::Create (const Key< bool > &leftKey, const Key< bool > &rightKey, UPtr< const IInterpolator< bool > > &leftInterpolator, UPtr< const IInterpolator< bool > > &rightInterpolator)
 
template<typename KeyType >
UPtr< IInterpolator< typename std::enable_if< std::is_enum< KeyType >::value, KeyType >::type > > DefaultInterpolators::Create (const Key< KeyType > &leftKey, const Key< KeyType > &rightKey, UPtr< const IInterpolator< KeyType > > &leftInterpolator, UPtr< const IInterpolator< KeyType > > &rightInterpolator)
 
template<typename KeyType >
UPtr< IInterpolator< typename std::enable_if< std::is_same< KeyType, std::basic_string< typename KeyType::value_type > >::value, KeyType >::type > > DefaultInterpolators::Create (const Key< KeyType > &leftKey, const Key< KeyType > &rightKey, UPtr< const IInterpolator< KeyType > > &leftInterpolator, UPtr< const IInterpolator< KeyType > > &rightInterpolator)
 
template<typename KeyType >
UPtr< IInterpolator< typename std::enable_if< is_param_animation_enabled< KeyType >::value, KeyType >::type > > DefaultInterpolators::Create (const Key< KeyType > &leftKey, const Key< KeyType > &rightKey, UPtr< const IInterpolator< KeyType > > &leftInterpolator, UPtr< const IInterpolator< KeyType > > &rightInterpolator)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (float, CreateLinear)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (double, CreateLinear)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (char, CreateLinear)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (uint8, CreateLinear)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (int8, CreateLinear)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (uint16, CreateLinear)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (int16, CreateLinear)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (uint32, CreateLinear)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (int32, CreateLinear)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (uint64, CreateLinear)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (int64, CreateLinear)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (float, CreateDiscrete)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (double, CreateDiscrete)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (char, CreateDiscrete)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (uint8, CreateDiscrete)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (int8, CreateDiscrete)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (uint16, CreateDiscrete)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (int16, CreateDiscrete)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (uint32, CreateDiscrete)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (int32, CreateDiscrete)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (uint64, CreateDiscrete)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (int64, CreateDiscrete)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (bool, CreateDiscrete)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (std::wstring, CreateDiscrete)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (std::string, CreateDiscrete)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (float, CreateCosinus)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (double, CreateCosinus)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (char, CreateCosinus)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (uint8, CreateCosinus)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (int8, CreateCosinus)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (uint16, CreateCosinus)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (int16, CreateCosinus)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (uint32, CreateCosinus)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (int32, CreateCosinus)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (uint64, CreateCosinus)
 
 DefaultInterpolators::DECLARE_SPECIALIZATON (int64, CreateCosinus)
 

Detailed Description

Author
nieznanysprawiciel

Macro Definition Documentation

#define DECLARE_SPECIALIZATON (   type,
  Function 
)
Value:
template \
UPtr< IInterpolator< type > > Function< type >( const Key< type >& leftKey, \
const Key< type >& rightKey, \
UPtr< const IInterpolator< type > >& leftInterpolator, \
UPtr< const IInterpolator< type > >& rightInterpolator );
Animation key.
Definition: IInterpolator.h:21