Krita Source Code Documentation
Loading...
Searching...
No Matches
KisMaskDefaultBounds Class Reference

#include <kis_default_bounds.h>

+ Inheritance diagram for KisMaskDefaultBounds:

Public Member Functions

 KisMaskDefaultBounds (KisNodeSP parentNode)
 
 ~KisMaskDefaultBounds () override
 
- Public Member Functions inherited from KisSelectionDefaultBoundsBase
QRect bounds () const override
 
int currentLevelOfDetail () const override
 
int currentTime () const override
 
bool externalFrameActive () const override
 
QRect imageBorderRect () const override
 
 KisSelectionDefaultBoundsBase ()
 
voidsourceCookie () const override
 
bool wrapAroundMode () const override
 
WrapAroundAxis wrapAroundModeAxis () const override
 
 ~KisSelectionDefaultBoundsBase () override
 
- Public Member Functions inherited from KisDefaultBoundsBase
virtual ~KisDefaultBoundsBase ()
 
- Public Member Functions inherited from KisShared
bool deref ()
 
bool ref ()
 
int refCount ()
 
QAtomicInt * sharedWeakReference ()
 

Protected Member Functions

virtual KisPaintDeviceSP parentPaintDevice () const override
 
- Protected Member Functions inherited from KisShared
 KisShared ()
 
 ~KisShared ()
 

Private Attributes

KisNodeWSP m_parentNode
 

Detailed Description

KisMaskDefaultBounds is used to attach a selection of a mask to the origin() of the parent layer. We cannot connect it directly to parent->origin(), because in some cases the origin() of the parent layer may change randomly (e.g. the origin() of a group layer may change due to the oblige child mechanism).

Definition at line 111 of file kis_default_bounds.h.

Constructor & Destructor Documentation

◆ KisMaskDefaultBounds()

KisMaskDefaultBounds::KisMaskDefaultBounds ( KisNodeSP parentNode)

Definition at line 177 of file kis_default_bounds.cpp.

178 : m_parentNode(parentNode)
179{
180}

◆ ~KisMaskDefaultBounds()

KisMaskDefaultBounds::~KisMaskDefaultBounds ( )
override

Definition at line 182 of file kis_default_bounds.cpp.

183{
184}

Member Function Documentation

◆ parentPaintDevice()

KisPaintDeviceSP KisMaskDefaultBounds::parentPaintDevice ( ) const
overrideprotectedvirtual

Return the actual paint device the selection is attached to

Implements KisSelectionDefaultBoundsBase.

Definition at line 186 of file kis_default_bounds.cpp.

187{
188 KisNodeSP parentNode = m_parentNode;
189
190 return parentNode ? parentNode->original() : nullptr;
191}
virtual KisPaintDeviceSP original() const =0

References m_parentNode, and KisBaseNode::original().

Member Data Documentation

◆ m_parentNode

KisNodeWSP KisMaskDefaultBounds::m_parentNode
private

Definition at line 122 of file kis_default_bounds.h.


The documentation for this class was generated from the following files: