|
Krita Source Code Documentation
|
#include <kis_projection_leaf.h>
Inheritance diagram for KisProjectionLeaf:Public Types | |
| enum | NodeDropReason { NodeAvailable , DropPassThroughMask , DropPassThroughClone } |
Static Public Member Functions | |
| static bool | checkPassThrough (const KisNode *node) |
| static bool | isSelectionMask (const KisNode *node) |
| static KisNodeSP | skipSelectionMasksBackward (KisNodeSP node) |
| static KisNodeSP | skipSelectionMasksForward (KisNodeSP node) |
Public Attributes | |
| bool | isTemporaryHidden = false |
| KisNodeWSP | node |
Public Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Private Attributes | |
| const QScopedPointer< Private > | m_d |
Definition at line 26 of file kis_projection_leaf.cpp.
| Enumerator | |
|---|---|
| NodeAvailable | |
| DropPassThroughMask | |
| DropPassThroughClone | |
Definition at line 59 of file kis_projection_leaf.h.
| KisProjectionLeaf::KisProjectionLeaf | ( | KisNode * | node | ) |
Definition at line 93 of file kis_projection_leaf.cpp.
|
virtual |
Definition at line 98 of file kis_projection_leaf.cpp.
| bool KisProjectionLeaf::accept | ( | KisNodeVisitor & | visitor | ) |
Definition at line 233 of file kis_projection_leaf.cpp.
References m_d.
| bool KisProjectionLeaf::canHaveChildLayers | ( | ) | const |
Definition at line 271 of file kis_projection_leaf.cpp.
References m_d.
| QBitArray KisProjectionLeaf::channelFlags | ( | ) | const |
Definition at line 313 of file kis_projection_leaf.cpp.
References KisLayer::channelFlags, channelFlags(), m_d, and KritaUtils::mergeChannelFlags().
|
inline |
Definition at line 56 of file kis_projection_leaf.cpp.
References KisNode::parent.
|
inlinestatic |
Definition at line 33 of file kis_projection_leaf.cpp.
References KisGroupLayer::passThroughMode.
|
inline |
Definition at line 60 of file kis_projection_leaf.cpp.
| bool KisProjectionLeaf::dependsOnLowerNodes | ( | ) | const |
Definition at line 276 of file kis_projection_leaf.cpp.
References m_d.
| KisProjectionLeaf::NodeDropReason KisProjectionLeaf::dropReason | ( | ) | const |
Definition at line 359 of file kis_projection_leaf.cpp.
References KisCloneLayer::copyFrom, DropPassThroughClone, DropPassThroughMask, m_d, NodeAvailable, and KisNode::projectionLeaf.
| void KisProjectionLeaf::explicitlyRegeneratePassThroughProjection | ( | ) |
Regenerate projection of the current group layer iff it is pass-through mode.
WARNING: must be called either under the image lock held or in the context of an exclusive stroke job.
This method is rather slow and dangerous. It should be executes in exclusive environment only.
Definition at line 398 of file kis_projection_leaf.cpp.
References KisDefaultBoundsBase::bounds(), KisBaseRectsWalker::collectRects(), KisPaintDevice::defaultBounds(), m_d, projection(), and KisAsyncMerger::startMerge().
|
inline |
Definition at line 75 of file kis_projection_leaf.cpp.
References KisNode::parent.
| KisProjectionLeafSP KisProjectionLeaf::firstChild | ( | ) | const |
Definition at line 122 of file kis_projection_leaf.cpp.
References KisNode::firstChild(), isRoot(), m_d, node, and KisNode::projectionLeaf.
| bool KisProjectionLeaf::hasClones | ( | ) | const |
Definition at line 343 of file kis_projection_leaf.cpp.
References KisLayer::hasClones(), and m_d.
| bool KisProjectionLeaf::isDroppedNode | ( | ) | const |
Definition at line 349 of file kis_projection_leaf.cpp.
References dropReason(), and NodeAvailable.
| bool KisProjectionLeaf::isLayer | ( | ) | const |
Definition at line 259 of file kis_projection_leaf.cpp.
References m_d.
| bool KisProjectionLeaf::isMask | ( | ) | const |
Definition at line 265 of file kis_projection_leaf.cpp.
References m_d.
| bool KisProjectionLeaf::isOverlayProjectionLeaf | ( | ) | const |
Definition at line 379 of file kis_projection_leaf.cpp.
References m_d.
| bool KisProjectionLeaf::isRoot | ( | ) | const |
Definition at line 254 of file kis_projection_leaf.cpp.
References m_d.
|
inlinestatic |
Definition at line 38 of file kis_projection_leaf.cpp.
| bool KisProjectionLeaf::isStillInGraph | ( | ) | const |
Definition at line 338 of file kis_projection_leaf.cpp.
References m_d.
| bool KisProjectionLeaf::isTemporaryHiddenFromRendering | ( | ) | const |
Definition at line 389 of file kis_projection_leaf.cpp.
References m_d.
|
inline |
Definition at line 69 of file kis_projection_leaf.cpp.
References KisNode::nextSibling(), and KisNode::parent.
| KisProjectionLeafSP KisProjectionLeaf::lastChild | ( | ) | const |
Definition at line 141 of file kis_projection_leaf.cpp.
References isRoot(), KisNode::lastChild(), m_d, node, and KisNode::projectionLeaf.
| KisPaintDeviceSP KisProjectionLeaf::lazyDestinationForSubtreeComposition | ( | ) |
Definition at line 248 of file kis_projection_leaf.cpp.
References KisGroupLayer::lazyDestinationForSubtreeComposition(), and m_d.
| KisProjectionLeafSP KisProjectionLeaf::nextSibling | ( | ) | const |
Definition at line 196 of file kis_projection_leaf.cpp.
References KisNode::firstChild(), m_d, KisNode::nextSibling(), node, KisNode::parent, and KisNode::projectionLeaf.
| KisNodeSP KisProjectionLeaf::node | ( | ) | const |
| quint8 KisProjectionLeaf::opacity | ( | ) | const |
Definition at line 300 of file kis_projection_leaf.cpp.
References m_d, KritaUtils::mergeOpacityU8(), and KisBaseNode::opacity().
| KisPaintDeviceSP KisProjectionLeaf::original | ( | ) |
Definition at line 238 of file kis_projection_leaf.cpp.
References m_d.
|
inline |
Definition at line 64 of file kis_projection_leaf.cpp.
References KisNode::graphListener, KisNodeGraphListener::graphOverlayNode(), and KisNode::projectionLeaf.
| KisProjectionLeafSP KisProjectionLeaf::parent | ( | ) | const |
Definition at line 102 of file kis_projection_leaf.cpp.
References m_d, node, KisNode::parent, and KisNode::projectionLeaf.
| KisProjectionLeafSP KisProjectionLeaf::prevSibling | ( | ) | const |
Definition at line 160 of file kis_projection_leaf.cpp.
References KisNode::lastChild(), m_d, node, KisNode::parent, KisNode::prevSibling(), and KisNode::projectionLeaf.
|
inline |
Definition at line 28 of file kis_projection_leaf.cpp.
| KisPaintDeviceSP KisProjectionLeaf::projection | ( | ) |
Definition at line 243 of file kis_projection_leaf.cpp.
References m_d.
| KisAbstractProjectionPlaneSP KisProjectionLeaf::projectionPlane | ( | ) | const |
Definition at line 228 of file kis_projection_leaf.cpp.
References m_d.
| void KisProjectionLeaf::setTemporaryHiddenFromRendering | ( | bool | value | ) |
Temporarily exclude the projection leaf from rendering by making it invisible (KisProjectionLeaf::visible() == false).
This method is used by the tools that want to hide the original layer's content temporarily.
NOTE: the method is not thread-safe! The caller must guarantee exclusive access to the projection leaf himself.
Definition at line 384 of file kis_projection_leaf.cpp.
| bool KisProjectionLeaf::shouldBeRendered | ( | ) | const |
A leaf can be renderable even when it is invisible, e.g. when it has clones (it should update data for clones)
Definition at line 354 of file kis_projection_leaf.cpp.
References hasClones(), and visible().
Definition at line 49 of file kis_projection_leaf.cpp.
References isSelectionMask(), and KisNode::prevSibling().
Definition at line 42 of file kis_projection_leaf.cpp.
References isSelectionMask(), and KisNode::nextSibling().
|
inline |
Definition at line 85 of file kis_projection_leaf.cpp.
References KisWeakSharedPtr< T >::data(), KisGroupLayer::setPassThroughMode(), and value().
| bool KisProjectionLeaf::visible | ( | ) | const |
Definition at line 281 of file kis_projection_leaf.cpp.
References isDroppedNode(), m_d, node, KisNode::parent, KisNode::projectionLeaf, and KisBaseNode::visible().
| bool KisProjectionLeaf::isTemporaryHidden = false |
Definition at line 31 of file kis_projection_leaf.cpp.
|
private |
Definition at line 96 of file kis_projection_leaf.h.
| KisNodeSP KisProjectionLeaf::node |
Definition at line 30 of file kis_projection_leaf.cpp.