|
Krita Source Code Documentation
|
The KisWrapAroundBoundsWrapper class wrapper around a KisDefaultBoundsBaseSP to enable wraparound. Used for patterns. More...
#include <kis_default_bounds.h>
Inheritance diagram for KisWrapAroundBoundsWrapper:Public Member Functions | |
| QRect | bounds () const override |
| int | currentLevelOfDetail () const override |
| int | currentTime () const override |
| bool | externalFrameActive () const override |
| KisWrapAroundBoundsWrapper (KisDefaultBoundsBaseSP base, QRect bounds) | |
| void * | sourceCookie () const override |
| bool | wrapAroundMode () const override |
| WrapAroundAxis | wrapAroundModeAxis () const override |
| ~KisWrapAroundBoundsWrapper () override | |
Public Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
Public Member Functions inherited from KisDefaultBoundsBase | |
| virtual QRect | imageBorderRect () const |
| virtual | ~KisDefaultBoundsBase () |
Public Member Functions inherited from KisShared | |
| bool | deref () |
| bool | ref () |
| int | refCount () |
| QAtomicInt * | sharedWeakReference () |
Public Attributes | |
| KisDefaultBoundsBaseSP | base |
| QRect | bounds |
Public Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Private Attributes | |
| const QScopedPointer< Private > | m_d |
Friends | |
| class | KisPaintDeviceTest |
Additional Inherited Members | |
Protected Member Functions inherited from KisShared | |
| KisShared () | |
| ~KisShared () | |
The KisWrapAroundBoundsWrapper class wrapper around a KisDefaultBoundsBaseSP to enable wraparound. Used for patterns.
Definition at line 180 of file kis_default_bounds.cpp.
| KisWrapAroundBoundsWrapper::KisWrapAroundBoundsWrapper | ( | KisDefaultBoundsBaseSP | base, |
| QRect | bounds ) |
Definition at line 186 of file kis_default_bounds.cpp.
References base, bounds, KisDefaultBoundsBase::bounds(), and m_d.
|
override |
Definition at line 193 of file kis_default_bounds.cpp.
|
overridevirtual |
Returns a virtual bounding rect of a paint device. E.g. when a paint device has non-transparent default pixel, its virtual bounds extend much wider than the actual data it contains.
This bounds rectangle should be used in all the cases when one wants to process all the non-existing pixels with default value, which may still be visible to the user.
The returned rect usually equals to the bounds of the image, except of a few special cases for selections.
Example:
KisPaintDevice adds defaultBounds->bounds() to its extent() and exactBounds() when its default pixel is non-transparent.
Implements KisDefaultBoundsBase.
|
overridevirtual |
Implements KisDefaultBoundsBase.
Definition at line 212 of file kis_default_bounds.cpp.
References m_d.
|
overridevirtual |
Implements KisDefaultBoundsBase.
Definition at line 217 of file kis_default_bounds.cpp.
References m_d.
|
overridevirtual |
Implements KisDefaultBoundsBase.
Definition at line 222 of file kis_default_bounds.cpp.
References m_d.
|
overridevirtual |
Return an abstract pointer to the source object, where default bounds takes its data from. It the cookie is nullptr, then the default bounds is not connected to anything. One can also compare if two default bounds are connected to the same source by comparing two pointers.
NOTE: It is intended to be used for debugging purposes only!
Implements KisDefaultBoundsBase.
Definition at line 227 of file kis_default_bounds.cpp.
References m_d.
|
overridevirtual |
Implements KisDefaultBoundsBase.
Definition at line 202 of file kis_default_bounds.cpp.
|
overridevirtual |
Implements KisDefaultBoundsBase.
Definition at line 207 of file kis_default_bounds.cpp.
References m_d.
|
friend |
Definition at line 100 of file kis_default_bounds.h.
| KisDefaultBoundsBaseSP KisWrapAroundBoundsWrapper::base |
Definition at line 182 of file kis_default_bounds.cpp.
| QRect KisWrapAroundBoundsWrapper::bounds |
Definition at line 183 of file kis_default_bounds.cpp.
|
private |
Definition at line 106 of file kis_default_bounds.h.