SimplePressed Class Reference
This class provides a widget-displacing-animation. More...
#include <SimplePressed.h>
Inherits Animation.
Collaboration diagram for SimplePressed:

Public Member Functions | |
| SimplePressed (XMLNode *xml) | |
| void | animate (MenuObject *obj) |
| void | unanimate (MenuObject *obj) |
Private Attributes | |
| float | distance |
Detailed Description
This class provides a widget-displacing-animation.This class animates widgets. The animation can be used for displacing a button when someone triggers a pressed- or released-event.
The animation displaces the widget along the z-axis. The distance is ajustable.
- Date:
- 8th of May 2007
Constructor & Destructor Documentation
| SimplePressed::SimplePressed | ( | XMLNode * | xml | ) |
The constructor loads the distance for displacing the widget from the XML-file.
- Parameters:
-
xml This XML-object has to focus on the correct node.
Member Function Documentation
| void SimplePressed::animate | ( | MenuObject * | obj | ) | [virtual] |
This method performs the displacement.
- Parameters:
-
obj This is a pointer to the widget, which should be animated.
Implements Animation.
| void SimplePressed::unanimate | ( | MenuObject * | obj | ) | [virtual] |
This method cancels the displacement and puts the widget back to its origin position.
- Parameters:
-
obj This is a pointer to the widget, which should be animated.
Implements Animation.
Member Data Documentation
float SimplePressed::distance [private] |
The documentation for this class was generated from the following files:
- tools/libraries/3DMenu/libAnimations/SimplePressed.h
- tools/libraries/3DMenu/libAnimations/SimplePressed.cpp
Generated on Wed Oct 20 16:12:00 2010 for inVRs by
1.5.8