Krita Source Code Documentation
Loading...
Searching...
No Matches
psd_layer_effects_bevel_emboss Struct Reference

#include <psd.h>

+ Inheritance diagram for psd_layer_effects_bevel_emboss:

Public Member Functions

int altitude () const
 
bool contourEnabled () const
 
int contourRange () const
 
int depth () const
 
psd_direction direction () const
 
bool glossAntiAliased () const
 
const quint8 * glossContourLookupTable () const
 
QString highlightBlendMode () const
 
KoColor highlightColor () const
 
qint32 highlightOpacity () const
 
 psd_layer_effects_bevel_emboss ()
 
void scaleLinearSizes (qreal scale) override
 
void setAltitude (int value)
 
void setContourEnabled (bool value)
 
void setContourRange (int value)
 
void setDepth (int value)
 
void setDirection (psd_direction value)
 
void setGlossAntiAliased (bool value)
 
void setGlossContourLookupTable (const quint8 *value)
 
void setHighlightBlendMode (QString value)
 
void setHighlightColor (KoColor value)
 
void setHighlightOpacity (qint32 value)
 
void setShadowBlendMode (QString value)
 
void setShadowColor (KoColor value)
 
void setShadowOpacity (qint32 value)
 
void setSoften (int value)
 
void setStyle (psd_bevel_style value)
 
void setTechnique (psd_technique_type value)
 
void setTextureAlignWithLayer (bool value)
 
void setTextureDepth (int value)
 
void setTextureEnabled (bool value)
 
void setTextureHorizontalPhase (int value)
 
void setTextureInvert (bool value)
 
void setTexturePattern (KoPatternSP value)
 
void setTexturePhase (const QPointF &phase)
 
void setTextureScale (int value)
 
void setTextureVerticalPhase (int value)
 
QString shadowBlendMode () const
 
KoColor shadowColor () const
 
qint32 shadowOpacity () const
 
int soften () const
 
psd_bevel_style style () const
 
psd_technique_type technique () const
 
bool textureAlignWithLayer () const
 
int textureDepth () const
 
bool textureEnabled () const
 
int textureHorizontalPhase () const
 
bool textureInvert () const
 
KoPatternSP texturePattern (KisResourcesInterfaceSP resourcesInterface) const
 
KoResourceSignature texturePatternLink () const
 
QPointF texturePhase () const
 
int textureScale () const
 
int textureVerticalPhase () const
 
- Public Member Functions inherited from psd_layer_effects_shadow_base
qint32 angle () const
 
bool antiAliased () const
 
QString blendMode () const
 
QPoint calculateOffset (const psd_layer_effects_context *context) const
 
KoColor color () const
 
const quint8 * contourLookupTable () const
 
qint32 distance () const
 
bool edgeHidden () const
 
bool effectEnabled () const
 
psd_fill_type fillType () const
 
KoAbstractGradientSP gradient (KisResourcesInterfaceSP resourcesInterface) const
 
KoResourceSignature gradientLink () const
 
bool invertsSelection () const
 
qint32 jitter () const
 
bool knocksOut () const
 
KoColor nativeColor () const
 
qint32 noise () const
 
qint32 opacity () const
 
 psd_layer_effects_shadow_base ()
 
qint32 range () const
 
void setAngle (qint32 value)
 
void setAntiAliased (bool value)
 
void setBlendMode (QString value)
 
void setColor (KoColor value)
 
void setContourLookupTable (const quint8 *value)
 
void setDistance (qint32 value)
 
void setEdgeHidden (bool value)
 
void setEffectEnabled (bool value)
 
void setFillType (psd_fill_type value)
 
void setGradient (KoAbstractGradientSP value)
 
void setInvertsSelection (bool value)
 
void setJitter (qint32 value)
 
void setKnocksOut (bool value)
 
void setNativeColor (KoColor value)
 
void setNoise (qint32 value)
 
void setOpacity (qint32 value)
 
