13#include "kritapsdutils_export.h"
220#define PSD_LOOKUP_TABLE_SIZE 256
227 : m_invertsSelection(false)
229 , m_effectEnabled(false)
231 , m_color(
KoColor::fromXML(
"<color channeldepth='U8'><sRGB r='0.0' g='0.0' b='0.0'/></color>"))
232 , m_nativeColor(
KoColor::fromXML(
"<color channeldepth='U8'><sRGB r='0.0' g='0.0' b='0.0'/></color>"))
235 , m_useGlobalLight(true)
248 m_contourLookupTable[i] = i;
258 m_effectEnabled =
value;
263 return m_effectEnabled;
278 return m_nativeColor;
293 return m_useGlobalLight;
313 return m_contourLookupTable;
318 return m_antiAliased;
333 return m_invertsSelection;
362 return m_gradientLink;
368 return source.bestMatch(m_gradientLink.md5sum, m_gradientLink.filename, m_gradientLink.name);
384 m_nativeColor =
value;
399 m_useGlobalLight =
value;
424 m_antiAliased =
value;
439 m_invertsSelection =
value;
444 m_edgeHidden =
value;
469 m_gradientLink.type =
value->resourceType().first;
470 m_gradientLink.md5sum =
value->md5Sum();
471 m_gradientLink.filename =
value->filename();
472 m_gradientLink.name =
value->name();
475 virtual void scaleLinearSizes(qreal scale);
548 setInvertsSelection(
true);
549 setEdgeHidden(
false);
563 setColor(
KoColor::fromXML(
"<color channeldepth='U8'><sRGB r='1.0' g='1.0' b='1.0'/></color>"));
601 setInvertsSelection(
true);
602 setEdgeHidden(
false);
686 ,
m_shadowColor(
KoColor::fromXML(
"<color channeldepth='U8'><sRGB r='0.0' g='0.0' b='0.0'/></color>"))
1308#if defined(__clang__) && __clang_major__ < 10
1311 self << static_cast<std::uint16_t>(type);
float value(const T *src, size_t ch)
QDebug KRITACOMMAND_EXPORT operator<<(QDebug dbg, const KisCumulativeUndoData &data)
KisMagneticGraph::vertex_descriptor source(typename KisMagneticGraph::edge_descriptor e, KisMagneticGraph g)
const QString COMPOSITE_LINEAR_BURN
const QString COMPOSITE_MULT
const QString COMPOSITE_SCREEN
const QString COMPOSITE_LINEAR_DODGE
static KoColor fromXML(const QDomElement &elt, const QString &channelDepthId)
A simple wrapper object for the main information about the resource.
psd_layer_effects_glow_common()
psd_layer_effects_inner_glow()
void setSource(psd_glow_source value)
psd_glow_source source() const
psd_layer_effects_inner_shadow()
void setGradient(KoAbstractGradientSP value)
void setContourLookupTable(const quint8 *value)
void setColor(KoColor value)
void setRange(qint32 value)
virtual void scaleLinearSizes(qreal scale)
bool useGlobalLight() const
KoResourceSignature m_gradientLink
QString blendMode() const
void setFillType(psd_fill_type value)
void setNoise(qint32 value)
bool effectEnabled() const
void setUseGlobalLight(bool value)
psd_technique_type technique() const
void setEffectEnabled(bool value)
void setEdgeHidden(bool value)
void setTechnique(psd_technique_type value)
bool invertsSelection() const
void setAntiAliased(bool value)
void setKnocksOut(bool value)
void setDistance(qint32 value)
void setInvertsSelection(bool value)
void setAngle(qint32 value)
KoAbstractGradientSP gradient(KisResourcesInterfaceSP resourcesInterface) const
void setBlendMode(QString value)
void setNativeColor(KoColor value)
void setJitter(qint32 value)
void setOpacity(qint32 value)
KoColor nativeColor() const
const quint8 * contourLookupTable() const
psd_fill_type fillType() const
void setSpread(qint32 value)
KoResourceSignature gradientLink() const
void setSize(qint32 value)
psd_technique_type m_technique
psd_layer_effects_shadow_base()
QString KRITAPSDUTILS_EXPORT psd_blendmode_to_composite_op(const QString &blendmode)
QPair< QString, QString > KRITAPSDUTILS_EXPORT psd_colormode_to_colormodelid(psd_color_mode colormode, quint16 channelDepth)
@ psd_color_stop_type_background_Color
@ psd_color_stop_type_foreground_color
@ psd_color_stop_type_user_stop
@ psd_gradient_style_linear
@ psd_gradient_style_reflected
@ psd_gradient_style_angle
@ psd_gradient_style_radial
@ psd_gradient_style_diamond
#define PSD_LOOKUP_TABLE_SIZE
QString KRITAPSDUTILS_EXPORT composite_op_to_psd_blendmode(const QString &compositeOp)
@ psd_technique_slope_limit
@ psd_bevel_pillow_emboss
@ psd_bevel_stroke_emboss
psd_color_stop_type color_stop_type
psd_gradient_color_stop * color_stop
psd_gradient_transparency_stop * transparency_stop
qint8 number_transparency_stops
void setTechnique(psd_technique_type value)
void setStyle(psd_bevel_style value)
void setTextureDepth(int value)
QString shadowBlendMode() const
psd_technique_type technique() const
const quint8 * glossContourLookupTable() const
bool m_textureAlignWithLayer
KoResourceSignature texturePatternLink() const
void setShadowColor(KoColor value)
quint8 m_glossContourLookupTable[256]
qint32 highlightOpacity() const
psd_bevel_style style() const
bool contourEnabled() const
void setTextureScale(int value)
psd_direction direction() const
void setTextureEnabled(bool value)
bool glossAntiAliased() const
void setDirection(psd_direction value)
KoPatternSP texturePattern(KisResourcesInterfaceSP resourcesInterface) const
void setTexturePattern(KoPatternSP value)
void setHighlightBlendMode(QString value)
psd_direction m_direction
void setAltitude(int value)
KoResourceSignature m_texturePatternLink
int textureVerticalPhase() const
bool textureInvert() const
void setHighlightColor(KoColor value)
void setTexturePhase(const QPointF &phase)
void setContourRange(int value)
QString m_highlightBlendMode
qint32 shadowOpacity() const
bool textureEnabled() const
int m_textureVerticalPhase
void setTextureVerticalPhase(int value)
bool textureAlignWithLayer() const
QString m_shadowBlendMode
qint32 m_highlightOpacity
void setShadowBlendMode(QString value)
void scaleLinearSizes(qreal scale) override
int textureHorizontalPhase() const
void setTextureHorizontalPhase(int value)
QString highlightBlendMode() const
void setGlossAntiAliased(bool value)
KoColor shadowColor() const
KoColor highlightColor() const
void setTextureAlignWithLayer(bool value)
psd_layer_effects_bevel_emboss()
psd_technique_type m_technique
void setShadowOpacity(qint32 value)
int m_textureHorizontalPhase
void setSoften(int value)
void setContourEnabled(bool value)
void setGlossContourLookupTable(const quint8 *value)
void setTextureInvert(bool value)
QPointF texturePhase() const
void setHighlightOpacity(qint32 value)
psd_layer_effects_color_overlay()
psd_layer_effects_context()
psd_layer_effects_gradient_overlay()
KoPatternSP pattern(KisResourcesInterfaceSP resourcesInterface) const
void setReverse(bool value)
QPointF gradientOffset() const
int gradientXOffset() const
int gradientYOffset() const
int horizontalPhase() const
QPointF patternPhase() const
void setAlignWithLayer(bool value)
KoResourceSignature patternLink() const
KoResourceSignature m_patternLink
void setStyle(psd_gradient_style value)
bool alignWithLayer() const
void scaleLinearSizes(qreal scale) override
void setDither(bool value)
psd_gradient_style style() const
psd_layer_effects_overlay_base()
int verticalPhase() const
psd_gradient_style m_style
void setGradientOffset(const QPointF &pt)
void setPattern(KoPatternSP value)
void setPatternPhase(const QPointF &phase)
psd_layer_effects_pattern_overlay()
void setInvert(bool value)
psd_layer_effects_satin()
void setPosition(psd_stroke_position value)
psd_stroke_position position() const
psd_stroke_position m_position
psd_layer_effects_stroke()
qint8 using_vector_color_flag
psd_gradient_transparency_stop * transparency_stop
qint8 number_transparency_stops
qint32 random_number_seed
psd_gradient_color_stop * color_stop
qint8 showing_transparency_flag
QVector< QRgb > color_table
psd_color_mode color_mode