#include <lib_layershader.h>
Represents a layer in a LayerShader.
Public Member Functions | |
LayerShaderLayer * | GetNext () |
LayerType | GetType () |
String | GetName (BaseDocument *doc) |
BaseBitmap * | GetPreview () |
Bool | GetParameter (Int32 id, GeData &d) const |
Bool | SetParameter (Int32 id, const GeData &d) |
Private Member Functions | |
LayerShaderLayer () | |
~LayerShaderLayer () | |
|
private |
|
private |
LayerShaderLayer* GetNext | ( | ) |
Gets the next layer.
String GetName | ( | BaseDocument * | doc | ) |
Retrieves the name of the layer.
[in] | doc | The document for the operation. The caller owns the pointed documented. |
BaseBitmap* GetPreview | ( | ) |
Retrieves the preview bitmap.
Retrieves layer parameters.
[in] | id | The ID of the parameter to get: For all layers: LAYER_S_PARAM_ALL For folders (TypeFolder): LAYER_S_PARAM_FOLDER For shaders (TypeShader): LAYER_S_PARAM_SHADER For brightness/contrast layers (TypeBrightnessContrast): LAYER_S_PARAM_BC For HSL layers (TypeHSL): LAYER_S_PARAM_HSL For posterize layers (TypePosterize): LAYER_S_PARAM_POSTER For colorize layers (TypeColorize): LAYER_S_PARAM_COLORIZE For clamp layers (TypeClamp): LAYER_S_PARAM_CLAMP For clip layers (TypeClip): LAYER_S_PARAM_CLIP For distorter layers (TypeDistorter): LAYER_S_PARAM_DISTORT For transform layers (TypeTransform): LAYER_S_PARAM_TRANS . |
[out] | d | Filled with the parameter value. |
Sets layer parameters.
[in] | id | The ID of the parameter to set: For all layers: LAYER_S_PARAM_ALL For folders (TypeFolder): LAYER_S_PARAM_FOLDER For shaders (TypeShader): LAYER_S_PARAM_SHADER For brightness/contrast layers (TypeBrightnessContrast): LAYER_S_PARAM_BC For HSL layers (TypeHSL): LAYER_S_PARAM_HSL For posterize layers (TypePosterize): LAYER_S_PARAM_POSTER For colorize layers (TypeColorize): LAYER_S_PARAM_COLORIZE For clamp layers (TypeClamp): LAYER_S_PARAM_CLAMP For clip layers (TypeClip): LAYER_S_PARAM_CLIP For distorter layers (TypeDistorter): LAYER_S_PARAM_DISTORT For transform layers (TypeTransform): LAYER_S_PARAM_TRANS . |
[in] | d | The new parameter value. |