void setRange (qint32 value)
 
void setSize (qint32 value)
 
void setSpread (qint32 value)
 
void setTechnique (psd_technique_type value)
 
void setUseGlobalLight (bool value)
 
qint32 size () const
 
qint32 spread () const
 
psd_technique_type technique () const
 
bool useGlobalLight () const
 
virtual ~psd_layer_effects_shadow_base ()
 

Private Attributes

int m_altitude
 
bool m_contourEnabled
 
int m_contourRange
 
int m_depth
 
psd_direction m_direction
 
bool m_glossAntiAliased
 
quint8 m_glossContourLookupTable [256]
 
QString m_highlightBlendMode
 
KoColor m_highlightColor
 
qint32 m_highlightOpacity
 
QString m_shadowBlendMode
 
KoColor m_shadowColor
 
qint32 m_shadowOpacity
 
int m_soften
 
psd_bevel_style m_style
 
psd_technique_type m_technique
 
bool m_textureAlignWithLayer
 
int m_textureDepth
 
bool m_textureEnabled
 
int m_textureHorizontalPhase
 
bool m_textureInvert
 
KoResourceSignature m_texturePatternLink
 
int m_textureScale
 
int m_textureVerticalPhase
 

Detailed Description

Definition at line 665 of file psd.h.

Constructor & Destructor Documentation

◆ psd_layer_effects_bevel_emboss()

psd_layer_effects_bevel_emboss::psd_layer_effects_bevel_emboss ( )
inline

Definition at line 666 of file psd.h.

669 , m_depth(100)
671 , m_soften(0)
672 ,
673
674 m_altitude(30)
675 ,
676
677 m_glossAntiAliased(false)
678 ,
679
681 , m_highlightColor(KoColor::fromXML("<color channeldepth='U8'><sRGB r='1.0' g='1.0' b='1.0'/></color>"))
683 ,
684
686 , m_shadowColor(KoColor::fromXML("<color channeldepth='U8'><sRGB r='0.0' g='0.0' b='0.0'/></color>"))
687 , m_shadowOpacity(75)
688 ,
689
690 m_contourEnabled(false)
691 , m_contourRange(100)
692 ,
693
694 m_textureEnabled(false)
695 , m_textureScale(100)
696 , m_textureDepth(100)
697 , m_textureInvert(false)
698 ,
699
703 {
704 for (int i = 0; i < PSD_LOOKUP_TABLE_SIZE; ++i) {
706 }
707 }
const QString COMPOSITE_MULT
const QString COMPOSITE_SCREEN
static KoColor fromXML(const QDomElement &elt, const QString &channelDepthId)
Definition KoColor.cpp:350
@ psd_direction_up
Definition psd.h:142
#define PSD_LOOKUP_TABLE_SIZE
Definition psd.h:220
@ psd_technique_softer
Definition psd.h:116
@ psd_bevel_inner_bevel
Definition psd.h:136
quint8 m_glossContourLookupTable[256]
Definition psd.h:975
psd_direction m_direction
Definition psd.h:970
psd_bevel_style m_style
Definition psd.h:967
psd_technique_type m_technique
Definition psd.h:968

References m_glossContourLookupTable, and PSD_LOOKUP_TABLE_SIZE.

Member Function Documentation

◆ altitude()

int psd_layer_effects_bevel_emboss::altitude ( ) const
inline

Definition at line 766 of file psd.h.

767 {
768 return m_altitude;
769 }

References m_altitude.

◆ contourEnabled()

bool psd_layer_effects_bevel_emboss::contourEnabled ( ) const
inline

Definition at line 848 of file psd.h.

849 {
850 return m_contourEnabled;
851 }

References m_contourEnabled.

◆ contourRange()

int psd_layer_effects_bevel_emboss::contourRange ( ) const
inline

Definition at line 857 of file psd.h.

858 {
859 return m_contourRange;
860 }

