Skip to content
Permalink
Browse files

keep frameDuration() in animation export

  • Loading branch information
Samweli authored and nyalldawson committed Jan 6, 2021
1 parent 4513033 commit bfcc7a8cb0cbc9cc9813ee529201b2c701ad87a4
@@ -225,6 +225,11 @@ QgsDateTimeRange QgsAnimationExportDialog::animationRange() const
return QgsDateTimeRange( mStartDateTime->dateTime(), mEndDateTime->dateTime() );
}

QgsInterval QgsAnimationExportDialog::frameInterval() const
{
return QgsInterval( mFrameDurationSpinBox->value(), static_cast< QgsUnitTypes::TemporalUnit>( mTimeStepsComboBox->currentData().toInt() ) );
}

double QgsAnimationExportDialog::frameTimeStep() const
{
return mFrameDurationSpinBox->value();
@@ -63,6 +63,9 @@ class APP_EXPORT QgsAnimationExportDialog: public QDialog, private Ui::QgsAnimat
//! Returns the overall animation range
QgsDateTimeRange animationRange() const;

//! Returns the duration of each individual frame
QgsInterval frameInterval() const;

//! Returns the time step of each individual frame
double frameTimeStep() const;

@@ -212,9 +212,9 @@ QgsInterval QgsTemporalNavigationObject::frameDuration() const

void QgsTemporalNavigationObject::setFrameTimeStep( double timeStep )
{
mFrameTimeStep = timeStep;
setFrameDuration( QgsInterval( mFrameTimeStep, mFrameTimeStepUnit ) );
setCurrentFrameNumber( 0 );
mFrameTimeStep = timeStep;
setFrameDuration( QgsInterval( mFrameTimeStep, mFrameTimeStepUnit ) );
setCurrentFrameNumber( 0 );
}

void QgsTemporalNavigationObject::setFrameTimeStepUnit( QgsUnitTypes::TemporalUnit timeStepUnit )

0 comments on commit bfcc7a8

Please sign in to comment.
You can’t perform that action at this time.