QGIS API Documentation 3.32.0-Lima (311a8cb8a6)
Classes | Public Types | Public Member Functions | List of all members
Qgs3DAnimationSettings Class Reference

3 More...

#include <qgs3danimationsettings.h>

Classes

struct  Keyframe
 keyframe definition More...
 

Public Types

typedef QVector< KeyframeKeyframes
 

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...
 

Detailed Description

3

Class that holds information about animation in 3D view. The animation is defined as a series of keyframes

Note
Not available in Python bindings
Since
QGIS 3.8

Definition at line 38 of file qgs3danimationsettings.h.

Member Typedef Documentation

◆ Keyframes

Definition at line 54 of file qgs3danimationsettings.h.

Constructor & Destructor Documentation

◆ Qgs3DAnimationSettings()

Qgs3DAnimationSettings::Qgs3DAnimationSettings ( )
default

ctor

Member Function Documentation

◆ duration()

float Qgs3DAnimationSettings::duration ( ) const

Returns duration of the whole animation in seconds.

Definition at line 23 of file qgs3danimationsettings.cpp.

◆ easingCurve()

QEasingCurve Qgs3DAnimationSettings::easingCurve ( ) const
inline

Returns the interpolation method for transitions of the camera.

Definition at line 64 of file qgs3danimationsettings.h.

◆ interpolate()

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.

◆ keyFrames()

Keyframes Qgs3DAnimationSettings::keyFrames ( ) const
inline

Returns keyframes of the animation.

Definition at line 59 of file qgs3danimationsettings.h.

◆ readXml()

void Qgs3DAnimationSettings::readXml ( const QDomElement &  elem)

Reads configuration from a DOM element previously written by writeXml()

Definition at line 84 of file qgs3danimationsettings.cpp.

◆ setEasingCurve()

void Qgs3DAnimationSettings::setEasingCurve ( const QEasingCurve &  curve)
inline

Sets the interpolation method for transitions of the camera.

Definition at line 62 of file qgs3danimationsettings.h.

◆ setKeyframes()

void Qgs3DAnimationSettings::setKeyframes ( const Keyframes keyframes)
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.

◆ writeXml()

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.


The documentation for this class was generated from the following files: