|
Krita Source Code Documentation
|
#include <kis_texture_option.h>
Public Member Functions | |
| void | apply (KisFixedPaintDeviceSP dab, const QPoint &offset, const KisPaintInformation &info) |
| apply combine the texture map with the dab | |
| bool | applyingGradient () const |
| KisTextureOption (const KisPropertiesConfiguration *setting, KisResourcesInterfaceSP resourcesInterface, KoCanvasResourcesInterfaceSP canvasResourcesInterface, int levelOfDetail, KisBrushTextureFlags flags=None) | |
Static Public Member Functions | |
| static bool | applyingGradient (const KisPropertiesConfiguration *settings) |
| static QList< KoResourceLoadResult > | prepareEmbeddedResources (const KisPropertiesConfigurationSP setting, KisResourcesInterfaceSP resourcesInterface) |
| static QList< KoResourceLoadResult > | prepareLinkedResources (const KisPropertiesConfigurationSP setting, KisResourcesInterfaceSP resourcesInterface) |
| static bool | requiresEffectiveCompositeOp (const KisPropertiesConfiguration *settings) |
Public Attributes | |
| bool | m_enabled {false} |
Private Member Functions | |
| void | applyGradient (KisFixedPaintDeviceSP dab, const QPoint &offset, const KisPaintInformation &info) |
| void | applyLightness (KisFixedPaintDeviceSP dab, const QPoint &offset, const KisPaintInformation &info) |
| void | fillProperties (const KisPropertiesConfiguration *setting, KisResourcesInterfaceSP resourcesInterface, KoCanvasResourcesInterfaceSP canvasResourcesInterface) |
Private Attributes | |
| KoCachedGradient | m_cachedGradient |
| KisCachedPaintDevice | m_cachedPaintDevice |
| KisBrushTextureFlags | m_flags |
| KoAbstractGradientSP | m_gradient |
| int | m_levelOfDetail {0} |
| KisTextureMaskInfoSP | m_maskInfo |
| int | m_offsetX {0} |
| int | m_offsetY {0} |
| KisStrengthOption | m_strengthOption |
| KisTextureOptionData::TexturingMode | m_texturingMode {KisTextureOptionData::MULTIPLY} |
| bool | m_useSoftTexturing {false} |
Definition at line 31 of file kis_texture_option.h.
| KisTextureOption::KisTextureOption | ( | const KisPropertiesConfiguration * | setting, |
| KisResourcesInterfaceSP | resourcesInterface, | ||
| KoCanvasResourcesInterfaceSP | canvasResourcesInterface, | ||
| int | levelOfDetail, | ||
| KisBrushTextureFlags | flags = None ) |
Definition at line 43 of file kis_texture_option.cpp.
References fillProperties().
| void KisTextureOption::apply | ( | KisFixedPaintDeviceSP | dab, |
| const QPoint & | offset, | ||
| const KisPaintInformation & | info ) |
apply combine the texture map with the dab
| dab | the colored, final representation of the dab, after mirroring and everything. |
| offset | the position of the dab on the image. used to calculate the position of the mask pattern |
| info | the paint information |
Definition at line 261 of file kis_texture_option.cpp.
References KoChannelInfo::ALPHA, KisStandardOption< Data >::apply(), applyGradient(), applyLightness(), KisFixedPaintDevice::bounds(), KoColorSpace::channels, KisTextureOptionData::COLOR_BURN, KisTextureOptionData::COLOR_DODGE, KisFixedPaintDevice::colorSpace(), COMPOSITE_BURN, COMPOSITE_COPY, COMPOSITE_DARKEN, COMPOSITE_DODGE, COMPOSITE_HARD_MIX_PHOTOSHOP, COMPOSITE_HARD_MIX_SOFTER_PHOTOSHOP, COMPOSITE_LINEAR_BURN, COMPOSITE_LINEAR_DODGE, COMPOSITE_MULT, COMPOSITE_OVERLAY, COMPOSITE_SUBTRACT, KisMaskingBrushCompositeOpFactory::createForAlphaSrc(), KisPaintDevice::createRandomConstAccessorNG(), KisTextureOptionData::DARKEN, KisFixedPaintDevice::data(), KisCachedPaintDevice::Guard::device(), KisPainter::end(), KisFillPainter::fillRect(), KisTextureOptionData::GRADIENT, KisTextureOptionData::HARD_MIX_PHOTOSHOP, KisTextureOptionData::HARD_MIX_SOFTER_PHOTOSHOP, KisTextureOptionData::HEIGHT, KisTextureOptionData::HEIGHT_PHOTOSHOP, KoColorSpaceRegistry::instance(), KIS_SAFE_ASSERT_RECOVER, kisGrowRect(), KisTextureOptionData::LIGHTNESS, KisTextureOptionData::LINEAR_BURN, KisTextureOptionData::LINEAR_DODGE, KisTextureOptionData::LINEAR_HEIGHT, KisTextureOptionData::LINEAR_HEIGHT_PHOTOSHOP, m_cachedPaintDevice, m_enabled, m_gradient, m_maskInfo, m_offsetX, m_offsetY, m_strengthOption, m_texturingMode, m_useSoftTexturing, KisRandomConstAccessorNG::moveTo(), KisTextureOptionData::MULTIPLY, KisRandomConstAccessorNG::numContiguousColumns(), KisRandomConstAccessorNG::numContiguousRows(), KisTextureOptionData::OVERLAY, KisFixedPaintDevice::pixelSize(), KisBaseConstAccessor::rawDataConst(), KisRandomConstAccessorNG::rowStride(), KisPainter::setCompositeOpId(), KisTextureOptionData::SUBTRACT, and KoChannelInfo::UINT8.
|
private |
Definition at line 205 of file kis_texture_option.cpp.
References KisStandardOption< Data >::apply(), KisFixedPaintDevice::bounds(), KoCachedGradient::cachedAt(), KisFixedPaintDevice::colorSpace(), COMPOSITE_COPY, KisPaintDevice::createHLineIteratorNG(), KisFixedPaintDevice::data(), KoColor::data(), KisCachedPaintDevice::Guard::device(), KisPainter::end(), KisFillPainter::fillRect(), KoColorSpaceRegistry::instance(), KIS_SAFE_ASSERT_RECOVER_RETURN, kisGrowRect(), m_cachedGradient, m_cachedPaintDevice, m_enabled, m_gradient, m_maskInfo, m_offsetX, m_offsetY, m_strengthOption, KoMixColorsOp::mixColors(), KoColorSpace::mixColorsOp, KoColor::opacityF(), KoColorSpace::opacityF(), KisFixedPaintDevice::pixelSize(), KoColor::setColor(), KoCachedGradient::setColorSpace(), KisPainter::setCompositeOpId(), and KoColor::setOpacity().
| bool KisTextureOption::applyingGradient | ( | ) | const |
Definition at line 150 of file kis_texture_option.cpp.
References KisTextureOptionData::GRADIENT, and m_texturingMode.
|
static |
Definition at line 155 of file kis_texture_option.cpp.
References KisTextureOptionData::GRADIENT, KisTextureOptionData::read(), and KisTextureOptionData::texturingMode.
|
private |
Definition at line 172 of file kis_texture_option.cpp.
References KisStandardOption< Data >::apply(), KisFixedPaintDevice::bounds(), KisFixedPaintDevice::colorSpace(), COMPOSITE_COPY, KisFixedPaintDevice::data(), KisCachedPaintDevice::Guard::device(), KisPainter::end(), KoColorSpace::fillGrayBrushWithColorAndLightnessWithStrength(), KisFillPainter::fillRect(), KoColorSpaceRegistry::instance(), kisGrowRect(), m_cachedPaintDevice, m_enabled, m_maskInfo, m_offsetX, m_offsetY, m_strengthOption, KisSequentialIteratorBase< IteratorPolicy, SourcePolicy, ProgressPolicy >::nextPixel(), KisSequentialIteratorBase< IteratorPolicy, SourcePolicy, ProgressPolicy >::oldRawData(), KisFixedPaintDevice::pixelSize(), and KisPainter::setCompositeOpId().
|
private |
Definition at line 56 of file kis_texture_option.cpp.
References KisTextureOptionData::autoInvertOnErase, COMPOSITE_ERASE, COMPOSITE_OVER, KoCanvasResource::CurrentEffectiveCompositeOp, KoCanvasResource::CurrentGradient, KisTextureMaskInfoCache::fetchCachedTextureInfo(), KisTextureOptionData::GRADIENT, KisTextureMaskInfoCache::instance(), KisTextureOptionData::isEnabled, KisEmbeddedTextureData::isNull(), KIS_SAFE_ASSERT_RECOVER, KisTextureOptionData::LIGHTNESS, m_cachedGradient, m_enabled, m_flags, m_gradient, m_levelOfDetail, m_maskInfo, m_offsetX, m_offsetY, m_texturingMode, m_useSoftTexturing, KisTextureOptionData::offsetX, KisTextureOptionData::offsetY, KisTextureOptionData::read(), KoCachedGradient::setGradient(), KisTextureOptionData::SUBTRACT, SupportsGradientMode, SupportsLightnessMode, KisTextureOptionData::textureData, KisTextureOptionData::texturingMode, toQShared(), KisTextureOptionData::useSoftTexturing, and warnKrita.
|
static |
We cannot use m_enabled here because it is not initialized at this stage. fillProperties() is not necessary for this call, because it is extremely slow.
Definition at line 112 of file kis_texture_option.cpp.
References KisSharedPtr< T >::data(), KisTextureOptionData::isEnabled, KisEmbeddedTextureData::loadLinkedPattern(), KisEmbeddedTextureData::patternBase64, KisTextureOptionData::read(), and KisTextureOptionData::textureData.
|
static |
We cannot use m_enabled here because it is not initialized at this stage. fillProperties() is not necessary for this call, because it is extremely slow.
Definition at line 131 of file kis_texture_option.cpp.
References KisSharedPtr< T >::data(), KisTextureOptionData::isEnabled, KisEmbeddedTextureData::loadLinkedPattern(), KisEmbeddedTextureData::patternBase64, KisTextureOptionData::read(), and KisTextureOptionData::textureData.
|
static |
Definition at line 163 of file kis_texture_option.cpp.
References KisTextureOptionData::autoInvertOnErase, KisTextureOptionData::isEnabled, and KisTextureOptionData::read().
|
private |
Definition at line 66 of file kis_texture_option.h.
|
private |
Definition at line 74 of file kis_texture_option.h.
| bool KisTextureOption::m_enabled {false} |
Definition at line 39 of file kis_texture_option.h.
|
private |
Definition at line 73 of file kis_texture_option.h.
|
private |
Definition at line 65 of file kis_texture_option.h.
|
private |
Definition at line 68 of file kis_texture_option.h.
|
private |
Definition at line 72 of file kis_texture_option.h.
|
private |
Definition at line 61 of file kis_texture_option.h.
|
private |
Definition at line 62 of file kis_texture_option.h.
|
private |
Definition at line 71 of file kis_texture_option.h.
|
private |
Definition at line 63 of file kis_texture_option.h.
|
private |
Definition at line 64 of file kis_texture_option.h.