References m_contourRange.

◆ depth()

int psd_layer_effects_bevel_emboss::depth ( ) const
inline

Definition at line 739 of file psd.h.

740 {
741 return m_depth;
742 }

References m_depth.

◆ direction()

psd_direction psd_layer_effects_bevel_emboss::direction ( ) const
inline

Definition at line 748 of file psd.h.

749 {
750 return m_direction;
751 }

References m_direction.

◆ glossAntiAliased()

bool psd_layer_effects_bevel_emboss::glossAntiAliased ( ) const
inline

Definition at line 785 of file psd.h.

786 {
787 return m_glossAntiAliased;
788 }

References m_glossAntiAliased.

◆ glossContourLookupTable()

const quint8 * psd_layer_effects_bevel_emboss::glossContourLookupTable ( ) const
inline

Definition at line 775 of file psd.h.

776 {
778 }

References m_glossContourLookupTable.

◆ highlightBlendMode()

QString psd_layer_effects_bevel_emboss::highlightBlendMode ( ) const
inline

Definition at line 794 of file psd.h.

795 {
797 }

References m_highlightBlendMode.

◆ highlightColor()

KoColor psd_layer_effects_bevel_emboss::highlightColor ( ) const
inline

Definition at line 803 of file psd.h.

804 {
805 return m_highlightColor;
806 }

References m_highlightColor.

◆ highlightOpacity()

qint32 psd_layer_effects_bevel_emboss::highlightOpacity ( ) const
inline

Definition at line 812 of file psd.h.

813 {
814 return m_highlightOpacity;
815 }

References m_highlightOpacity.

◆ scaleLinearSizes()

void psd_layer_effects_bevel_emboss::scaleLinearSizes ( qreal scale)
inlineoverridevirtual

Reimplemented from psd_layer_effects_shadow_base.

Definition at line 959 of file psd.h.

960 {
962 m_soften *= scale;
964 }
virtual void scaleLinearSizes(qreal scale)
Definition psd.cpp:260

References m_soften, m_textureScale, and psd_layer_effects_shadow_base::scaleLinearSizes().

◆ setAltitude()

void psd_layer_effects_bevel_emboss::setAltitude ( int value)
inline

Definition at line 770 of file psd.h.

771 {
773 }
float value(const T *src, size_t ch)

References m_altitude, and value().

◆ setContourEnabled()

void psd_layer_effects_bevel_emboss::setContourEnabled ( bool value)
inline

Definition at line 852 of file psd.h.

853 {
855 }

References m_contourEnabled, and value().

◆ setContourRange()

void psd_layer_effects_bevel_emboss::setContourRange ( int value)
inline

Definition at line 861 of file psd.h.

862 {
864 }

References m_contourRange, and value().

◆ setDepth()

void psd_layer_effects_bevel_emboss::setDepth ( int value)
inline

Definition at line 743 of file psd.h.

744 {
745 m_depth = value;
746 }

References m_depth, and value().

◆ setDirection()

void psd_layer_effects_bevel_emboss::setDirection ( psd_direction value)
inline

Definition at line 752 of file psd.h.

753 {
755 }

References m_direction, and value().

◆ setGlossAntiAliased()

void psd_layer_effects_bevel_emboss::setGlossAntiAliased ( bool value)
inline

Definition at line 789 of file psd.h.

790 {
792 }

References m_glossAntiAliased, and value().

◆ setGlossContourLookupTable()

void psd_layer_effects_bevel_emboss::setGlossContourLookupTable ( const quint8 * value)
inline

Definition at line 780 of file psd.h.

781 {
782 memcpy(m_glossContourLookupTable, value, PSD_LOOKUP_TABLE_SIZE * sizeof(quint8));
783 }

References m_glossContourLookupTable, PSD_LOOKUP_TABLE_SIZE, and value().

◆ setHighlightBlendMode()

void psd_layer_effects_bevel_emboss::setHighlightBlendMode ( QString value)
inline

