|
Krita Source Code Documentation
|
#include <kis_fill_interval_map.h>
Inheritance diagram for KisFillIntervalMap:Classes | |
| struct | IteratorRange |
Public Types | |
| typedef QHash< int, LineIntervalMap > | GlobalMap |
| typedef QMap< int, KisFillInterval > | LineIntervalMap |
Public Member Functions | |
| void | clear () |
| void | cropInterval (KisFillInterval *interval) |
| QStack< KisFillInterval > | fetchAllIntervals (int rowCorrection=0) const |
| IteratorRange | findFirstIntersectingInterval (const KisFillInterval &interval) |
| void | insertInterval (const KisFillInterval &interval) |
| KisFillIntervalMap () | |
| ~KisFillIntervalMap () | |
Public Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
Public Attributes | |
| GlobalMap | map |
Public Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Private Attributes | |
| const QScopedPointer< Private > | m_d |
Friends | |
| class | KisFillIntervalMapTest |
Definition at line 17 of file kis_fill_interval_map.h.
| typedef QHash<int, LineIntervalMap> KisFillIntervalMap::GlobalMap |
Definition at line 12 of file kis_fill_interval_map_p.h.
| typedef QMap<int, KisFillInterval> KisFillIntervalMap::LineIntervalMap |
Definition at line 11 of file kis_fill_interval_map_p.h.
| KisFillIntervalMap::KisFillIntervalMap | ( | ) |
Definition at line 13 of file kis_fill_interval_map.cpp.
| KisFillIntervalMap::~KisFillIntervalMap | ( | ) |
Definition at line 18 of file kis_fill_interval_map.cpp.
| void KisFillIntervalMap::clear | ( | ) |
Definition at line 159 of file kis_fill_interval_map.cpp.
References m_d.
| void KisFillIntervalMap::cropInterval | ( | KisFillInterval * | interval | ) |
It might happen that we need to split a backward interval into two pieces
It might also happen that the backward interval is fully eaten by the forward interval. This is possible only in case the BW-interval was generated by the strictly adjacent FW-interval, that is (it->start == interval->start)
The BW-interval is eaten by the FW-interval. See a comment above
Definition at line 32 of file kis_fill_interval_map.cpp.
References KisFillInterval::end, KisFillInterval::invalidate(), KisFillInterval::isValid(), KIS_SAFE_ASSERT_RECOVER, m_d, SANITY_ASSERT_MSG, and KisFillInterval::start.
| QStack< KisFillInterval > KisFillIntervalMap::fetchAllIntervals | ( | int | rowCorrection = 0 | ) | const |
Definition at line 135 of file kis_fill_interval_map.cpp.
References m_d, and KisFillInterval::row.
| IteratorRange KisFillIntervalMap::findFirstIntersectingInterval | ( | const KisFillInterval & | interval | ) |
| void KisFillIntervalMap::insertInterval | ( | const KisFillInterval & | interval | ) |
Definition at line 22 of file kis_fill_interval_map.cpp.
References m_d, KisFillInterval::row, and KisFillInterval::start.
|
friend |
Definition at line 32 of file kis_fill_interval_map.h.
|
private |
Definition at line 36 of file kis_fill_interval_map.h.
| GlobalMap KisFillIntervalMap::map |
Definition at line 33 of file kis_fill_interval_map_p.h.