QGIS API Documentation 3.32.0-Lima (311a8cb8a6)
|
3 More...
#include <qgs3danimationsettings.h>
Classes | |
struct | Keyframe |
keyframe definition More... | |
Public Types | |
typedef QVector< Keyframe > | Keyframes |
Public Member Functions | |
Qgs3DAnimationSettings () | |
ctor More... | |
float | duration () const |
Returns duration of the whole animation in seconds. More... | |
QEasingCurve | easingCurve () const |
Returns the interpolation method for transitions of the camera. More... | |
Keyframe | interpolate (float time) const |
Interpolates camera position and rotation at the given point in time. More... | |
Keyframes | keyFrames () const |
Returns keyframes of the animation. More... | |
void | readXml (const QDomElement &elem) |
Reads configuration from a DOM element previously written by writeXml() More... | |
void | setEasingCurve (const QEasingCurve &curve) |
Sets the interpolation method for transitions of the camera. More... | |
void | setKeyframes (const Keyframes &keyframes) |
Configures keyframes of the animation. It is expected that the keyframes are ordered according to their time. More... | |
QDomElement | writeXml (QDomDocument &doc) const |
Writes configuration to a DOM element, to be used later with readXml() More... | |
3
Class that holds information about animation in 3D view. The animation is defined as a series of keyframes
Definition at line 38 of file qgs3danimationsettings.h.
typedef QVector<Keyframe> Qgs3DAnimationSettings::Keyframes |
Definition at line 54 of file qgs3danimationsettings.h.
|
default |
ctor
float Qgs3DAnimationSettings::duration | ( | ) | const |
Returns duration of the whole animation in seconds.
Definition at line 23 of file qgs3danimationsettings.cpp.
|
inline |
Returns the interpolation method for transitions of the camera.
Definition at line 64 of file qgs3danimationsettings.h.
Qgs3DAnimationSettings::Keyframe Qgs3DAnimationSettings::interpolate | ( | float | time | ) | const |
Interpolates camera position and rotation at the given point in time.
Definition at line 28 of file qgs3danimationsettings.cpp.
|
inline |
Returns keyframes of the animation.
Definition at line 59 of file qgs3danimationsettings.h.
void Qgs3DAnimationSettings::readXml | ( | const QDomElement & | elem | ) |
Reads configuration from a DOM element previously written by writeXml()
Definition at line 84 of file qgs3danimationsettings.cpp.
|
inline |
Sets the interpolation method for transitions of the camera.
Definition at line 62 of file qgs3danimationsettings.h.
|
inline |
Configures keyframes of the animation. It is expected that the keyframes are ordered according to their time.
Definition at line 57 of file qgs3danimationsettings.h.
QDomElement Qgs3DAnimationSettings::writeXml | ( | QDomDocument & | doc | ) | const |
Writes configuration to a DOM element, to be used later with readXml()
Definition at line 107 of file qgs3danimationsettings.cpp.