| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/image/videocontroller.h>

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 () | |
| VRS::VideoController::VideoController | ( | Video * | video, | |
| double | speed = 1.0, |
|||
| bool | loop = true | |||
| ) |
| VRS::VideoController::VideoController | ( | ) | [protected] |
| 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 | ) |