Definition at line 798 of file psd.h.

799 {
801 }

References m_highlightBlendMode, and value().

◆ setHighlightColor()

void psd_layer_effects_bevel_emboss::setHighlightColor ( KoColor value)
inline

Definition at line 807 of file psd.h.

808 {
810 }

References m_highlightColor, and value().

◆ setHighlightOpacity()

void psd_layer_effects_bevel_emboss::setHighlightOpacity ( qint32 value)
inline

Definition at line 816 of file psd.h.

817 {
819 }

References m_highlightOpacity, and value().

◆ setShadowBlendMode()

void psd_layer_effects_bevel_emboss::setShadowBlendMode ( QString value)
inline

Definition at line 825 of file psd.h.

826 {
828 }

References m_shadowBlendMode, and value().

◆ setShadowColor()

void psd_layer_effects_bevel_emboss::setShadowColor ( KoColor value)
inline

Definition at line 834 of file psd.h.

835 {
837 }

References m_shadowColor, and value().

◆ setShadowOpacity()

void psd_layer_effects_bevel_emboss::setShadowOpacity ( qint32 value)
inline

Definition at line 843 of file psd.h.

844 {
846 }

References m_shadowOpacity, and value().

◆ setSoften()

void psd_layer_effects_bevel_emboss::setSoften ( int value)
inline

Definition at line 761 of file psd.h.

762 {
763 m_soften = value;
764 }

References m_soften, and value().

◆ setStyle()

void psd_layer_effects_bevel_emboss::setStyle ( psd_bevel_style value)
inline

Definition at line 725 of file psd.h.

726 {
727 m_style = value;
728 }

References m_style, and value().

◆ setTechnique()

void psd_layer_effects_bevel_emboss::setTechnique ( psd_technique_type value)
inline

Definition at line 734 of file psd.h.

735 {
737 }

References m_technique, and value().

◆ setTextureAlignWithLayer()

void psd_layer_effects_bevel_emboss::setTextureAlignWithLayer ( bool value)
inline

Definition at line 925 of file psd.h.

926 {
928 }

References m_textureAlignWithLayer, and value().

◆ setTextureDepth()

void psd_layer_effects_bevel_emboss::setTextureDepth ( int value)
inline

Definition at line 907 of file psd.h.

908 {
910 }

References m_textureDepth, and value().

◆ setTextureEnabled()

void psd_layer_effects_bevel_emboss::setTextureEnabled ( bool value)
inline

Definition at line 870 of file psd.h.

871 {
873 }

References m_textureEnabled, and value().

◆ setTextureHorizontalPhase()

void psd_layer_effects_bevel_emboss::setTextureHorizontalPhase ( int value)
inline

Definition at line 945 of file psd.h.

946 {
948 }

References m_textureHorizontalPhase, and value().

◆ setTextureInvert()

void psd_layer_effects_bevel_emboss::setTextureInvert ( bool value)
inline

Definition at line 916 of file psd.h.

917 {
919 }

References m_textureInvert, and value().

◆ setTexturePattern()

void psd_layer_effects_bevel_emboss::setTexturePattern ( KoPatternSP value)
inline

◆ setTexturePhase()

void psd_layer_effects_bevel_emboss::setTexturePhase ( const QPointF & phase)
inline

Definition at line 930 of file psd.h.

931 {
932 m_textureHorizontalPhase = phase.x();
933 m_textureVerticalPhase = phase.y();
934 }

References m_textureHorizontalPhase, and m_textureVerticalPhase.

◆ setTextureScale()

void psd_layer_effects_bevel_emboss::setTextureScale ( int value)
inline

Definition at line 898 of file psd.h.

899 {
901 }

References m_textureScale, and value().

◆ setTextureVerticalPhase()

void psd_layer_effects_bevel_emboss::setTextureVerticalPhase ( int value)
inline

Definition at line 954 of file psd.h.

