PSDLayerMeta Class Reference


Detailed 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.

#include <LibPSD.h>

List of all members.

Public Member Functions

  PSDLayerMeta ()
  ~PSDLayerMeta ()
const QString getName () 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< ChannelInfo m_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
BlendChannelInfo m_BlendChannelRange
unsigned int  m_width
unsigned int  m_height
unsigned int  m_nbPixels
unsigned int  m_numAdditionalLayers
AdditionalLayerInfo m_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.

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

Definition at line 269 of file LibPSD.h.

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

Definition at line 273 of file LibPSD.h.

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

Definition at line 276 of file LibPSD.h.

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

Definition at line 277 of file LibPSD.h.

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

Definition at line 280 of file LibPSD.h.

{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.

{m_numChannels=nbChannel;}
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

unsigned short m_numChannels

Definition at line 229 of file LibPSD.h.

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.

Definition at line 240 of file LibPSD.h.

Definition at line 241 of file LibPSD.h.

Definition at line 244 of file LibPSD.h.

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.

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.

Definition at line 255 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:

PSDLayerMeta PSDLayerMeta PSDLayerMeta PSDLayerMeta PSDLayerMeta PSDLayerMeta PSDLayerMeta PSDLayerMeta PSDLayerMeta PSDLayerMeta
PSDLayerMeta PSDLayerMeta PSDLayerMeta PSDLayerMeta PSDLayerMeta PSDLayerMeta PSDLayerMeta PSDLayerMeta PSDLayerMeta PSDLayerMeta