Stellarium  24.3
Public Member Functions | Protected Member Functions | Protected Attributes
StelFader Class Referenceabstract

Manages a (usually smooth) transition between two states (typically ON/OFF) in function of a counter It used for various purpose like smooth transitions. More...

#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 StelFaderoperator= (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
 

Detailed Description

Manages a (usually smooth) transition between two states (typically ON/OFF) in function of a counter It used for various purpose like smooth transitions.