//////////////////////////////////////////////////////////////////////////////////////////////////// // NoesisGUI - http://www.noesisengine.com // Copyright (c) 2013 Noesis Technologies S.L. All Rights Reserved. //////////////////////////////////////////////////////////////////////////////////////////////////// #ifndef __GUI_QUADRATICEASE_H__ #define __GUI_QUADRATICEASE_H__ #include #include #include #include namespace Noesis { //////////////////////////////////////////////////////////////////////////////////////////////////// /// Represents an easing function that creates an animation that accelerates and/or /// decelerates using the formula f(t) = t\ :sup:`2`. /// /// http://msdn.microsoft.com/en-us/library/system.windows.media.animation.quadraticease.aspx //////////////////////////////////////////////////////////////////////////////////////////////////// class NS_GUI_ANIMATION_API QuadraticEase: public EasingFunctionBase { public: QuadraticEase(); ~QuadraticEase(); // Hides Freezable methods for convenience //@{ Ptr Clone() const; Ptr CloneCurrentValue() const; //@} protected: /// From Freezable //@{ Ptr CreateInstanceCore() const override; //@} /// From EasingFunctionBase //@{ float EaseInCore(float normalizedTime) override; //@} NS_DECLARE_REFLECTION(QuadraticEase, EasingFunctionBase) }; } #endif