55 lines
1.5 KiB
C++
55 lines
1.5 KiB
C++
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
// NoesisGUI - http://www.noesisengine.com
|
|
// Copyright (c) 2013 Noesis Technologies S.L. All Rights Reserved.
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
#ifndef __GUI_QUINTICEASE_H__
|
|
#define __GUI_QUINTICEASE_H__
|
|
|
|
|
|
#include <NsCore/Noesis.h>
|
|
#include <NsCore/ReflectionDeclare.h>
|
|
#include <NsGui/EasingFunctionBase.h>
|
|
#include <NsGui/AnimationApi.h>
|
|
|
|
|
|
namespace Noesis
|
|
{
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
/// Represents an easing function that creates an animation that accelerates and/or
|
|
/// decelerates using the formula f(t) = t\ :sup:`5`.
|
|
///
|
|
/// http://msdn.microsoft.com/en-us/library/system.windows.media.animation.quinticease.aspx
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
class NS_GUI_ANIMATION_API QuinticEase: public EasingFunctionBase
|
|
{
|
|
public:
|
|
QuinticEase();
|
|
~QuinticEase();
|
|
|
|
// Hides Freezable methods for convenience
|
|
//@{
|
|
Ptr<QuinticEase> Clone() const;
|
|
Ptr<QuinticEase> CloneCurrentValue() const;
|
|
//@}
|
|
|
|
protected:
|
|
/// From Freezable
|
|
//@{
|
|
Ptr<Freezable> CreateInstanceCore() const override;
|
|
//@}
|
|
|
|
/// From EasingFunctionBase
|
|
//@{
|
|
float EaseInCore(float normalizedTime) override;
|
|
//@}
|
|
|
|
NS_DECLARE_REFLECTION(QuinticEase, EasingFunctionBase)
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|