QGLCameraAnimation ClassThe QGLCameraAnimation class implements smooth animations between two camera positions. More... #include <QGLCameraAnimation> Inherits: QAbstractAnimation. This class was introduced in Qt 4.8. Public Types
Properties
Public Functions
Reimplemented Public Functions
Public Slots
Signals
Protected Functions
Additional Inherited Members
Detailed DescriptionThe 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
|
QGLCamera * | camera() const |
void | setCamera(QGLCamera * camera) |
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().
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().
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().
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().
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().
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().
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().
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().
Constructs a new camera animation object and attaches it to parent.
Destroys this camera animation object.