|
Krita Source Code Documentation
|
#include <kis_default_bounds_node_wrapper.h>
Inheritance diagram for KisDefaultBoundsNodeWrapper:Public Member Functions | |
| QRect | bounds () const override |
| int | currentLevelOfDetail () const override |
| int | currentTime () const override |
| bool | externalFrameActive () const override |
| QRect | imageBorderRect () const override |
| KisDefaultBoundsNodeWrapper (KisBaseNodeWSP node=0) | |
| KisDefaultBoundsNodeWrapper (KisDefaultBoundsNodeWrapper &rhs) | |
| void * | sourceCookie () const override |
| bool | wrapAroundMode () const override |
| WrapAroundAxis | wrapAroundModeAxis () const override |
| ~KisDefaultBoundsNodeWrapper () 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 | |
| KisBaseNodeWSP | node |
Public Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Static Public Attributes | |
| static const QRect | infiniteRect |
Private Attributes | |
| Private * | m_d |
Additional Inherited Members | |
Protected Member Functions inherited from KisShared | |
| KisShared () | |
| ~KisShared () | |
Definition at line 10 of file kis_default_bounds_node_wrapper.cpp.
| KisDefaultBoundsNodeWrapper::KisDefaultBoundsNodeWrapper | ( | KisBaseNodeWSP | node = 0 | ) |
Definition at line 17 of file kis_default_bounds_node_wrapper.cpp.
| KisDefaultBoundsNodeWrapper::KisDefaultBoundsNodeWrapper | ( | KisDefaultBoundsNodeWrapper & | rhs | ) |
|
override |
Definition at line 29 of file kis_default_bounds_node_wrapper.cpp.
References m_d.
|
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 34 of file kis_default_bounds_node_wrapper.cpp.
References infiniteRect, and m_d.
|
overridevirtual |
Implements KisDefaultBoundsBase.
Definition at line 54 of file kis_default_bounds_node_wrapper.cpp.
References m_d.
|
overridevirtual |
Implements KisDefaultBoundsBase.
Definition at line 59 of file kis_default_bounds_node_wrapper.cpp.
References m_d.
|
overridevirtual |
Implements KisDefaultBoundsBase.
Definition at line 65 of file kis_default_bounds_node_wrapper.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 39 of file kis_default_bounds_node_wrapper.cpp.
References infiniteRect, 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.
Definition at line 70 of file kis_default_bounds_node_wrapper.cpp.
References m_d.
|
overridevirtual |
Implements KisDefaultBoundsBase.
Definition at line 44 of file kis_default_bounds_node_wrapper.cpp.
References m_d.
|
overridevirtual |
Implements KisDefaultBoundsBase.
Definition at line 49 of file kis_default_bounds_node_wrapper.cpp.
References m_d, and WRAPAROUND_BOTH.
|
static |
Definition at line 31 of file kis_default_bounds_node_wrapper.h.
|
private |
Definition at line 35 of file kis_default_bounds_node_wrapper.h.
| KisBaseNodeWSP KisDefaultBoundsNodeWrapper::node |
Definition at line 11 of file kis_default_bounds_node_wrapper.cpp.