NDEVR
API Documentation
ThemeChanger

An animation that slowly changes the color over the entire UI. More...

Collaboration diagram for ThemeChanger:
[legend]

Public Member Functions

 ThemeChanger (NDEVRLightingTheme start, NDEVRLightingTheme end, NDEVRProxyStyle *style)
 Constructs a ThemeChanger animation between two themes.
float percent () const
 Returns the current interpolation percentage of the animation.
void setPercent (float percent)
 Sets the current interpolation percentage and updates the style.
void startAnimation ()
 Begins the theme transition animation.

Public Attributes

NDEVRLightingTheme end
 The theme at the end of the animation.
NDEVRLightingTheme start
 The theme at the beginning of the animation.
NDEVRProxyStylestyle
 The proxy style being animated.

Protected Attributes

QPropertyAnimation * m_animation
 The underlying Qt property animation driver.

Detailed Description

An animation that slowly changes the color over the entire UI.


Definition at line 55 of file NDEVRTheme.h.

Constructor & Destructor Documentation

◆ ThemeChanger()

ThemeChanger::ThemeChanger ( NDEVRLightingTheme start,
NDEVRLightingTheme end,
NDEVRProxyStyle * style )

Constructs a ThemeChanger animation between two themes.

Parameters
[in]startThe starting theme.
[in]endThe target theme.
[in]styleThe proxy style to animate.

References end, start, and style.

Member Function Documentation

◆ percent()

float ThemeChanger::percent ( ) const

Returns the current interpolation percentage of the animation.

Returns
The percentage as a float from 0.0 to 1.0.

Referenced by setPercent().

◆ setPercent()

void ThemeChanger::setPercent ( float percent)

Sets the current interpolation percentage and updates the style.

Parameters
[in]percentThe interpolation percentage from 0.0 to 1.0.

References percent().


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