AnimatedPressed Class Reference

This class provides a continuously widget-moving-animation. More...

#include <AnimatedPressed.h>

Inherits Animation.

Collaboration diagram for AnimatedPressed:

List of all members.


Classes

class  AnimationThread

Public Member Functions

 AnimatedPressed (XMLNode *xml)
void animate (MenuObject *obj)
void unanimate (MenuObject *obj)

Private Attributes

float difference
float speed

Detailed Description

This class provides a continuously widget-moving-animation.

This class animates widgets. The animation can be used for moving a button when someone triggers a pressed- or released-event.

The animation moves continuously the widget along the z-axis. The distance and the speed is ajustable.

This animation uses a continuously movement, which is simulated by many very small movement 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:
9th of May 2007
Author:
Thomas Weberndorfer

Constructor & Destructor Documentation

AnimatedPressed::AnimatedPressed ( 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 AnimatedPressed::animate ( MenuObject obj  )  [virtual]

This method creats an object, which performs the animation.

Parameters:
obj This is the widget, which will be animated.

Implements Animation.

void AnimatedPressed::unanimate ( MenuObject obj  )  [virtual]

This method creats an object, which cancels the animation-effects.

Parameters:
obj This is the widget, which will be animated.

Implements Animation.


Member Data Documentation

float AnimatedPressed::difference [private]

float AnimatedPressed::speed [private]


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

Generated on Wed Oct 20 16:11:53 2010 for inVRs by doxygen 1.5.8