QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
|
3 More...
#include <qgs3danimationsettings.h>
Classes | |
struct | Keyframe |
keyframe definition More... | |
Public Types | |
typedef QVector< Keyframe > | Keyframes |
Public Member Functions | |
Qgs3DAnimationSettings () | |
float | duration () const |
Returns duration of the whole animation in seconds. | |
QEasingCurve | easingCurve () const |
Returns the interpolation method for transitions of the camera. | |
Keyframe | interpolate (float time) const |
Interpolates camera position and rotation at the given point in time. | |
Keyframes | keyFrames () const |
Returns keyframes of the animation. | |
void | readXml (const QDomElement &elem) |
Reads configuration from a DOM element previously written by writeXml() | |
void | setEasingCurve (const QEasingCurve &curve) |
Sets the interpolation method for transitions of the camera. | |
void | setKeyframes (const Keyframes &keyframes) |
Configures keyframes of the animation. It is expected that the keyframes are ordered according to their time. | |
QDomElement | writeXml (QDomDocument &doc) const |
Writes configuration to a DOM element, to be used later with readXml() | |
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 |
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.