|
Krita Source Code Documentation
|
#include <kis_default_bounds.h>
Inheritance diagram for KisSelectionEmptyBounds:Public Member Functions | |
| QRect | bounds () const override |
| KisSelectionEmptyBounds () | |
| KisSelectionEmptyBounds (KisImageWSP image) | |
| ~KisSelectionEmptyBounds () override | |
Public Member Functions inherited from KisDefaultBounds | |
| 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 () |
Additional Inherited Members | |
Public Attributes inherited from KisDefaultBounds | |
| KisImageWSP | image |
Public Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Protected Member Functions inherited from KisShared | |
| KisShared () | |
| ~KisShared () | |
Static Protected Attributes inherited from KisDefaultBounds | |
| static const QRect | infiniteRect |
Definition at line 71 of file kis_default_bounds.h.
| KisSelectionEmptyBounds::KisSelectionEmptyBounds | ( | ) |
Definition at line 156 of file kis_default_bounds.cpp.
| KisSelectionEmptyBounds::KisSelectionEmptyBounds | ( | KisImageWSP | image | ) |
Definition at line 161 of file kis_default_bounds.cpp.
|
override |
Definition at line 166 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.
By default return infinite rect to cover everything
Reimplemented from KisDefaultBounds.
Definition at line 170 of file kis_default_bounds.cpp.