955 {
957 }

References m_textureVerticalPhase, and value().

◆ shadowBlendMode()

QString psd_layer_effects_bevel_emboss::shadowBlendMode ( ) const
inline

Definition at line 821 of file psd.h.

822 {
823 return m_shadowBlendMode;
824 }

References m_shadowBlendMode.

◆ shadowColor()

KoColor psd_layer_effects_bevel_emboss::shadowColor ( ) const
inline

Definition at line 830 of file psd.h.

831 {
832 return m_shadowColor;
833 }

References m_shadowColor.

◆ shadowOpacity()

qint32 psd_layer_effects_bevel_emboss::shadowOpacity ( ) const
inline

Definition at line 839 of file psd.h.

840 {
841 return m_shadowOpacity;
842 }

References m_shadowOpacity.

◆ soften()

int psd_layer_effects_bevel_emboss::soften ( ) const
inline

Definition at line 757 of file psd.h.

758 {
759 return m_soften;
760 }

References m_soften.

◆ style()

psd_bevel_style psd_layer_effects_bevel_emboss::style ( ) const
inline

FIXME: 'using' is not supported by MSVC, so please refactor in some other way to ensure that the setters are not used in the classes we don't want

Definition at line 721 of file psd.h.

722 {
723 return m_style;
724 }

References m_style.

◆ technique()

psd_technique_type psd_layer_effects_bevel_emboss::technique ( ) const
inline

Definition at line 730 of file psd.h.

731 {
732 return m_technique;
733 }

References m_technique.

◆ textureAlignWithLayer()

bool psd_layer_effects_bevel_emboss::textureAlignWithLayer ( ) const
inline

Definition at line 921 of file psd.h.

922 {
924 }

References m_textureAlignWithLayer.

◆ textureDepth()

int psd_layer_effects_bevel_emboss::textureDepth ( ) const
inline

Definition at line 903 of file psd.h.

904 {
905 return m_textureDepth;
906 }

References m_textureDepth.

◆ textureEnabled()

bool psd_layer_effects_bevel_emboss::textureEnabled ( ) const
inline

Definition at line 866 of file psd.h.

867 {
868 return m_textureEnabled;
869 }

References m_textureEnabled.

◆ textureHorizontalPhase()

int psd_layer_effects_bevel_emboss::textureHorizontalPhase ( ) const
inline

Definition at line 941 of file psd.h.

942 {
944 }

References m_textureHorizontalPhase.

◆ textureInvert()

bool psd_layer_effects_bevel_emboss::textureInvert ( ) const
inline

Definition at line 912 of file psd.h.

913 {
914 return m_textureInvert;
915 }

References m_textureInvert.

◆ texturePattern()

KoPatternSP psd_layer_effects_bevel_emboss::texturePattern ( KisResourcesInterfaceSP resourcesInterface) const
inline

Definition at line 879 of file psd.h.

880 {
881 auto source = resourcesInterface->source<KoPattern>(m_texturePatternLink.type);
883 }
KisMagneticGraph::vertex_descriptor source(typename KisMagneticGraph::edge_descriptor e, KisMagneticGraph g)
Write API docs here.
Definition KoPattern.h:21

References KoResourceSignature::filename, m_texturePatternLink, KoResourceSignature::md5sum, KoResourceSignature::name, source(), and KoResourceSignature::type.

◆ texturePatternLink()

KoResourceSignature psd_layer_effects_bevel_emboss::texturePatternLink ( ) const
inline

Definition at line 875 of file psd.h.

875 {
877 }

References m_texturePatternLink.

◆ texturePhase()

QPointF psd_layer_effects_bevel_emboss::texturePhase ( ) const
inline

Definition at line 936 of file psd.h.

937 {
939 }

References m_textureHorizontalPhase, and m_textureVerticalPhase.

◆ textureScale()

int psd_layer_effects_bevel_emboss::textureScale ( ) const
inline

