Stellarium
1.2
|
#include <StelFader.hpp>
Public Member Functions | |
StelFader (bool initialState) | |
virtual void | update (int deltaMs)=0 |
Increments the internal counter of deltaMs milliseconds. | |
virtual float | getInterstate () const =0 |
Gets current value (between 0 and 1) | |
virtual StelFader & | operator= (bool s)=0 |
bool | operator== (bool s) const |
operator bool () const | |
virtual void | setDuration (int) |
virtual float | getDuration () const =0 |
Protected Member Functions | |
float | getTargetValue () const |
float | getStartValue () const |
Protected Attributes | |
bool | state |
Manages a (usually smooth) transition between two states (typically ON/OFF) in function of a counter It used for various purpose like smooth transitions