version 3.3

VRS::VideoController Class Reference

Video frame controller. More...

#include <vrs/image/videocontroller.h>

Inheritance diagram for VRS::VideoController:

VRS::LeafBehavior VRS::BehaviorNode VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 VideoController (Video *video, double speed=1.0, bool loop=true)
virtual void reset ()
 Starts the movie at the beginning.
virtual bool isLooping () const
virtual void setLooping (bool value)
virtual void setSpeed (double speed=1.0)
virtual double getSpeed () const
 Sets or returns the desired playback speed.
virtual void activate (int hint=BehaviorNode::NoHint)
virtual void deactivate (int hint=BehaviorNode::NoHint)
virtual bool isActive () const
virtual
BehaviorNode::InvalidationHint 
handle (Event *event)
 VRS_TYPEINFO (VideoController, LeafBehavior)
 VRS_SERIALIZABLE (VideoController)

Protected Member Functions

 VideoController ()


Detailed Description

Video frame controller.

Constructor & Destructor Documentation

VRS::VideoController::VideoController ( Video video,
double  speed = 1.0,
bool  loop = true 
)

VRS::VideoController::VideoController (  )  [protected]


Member Function Documentation

virtual void VRS::VideoController::reset (  )  [virtual]

Starts the movie at the beginning.

virtual bool VRS::VideoController::isLooping (  )  const [virtual]

virtual void VRS::VideoController::setLooping ( bool  value  )  [virtual]

Set the flag which indicates that the video should start at the beginning if the end has been reached.

virtual void VRS::VideoController::setSpeed ( double  speed = 1.0  )  [virtual]

virtual double VRS::VideoController::getSpeed (  )  const [virtual]

Sets or returns the desired playback speed.

virtual void VRS::VideoController::activate ( int  hint = BehaviorNode::NoHint  )  [virtual]

Reimplemented from VRS::BehaviorNode.

virtual void VRS::VideoController::deactivate ( int  hint = BehaviorNode::NoHint  )  [virtual]

Reimplemented from VRS::BehaviorNode.

virtual bool VRS::VideoController::isActive (  )  const [virtual]

Player functionality. An open video can be played by the specified speed (activate) and can be paused again (deactivate). Playing means that the behavior node tries to extract as fast as possible the frames, possibly skipped some frames in order to play at real-time speed.

Reimplemented from VRS::BehaviorNode.

virtual BehaviorNode::InvalidationHint VRS::VideoController::handle ( Event event  )  [virtual]

'handle' receives and possibly propagates events. A behavior node returns an invalidation hint, indicating whether the associated canvas (if any) or the whole world (that is, all canvases) needs to be redrawn.

Implements VRS::BehaviorNode.

VRS::VideoController::VRS_TYPEINFO ( VideoController  ,
LeafBehavior   
)

VRS::VideoController::VRS_SERIALIZABLE ( VideoController   ) 


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

Generated on Wed May 23 06:00:18 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact