116 [lastChangedFrame](
const int &arg1,
const int &arg2)
118 return std::abs(arg1 - lastChangedFrame) < std::abs(arg2 - lastChangedFrame);
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
requests regeneration of a frame. The regeneration should be requested after switching the KisImage t...
bool backgroundFrameGenerationBlocked() const
KisImageAnimationInterface * animationInterface() const
bool isIdle(bool allowLocked=false)
KisImage * clone(bool exactCopy=false)
QVector< int > m_changedFramesQueue
QVector< int > m_affectedFramesQueue
void slotFrameRegenerationCancelled(int frame)
Emits sigFrameCancelled(int) and schedules the next frame for regeneration.
void renderNextFrame()
Renders the next frame, either from affected or changed queue. Changed queue is given preference....
void sigFrameCancelled(int frame)
void slotFrameRegenerationCompleted(int frame, KisPaintDeviceSP contents)
Emits sigFrameCompleted(int,KisPaintDeviceSP) if the regeneration was complete and calls regeneration...
void sigFrameCompleted(int frame, KisPaintDeviceSP dev)
void sortAffectedFrameQueue()
Sorts the m_affectedFramesQueue based on proximity to the last changed frame.
KisStoryboardThumbnailRenderScheduler(QObject *parent)
void cancelFrameRendering(int frame)
Cancel rendering of a single frame.
~KisStoryboardThumbnailRenderScheduler()
KisAsyncStoryboardThumbnailRenderer * m_renderer
void scheduleFrameForRegeneration(int frame, bool affected)
Adds the frame to the list of "to be regenerated" frames.
void cancelAllFrameRendering()
Cancels all frame rendering. Empties all queues and cancels the current rendering,...
void slotStartFrameRendering()
void setImage(KisImageSP image)
Sets an image, the class takes an image, clones it and calls frame regeneration on the clone so do no...
#define KIS_SAFE_ASSERT_RECOVER_RETURN(cond)
void startFrameRegeneration(KisImageSP image, int frame, const KisRegion ®ionOfInterest, Flags flags, KisLockFrameGenerationLock &&frameGenerationLock)
void cancelCurrentFrameRendering(CancelReason cancelReason)
cancels current rendering operation