![]() |
Middle Europe Productions Library
alpha 1.3.3
|
Class is responsible for the sf::Color transitions. More...
#include <AnimationColor.h>
Public Member Functions | |
| AnimationColor (sf::Color entry, sf::Color exit, sf::Time length, const float frameRate=120, const double begin=0, const double end=10, std::function< double(double x)> function=[](double x) ->double { return x;}) | |
| bool | changeExitColor (const sf::Color &newColor) |
| bool | changeEntryColor (const sf::Color &newColor) |
| bool | changeEndPointColor (const sf::Color &newColor) |
| void | update (sf::Time ¤tTime) override |
| virtual sf::Color | getFrameAsColor () const override |
| virtual void | debugOutput (std::ostream &out) const |
Public Member Functions inherited from MEP::AnimationPosition | |
| AnimationPosition ()=default | |
| AnimationPosition (const AnimationPosition &x) | |
| AnimationPosition (const double entry, const double exit, sf::Time length, const float frameRate=120, const double begin=0, const double end=100, std::function< double(double x)> function=[](double x) ->double{ return x;}) | |
| virtual void | run (const Direction direc, sf::Time currentTime=sf::Time::Zero) |
| const double & | getFixedVariable () const |
| unsigned int | getFixedUintVariable () const |
| const double & | getEntry () const |
| const double & | getExit () const |
| bool | draw (sf::RenderWindow &) override |
| void | entryUpdate (sf::Time ¤tTime, bool low=false) override |
| void | exitUpdate (sf::Time ¤tTime, bool low=false) override |
| bool | isActive () const override |
| bool | reset () override |
| void | delayOutput (std::ostream &out) const |
| virtual | ~AnimationPosition () |
Public Member Functions inherited from MEP::Drawable | |
| void | _link (std::shared_ptr< bool > _li) |
| std::shared_ptr< bool > | _linkAddr () |
| const std::shared_ptr< bool > | _linkAddr () const |
| bool | _isLinked () const |
| U_int32 | getDrawTag () const |
| void | setDrawTag (const U_int32 tag) |
| bool | addDrawTag (const U_int32 tag) |
| bool | removeDrawTag (const U_int32 tag) |
| virtual void | onResize () |
| Drawable ()=default | |
| virtual | ~Drawable () |
Public Member Functions inherited from MEP::Animation | |
| Animation ()=default | |
| Animation (const AnimationInit initType, const float frameRate) | |
| Animation (const AnimationInit initType, const sf::Time towait) | |
| Animation (const Animation &x) | |
| void | changeStatus () |
| bool | getStatus () const |
| void | changeTag (MEP::U_int32 tag) |
| sf::Time | getToWait () const |
| AnimationInit | getInit () const |
| const Direction & | getDirection () const |
| void | setDirection (MEP::Direction dir) |
Public Member Functions inherited from MEPtools::AnimationDelay | |
| void | setDelay (const sf::Time &delay, bool permaDelay=false) |
| void | setEntryDelay (const sf::Time &delay) |
| void | setExitDelay (const sf::Time &delay) |
| void | setLowEntryDelay (const sf::Time &delay) |
| void | setLowExitDelay (const sf::Time &delay) |
| void | setGeneralDelay (const sf::Time &delay, bool permaDelay=false) |
| void | resetDelay () |
Additional Inherited Members | |
Public Types inherited from MEP::Animation | |
| enum | AnimationInit { AnimationInit::NotInit = 0, AnimationInit::ObjectAnimation = 1, AnimationInit::PositionAnimation = 2 } |
Protected Types inherited from MEPtools::AnimationDelay | |
| enum | State { State::Entry, State::Exit, State::Base, State::LowExit, State::LowEntry } |
Protected Member Functions inherited from MEP::AnimationPosition | |
| void | init () |
| void | updatePositionAnimation (sf::Time ¤tTime) |
Protected Member Functions inherited from MEP::Drawable | |
| void | notify () |
| void | drawTagDebug (std::ostream &out) const |
Protected Member Functions inherited from MEP::Animation | |
| void | animationDebug (std::ostream &out) const |
Protected Member Functions inherited from MEPtools::AnimationDelay | |
| const sf::Time & | delay () const |
| bool | updateDelay (const sf::Time ¤tTime) |
| void | newCycle () |
| void | changeState (State newState) |
Protected Attributes inherited from MEP::AnimationPosition | |
| std::function< double(double x)> | m_function |
| unsigned int | nofFrames |
| std::list< double > | frames |
| std::list< double >::iterator | currentFrame |
| unsigned int | current_frame = 0 |
| const double | m_begin = 0 |
| const double | m_end = 0 |
| double | m_entry = 0 |
| double | m_exit = 0 |
Protected Attributes inherited from MEP::Animation | |
| MEP::U_int32 | m_tag = AdditionalTag::AdditionalTagDisabled |
| AnimationInit | isInit = AnimationInit::NotInit |
| sf::Time | updateTime = sf::Time::Zero |
| sf::Time | toWait = sf::Time::Zero |
| bool | isRunning = false |
| Direction | direction = Direction::Backwards |
Protected Attributes inherited from MEPtools::AnimationDelay | |
| State | state = State::Base |
Class is responsible for the sf::Color transitions.
This class uses MEP::AnimationPosition. It changes color A to the color B (alpha channel is supported).
|
inline |
Constructor of an animation color.
| [in] | entry | : Entry color. Before the iterations. |
| [in] | exit | : Exit color. After the iterations. |
| [in] | frameRate | : Frame rate of an animation. |
| [in] | begin | : Begining point on a graph, |
| [in] | end | : End point of a graph. |
| [in] | length | : Animation lenght in ms. |
| [in] | fun | : Function graph. Method with the return type double. |
|
inline |
Changes the current endpoint color. Current endpoint is defined as the opposite of a current color.
| [in] | newColor | : sf::Color |
|
inline |
Changes the entry color. Entry means basic color (before the iterations).
| [in] | newColor | : sf::Color |
|
inline |
Changes the exit color. Exit means targeted color (after the iterations).
| [in] | newColor | : sf::Color |
|
inlinevirtual |
Debug output of the class.
Reimplemented from MEP::AnimationPosition.
|
inlineoverridevirtual |
Outputs the current sf::Color.
Reimplemented from MEP::AnimationPosition.
|
inlineoverridevirtual |
Override of a MEP::Drawable update.
Reimplemented from MEP::AnimationPosition.