Definition at line 894 of file psd.h.

895 {
896 return m_textureScale;
897 }

References m_textureScale.

◆ textureVerticalPhase()

int psd_layer_effects_bevel_emboss::textureVerticalPhase ( ) const
inline

Definition at line 950 of file psd.h.

951 {
953 }

References m_textureVerticalPhase.

Member Data Documentation

◆ m_altitude

int psd_layer_effects_bevel_emboss::m_altitude
private

Definition at line 973 of file psd.h.

◆ m_contourEnabled

bool psd_layer_effects_bevel_emboss::m_contourEnabled
private

Definition at line 986 of file psd.h.

◆ m_contourRange

int psd_layer_effects_bevel_emboss::m_contourRange
private

Definition at line 987 of file psd.h.

◆ m_depth

int psd_layer_effects_bevel_emboss::m_depth
private

Definition at line 969 of file psd.h.

◆ m_direction

psd_direction psd_layer_effects_bevel_emboss::m_direction
private

Definition at line 970 of file psd.h.

◆ m_glossAntiAliased

bool psd_layer_effects_bevel_emboss::m_glossAntiAliased
private

Definition at line 976 of file psd.h.

◆ m_glossContourLookupTable

quint8 psd_layer_effects_bevel_emboss::m_glossContourLookupTable[256]
private

Definition at line 975 of file psd.h.

◆ m_highlightBlendMode

QString psd_layer_effects_bevel_emboss::m_highlightBlendMode
private

Definition at line 978 of file psd.h.

◆ m_highlightColor

KoColor psd_layer_effects_bevel_emboss::m_highlightColor
private

Definition at line 979 of file psd.h.

◆ m_highlightOpacity

qint32 psd_layer_effects_bevel_emboss::m_highlightOpacity
private

Definition at line 980 of file psd.h.

◆ m_shadowBlendMode

QString psd_layer_effects_bevel_emboss::m_shadowBlendMode
private

Definition at line 982 of file psd.h.

◆ m_shadowColor

KoColor psd_layer_effects_bevel_emboss::m_shadowColor
private

Definition at line 983 of file psd.h.

◆ m_shadowOpacity

qint32 psd_layer_effects_bevel_emboss::m_shadowOpacity
private

Definition at line 984 of file psd.h.

◆ m_soften

int psd_layer_effects_bevel_emboss::m_soften
private

Definition at line 971 of file psd.h.

◆ m_style

psd_bevel_style psd_layer_effects_bevel_emboss::m_style
private

Definition at line 967 of file psd.h.

◆ m_technique

psd_technique_type psd_layer_effects_bevel_emboss::m_technique
private

Definition at line 968 of file psd.h.

◆ m_textureAlignWithLayer

bool psd_layer_effects_bevel_emboss::m_textureAlignWithLayer
private

Definition at line 995 of file psd.h.

◆ m_textureDepth

int psd_layer_effects_bevel_emboss::m_textureDepth
private

Definition at line 992 of file psd.h.

◆ m_textureEnabled

bool psd_layer_effects_bevel_emboss::m_textureEnabled
private

Definition at line 989 of file psd.h.

◆ m_textureHorizontalPhase

int psd_layer_effects_bevel_emboss::m_textureHorizontalPhase
private

Definition at line 996 of file psd.h.

◆ m_textureInvert

bool psd_layer_effects_bevel_emboss::m_textureInvert
private

Definition at line 993 of file psd.h.

◆ m_texturePatternLink

KoResourceSignature psd_layer_effects_bevel_emboss::m_texturePatternLink
private

Definition at line 990 of file psd.h.

◆ m_textureScale

int psd_layer_effects_bevel_emboss::m_textureScale
private

Definition at line 991 of file psd.h.

◆ m_textureVerticalPhase

int psd_layer_effects_bevel_emboss::m_textureVerticalPhase
private

Definition at line 997 of file psd.h.


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