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

#include <KisMaskingBrushCompositeOpFactory.h>

Static Public Member Functions

static KisMaskingBrushCompositeOpBasecreate (const QString &id, KoChannelInfo::enumChannelValueType channelType, int pixelSize, int alphaOffset)
 
static KisMaskingBrushCompositeOpBasecreate (const QString &id, KoChannelInfo::enumChannelValueType channelType, int pixelSize, int alphaOffset, qreal strength, bool useSoftTexturing=false)
 
static KisMaskingBrushCompositeOpBasecreateForAlphaSrc (const QString &id, KoChannelInfo::enumChannelValueType channelType, int pixelSize, int alphaOffset)
 
static KisMaskingBrushCompositeOpBasecreateForAlphaSrc (const QString &id, KoChannelInfo::enumChannelValueType channelType, int pixelSize, int alphaOffset, qreal strength, bool useSoftTexturing=false)
 
static QStringList supportedCompositeOpIds ()
 

Detailed Description

Definition at line 17 of file KisMaskingBrushCompositeOpFactory.h.

Member Function Documentation

◆ create() [1/2]

KisMaskingBrushCompositeOpBase * KisMaskingBrushCompositeOpFactory::create ( const QString & id,
KoChannelInfo::enumChannelValueType channelType,
int pixelSize,
int alphaOffset )
static

Definition at line 211 of file KisMaskingBrushCompositeOpFactory.cpp.

214{
215 return createImpl<false>(id, channelType, pixelSize, alphaOffset);
216}

◆ create() [2/2]

KisMaskingBrushCompositeOpBase * KisMaskingBrushCompositeOpFactory::create ( const QString & id,
KoChannelInfo::enumChannelValueType channelType,
int pixelSize,
int alphaOffset,
qreal strength,
bool useSoftTexturing = false )
static

Definition at line 218 of file KisMaskingBrushCompositeOpFactory.cpp.

221{
222 if (useSoftTexturing) {
223 return createImpl<false, true>(id, channelType, pixelSize, alphaOffset, strength);
224 } else {
225 return createImpl<false, false>(id, channelType, pixelSize, alphaOffset, strength);
226 }
227}

◆ createForAlphaSrc() [1/2]

KisMaskingBrushCompositeOpBase * KisMaskingBrushCompositeOpFactory::createForAlphaSrc ( const QString & id,
KoChannelInfo::enumChannelValueType channelType,
int pixelSize,
int alphaOffset )
static

Definition at line 229 of file KisMaskingBrushCompositeOpFactory.cpp.

232{
233 return createImpl<true>(id, channelType, pixelSize, alphaOffset);
234}

◆ createForAlphaSrc() [2/2]

KisMaskingBrushCompositeOpBase * KisMaskingBrushCompositeOpFactory::createForAlphaSrc ( const QString & id,
KoChannelInfo::enumChannelValueType channelType,
int pixelSize,
int alphaOffset,
qreal strength,
bool useSoftTexturing = false )
static

Definition at line 236 of file KisMaskingBrushCompositeOpFactory.cpp.

239{
240 if (useSoftTexturing) {
241 return createImpl<true, true>(id, channelType, pixelSize, alphaOffset, strength);
242 } else {
243 return createImpl<true, false>(id, channelType, pixelSize, alphaOffset, strength);
244 }
245}

◆ supportedCompositeOpIds()

QStringList KisMaskingBrushCompositeOpFactory::supportedCompositeOpIds ( )
static

Definition at line 247 of file KisMaskingBrushCompositeOpFactory.cpp.

248{
249 QStringList ids;
250 ids << COMPOSITE_MULT;
251 ids << COMPOSITE_DARKEN;
252 ids << COMPOSITE_OVERLAY;
253 ids << COMPOSITE_DODGE;
254 ids << COMPOSITE_BURN;
259 ids << COMPOSITE_SUBTRACT;
260
261 return ids;
262}
const QString COMPOSITE_DARKEN
const QString COMPOSITE_OVERLAY
const QString COMPOSITE_DODGE
const QString COMPOSITE_LINEAR_BURN
const QString COMPOSITE_MULT
const QString COMPOSITE_SUBTRACT
const QString COMPOSITE_BURN
const QString COMPOSITE_LINEAR_DODGE
const QString COMPOSITE_HARD_MIX_SOFTER_PHOTOSHOP
const QString COMPOSITE_HARD_MIX_PHOTOSHOP

References COMPOSITE_BURN, COMPOSITE_DARKEN, COMPOSITE_DODGE, COMPOSITE_HARD_MIX_PHOTOSHOP, COMPOSITE_HARD_MIX_SOFTER_PHOTOSHOP, COMPOSITE_LINEAR_BURN, COMPOSITE_LINEAR_DODGE, COMPOSITE_MULT, COMPOSITE_OVERLAY, and COMPOSITE_SUBTRACT.


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