FadedVisibility Class Reference
This class fades a widget in and out. More...
#include <FadedVisibility.h>
Inherits Animation.

Classes | |
| class | FadeThread |
Public Member Functions | |
| FadedVisibility (XMLNode *xml) | |
| void | animate (MenuObject *obj) |
| void | unanimate (MenuObject *obj) |
Private Attributes | |
| float | transparencyChangeSpeed |
Detailed Description
This class fades a widget in and out.This animation changes the visibility of a widget. The visibility is slowly modified by increasing or decreasing the tranparency.
The method animate( MenuObject *obj ) makes a widget visible. The method unanimate( MenuObject *obj) makes a widget invisible.
This animation uses a continuously transparency change, which is simulated by many very small steps. This cannot be done directly in this class, because the animate( MenuObject *obj ) and unanimate( MenuObject *obj ) methods have to return very quickly. So instead of animating the widget, a new object is created, which uses QueuedThread as superclass. This new object is put into the ThreadQueue -class, which performs the animation in an own thread. The ThreadQueue -class deletes this object automatically, when the animation has finished.
- Date:
- 18th of May 2007
Constructor & Destructor Documentation
| FadedVisibility::FadedVisibility | ( | XMLNode * | xml | ) |
The constructor loads the animation-parameters from the XML-file
- Parameters:
-
xml This object has to focus on the corrent XML-node.
Member Function Documentation
| void FadedVisibility::animate | ( | MenuObject * | obj | ) | [virtual] |
This method creats an object, which performs the animation.
- Parameters:
-
obj This is the widget, which will become visible.
Implements Animation.
| void FadedVisibility::unanimate | ( | MenuObject * | obj | ) | [virtual] |
This method creats an object, which cancels the animation-effects.
- Parameters:
-
obj This is the widget, which will become invisible.
Implements Animation.
Member Data Documentation
float FadedVisibility::transparencyChangeSpeed [private] |
The documentation for this class was generated from the following files:
- tools/libraries/3DMenu/libAnimations/FadedVisibility.h
- tools/libraries/3DMenu/libAnimations/FadedVisibility.cpp
Generated on Wed Oct 20 16:11:56 2010 for inVRs by
1.5.8