1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgstemporalnavigationobject.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsTemporalNavigationObject : QgsTemporalController, QgsExpressionContextScopeGenerator
{
%Docstring(signature="appended")
Implements a temporal controller based on a frame by frame navigation
and animation.
.. versionadded:: 3.14
%End
%TypeHeaderCode
#include "qgstemporalnavigationobject.h"
%End
public:
QgsTemporalNavigationObject( QObject *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsTemporalNavigationObject, with the specified
``parent`` object.
%End
void setAnimationState( Qgis::AnimationState state );
%Docstring
Sets the current animation ``state``.
.. seealso:: :py:func:`animationState`
%End
Qgis::AnimationState animationState() const;
%Docstring
Returns the current animation state.
.. seealso:: :py:func:`setAnimationState`
%End
void setNavigationMode( const Qgis::TemporalNavigationMode mode );
%Docstring
Sets the temporal navigation ``mode``.
.. seealso:: :py:func:`navigationMode`
%End
Qgis::TemporalNavigationMode navigationMode() const;
%Docstring
Returns the current temporal navigation mode.
.. seealso:: :py:func:`setNavigationMode`
%End
void setTemporalExtents( const QgsDateTimeRange &extents );
%Docstring
Sets the navigation temporal ``extents``, which dictate the earliest and
latest date time possible in the animation.
.. note::
Calling this will reset the :py:func:`~QgsTemporalNavigationObject.currentFrameNumber` to the first frame.
.. seealso:: :py:func:`temporalExtents`
%End
QgsDateTimeRange temporalExtents() const;
%Docstring
Returns the navigation temporal extents, which dictate the earliest and
latest date time possible in the animation.
.. seealso:: :py:func:`setTemporalExtents`
%End
void setAvailableTemporalRanges( const QList< QgsDateTimeRange > &ranges );
%Docstring
Sets the list of all available temporal ``ranges`` which have data
available.
The ``ranges`` list can be a list of non-contiguous ranges (i.e.
containing gaps) which together describe the complete range of times
which contain data.
.. seealso:: :py:func:`availableTemporalRanges`
.. versionadded:: 3.20
%End
QList< QgsDateTimeRange > availableTemporalRanges() const;
%Docstring
Returns the list of all available temporal ranges which have data
available.
The ranges list can be a list of non-contiguous ranges (i.e. containing
gaps) which together describe the complete range of times which contain
data.
.. seealso:: :py:func:`setAvailableTemporalRanges`
.. versionadded:: 3.20
%End
void setCurrentFrameNumber( long long frame );
%Docstring
Sets the current animation ``frame`` number.
Calling this method will change the controllers current datetime range
to match, based on the
:py:func:`~QgsTemporalNavigationObject.temporalExtents` and
:py:func:`~QgsTemporalNavigationObject.frameDuration` values.
.. seealso:: :py:func:`currentFrameNumber`
%End
long long currentFrameNumber() const;
%Docstring
Returns the current frame number.
.. seealso:: :py:func:`setCurrentFrameNumber`
%End
void setFrameDuration( const QgsInterval &duration );
%Docstring
Sets the frame ``duration``, which dictates the temporal length of each
frame in the animation.
.. note::
Calling this will reset the :py:func:`~QgsTemporalNavigationObject.currentFrameNumber` to the closest temporal match for the previous temporal range.
.. seealso:: :py:func:`frameDuration`
%End
QgsInterval frameDuration() const;
%Docstring
Returns the current set frame duration, which dictates the temporal
length of each frame in the animation.
.. seealso:: :py:func:`setFrameDuration`
%End
QgsDateTimeRange dateTimeRangeForFrameNumber( long long frame ) const;
%Docstring
Calculates the temporal range associated with a particular animation
``frame``.
This is calculated from the navigation start time (taken from
:py:func:`~QgsTemporalNavigationObject.temporalExtents`), the specified
``frame`` number, and the frame duration (see
:py:func:`~QgsTemporalNavigationObject.frameDuration`).
%End
void setFramesPerSecond( double rate );
%Docstring
Sets the animation frame ``rate``, in frames per second.
This setting controls the overall playback speed of the animation, i.e.
how quickly a playing animation will advance to the next frame.
.. seealso:: :py:func:`framesPerSecond`
%End
double framesPerSecond() const;
%Docstring
Returns the animation frame rate, in frames per second.
This setting controls the overall playback speed of the animation, i.e.
how quickly a playing animation will advance to the next frame.
.. seealso:: :py:func:`setFramesPerSecond`
%End
void setTemporalRangeCumulative( bool state );
%Docstring
Sets the animation temporal range as cumulative.
.. seealso:: :py:func:`temporalRangeCumulative`
%End
bool temporalRangeCumulative() const;
%Docstring
Returns the animation temporal range cumulative settings.
.. seealso:: :py:func:`setTemporalRangeCumulative`
%End
long long totalFrameCount() const;
%Docstring
Returns the total number of frames for the navigation.
%End
bool isLooping() const;
%Docstring
Returns ``True`` if the animation should loop after hitting the end or
start frame.
.. seealso:: :py:func:`setLooping`
%End
void setLooping( bool loop );
%Docstring
Sets whether the animation should ``loop`` after hitting the end or
start frame.
.. seealso:: :py:func:`isLooping`
%End
long long findBestFrameNumberForFrameStart( const QDateTime &frameStart ) const;
%Docstring
Returns the best suited frame number for the specified datetime, based
on the start of the corresponding temporal range.
%End
virtual QgsExpressionContextScope *createExpressionContextScope() const /Factory/;
long long totalMovieFrames() const;
%Docstring
Returns the total number of frames for the movie.
.. note::
This is only used when the :py:func:`~QgsTemporalNavigationObject.navigationMode` is set to :py:class:`Qgis`.TemporalNavigationMode.Movie.
.. seealso:: :py:func:`setTotalMovieFrames`
.. seealso:: :py:func:`totalMovieFramesChanged`
.. versionadded:: 3.36
%End
void setTotalMovieFrames( long long frames );
%Docstring
Sets the total number of ``frames`` for the movie.
.. note::
This is only used when the :py:func:`~QgsTemporalNavigationObject.navigationMode` is set to :py:class:`Qgis`.TemporalNavigationMode.Movie.
.. seealso:: :py:func:`totalMovieFrames`
.. seealso:: :py:func:`totalMovieFramesChanged`
.. versionadded:: 3.36
%End
signals:
void stateChanged( Qgis::AnimationState state );
%Docstring
Emitted whenever the animation ``state`` changes.
%End
void navigationModeChanged( Qgis::TemporalNavigationMode mode );
%Docstring
Emitted whenever the navigation ``mode`` changes.
%End
void temporalExtentsChanged( const QgsDateTimeRange &extent );
%Docstring
Emitted whenever the temporalExtent ``extent`` changes.
%End
void temporalFrameDurationChanged( const QgsInterval &interval );
%Docstring
Emitted whenever the frameDuration ``interval`` of the controller
changes.
%End
void totalMovieFramesChanged( long long frames );
%Docstring
Emitted whenever the total number of ``frames`` in the movie is changed.
.. note::
This is only used when the :py:func:`~QgsTemporalNavigationObject.navigationMode` is set to :py:class:`Qgis`.TemporalNavigationMode.Movie.
.. seealso:: :py:func:`setTotalMovieFrames`
.. seealso:: :py:func:`totalMovieFrames`
.. versionadded:: 3.36
%End
public slots:
void play();
%Docstring
Starts playing the temporal navigation from its current frame, using the
direction specified by
:py:func:`~QgsTemporalNavigationObject.animationState`
%End
void pause();
%Docstring
Pauses the temporal navigation.
Calling this slot changes the animation state to idle, preventing
automatic advancement of frames.
It does not affect the current animation frame number or the current
temporal range of the controller.
%End
void playForward();
%Docstring
Starts the animation playing in a forward direction up till the end of
all frames.
%End
void playBackward();
%Docstring
Starts the animation playing in a reverse direction until the beginning
of the time range.
%End
void next();
%Docstring
Advances to the next frame.
.. note::
Calling this slot does not change the current animation state, i.e. a paused animation
will remain paused.
%End
void previous();
%Docstring
Jumps back to the previous frame.
.. note::
Calling this slot does not change the current animation state, i.e. a paused animation
will remain paused.
%End
void rewindToStart();
%Docstring
Rewinds the temporal navigation to start of the temporal extent.
%End
void skipToEnd();
%Docstring
Skips the temporal navigation to end of the temporal extent.
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgstemporalnavigationobject.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|