QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
Contains temporal settings and properties for the project, this may be used when animating maps or showing temporal layers. More...
#include <qgsprojecttimesettings.h>
Signals | |
void | temporalRangeChanged () |
Emitted when the temporal range changes. | |
Public Member Functions | |
QgsProjectTimeSettings (QObject *parent=nullptr) | |
Constructor for QgsProjectTimeSettings with the specified parent object. | |
double | framesPerSecond () const |
Returns the project's default animation frame rate, in frames per second. | |
bool | isTemporalRangeCumulative () const |
Returns the value of cumulative temporal range in animation settings. | |
bool | readXml (const QDomElement &element, const QgsReadWriteContext &context) |
Reads the settings's state from a DOM element. | |
void | reset () |
Resets the settings to a default state. | |
void | setFramesPerSecond (double rate) |
Sets the project's default animation frame rate, in frames per second. | |
void | setIsTemporalRangeCumulative (bool state) |
Sets the project's temporal range as cumulative in animation settings. | |
void | setTemporalRange (const QgsDateTimeRange &range) |
Sets the project's temporal range, which indicates the earliest and latest datetime ranges associated with the project. | |
void | setTimeStep (double step) |
Sets the project's time step (length of one animation frame), which is used as the default value when animating the project. | |
void | setTimeStepUnit (Qgis::TemporalUnit unit) |
Sets the project's time step (length of one animation frame) unit, which is used as the default value when animating the project. | |
void | setTotalMovieFrames (long long frames) |
Sets the total number of frames for the movie. | |
QgsDateTimeRange | temporalRange () const |
Returns the project's temporal range, which indicates the earliest and latest datetime ranges associated with the project. | |
double | timeStep () const |
Returns the project's time step (length of one animation frame), which is used as the default value when animating the project. | |
Qgis::TemporalUnit | timeStepUnit () const |
Returns the project's time step (length of one animation frame) unit, which is used as the default value when animating the project. | |
long long | totalMovieFrames () const |
Returns the total number of frames for the project's movie. | |
QDomElement | writeXml (QDomDocument &document, const QgsReadWriteContext &context) const |
Returns a DOM element representing the settings. | |
Contains temporal settings and properties for the project, this may be used when animating maps or showing temporal layers.
Definition at line 36 of file qgsprojecttimesettings.h.
QgsProjectTimeSettings::QgsProjectTimeSettings | ( | QObject * | parent = nullptr | ) |
Constructor for QgsProjectTimeSettings with the specified parent object.
Definition at line 23 of file qgsprojecttimesettings.cpp.
double QgsProjectTimeSettings::framesPerSecond | ( | ) | const |
Returns the project's default animation frame rate, in frames per second.
Definition at line 130 of file qgsprojecttimesettings.cpp.
bool QgsProjectTimeSettings::isTemporalRangeCumulative | ( | ) | const |
Returns the value of cumulative temporal range in animation settings.
Definition at line 140 of file qgsprojecttimesettings.cpp.
bool QgsProjectTimeSettings::readXml | ( | const QDomElement & | element, |
const QgsReadWriteContext & | context | ||
) |
Reads the settings's state from a DOM element.
Definition at line 49 of file qgsprojecttimesettings.cpp.
void QgsProjectTimeSettings::reset | ( | ) |
Resets the settings to a default state.
Definition at line 29 of file qgsprojecttimesettings.cpp.
void QgsProjectTimeSettings::setFramesPerSecond | ( | double | rate | ) |
Sets the project's default animation frame rate, in frames per second.
Definition at line 125 of file qgsprojecttimesettings.cpp.
void QgsProjectTimeSettings::setIsTemporalRangeCumulative | ( | bool | state | ) |
Sets the project's temporal range as cumulative in animation settings.
Definition at line 135 of file qgsprojecttimesettings.cpp.
void QgsProjectTimeSettings::setTemporalRange | ( | const QgsDateTimeRange & | range | ) |
Sets the project's temporal range, which indicates the earliest and latest datetime ranges associated with the project.
Definition at line 40 of file qgsprojecttimesettings.cpp.
void QgsProjectTimeSettings::setTimeStep | ( | double | step | ) |
Sets the project's time step (length of one animation frame), which is used as the default value when animating the project.
Units are specified via setTimeStepUnit()
Definition at line 120 of file qgsprojecttimesettings.cpp.
void QgsProjectTimeSettings::setTimeStepUnit | ( | Qgis::TemporalUnit | unit | ) |
Sets the project's time step (length of one animation frame) unit, which is used as the default value when animating the project.
Definition at line 110 of file qgsprojecttimesettings.cpp.
void QgsProjectTimeSettings::setTotalMovieFrames | ( | long long | frames | ) |
Sets the total number of frames for the movie.
Definition at line 150 of file qgsprojecttimesettings.cpp.
QgsDateTimeRange QgsProjectTimeSettings::temporalRange | ( | ) | const |
Returns the project's temporal range, which indicates the earliest and latest datetime ranges associated with the project.
Definition at line 35 of file qgsprojecttimesettings.cpp.
|
signal |
Emitted when the temporal range changes.
double QgsProjectTimeSettings::timeStep | ( | ) | const |
Returns the project's time step (length of one animation frame), which is used as the default value when animating the project.
Units are specified via timeStepUnit()
Definition at line 115 of file qgsprojecttimesettings.cpp.
Qgis::TemporalUnit QgsProjectTimeSettings::timeStepUnit | ( | ) | const |
Returns the project's time step (length of one animation frame) unit, which is used as the default value when animating the project.
Definition at line 105 of file qgsprojecttimesettings.cpp.
long long QgsProjectTimeSettings::totalMovieFrames | ( | ) | const |
Returns the total number of frames for the project's movie.
Definition at line 145 of file qgsprojecttimesettings.cpp.
QDomElement QgsProjectTimeSettings::writeXml | ( | QDomDocument & | document, |
const QgsReadWriteContext & | context | ||
) | const |
Returns a DOM element representing the settings.
Definition at line 74 of file qgsprojecttimesettings.cpp.