|
Krita Source Code Documentation
|
#include <kis_default_bounds.h>
Inheritance diagram for KisSelectionDefaultBounds:Public Member Functions | |
| QRect | bounds () const override |
| int | currentLevelOfDetail () const override |
| int | currentTime () const override |
| bool | externalFrameActive () const override |
| QRect | imageBorderRect () const override |
| KisSelectionDefaultBounds (KisPaintDeviceSP parentPaintDevice) | |
| void * | sourceCookie () const override |
| bool | wrapAroundMode () const override |
| WrapAroundAxis | wrapAroundModeAxis () const override |
| ~KisSelectionDefaultBounds () override | |
Public Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
Public Member Functions inherited from KisDefaultBoundsBase | |
| virtual | ~KisDefaultBoundsBase () |
Public Member Functions inherited from KisShared | |
| bool | deref () |
| bool | ref () |
| int | refCount () |
| QAtomicInt * | sharedWeakReference () |
Public Attributes | |
| KisPaintDeviceWSP | parentDevice |
Public Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Private Attributes | |
| Private *const | m_d |
Additional Inherited Members | |
Protected Member Functions inherited from KisShared | |
| KisShared () | |
| ~KisShared () | |
Definition at line 89 of file kis_default_bounds.cpp.
| KisSelectionDefaultBounds::KisSelectionDefaultBounds | ( | KisPaintDeviceSP | parentPaintDevice | ) |
Definition at line 94 of file kis_default_bounds.cpp.
References m_d, and parentDevice.
|
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.
Implements KisDefaultBoundsBase.
Definition at line 105 of file kis_default_bounds.cpp.
References m_d.
|
overridevirtual |
Implements KisDefaultBoundsBase.
Definition at line 129 of file kis_default_bounds.cpp.
References m_d.
|
overridevirtual |
Implements KisDefaultBoundsBase.
Definition at line 135 of file kis_default_bounds.cpp.
References m_d.
|
overridevirtual |
Implements KisDefaultBoundsBase.
Definition at line 141 of file kis_default_bounds.cpp.
References m_d.
|
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 111 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 147 of file kis_default_bounds.cpp.
References m_d.
|
overridevirtual |
Implements KisDefaultBoundsBase.
Definition at line 117 of file kis_default_bounds.cpp.
References m_d.
|
overridevirtual |
Implements KisDefaultBoundsBase.
Definition at line 123 of file kis_default_bounds.cpp.
References m_d, and WRAPAROUND_BOTH.
|
private |
Definition at line 68 of file kis_default_bounds.h.
| KisPaintDeviceWSP KisSelectionDefaultBounds::parentDevice |
Definition at line 91 of file kis_default_bounds.cpp.