Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QGLCameraAnimation Class

The QGLCameraAnimation class implements smooth animations between two camera positions. More...

 #include <QGLCameraAnimation>

Inherits: QAbstractAnimation.

This class was introduced in Qt 4.8.

Public Types

enum DeletionPolicy { KeepWhenStopped, DeleteWhenStopped }
enum Direction { Forward, Backward }
enum State { Stopped, Paused, Running }

Properties

  • 1 property inherited from QObject

Public Functions

QAbstractAnimation(QObject * parent = 0)
QGLCameraAnimation(QObject * parent = 0)
virtual ~QAbstractAnimation()
~QGLCameraAnimation()
QGLCamera * camera() const
int currentLoop() const
int currentLoopTime() const
int currentTime() const
Direction direction() const
virtual int duration() const = 0
QEasingCurve easingCurve() const
QVector3D endCenter() const
QVector3D endEye() const
QVector3D endUpVector() const
QAnimationGroup * group() const
int loopCount() const
void setCamera(QGLCamera * camera)
void setDirection(Direction direction)
void setDuration(int duration)
void setEasingCurve(const QEasingCurve & easing)
void setEndCenter(const QVector3D & center)
void setEndEye(const QVector3D & eye)
void setEndUpVector(const QVector3D & upVector)
void setLoopCount(int loopCount)
void setStartCenter(const QVector3D & center)
void setStartEye(const QVector3D & eye)
void setStartUpVector(const QVector3D & upVector)
QVector3D startCenter() const
QVector3D startEye() const
QVector3D startUpVector() const
State state() const
int totalDuration() const

Reimplemented Public Functions

virtual int duration() const
  • 31 public functions inherited from QObject

Public Slots

void pause()
void resume()
void setCurrentTime(int msecs)
void setPaused(bool paused)
void start(QAbstractAnimation::DeletionPolicy policy = KeepWhenStopped)
void stop()
  • 1 public slot inherited from QObject

Signals

void currentLoopChanged(int currentLoop)
void directionChanged(QAbstractAnimation::Direction newDirection)
void finished()
void stateChanged(QAbstractAnimation::State newState, QAbstractAnimation::State oldState)

Protected Functions

virtual bool event(QEvent * event)
virtual void updateCurrentTime(int currentTime) = 0
virtual void updateDirection(QAbstractAnimation::Direction direction)
virtual void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState)
  • 9 protected functions inherited from QObject

Additional Inherited Members

  • 11 static public members inherited from QObject

Detailed Description

The QGLCameraAnimation class implements smooth animations between two camera positions.

QGLCameraAnimation modifies the camera() object to fall on a smooth path between startEye(), startUpVector(), startCenter() and endEye(), endUpVector(), endCenter. The animation will attempt to keep the eye and center at the same relative distance from each other throughout the animation, as though one object is flying around another.

See also QGLCamera.

Property Documentation

camera : QGLCamera *

This property holds the camera that will be animated by this animation object; null if the camera has not yet been set.

Access functions:

QGLCamera * camera() const
void setCamera(QGLCamera * camera)

duration : int

This property holds the duration of the animation in milliseconds. The default value is 250 milliseconds.

Access functions:

virtual int duration() const
void setDuration(int duration)

See also easingCurve().

easingCurve : QEasingCurve

This property holds the easing curve to use for the animation. The default value is a linear easing curve.

Access functions:

QEasingCurve easingCurve() const
void setEasingCurve(const QEasingCurve & easing)

See also duration().

endCenter : QVector3D

This property holds the center of the view visible from the viewer's position at the end of the animation. The default value is (0, 0, 0).

Access functions:

QVector3D endCenter() const
void setEndCenter(const QVector3D & center)

See also endEye(), endUpVector(), and startCenter().

endEye : QVector3D

This property holds the position of the viewer's eye at the end of the animation. The default value is (0, 0, 10).

Access functions:

QVector3D endEye() const
void setEndEye(const QVector3D & eye)

See also endUpVector(), endCenter(), and startEye().

endUpVector : QVector3D

This property holds the up vector for the viewer at the end of the animation. The default value is (0, 1, 0).

Access functions:

QVector3D endUpVector() const
void setEndUpVector(const QVector3D & upVector)

See also endEye(), endCenter(), and startUpVector().

startCenter : QVector3D

This property holds the center of the view visible from the viewer's position at the start of the animation. The default value is (0, 0, 0).

Access functions:

QVector3D startCenter() const
void setStartCenter(const QVector3D & center)

See also startEye(), startUpVector(), and endCenter().

startEye : QVector3D

This property holds the position of the viewer's eye at the start of the animation. The default value is (0, 0, 10).

Access functions:

QVector3D startEye() const
void setStartEye(const QVector3D & eye)

See also startUpVector(), startCenter(), and endEye().

startUpVector : QVector3D

This property holds the up vector for the viewer at the start of the animation. The default value is (0, 1, 0).

Access functions:

QVector3D startUpVector() const
void setStartUpVector(const QVector3D & upVector)

See also startEye(), startCenter(), and endUpVector().

Member Function Documentation

QGLCameraAnimation::QGLCameraAnimation(QObject * parent = 0)

Constructs a new camera animation object and attaches it to parent.

QGLCameraAnimation::~QGLCameraAnimation()

Destroys this camera animation object.

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web