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 | |
bool | addVectorLayer (String &panelId, int targetLayerIdx, bool before, String &suggestedName) |
Adds a vector Layer. | |
bool | addBitmapLayer (String &panelId, int targetLayerIdx, bool before, String &suggestedName) |
Adds a bitmap Layer. | |
bool | isVectorLayer (String &panelId, int index) |
Returns if layer is Vector. | |
bool | is3DLayer (String &panelId, int index) |
Returns if layer is 3D. | |
bool | isBitmapLayer (String &panelId, int index) |
Returns if layer is Bitmap. | |
bool | deleteLayer (String &panelId, int index) |
Deletes a given layer. | |
bool | renameLayer (String &panelId, int index, String &suggestedName) |
Renames a given layer. | |
String | layerName (String &panelId, int index) |
Returns name of layer. | |
bool | importImageAsLayer (String &panelId, String &fullPathAndFileName) |
Imports image and creates a new layer at index 0, returns if successful. | |
bool | setLayerVisible (String &panelId, int index, bool visible) |
Set layers visiblility flag. | |
bool | layerVisibility (String &panelId, int index) |
Get layers visiblility flag. | |
bool | setLayerOpacity (String &panelId, int index, double opacity) |
Set layers opacity value. | |
double | layerOpacity (String &panelId, int index) |
Get layers opacity value. | |
bool | setLayerAlignment (String &panelId, int index, String &alignment) |
Set layers alignment value. | |
String | layerAlignment (String &panelId, int index) |
Get layers Alignment value. | |
String | getLayerDrawingName (String &panelId, int index, bool fullPath) |
Get the path to a layer's drawing. | |
int | getLayerElementId (String &panelId, int index) |
Return the elementId of the layer. Useful for the element/Drawing interface. | |
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 |
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 |