|
Krita Source Code Documentation
|
#include <kis_default_bounds.h>
Inheritance diagram for KisDefaultBounds:Public Member Functions | |
| QRect | bounds () const override |
| int | currentLevelOfDetail () const override |
| int | currentTime () const override |
| bool | externalFrameActive () const override |
| KisDefaultBounds () | |
| KisDefaultBounds (KisImageWSP image) | |
| void * | sourceCookie () const override |
| bool | wrapAroundMode () const override |
| WrapAroundAxis | wrapAroundModeAxis () const override |
| ~KisDefaultBounds () 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 | |
| KisImageWSP | image |
Public Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Static Protected Attributes | |
| static const QRect | infiniteRect |
Private Attributes | |
| Private *const | m_d |
Friends | |
| class | KisPaintDeviceTest |
Additional Inherited Members | |
Protected Member Functions inherited from KisShared | |
| KisShared () | |
| ~KisShared () | |
Definition at line 24 of file kis_default_bounds.cpp.
| KisDefaultBounds::KisDefaultBounds | ( | ) |
Definition at line 29 of file kis_default_bounds.cpp.
| KisDefaultBounds::KisDefaultBounds | ( | KisImageWSP | image | ) |
Definition at line 34 of file kis_default_bounds.cpp.
|
override |
|
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.
By default return infinite rect to cover everything
Implements KisDefaultBoundsBase.
Reimplemented in KisSelectionEmptyBounds, ThumbnailBounds, and KisScratchPadDefaultBounds.
Definition at line 45 of file kis_default_bounds.cpp.
References infiniteRect, and m_d.
|
overridevirtual |
Implements KisDefaultBoundsBase.
Definition at line 63 of file kis_default_bounds.cpp.
References m_d.
|
overridevirtual |
Implements KisDefaultBoundsBase.
Definition at line 68 of file kis_default_bounds.cpp.
References currentTime(), image, and m_d.
|
overridevirtual |
Implements KisDefaultBoundsBase.
Definition at line 74 of file kis_default_bounds.cpp.
References externalFrameActive(), image, and 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.
Reimplemented in KisScratchPadDefaultBounds.
Definition at line 80 of file kis_default_bounds.cpp.
|
overridevirtual |
Implements KisDefaultBoundsBase.
Definition at line 53 of file kis_default_bounds.cpp.
References m_d.
|
overridevirtual |
Implements KisDefaultBoundsBase.
Definition at line 58 of file kis_default_bounds.cpp.
References m_d, and WRAPAROUND_BOTH.
|
friend |
Definition at line 39 of file kis_default_bounds.h.
| KisImageWSP KisDefaultBounds::image |
Definition at line 26 of file kis_default_bounds.cpp.
|
staticprotected |
Definition at line 40 of file kis_default_bounds.h.
|
private |
Definition at line 46 of file kis_default_bounds.h.