|
Krita Source Code Documentation
|
#include <kis_default_bounds.h>
Inheritance diagram for KisSelectionDefaultBoundsBase:Public Member Functions | |
| QRect | bounds () const override |
| int | currentLevelOfDetail () const override |
| int | currentTime () const override |
| bool | externalFrameActive () const override |
| QRect | imageBorderRect () const override |
| KisSelectionDefaultBoundsBase () | |
| void * | sourceCookie () const override |
| bool | wrapAroundMode () const override |
| WrapAroundAxis | wrapAroundModeAxis () const override |
| ~KisSelectionDefaultBoundsBase () override | |
Public Member Functions inherited from KisDefaultBoundsBase | |
| virtual | ~KisDefaultBoundsBase () |
Public Member Functions inherited from KisShared | |
| bool | deref () |
| bool | ref () |
| int | refCount () |
| QAtomicInt * | sharedWeakReference () |
Protected Member Functions | |
| virtual KisPaintDeviceSP | parentPaintDevice () const =0 |
Protected Member Functions inherited from KisShared | |
| KisShared () | |
| ~KisShared () | |
For a selection, the default bounds are defined not by the image, but by the device the selection is attached to, i.e. the selection with non-transparent default pixel should cover the entire parent paint device, not just the image bounds.
KisSelectionDefaultBoundsBase is a base class for selection-targeted default bounds objects. The descendants can redefine how exactly "the parent paint device" is fetched.
Definition at line 59 of file kis_default_bounds.h.
| KisSelectionDefaultBoundsBase::KisSelectionDefaultBoundsBase | ( | ) |
Definition at line 89 of file kis_default_bounds.cpp.
|
override |
Definition at line 93 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.
Definition at line 97 of file kis_default_bounds.cpp.
References KisDefaultBoundsBase::bounds(), KisPaintDevice::defaultBounds(), and KisPaintDevice::extent().
|
overridevirtual |
Implements KisDefaultBoundsBase.
Definition at line 126 of file kis_default_bounds.cpp.
References KisDefaultBoundsBase::currentLevelOfDetail(), and KisPaintDevice::defaultBounds().
|
overridevirtual |
Implements KisDefaultBoundsBase.
Definition at line 133 of file kis_default_bounds.cpp.
References KisDefaultBoundsBase::currentTime(), and KisPaintDevice::defaultBounds().
|
overridevirtual |
Implements KisDefaultBoundsBase.
Definition at line 140 of file kis_default_bounds.cpp.
References KisPaintDevice::defaultBounds(), and KisDefaultBoundsBase::externalFrameActive().
|
overridevirtual |
Returns the rectangle of the official image size. This rect is used for wrapping the device in wrap-around mode and in some specific operations.
NOTE: don't use it unless you know what you are doing, most probably you want to use bounds() instead!
Reimplemented from KisDefaultBoundsBase.
Definition at line 105 of file kis_default_bounds.cpp.
References KisDefaultBoundsBase::bounds(), and KisPaintDevice::defaultBounds().
|
protectedpure virtual |
Return the actual paint device the selection is attached to
Implemented in KisSelectionDefaultBounds, and KisMaskDefaultBounds.
|
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 147 of file kis_default_bounds.cpp.
References KisSharedPtr< T >::data().
|
overridevirtual |
Implements KisDefaultBoundsBase.
Definition at line 112 of file kis_default_bounds.cpp.
References KisPaintDevice::defaultBounds(), and KisDefaultBoundsBase::wrapAroundMode().
|
overridevirtual |
Implements KisDefaultBoundsBase.
Definition at line 119 of file kis_default_bounds.cpp.
References KisPaintDevice::defaultBounds(), WRAPAROUND_BOTH, and KisDefaultBoundsBase::wrapAroundModeAxis().