Storyboard
|
This interface is used to access the layers within a given panel. More...
#include <layerManager.h>
Public Slots | |
Panel Layer Manipulation | |
int | numberOfLayers (String &panelId) |
returns number of layers in a panel More... | |
bool | addVectorLayer (String &panelId, int targetLayerIdx, bool before, String &suggestedName) |
Adds a vector Layer. More... | |
bool | addBitmapLayer (String &panelId, int targetLayerIdx, bool before, String &suggestedName) |
Adds a bitmap Layer. More... | |
bool | isVectorLayer (String &panelId, int index) |
Returns if layer is Vector. More... | |
bool | is3DLayer (String &panelId, int index) |
Returns if layer is 3D. More... | |
bool | isBitmapLayer (String &panelId, int index) |
Returns if layer is Bitmap. More... | |
bool | deleteLayer (String &panelId, int index) |
Deletes a given layer. More... | |
bool | renameLayer (String &panelId, int index, String &suggestedName) |
Renames a given layer. More... | |
String | layerName (String &panelId, int index) |
Returns name of layer. More... | |
bool | importImageAsLayer (String &panelId, String &fullPathAndFileName) |
Imports image and creates a new layer at index 0, returns if successful. More... | |
bool | setLayerVisible (String &panelId, int index, bool visible) |
Set layers visiblility flag. More... | |
bool | layerVisibility (String &panelId, int index) |
Get layers visiblility flag. More... | |
bool | setLayerOpacity (String &panelId, int index, double opacity) |
Set layers opacity value. More... | |
double | layerOpacity (String &panelId, int index) |
Get layers opacity value. More... | |
bool | setLayerAlignment (String &panelId, int index, String &alignment) |
Set layers alignment value. More... | |
String | layerAlignment (String &panelId, int index) |
Get layers Alignment value. More... | |
String | getLayerDrawingName (String &panelId, int index, bool fullPath) |
Get the path to a layer's drawing. More... | |
int | getLayerElementId (String &panelId, int index) |
Return the elementId of the layer. Useful for the element/Drawing interface. More... | |
bool | generateMatteLayer (String &panelId, int index, double radius, bool copyStrokes, bool replace) |
Generate Matte layer of the specified layer using current color. More... | |
bool | generateMatteLayer (String &panelId, int index, double radius, bool copyStrokes, bool replace, unsigned int red, unsigned int green, unsigned int blue) |
Generate Matte layer of the specified layer with specified color. More... | |
This interface is used to access the layers within a given panel.
The following examples are provided:
|
slot |
Adds a bitmap Layer.
panelId | - uniqueId of the panel |
targetLayerIdx | - index of sibling layer |
before | - whether new layer is before or after sibling layer |
suggestedName | - suggested Name |
|
slot |
Adds a vector Layer.
panelId | - uniqueId of the panel |
targetLayerIdx | - index of sibling layer |
before | - whether new layer is before or after sibling layer |
suggestedName | - suggested Name |
|
slot |
Deletes a given layer.
panelId | - uniqueId of the panel |
index | - index of layer |
|
slot |
Generate Matte layer of the specified layer using current color.
panelId | - uniqueId of the panel |
index | - index of layer |
radius | - matte radius |
copyStrokes | - boolean if strokes should be copied |
replace | - boolean to replace existing layer (with the same name), otherwise both will be kept |
|
slot |
Generate Matte layer of the specified layer with specified color.
panelId | - uniqueId of the panel |
index | - index of layer |
radius | - matte radius |
copyStrokes | - boolean if strokes should be copied |
replace | - boolean to replace existing layer (with the same name), otherwise both will be kept |
red | - unsigned int red value (0..255) for custom color, value bigger than 255 will be clamped |
green | - unsigned int green value (0..255) for custom color, value bigger than 255 will be clamped |
blue | - unsigned int blue value (0..255) for custom color, value bigger than 255 will be clamped |
|
slot |
Get the path to a layer's drawing.
panelId | - uniqueId of the panel |
index | - index of layer |
fullPath | - boolean to determinefileName or fullPath and fileName |
|
slot |
Return the elementId of the layer. Useful for the element/Drawing interface.
panelId | - uniqueId of the panel |
index | - index of layer |
|
slot |
Imports image and creates a new layer at index 0, returns if successful.
panelId | - uniqueId of the panel |
fullPathAndFileName | - absolute path to image file |
|
slot |
Returns if layer is 3D.
panelId | - uniqueId of the panel |
index | - index of layer |
|
slot |
Returns if layer is Bitmap.
panelId | - uniqueId of the panel |
index | - index of layer |
|
slot |
Returns if layer is Vector.
panelId | - uniqueId of the panel |
index | - index of layer |
|
slot |
Get layers Alignment value.
panelId | - uniqueId of the panel |
index | - index of layer |
|
slot |
Returns name of layer.
panelId | - uniqueId of the panel |
index | - index of layer |
|
slot |
Get layers opacity value.
panelId | - uniqueId of the panel |
index | - index of layer |
|
slot |
Get layers visiblility flag.
panelId | - uniqueId of the panel |
index | - index of layer |
|
slot |
returns number of layers in a panel
panelId | - uniqueId of the panel |
|
slot |
Renames a given layer.
panelId | - uniqueId of the panel |
index | - index of layer |
suggestedName | - suggested Name |
|
slot |
Set layers alignment value.
panelId | - uniqueId of the panel |
index | - index of layer |
alignment | - value between 0 and 100 |
|
slot |
Set layers opacity value.
panelId | - uniqueId of the panel |
index | - index of layer |
opacity | - value between 0 and 100 |
|
slot |
Set layers visiblility flag.
panelId | - uniqueId of the panel |
index | - index of layer |
visible | - boolean flag |