Krita Source Code Documentation
Loading...
Searching...
No Matches
KisColorizeMask::Private Struct Reference

Public Member Functions

bool filteredSourceValid (KisPaintDeviceSP parentDevice)
 
 Private (const Private &rhs, KisColorizeMask *_q)
 
 Private (KisColorizeMask *_q, KisImageWSP image)
 
void setNeedsUpdateImpl (bool value, bool requestedByUser)
 
bool shouldShowColoring () const
 
bool shouldShowFilteredSource () const
 

Public Attributes

KisCachedSelection cachedSelection
 
KisPaintDeviceSP coloringProjection
 
KoColor currentColor
 
KisPaintDeviceSP currentKeyStrokeDevice
 
KisThreadSafeSignalCompressor dirtyParentUpdateCompressor
 
QStack< QRect > extentBeforeUpdateStart
 
KisPaintDeviceSP fakePaintDevice
 
QRect filteredDeviceBounds
 
KisPaintDeviceSP filteredSource
 
bool filteringDirty = true
 
FilteringOptions filteringOptions
 
QList< KeyStrokekeyStrokes
 
bool limitToDeviceBounds = false
 
bool needAddCurrentKeyStroke
 
bool needsUpdate
 
QPoint offset
 
int originalSequenceNumber
 
KisThreadSafeSignalCompressor prefilterRecalculationCompressor
 
KisColorizeMaskq = 0
 
bool showColoring
 
bool showKeyStrokes
 
KisThreadSafeSignalCompressor updateCompressor
 
bool updateIsRunning
 

Detailed Description

Definition at line 45 of file kis_colorize_mask.cpp.

Constructor & Destructor Documentation

◆ Private() [1/2]

KisColorizeMask::Private::Private ( KisColorizeMask * _q,
KisImageWSP image )
inline

Definition at line 47 of file kis_colorize_mask.cpp.

48 : q(_q),
53 showKeyStrokes(true),
54 showColoring(true),
55 needsUpdate(true),
60 updateIsRunning(false),
61 filteringOptions(false, 4.0, 15, 0.7),
63 {
65
69 }
void setDefaultBounds(KisDefaultBoundsBaseSP bounds)
#define bounds(x, a, b)
KisImageWSP image
KisThreadSafeSignalCompressor prefilterRecalculationCompressor
KisThreadSafeSignalCompressor dirtyParentUpdateCompressor
KisPaintDeviceSP coloringProjection
KisThreadSafeSignalCompressor updateCompressor
static KoColorSpaceRegistry * instance()

References bounds, coloringProjection, fakePaintDevice, filteredSource, KisBaseNode::image, and KisPaintDevice::setDefaultBounds().

◆ Private() [2/2]

KisColorizeMask::Private::Private ( const Private & rhs,
KisColorizeMask * _q )
inline

Definition at line 71 of file kis_colorize_mask.cpp.

72 : q(_q),
73 coloringProjection(new KisPaintDevice(*rhs.coloringProjection)),
74 fakePaintDevice(new KisPaintDevice(*rhs.fakePaintDevice)),
75 filteredSource(new KisPaintDevice(*rhs.filteredSource)),
76 filteredDeviceBounds(rhs.filteredDeviceBounds),
77 needAddCurrentKeyStroke(rhs.needAddCurrentKeyStroke),
78 showKeyStrokes(rhs.showKeyStrokes),
79 showColoring(rhs.showColoring),
80 needsUpdate(false),
85 offset(rhs.offset),
86 updateIsRunning(false),
87 filteringOptions(rhs.filteringOptions),
88 limitToDeviceBounds(rhs.limitToDeviceBounds)
89 {
90 Q_FOREACH (const KeyStroke &stroke, rhs.keyStrokes) {
92 }
93 }
KisSharedPtr< KisPaintDevice > KisPaintDeviceSP
Definition kis_types.h:73
QList< KeyStroke > keyStrokes

References KisLazyFillTools::KeyStroke::color, KisLazyFillTools::KeyStroke::dev, KisLazyFillTools::KeyStroke::isTransparent, and keyStrokes.

Member Function Documentation

◆ filteredSourceValid()

bool KisColorizeMask::Private::filteredSourceValid ( KisPaintDeviceSP parentDevice)
inline

◆ setNeedsUpdateImpl()

void KisColorizeMask::Private::setNeedsUpdateImpl ( bool value,
bool requestedByUser )

Definition at line 302 of file kis_colorize_mask.cpp.

