|
Krita Source Code Documentation
|
Public Member Functions | |
| void | calcNumGroupMaps () |
| QVector< GroupLevelPair > | calculateConflictingPairs () |
| void | cleanupForeignEdgeGroups (qreal cleanUpAmount) |
| void | dumpGroupInfo (qint32 groupIndex, quint8 levelIndex) |
| void | dumpGroupMaps () |
| void | initializeQueueFromGroupMap (const QRect &rc) |
| Private () | |
| void | processQueue (qint32 _backgroundGroupId) |
| QVector< TaskPoint > | tryRemoveConflictingPlane (qint32 group, quint8 level) |
| ALWAYS_INLINE void | updateGroupLastDistance (FillGroup::LevelData &levelData, int distance) |
| void | updateNarrowRegionMetrics () |
| ALWAYS_INLINE void | visitNeighbour (const QPoint &currPt, const QPoint &prevPt, quint8 fromDirection, int prevDistance, quint8 prevLevel, qint32 prevGroupId, FillGroup &prevGroup, FillGroup::LevelData &prevLevelData, qint32 prevPrevGroupId, FillGroup &prevPrevGroup, bool statsOnly=false) |
| void | writeColoring () |
Public Attributes | |
| int | backgroundGroupColor = -1 |
| qint32 | backgroundGroupId = 0 |
| QRect | boundingRect |
| KisPaintDeviceSP | dstDevice |
| KisRandomAccessorSP | groupIt |
| QVector< FillGroup > | groups |
| KisPaintDeviceSP | groupsMap |
| KisPaintDeviceSP | heightMap |
| QVector< KeyStroke > | keyStrokes |
| KisRandomConstAccessorSP | levelIt |
| quint64 | numFilledPixels = 0 |
| CompareTaskPoints | pointsComparator |
| PointsPriorityQueue | pointsQueue |
| KoUpdater * | progressUpdater = 0 |
| bool | recolorMode = false |
| quint64 | totalPixelsToFill = 0 |
Definition at line 195 of file KisWatershedWorker.cpp.
|
inline |
Definition at line 197 of file KisWatershedWorker.cpp.
| void KisWatershedWorker::Private::calcNumGroupMaps | ( | ) |
Definition at line 957 of file KisWatershedWorker.cpp.
References ENTER_FUNCTION, KisSequentialIteratorBase< IteratorPolicy, SourcePolicy, ProgressPolicy >::nextPixel(), ppVar, and KisSequentialIteratorBase< IteratorPolicy, SourcePolicy, ProgressPolicy >::rawDataConst().
| QVector< GroupLevelPair > KisWatershedWorker::Private::calculateConflictingPairs | ( | ) |
Definition at line 778 of file KisWatershedWorker.cpp.
| void KisWatershedWorker::Private::cleanupForeignEdgeGroups | ( | qreal | cleanUpAmount | ) |
Definition at line 806 of file KisWatershedWorker.cpp.
References KIS_SAFE_ASSERT_RECOVER_BREAK, and KIS_SAFE_ASSERT_RECOVER_NOOP.
| void KisWatershedWorker::Private::dumpGroupInfo | ( | qint32 | groupIndex, |
| quint8 | levelIndex ) |
Definition at line 979 of file KisWatershedWorker.cpp.
| void KisWatershedWorker::Private::dumpGroupMaps | ( | ) |
Definition at line 892 of file KisWatershedWorker.cpp.
References KisPaintDevice::colorSpace(), KoColor::convertTo(), KoColorSpaceRegistry::instance(), KIS_DUMP_DEVICE_2, KisSequentialIteratorBase< IteratorPolicy, SourcePolicy, ProgressPolicy >::nextPixel(), KisPaintDevice::pixelSize(), KisSequentialIteratorBase< IteratorPolicy, SourcePolicy, ProgressPolicy >::rawData(), and KisSequentialIteratorBase< IteratorPolicy, SourcePolicy, ProgressPolicy >::rawDataConst().
| void KisWatershedWorker::Private::initializeQueueFromGroupMap | ( | const QRect & | rc | ) |
Definition at line 373 of file KisWatershedWorker.cpp.
References groupsMap, heightMap, KisSequentialIteratorBase< IteratorPolicy, SourcePolicy, ProgressPolicy >::nextPixel(), pointsQueue, KisSequentialIteratorBase< IteratorPolicy, SourcePolicy, ProgressPolicy >::rawData(), KisSequentialIteratorBase< IteratorPolicy, SourcePolicy, ProgressPolicy >::rawDataConst(), KisSequentialIteratorBase< IteratorPolicy, SourcePolicy, ProgressPolicy >::x(), and KisSequentialIteratorBase< IteratorPolicy, SourcePolicy, ProgressPolicy >::y().
| void KisWatershedWorker::Private::processQueue | ( | qint32 | _backgroundGroupId | ) |
Definition at line 623 of file KisWatershedWorker.cpp.
References KisPaintDevice::createRandomConstAccessorNG().
| QVector< TaskPoint > KisWatershedWorker::Private::tryRemoveConflictingPlane | ( | qint32 | group, |
| quint8 | level ) |
Definition at line 737 of file KisWatershedWorker.cpp.
| ALWAYS_INLINE void KisWatershedWorker::Private::updateGroupLastDistance | ( | FillGroup::LevelData & | levelData, |
| int | distance ) |
| void KisWatershedWorker::Private::updateNarrowRegionMetrics | ( | ) |
Definition at line 764 of file KisWatershedWorker.cpp.
| void KisWatershedWorker::Private::visitNeighbour | ( | const QPoint & | currPt, |
| const QPoint & | prevPt, | ||
| quint8 | fromDirection, | ||
| int | prevDistance, | ||
| quint8 | prevLevel, | ||
| qint32 | prevGroupId, | ||
| FillGroup & | prevGroup, | ||
| FillGroup::LevelData & | prevLevelData, | ||
| qint32 | prevPrevGroupId, | ||
| FillGroup & | prevPrevGroup, | ||
| bool | statsOnly = false ) |
Definition at line 487 of file KisWatershedWorker.cpp.
References addForeignAlly(), decrementLevelEdge(), incrementLevelEdge(), KIS_SAFE_ASSERT_RECOVER_RETURN, and removeForeignAlly().
| void KisWatershedWorker::Private::writeColoring | ( | ) |
Definition at line 712 of file KisWatershedWorker.cpp.
References KoColor::convertTo(), KisSequentialIteratorBase< IteratorPolicy, SourcePolicy, ProgressPolicy >::nextPixel(), KisSequentialIteratorBase< IteratorPolicy, SourcePolicy, ProgressPolicy >::rawData(), and KisSequentialIteratorBase< IteratorPolicy, SourcePolicy, ProgressPolicy >::rawDataConst().
| int KisWatershedWorker::Private::backgroundGroupColor = -1 |
Definition at line 215 of file KisWatershedWorker.cpp.
| qint32 KisWatershedWorker::Private::backgroundGroupId = 0 |
Definition at line 214 of file KisWatershedWorker.cpp.
| QRect KisWatershedWorker::Private::boundingRect |
Definition at line 202 of file KisWatershedWorker.cpp.
| KisPaintDeviceSP KisWatershedWorker::Private::dstDevice |
Definition at line 200 of file KisWatershedWorker.cpp.
| KisRandomAccessorSP KisWatershedWorker::Private::groupIt |
Definition at line 212 of file KisWatershedWorker.cpp.
| QVector<FillGroup> KisWatershedWorker::Private::groups |
Definition at line 205 of file KisWatershedWorker.cpp.
| KisPaintDeviceSP KisWatershedWorker::Private::groupsMap |
Definition at line 206 of file KisWatershedWorker.cpp.
| KisPaintDeviceSP KisWatershedWorker::Private::heightMap |
Definition at line 199 of file KisWatershedWorker.cpp.
Definition at line 203 of file KisWatershedWorker.cpp.
| KisRandomConstAccessorSP KisWatershedWorker::Private::levelIt |
Definition at line 213 of file KisWatershedWorker.cpp.
| quint64 KisWatershedWorker::Private::numFilledPixels = 0 |
Definition at line 219 of file KisWatershedWorker.cpp.
| CompareTaskPoints KisWatershedWorker::Private::pointsComparator |
Definition at line 208 of file KisWatershedWorker.cpp.
| PointsPriorityQueue KisWatershedWorker::Private::pointsQueue |
Definition at line 209 of file KisWatershedWorker.cpp.
| KoUpdater* KisWatershedWorker::Private::progressUpdater = 0 |
Definition at line 221 of file KisWatershedWorker.cpp.
| bool KisWatershedWorker::Private::recolorMode = false |
Definition at line 216 of file KisWatershedWorker.cpp.
| quint64 KisWatershedWorker::Private::totalPixelsToFill = 0 |
Definition at line 218 of file KisWatershedWorker.cpp.