|
Krita Source Code Documentation
|
Classes | |
| struct | FrameItem |
| struct | LessOperator |
Typedefs | |
| typedef QVector< FrameItem > | FrameItemList |
| typedef std::pair< FrameItem, FrameItem > | FrameMovePair |
| typedef QVector< FrameMovePair > | FrameMovePairList |
Functions | |
| KUndo2Command * | createCloneKeyframesCommand (const FrameMovePairList &srcDstPairs, KUndo2Command *parentCommand) |
| KUndo2Command * | createKeyframeCommand (KisImageSP image, KisNodeSP node, const QString &channelId, int time, bool copy, KUndo2Command *parentCommand) |
| void | createKeyframeLazy (KisImageSP image, KisNodeSP node, const QString &channelId, int time, bool copy) |
| KUndo2Command * | createMoveKeyframesCommand (const FrameItemList &srcFrames, const FrameItemList &dstFrames, bool copy, bool moveEmpty, KUndo2Command *parentCommand) |
| KUndo2Command * | createMoveKeyframesCommand (const FrameMovePairList &movePairs, bool copy, bool moveEmptyFrames, KUndo2Command *parentCommand=0) |
| implements safe moves of the frames (even if there are cycling move dependencies) | |
| void | makeClonesUnique (KisImageSP image, const FrameItemList &frames) |
| void | moveOneFrameItem (const FrameItem &src, const FrameItem &dst, bool copy, bool moveEmptyFrames, KUndo2Command *parentCommand) |
| QDebug | operator<< (QDebug dbg, const FrameItem &item) |
| uint | qHash (const FrameItem &item) |
| void | removeKeyframe (KisImageSP image, KisNodeSP node, const QString &channel, int time) |
| void | removeKeyframes (KisImageSP image, const FrameItemList &frames) |
| void | resetChannel (KisImageSP image, KisNodeSP node, const QString &channelID) |
| void | resetChannels (KisImageSP image, KisNodeSP node, const QList< QString > &channelIDs) |
| void | sortPointsForSafeMove (QModelIndexList *points, const QPoint &offset) |
| bool | supportsContentFrames (KisNodeSP node) |
| void | swapOneFrameItem (const FrameItem &src, const FrameItem &dst, KUndo2Command *parentCommand) |
Variables | |
| const QString | addOpacityKeyframeActionName |
| const QString | addTransformKeyframeActionName = i18n("Add transform keyframe") |
| const QString | dropFramesActionName = i18n("Drop Frames") |
| const QString | lazyFrameCreationActionName = i18n("Auto Frame Mode") |
| const QString | newLayerActionName = i18n("New Layer") |
| const QString | pinExistingLayerActionName = i18n("Pin Existing Layer") |
| const QString | removeLayerActionName = i18n("Remove Layer") |
| const QString | removeOpacityKeyframeActionName |
| const QString | removeTransformKeyframeActionName = i18n("Remove transform keyframe") |
| typedef QVector<FrameItem> KisAnimUtils::FrameItemList |
Definition at line 45 of file KisAnimUtils.h.
| typedef std::pair<FrameItem, FrameItem> KisAnimUtils::FrameMovePair |
Definition at line 46 of file KisAnimUtils.h.
Definition at line 47 of file KisAnimUtils.h.
| KUndo2Command * KisAnimUtils::createCloneKeyframesCommand | ( | const FrameMovePairList & | srcDstPairs, |
| KUndo2Command * | parentCommand ) |
Definition at line 392 of file KisAnimUtils.cpp.
References createCloneKeyframesCommand(), and kundo2_i18np().
| KUndo2Command * KisAnimUtils::createKeyframeCommand | ( | KisImageSP | image, |
| KisNodeSP | node, | ||
| const QString & | channelId, | ||
| int | time, | ||
| bool | copy, | ||
| KUndo2Command * | parentCommand ) |
Scalar keyframes return the next value for positions before the first keyframe. That is a bit counterintuitive, but that is what we have.
Definition at line 36 of file KisAnimUtils.cpp.
References KisKeyframeChannel::activeKeyframeAt(), KisKeyframeChannel::activeKeyframeTime(), KisKeyframeChannel::addKeyframe(), KisScalarKeyframeChannel::addScalarKeyframe(), KisKeyframeChannel::allKeyframeTimes(), KisImage::animationInterface(), KisPaintDevice::clear(), KisKeyframeChannel::copyKeyframe(), KisImageAnimationInterface::currentTime(), KisSharedPtr< T >::data(), KisBaseNode::enableAnimation(), KisTransaction::endAndTake(), KisPaintDevice::extent(), KisBaseNode::getKeyframeChannel(), KoID::id(), KisKeyframeChannel::keyframeAt(), KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE, kundo2_i18n(), KisBaseNode::opacity(), KisBaseNode::paintDevice(), KisKeyframeChannel::Raster, KisNode::setDirty(), KisBaseNode::setOpacity(), value(), KisScalarKeyframeChannel::valueAt(), and void().
| void KisAnimUtils::createKeyframeLazy | ( | KisImageSP | image, |
| KisNodeSP | node, | ||
| const QString & | channelId, | ||
| int | time, | ||
| bool | copy ) |
Definition at line 134 of file KisAnimUtils.cpp.
References KisStrokeJobData::BARRIER, createKeyframeCommand(), KisStrokeJobData::EXCLUSIVE, and KisProcessingApplicator::runSingleCommandStroke().
| KUndo2Command * KisAnimUtils::createMoveKeyframesCommand | ( | const FrameItemList & | srcFrames, |
| const FrameItemList & | dstFrames, | ||
| bool | copy, | ||
| bool | moveEmpty, | ||
| KUndo2Command * | parentCommand ) |
Definition at line 298 of file KisAnimUtils.cpp.
References createMoveKeyframesCommand().
| KRITAANIMATIONDOCKER_EXPORT KUndo2Command * KisAnimUtils::createMoveKeyframesCommand | ( | const FrameMovePairList & | movePairs, |
| bool | copy, | ||
| bool | moveEmptyFrames, | ||
| KUndo2Command * | parentCommand = 0 ) |
implements safe moves of the frames (even if there are cycling move dependencies)
| movePairs | the jobs for the moves |
| copy | shows if the frames should be copied or not |
| moveEmpty | allows an empty frame to replace a populated one |
| parentCommand | the command that should be a parent of the created command |
Definition at line 311 of file KisAnimUtils.cpp.
References createMoveKeyframesCommand(), KIS_SAFE_ASSERT_RECOVER, kundo2_i18ncp(), kundo2_i18np(), moveOneFrameItem(), and swapOneFrameItem().
| void KisAnimUtils::makeClonesUnique | ( | KisImageSP | image, |
| const FrameItemList & | frames ) |
Definition at line 424 of file KisAnimUtils.cpp.
References KisStrokeJobData::BARRIER, KisAnimUtils::FrameItem::channel, KisStrokeJobData::EXCLUSIVE, KisBaseNode::getKeyframeChannel(), kundo2_i18n(), makeClonesUnique(), KisRasterKeyframeChannel::makeUnique(), KisAnimUtils::FrameItem::node, KisProcessingApplicator::runSingleCommandStroke(), and KisAnimUtils::FrameItem::time.
| void KisAnimUtils::moveOneFrameItem | ( | const FrameItem & | src, |
| const FrameItem & | dst, | ||
| bool | copy, | ||
| bool | moveEmptyFrames, | ||
| KUndo2Command * | parentCommand ) |
Definition at line 258 of file KisAnimUtils.cpp.
References KisAnimUtils::FrameItem::channel, KisKeyframeChannel::copyKeyframe(), KisBaseNode::getKeyframeChannel(), KisKeyframeChannel::keyframeAt(), KisKeyframeChannel::moveKeyframe(), moveOneFrameItem(), KisAnimUtils::FrameItem::node, KisKeyframeChannel::removeKeyframe(), and KisAnimUtils::FrameItem::time.
| KRITAANIMATIONDOCKER_EXPORT QDebug KisAnimUtils::operator<< | ( | QDebug | dbg, |
| const FrameItem & | item ) |
Definition at line 448 of file KisAnimUtils.cpp.
References KisAnimUtils::FrameItem::channel, KisBaseNode::name(), KisAnimUtils::FrameItem::node, and KisAnimUtils::FrameItem::time.
Definition at line 39 of file KisAnimUtils.h.
References KisAnimUtils::FrameItem::channel, KisSharedPtr< T >::data(), KisAnimUtils::FrameItem::node, qHash(), and KisAnimUtils::FrameItem::time.
| void KisAnimUtils::removeKeyframe | ( | KisImageSP | image, |
| KisNodeSP | node, | ||
| const QString & | channel, | ||
| int | time ) |
Definition at line 180 of file KisAnimUtils.cpp.
References removeKeyframe(), and removeKeyframes().
| void KisAnimUtils::removeKeyframes | ( | KisImageSP | image, |
| const FrameItemList & | frames ) |
Definition at line 142 of file KisAnimUtils.cpp.
References KIS_SAFE_ASSERT_RECOVER_RETURN, kundo2_i18np(), and KisImage::locked().
| void KisAnimUtils::resetChannel | ( | KisImageSP | image, |
| KisNodeSP | node, | ||
| const QString & | channelID ) |
Definition at line 202 of file KisAnimUtils.cpp.
References resetChannel(), and resetChannels().
| void KisAnimUtils::resetChannels | ( | KisImageSP | image, |
| KisNodeSP | node, | ||
| const QList< QString > & | channelIDs ) |
Definition at line 186 of file KisAnimUtils.cpp.
References KisKeyframeChannel::allKeyframeTimes(), KisBaseNode::getKeyframeChannel(), removeKeyframes(), and resetChannels().
| void KisAnimUtils::sortPointsForSafeMove | ( | QModelIndexList * | points, |
| const QPoint & | offset ) |
Definition at line 227 of file KisAnimUtils.cpp.
References sortPointsForSafeMove().
| bool KisAnimUtils::supportsContentFrames | ( | KisNodeSP | node | ) |
Definition at line 232 of file KisAnimUtils.cpp.
References supportsContentFrames().
| void KisAnimUtils::swapOneFrameItem | ( | const FrameItem & | src, |
| const FrameItem & | dst, | ||
| KUndo2Command * | parentCommand ) |
Definition at line 237 of file KisAnimUtils.cpp.
References KisAnimUtils::FrameItem::channel, KisBaseNode::getKeyframeChannel(), KisAnimUtils::FrameItem::node, KisKeyframeChannel::swapKeyframes(), swapOneFrameItem(), and KisAnimUtils::FrameItem::time.
|
extern |
| const QString KisAnimUtils::addTransformKeyframeActionName = i18n("Add transform keyframe") |
Definition at line 33 of file KisAnimUtils.cpp.
| const QString KisAnimUtils::dropFramesActionName = i18n("Drop Frames") |
Definition at line 27 of file KisAnimUtils.cpp.
| const QString KisAnimUtils::lazyFrameCreationActionName = i18n("Auto Frame Mode") |
Definition at line 26 of file KisAnimUtils.cpp.
| const QString KisAnimUtils::newLayerActionName = i18n("New Layer") |
Definition at line 29 of file KisAnimUtils.cpp.
| const QString KisAnimUtils::pinExistingLayerActionName = i18n("Pin Existing Layer") |
Definition at line 30 of file KisAnimUtils.cpp.
| const QString KisAnimUtils::removeLayerActionName = i18n("Remove Layer") |
Definition at line 31 of file KisAnimUtils.cpp.
|
extern |
| const QString KisAnimUtils::removeTransformKeyframeActionName = i18n("Remove transform keyframe") |
Definition at line 34 of file KisAnimUtils.cpp.