303{
304 if (value != needsUpdate) {
307
308 if (!value && requestedByUser) {
310 }
311 }
312}
float value(const T *src, size_t ch)
void baseNodeChangedCallback() override
Definition kis_mask.cc:532

References KisMask::baseNodeChangedCallback(), needsUpdate, q, KisThreadSafeSignalCompressor::start(), updateCompressor, and value().

◆ shouldShowColoring()

bool KisColorizeMask::Private::shouldShowColoring ( ) const

◆ shouldShowFilteredSource()

bool KisColorizeMask::Private::shouldShowFilteredSource ( ) const

Definition at line 497 of file kis_colorize_mask.cpp.

498{
499 return !updateIsRunning &&
503 !filteredSource->extent().isEmpty();
504}
QRect extent() const

References KisColorizeMask::showKeyStrokes().

Member Data Documentation

◆ cachedSelection

KisCachedSelection KisColorizeMask::Private::cachedSelection

Definition at line 110 of file kis_colorize_mask.cpp.

◆ coloringProjection

KisPaintDeviceSP KisColorizeMask::Private::coloringProjection

Definition at line 98 of file kis_colorize_mask.cpp.

◆ currentColor

KoColor KisColorizeMask::Private::currentColor

Definition at line 103 of file kis_colorize_mask.cpp.

◆ currentKeyStrokeDevice

KisPaintDeviceSP KisColorizeMask::Private::currentKeyStrokeDevice

Definition at line 104 of file kis_colorize_mask.cpp.

◆ dirtyParentUpdateCompressor

KisThreadSafeSignalCompressor KisColorizeMask::Private::dirtyParentUpdateCompressor

Definition at line 116 of file kis_colorize_mask.cpp.

◆ extentBeforeUpdateStart

QStack<QRect> KisColorizeMask::Private::extentBeforeUpdateStart

Definition at line 121 of file kis_colorize_mask.cpp.

◆ fakePaintDevice

KisPaintDeviceSP KisColorizeMask::Private::fakePaintDevice

Definition at line 99 of file kis_colorize_mask.cpp.

◆ filteredDeviceBounds

QRect KisColorizeMask::Private::filteredDeviceBounds

Definition at line 101 of file kis_colorize_mask.cpp.

◆ filteredSource

KisPaintDeviceSP KisColorizeMask::Private::filteredSource

Definition at line 100 of file kis_colorize_mask.cpp.

◆ filteringDirty

bool KisColorizeMask::Private::filteringDirty = true

Definition at line 124 of file kis_colorize_mask.cpp.

◆ filteringOptions

FilteringOptions KisColorizeMask::Private::filteringOptions

Definition at line 123 of file kis_colorize_mask.cpp.

◆ keyStrokes

QList<KeyStroke> KisColorizeMask::Private::keyStrokes

Definition at line 97 of file kis_colorize_mask.cpp.

◆ limitToDeviceBounds

bool KisColorizeMask::Private::limitToDeviceBounds = false

Definition at line 126 of file kis_colorize_mask.cpp.

◆ needAddCurrentKeyStroke

bool KisColorizeMask::Private::needAddCurrentKeyStroke

Definition at line 105 of file kis_colorize_mask.cpp.

◆ needsUpdate

bool KisColorizeMask::Private::needsUpdate

Definition at line 112 of file kis_colorize_mask.cpp.

◆ offset

QPoint KisColorizeMask::Private::offset

Definition at line 118 of file kis_colorize_mask.cpp.

◆ originalSequenceNumber

int KisColorizeMask::Private::originalSequenceNumber

Definition at line 113 of file kis_colorize_mask.cpp.

◆ prefilterRecalculationCompressor

KisThreadSafeSignalCompressor KisColorizeMask::Private::prefilterRecalculationCompressor

Definition at line 117 of file kis_colorize_mask.cpp.

◆ q

KisColorizeMask* KisColorizeMask::Private::q = 0

Definition at line 95 of file kis_colorize_mask.cpp.

◆ showColoring

bool KisColorizeMask::Private::showColoring

Definition at line 108 of file kis_colorize_mask.cpp.

◆ showKeyStrokes

bool KisColorizeMask::Private::showKeyStrokes

Definition at line 107 of file kis_colorize_mask.cpp.

◆ updateCompressor

KisThreadSafeSignalCompressor KisColorizeMask::Private::updateCompressor

Definition at line 115 of file kis_colorize_mask.cpp.

◆ updateIsRunning

bool KisColorizeMask::Private::updateIsRunning

Definition at line 120 of file kis_colorize_mask.cpp.


The documentation for this struct was generated from the following file: