Stellarium 0.15.2
List of all members | Public 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 between. More...

#include <StelFader.hpp>

+ Inheritance diagram for StelFader:

Public Member Functions

 StelFader (bool initialState, float minimumValue=0.f, float maximumValue=1.f)
 
virtual void update (int deltaTicks)=0
 
virtual float getInterstate () const =0
 
virtual float getInterstatePercentage () const =0
 
virtual StelFaderoperator= (bool s)=0
 
bool operator== (bool s) const
 
 operator bool () const
 
virtual void setDuration (int)
 
virtual float getDuration ()=0
 
virtual void setMinValue (float _min)
 
virtual void setMaxValue (float _max)
 
float getMinValue ()
 
float getMaxValue ()
 

Protected Attributes

bool state
 
float minValue
 
float maxValue
 

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 between.

Definition at line 28 of file StelFader.hpp.


The documentation for this class was generated from the following file: