|
Krita Source Code Documentation
|
#include <kis_layer_projection_plane.h>
Inheritance diagram for KisLayerProjectionPlane:Classes | |
| struct | Private |
Public Member Functions | |
| QRect | accessRect (const QRect &rect, KisLayer::PositionToFilthy pos) const override |
| void | apply (KisPainter *painter, const QRect &rect) override |
| void | applyMaxOutAlpha (KisPainter *painter, const QRect &rect, KritaUtils::ThresholdMode thresholdMode) |
| QRect | changeRect (const QRect &rect, KisLayer::PositionToFilthy pos) const override |
| KisPaintDeviceList | getLodCapableDevices () const override |
| KisLayerProjectionPlane (KisLayer *layer) | |
| QRect | looseUserVisibleBounds () const override |
| QRect | needRect (const QRect &rect, KisLayer::PositionToFilthy pos) const override |
| QRect | needRectForOriginal (const QRect &rect) const override |
| QRect | recalculate (const QRect &rect, KisNodeSP filthyNode, KisRenderPassFlags flags) override |
| QRect | tightUserVisibleBounds () const override |
| ~KisLayerProjectionPlane () override | |
Public Member Functions inherited from KisAbstractProjectionPlane | |
| KisAbstractProjectionPlane () | |
| virtual | ~KisAbstractProjectionPlane () |
Private Member Functions | |
| void | applyImpl (KisPainter *painter, const QRect &rect, KritaUtils::ThresholdMode thresholdMode) |
Private Attributes | |
| const QScopedPointer< Private > | m_d |
An implementation of the KisAbstractProjectionPlane interface for a layer object
Definition at line 19 of file kis_layer_projection_plane.h.
| KisLayerProjectionPlane::KisLayerProjectionPlane | ( | KisLayer * | layer | ) |
Definition at line 26 of file kis_layer_projection_plane.cpp.
References m_d.
|
override |
Definition at line 32 of file kis_layer_projection_plane.cpp.
|
overridevirtual |
Works like KisNode::needRect(), but includes more transformations of the layer
Implements KisAbstractProjectionPlane.
Definition at line 102 of file kis_layer_projection_plane.cpp.
References m_d.
|
overridevirtual |
Writes the data of the projection plane onto a global projection using painter object.
Implements KisAbstractProjectionPlane.
Definition at line 77 of file kis_layer_projection_plane.cpp.
References applyImpl(), and KritaUtils::ThresholdNone.
|
private |
Definition at line 41 of file kis_layer_projection_plane.cpp.
References KisPainter::bitBlt(), COMPOSITE_COPY, COMPOSITE_DESTINATION_ATOP, COMPOSITE_DESTINATION_IN, KisPaintDevice::extent(), m_d, needRect(), KisPainter::setChannelFlags(), KisPainter::setCompositeOpId(), KisPainter::setOpacityU8(), KritaUtils::ThresholdNone, and KritaUtils::thresholdOpacity().
| void KisLayerProjectionPlane::applyMaxOutAlpha | ( | KisPainter * | painter, |
| const QRect & | rect, | ||
| KritaUtils::ThresholdMode | thresholdMode ) |
Definition at line 82 of file kis_layer_projection_plane.cpp.
References applyImpl().
|
overridevirtual |
Works like KisNode::changeRect(), but includes more transformations of the layer
Implements KisAbstractProjectionPlane.
Definition at line 97 of file kis_layer_projection_plane.cpp.
References m_d.
|
overridevirtual |
Returns a list of devices which should synchronize the lod cache on update
Implements KisAbstractProjectionPlane.
Definition at line 87 of file kis_layer_projection_plane.cpp.
References m_d.
|
overridevirtual |
Return an approximate (loose) rectangle, where the contents of the plane is placed from user's point of view. It includes everything belonging to the plane (e.g. layer styles).
This rectangle contains or is bigger than the rectangle returned by tightUserVisibleBounds().
Implements KisAbstractProjectionPlane.
Definition at line 117 of file kis_layer_projection_plane.cpp.
References m_d.
|
overridevirtual |
Works like KisNode::needRect(), but includes more transformations of the layer
Implements KisAbstractProjectionPlane.
Definition at line 92 of file kis_layer_projection_plane.cpp.
References m_d.
|
overridevirtual |
Works like KisLayer::needRectForOriginal(), but includes needed rects of layer styles
Implements KisAbstractProjectionPlane.
Definition at line 107 of file kis_layer_projection_plane.cpp.
References m_d.
|
overridevirtual |
Is called by the async merger when the node is filthy and should recalculate its internal representation. For usual layers it means just calling updateProjection().
Implements KisAbstractProjectionPlane.
Definition at line 36 of file kis_layer_projection_plane.cpp.
References m_d.
|
overridevirtual |
Return a tight rectangle, where the contents of the plane is placed from user's point of view. It includes everything belonging to the plane (e.g. layer styles).
Implements KisAbstractProjectionPlane.
Definition at line 112 of file kis_layer_projection_plane.cpp.
References m_d.
|
private |
Definition at line 43 of file kis_layer_projection_plane.h.