Open Search
    BlendEffectPosterize Class Reference

    #include <blendlayers.h>

    Inheritance diagram for BlendEffectPosterize:

    Public Member Functions

    virtual ~BlendEffectPosterize ()
     
    virtual String GetLayerName (BaseDocument *pDoc, Bool bReset=false)
     
    virtual Bool Read (HyperFile *pFile, Int32 lLevel)
     
    virtual Bool Write (HyperFile *pFile) const
     
    virtual Int32 Compare (BlendLayer *pLayer)
     
    virtual Bool CopyTo (BlendLayer *pDest, AliasTrans *pTrans)
     
    virtual void GetParameter (Int32 lItem, const DescID &id, GeData &t_data, Int32 &flags)
     
    virtual void SetParameter (Int32 lItem, const DescID &id, const GeData &t_data, Int32 &flags)
     
    virtual Bool GetParameter (Int32 lID, GeData &d)
     
    virtual Bool SetParameter (Int32 lID, const GeData &d)
     
    - Public Member Functions inherited from BlendLayer
    virtual ~BlendLayer ()
     
    virtual Bool CompareStructure (BlendLayer *pLayer, Bool bCompareNames)
     
    virtual void ClearShaders (BaseList2D *pParent, BaseDocument *pDoc)
     
    Bool IsFolder ()
     
    Bool IsShader ()
     
    LayerShaderLayerGetNext ()
     
    Bool GetParameter_ (Int32 lID, GeData &d)
     
    Bool SetParameter_ (Int32 lID, const GeData &d)
     
    String GetName (BaseDocument *pDoc)
     
    LayerType GetType ()
     

    Static Public Member Functions

    static BlendLayerAlloc ()
     
    - Static Public Member Functions inherited from BlendLayer
    static void Free (BlendLayer *&pLayer)
     

    Public Attributes

    Int32 m_lLevels
     
    Float m_rFilterWidth
     
    - Public Attributes inherited from BlendLayer
    CBlendLayersm_pParent
     
    String m_strName
     
    LayerType m_LayerType
     
    Bool m_bDirty
     
    Bool m_bIsSelected
     
    Bool m_bIsActive
     
    Int32 m_lLayerID
     
    Int32 m_lFlags
     
    Int32 m_lRenderFlags
     
    BaseBitmapm_pAlphaChannel
     

    Private Member Functions

     BlendEffectPosterize ()
     

    Additional Inherited Members

    - Protected Member Functions inherited from BlendLayer
     BlendLayer ()
     
    Bool CopyBasics (BlendLayer *pDest)
     
    - Static Protected Member Functions inherited from BlendLayer
    static Bool AllocDefaults (BlendLayer *pLayer)
     

    Constructor & Destructor Documentation

    ◆ BlendEffectPosterize()

    BlendEffectPosterize ( )
    private

    Default constructor.

    ◆ ~BlendEffectPosterize()

    virtual ~BlendEffectPosterize ( )
    virtual

    Default destructor.

    Member Function Documentation

    ◆ Alloc()

    static BlendLayer* Alloc ( )
    static

    Allocates a posterize layer. Destroy the allocated posterize layer with Free().

    Returns
    The allocated posterize layer, or nullptr if the allocation failed.

    ◆ GetLayerName()

    virtual String GetLayerName ( BaseDocument pDoc,
    Bool  bReset = false 
    )
    virtual

    Private.

    Implements BlendLayer.

    ◆ Read()

    virtual Bool Read ( HyperFile pFile,
    Int32  lLevel 
    )
    virtual

    Reads the layer from a hyper file.

    Parameters
    [in]pFileThe hyper file to read from. The caller owns the pointed hyper file.
    [in]lLevelThe disklevel of the layer to read.
    Returns
    true if the layer was read, otherwise false.

    Implements BlendLayer.

    ◆ Write()

    virtual Bool Write ( HyperFile pFile) const
    virtual

    Writes the layer to a hyper file.

    Parameters
    [in]pFileThe hyper file to write to. The caller owns the pointed hyper file.
    Returns
    true if the layer was written, otherwise false.

    Implements BlendLayer.

    ◆ Compare()

    virtual Int32 Compare ( BlendLayer pLayer)
    virtual

    Compares two layers.

    Parameters
    [in]pLayerThe layer to compare with. The caller owns the pointed layer.
    Returns
    0 if the layers are identical, otherwise 1.

    Reimplemented from BlendLayer.

    ◆ CopyTo()

    virtual Bool CopyTo ( BlendLayer pDest,
    AliasTrans pTrans 
    )
    virtual

    Copies all values from the layer to pDest.

    Parameters
    [in]pDestThe destination layer. The caller owns the pointed layer.
    [in]pTransAn alias translator for the operation. Can be nullptr. The caller owns the pointed alias translator.
    Returns
    true if the layer was copied, otherwise false.

    Implements BlendLayer.

    ◆ GetParameter() [1/2]

    virtual void GetParameter ( Int32  lItem,
    const DescID id,
    GeData t_data,
    Int32 flags 
    )
    virtual

    Private.

    Reimplemented from BlendLayer.

    ◆ SetParameter() [1/2]

    virtual void SetParameter ( Int32  lItem,
    const DescID id,
    const GeData t_data,
    Int32 flags 
    )
    virtual

    Private.

    Reimplemented from BlendLayer.

    ◆ GetParameter() [2/2]

    virtual Bool GetParameter ( Int32  lID,
    GeData d 
    )
    virtual

    Gets layer parameters.

    Parameters
    [in]lIDThe layer parameter ID: LAYER_S_PARAM_POSTER
    [in]dFilled with the layer parameter value.
    Returns
    true if the parameter could be retrieved, otherwise false.

    Reimplemented from BlendLayer.

    ◆ SetParameter() [2/2]

    virtual Bool SetParameter ( Int32  lID,
    const GeData d 
    )
    virtual

    Sets layer parameters.

    Parameters
    [in]lIDThe layer parameter ID: LAYER_S_PARAM_POSTER
    [in]dThe layer parameter value.
    Returns
    true if the parameter could be set, otherwise false.

    Reimplemented from BlendLayer.

    Member Data Documentation

    ◆ m_lLevels

    Int32 m_lLevels

    Private.

    ◆ m_rFilterWidth

    Float m_rFilterWidth

    Private.