|
Krita Source Code Documentation
|
#include <kis_layer_style_projection_plane.h>
Inheritance diagram for KisLayerStyleProjectionPlane:Static Public Member Functions | |
| static KisAbstractProjectionPlaneSP | factoryObject (KisLayer *sourceLayer) |
Public Attributes | |
| KisCachedPaintDevice | cachedPaintDevice |
| KisCachedSelection | cachedSelection |
| bool | canHaveChildNodes = false |
| bool | dependsOnLowerNodes = false |
| KisLayer * | sourceLayer = 0 |
| KisLayerProjectionPlaneWSP | sourceProjectionPlane |
| KisStrokeLayerStyleFilterProjectionPlaneSP | strokeStyle |
| KisPSDLayerStyleSP | style |
| QVector< KisLayerStyleFilterProjectionPlaneSP > | stylesAfter |
| QVector< KisLayerStyleFilterProjectionPlaneSP > | stylesBefore |
| QVector< KisLayerStyleFilterProjectionPlaneSP > | stylesOverlay |
Public Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Private Member Functions | |
| void | init (KisLayer *sourceLayer, KisPSDLayerStyleSP layerStyle) |
| KisLayerStyleProjectionPlane (KisLayer *sourceLayer, KisPSDLayerStyleSP style) | |
| QRect | stylesNeedRect (const QRect &rect) const |
Private Attributes | |
| const QScopedPointer< Private > | m_d |
Friends | |
| class | KisLayerStyleProjectionPlaneTest |
Definition at line 27 of file kis_layer_style_projection_plane.cpp.
| KisLayerStyleProjectionPlane::KisLayerStyleProjectionPlane | ( | KisLayer * | sourceLayer | ) |
Definition at line 90 of file kis_layer_style_projection_plane.cpp.
References init(), KIS_ASSERT_RECOVER, KisLayer::layerStyle, sourceLayer, style, and toQShared().
| KisLayerStyleProjectionPlane::KisLayerStyleProjectionPlane | ( | const KisLayerStyleProjectionPlane & | rhs, |
| KisLayer * | sourceLayer, | ||
| KisPSDLayerStyleSP | clonedStyle ) |
Definition at line 102 of file kis_layer_style_projection_plane.cpp.
References KIS_SAFE_ASSERT_RECOVER, m_d, sourceLayer, and toQShared().
|
override |
Definition at line 211 of file kis_layer_style_projection_plane.cpp.
|
private |
Definition at line 128 of file kis_layer_style_projection_plane.cpp.
References init(), and sourceLayer.
|
overridevirtual |
Works like KisNode::needRect(), but includes more transformations of the layer
Implements KisAbstractProjectionPlane.
Definition at line 388 of file kis_layer_style_projection_plane.cpp.
References accessRect(), m_d, and KisNode::N_ABOVE_FILTHY.
|
inline |
Definition at line 53 of file kis_layer_style_projection_plane.cpp.
|
overridevirtual |
Writes the data of the projection plane onto a global projection using painter object.
Implements KisAbstractProjectionPlane.
Definition at line 260 of file kis_layer_style_projection_plane.cpp.
References KisLayerStyleKnockoutBlower::apply(), KisCachedPaintDevice::Guard::device(), KisPainter::device, m_d, KisPaintDevice::makeCloneFromRough(), KisSelection::pixelSelection, KisLayerStyleKnockoutBlower::resetKnockoutSelection(), s1, KisLsUtils::selectionFromAlphaChannel(), KisLayerStyleKnockoutBlower::setKnockoutSelection(), KisPainter::strokeStyle, KritaUtils::ThresholdMaxOut, KritaUtils::ThresholdNone, and KritaUtils::thresholdOpacityAlpha8().
| void KisLayerStyleProjectionPlane::applyComplexPlane | ( | KisPainter * | painter, |
| KisLayerStyleFilterProjectionPlaneSP | plane, | ||
| const QRect & | rect, | ||
| KisPaintDeviceSP | originalClone ) |
|
overridevirtual |
Works like KisNode::changeRect(), but includes more transformations of the layer
Implements KisAbstractProjectionPlane.
Definition at line 373 of file kis_layer_style_projection_plane.cpp.
References changeRect(), m_d, and KisNode::N_ABOVE_FILTHY.
|
static |
Definition at line 215 of file kis_layer_style_projection_plane.cpp.
References KisLayerStyleProjectionPlane(), sourceLayer, and toQShared().
|
overridevirtual |
Returns a list of devices which should synchronize the lod cache on update
Implements KisAbstractProjectionPlane.
Definition at line 331 of file kis_layer_style_projection_plane.cpp.
References m_d.
|
inline |
Definition at line 70 of file kis_layer_style_projection_plane.cpp.
|
inline |
Definition at line 62 of file kis_layer_style_projection_plane.cpp.
|
private |
Definition at line 134 of file kis_layer_style_projection_plane.cpp.
References KisLsOverlayFilter::Color, KisLsDropShadowFilter::DropShadow, KisLsOverlayFilter::Gradient, KisLsDropShadowFilter::InnerGlow, KisLsDropShadowFilter::InnerShadow, KIS_SAFE_ASSERT_RECOVER_RETURN, m_d, KisLsDropShadowFilter::OuterGlow, KisLsOverlayFilter::Pattern, KisLayerStyleFilterProjectionPlane::setStyle(), sourceLayer, style, and toQShared().
Definition at line 45 of file kis_layer_style_projection_plane.cpp.
References KisLayer::internalProjectionPlane(), KIS_SAFE_ASSERT_RECOVER_RETURN, and KisNode::projectionLeaf.
|
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 435 of file kis_layer_style_projection_plane.cpp.
References m_d.
|
overridevirtual |
Works like KisNode::needRect(), but includes more transformations of the layer
Need rect should also be adjust for the layers that generate their 'original' based on the contents of the underlying layers like KisAdjustmentLayer
Implements KisAbstractProjectionPlane.
Definition at line 349 of file kis_layer_style_projection_plane.cpp.
References m_d, KisNode::N_ABOVE_FILTHY, KisNode::N_FILTHY, needRect(), and stylesNeedRect().
|
overridevirtual |
Works like KisLayer::needRectForOriginal(), but includes needed rects of layer styles
Need rect should also be adjust for the layers that generate their 'original' based on the contents of the child layers like KisGroupLayer
Implements KisAbstractProjectionPlane.
Definition at line 402 of file kis_layer_style_projection_plane.cpp.
References m_d, needRect(), and stylesNeedRect().
|
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 221 of file kis_layer_style_projection_plane.cpp.
References m_d, and stylesNeedRect().
|
private |
Definition at line 447 of file kis_layer_style_projection_plane.cpp.
References m_d, KisNode::N_ABOVE_FILTHY, and needRect().
|
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 423 of file kis_layer_style_projection_plane.cpp.
References m_d.
|
friend |
Definition at line 44 of file kis_layer_style_projection_plane.h.
| KisCachedPaintDevice KisLayerStyleProjectionPlane::cachedPaintDevice |
Definition at line 36 of file kis_layer_style_projection_plane.cpp.
| KisCachedSelection KisLayerStyleProjectionPlane::cachedSelection |
Definition at line 37 of file kis_layer_style_projection_plane.cpp.
| bool KisLayerStyleProjectionPlane::canHaveChildNodes = false |
Definition at line 42 of file kis_layer_style_projection_plane.cpp.
| bool KisLayerStyleProjectionPlane::dependsOnLowerNodes = false |
Definition at line 43 of file kis_layer_style_projection_plane.cpp.
|
private |
Definition at line 53 of file kis_layer_style_projection_plane.h.
| KisLayer* KisLayerStyleProjectionPlane::sourceLayer = 0 |
Definition at line 38 of file kis_layer_style_projection_plane.cpp.
| KisLayerProjectionPlaneWSP KisLayerStyleProjectionPlane::sourceProjectionPlane |
Definition at line 29 of file kis_layer_style_projection_plane.cpp.
| KisStrokeLayerStyleFilterProjectionPlaneSP KisLayerStyleProjectionPlane::strokeStyle |
Definition at line 34 of file kis_layer_style_projection_plane.cpp.
| KisPSDLayerStyleSP KisLayerStyleProjectionPlane::style |
Definition at line 41 of file kis_layer_style_projection_plane.cpp.
| QVector<KisLayerStyleFilterProjectionPlaneSP> KisLayerStyleProjectionPlane::stylesAfter |
Definition at line 32 of file kis_layer_style_projection_plane.cpp.
| QVector<KisLayerStyleFilterProjectionPlaneSP> KisLayerStyleProjectionPlane::stylesBefore |
Definition at line 31 of file kis_layer_style_projection_plane.cpp.
| QVector<KisLayerStyleFilterProjectionPlaneSP> KisLayerStyleProjectionPlane::stylesOverlay |
Definition at line 33 of file kis_layer_style_projection_plane.cpp.