PSDLayerMeta Class Reference

PSDLayerMeta Class Reference

#include <LibPSD.h>

Class Description

The PSDLayerMeta object contains informations about a layer.

The information varies based on the layer type. the meta data of a layer is anything else beside the rasterized image data of that layer.

Definition at line 220 of file LibPSD.h.

Public Member Functions

 PSDLayerMeta ()
 
 ~PSDLayerMeta ()
 
const QStringgetName () const
 
void setName (const QString &layerName)
 
float getOpacity () const
 
void setOpacity (float opacity)
 
bool getTransparencyProtected () const
 
void setTransparencyProtected (bool trsProtected)
 
bool getLocked () const
 
void setLocked (bool locked=true)
 
bool getVisibility () const
 
void setVisibility (bool visFlag)
 
PSDBlendMode getBlendingType () const
 
void setBlendingType (PSDBlendMode blendMode)
 
void setNbChannel (unsigned short nbChannel)
 
void setLayerRect (int top, int left, int bottom, int right)
 
void setChannelInfo (CompressionMethod method, unsigned short nbChannel=4)
 

Public Attributes

LRect m_layerRect
 
unsigned short m_numChannels
 
std::vector< ChannelInfom_channelInfo
 
unsigned int m_blendModeSig
 
unsigned int m_blendModeKey
 
unsigned char m_baseClipping
 
unsigned char m_filler
 
unsigned int m_extraDataField
 
unsigned int m_layerMaskSize
 
LRect m_vectorMaskRect
 
char m_vectorMaskColor
 
char m_vectorMaskFlags
 
LRect m_layerMaskRect
 
char m_layerMaskFlags
 
char m_userMaskBgColor
 
unsigned int m_blendRangeSize
 
unsigned int m_grayBlendSource
 
unsigned int m_grayBlendDest
 
BlendChannelInfom_BlendChannelRange
 
unsigned int m_width
 
unsigned int m_height
 
unsigned int m_nbPixels
 
unsigned int m_numAdditionalLayers
 
AdditionalLayerInfom_listAddLayerInfo
 
SectionDividerSetting m_sectionDivider
 
unsigned int m_layerId
 

Friends

class PSDFile
 

Constructor & Destructor Documentation

Member Function Documentation

const QString& getName ( ) const
inline

Definition at line 265 of file LibPSD.h.

265 { return m_layerName; }
void setName ( const QString layerName)
float getOpacity ( ) const
inline

Definition at line 269 of file LibPSD.h.

269 { return m_opacity/255.0f; }
void setOpacity ( float  opacity)
bool getTransparencyProtected ( ) const
inline

Definition at line 273 of file LibPSD.h.

273 {return (bool)(m_optionFlags & 0x01);}
void setTransparencyProtected ( bool  trsProtected)
bool getLocked ( ) const
inline

Definition at line 276 of file LibPSD.h.

276 { return m_bLocked; }
void setLocked ( bool  locked = true)
inline

Definition at line 277 of file LibPSD.h.

277 { m_bLocked = locked; }
bool getVisibility ( ) const
inline

Definition at line 280 of file LibPSD.h.

280 {return (bool)!(m_optionFlags & 0x02);}
void setVisibility ( bool  visFlag)
PSDBlendMode getBlendingType ( ) const
void setBlendingType ( PSDBlendMode  blendMode)
void setNbChannel ( unsigned short  nbChannel)
inline

Definition at line 287 of file LibPSD.h.

287 {m_numChannels=nbChannel;}
unsigned short m_numChannels
Definition: LibPSD.h:229
void setLayerRect ( int  top,
int  left,
int  bottom,
int  right 
)
void setChannelInfo ( CompressionMethod  method,
unsigned short  nbChannel = 4 
)

Friends And Related Function Documentation

friend class PSDFile
friend

Definition at line 222 of file LibPSD.h.

Member Data Documentation

LRect m_layerRect

Definition at line 228 of file LibPSD.h.

unsigned short m_numChannels

Definition at line 229 of file LibPSD.h.

std::vector<ChannelInfo> m_channelInfo

Definition at line 230 of file LibPSD.h.

unsigned int m_blendModeSig

Definition at line 232 of file LibPSD.h.

unsigned int m_blendModeKey

Definition at line 233 of file LibPSD.h.

unsigned char m_baseClipping

Definition at line 234 of file LibPSD.h.

unsigned char m_filler

Definition at line 235 of file LibPSD.h.

unsigned int m_extraDataField

Definition at line 236 of file LibPSD.h.

unsigned int m_layerMaskSize

Definition at line 238 of file LibPSD.h.

LRect m_vectorMaskRect

Definition at line 239 of file LibPSD.h.

char m_vectorMaskColor

Definition at line 240 of file LibPSD.h.

char m_vectorMaskFlags

Definition at line 241 of file LibPSD.h.

LRect m_layerMaskRect

Definition at line 243 of file LibPSD.h.

char m_layerMaskFlags

Definition at line 244 of file LibPSD.h.

char m_userMaskBgColor

Definition at line 245 of file LibPSD.h.

unsigned int m_blendRangeSize

Definition at line 246 of file LibPSD.h.

unsigned int m_grayBlendSource

Definition at line 247 of file LibPSD.h.

unsigned int m_grayBlendDest

Definition at line 248 of file LibPSD.h.

BlendChannelInfo* m_BlendChannelRange

Definition at line 249 of file LibPSD.h.

unsigned int m_width

Definition at line 251 of file LibPSD.h.

unsigned int m_height

Definition at line 252 of file LibPSD.h.

unsigned int m_nbPixels

Definition at line 253 of file LibPSD.h.

unsigned int m_numAdditionalLayers

Definition at line 255 of file LibPSD.h.

AdditionalLayerInfo* m_listAddLayerInfo

Definition at line 256 of file LibPSD.h.

SectionDividerSetting m_sectionDivider

Definition at line 260 of file LibPSD.h.

unsigned int m_layerId

Definition at line 261 of file LibPSD.h.


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