|
| void | setCurrentArt (int currentArt) |
| | Sets the current art to be one of the following : underlayArt, colourArt, lineArt or overlayArt. More...
|
| |
| bool | setCurrentDrawingFromColumnName (String columnName, int frame=1) |
| |
| bool | setCurrentDrawingFromNodeName (String nodeName, int frame=1) |
| | Sets the current drawing to be from node nodeName at frame frame. More...
|
| |
| void | convertPencilToBrush (int art=LineArtMask, DrawingToolParams *params=0) |
| | Converts the selected pencil lines in layer of the current drawing using params. More...
|
| |
| void | extractCenterline (int srcArt=LineArtMask, int dstArt=ColourArtMask, DrawingToolParams *params=0) |
| | Extracts the centerline from srcArt and puts the extracted line in dstArt using params. More...
|
| |
| void | computeBreakingTriangles (DrawingToolParams *params=0) |
| | Computes the breaking triangles of the current layer using params. More...
|
| |
| void | recolorDrawing (QScriptValue drawingKey, QScriptValue colorMap) |
| | Recolours the drawing identified by a drawing key. More...
|
| |
| void | copyArtLayer (QScriptValue sourceDrawingKey, int sourceArtLayer, QScriptValue targetDrawingKey, int targetArtLayer) |
| | Copy art layer from a drawing and paste into the art layer of a target drawing. More...
|
| |
| void | moveArtLayer (QScriptValue sourceDrawingKey, int sourceArtLayer, QScriptValue targetDrawingKey, int targetArtLayer) |
| | Move art layer from a drawing and paste into the art layer of a target drawing. More...
|
| |
| void | clearArtLayer (QScriptValue drawingKey, int artLayer) |
| | Clear an art layer of all content. More...
|
| |
| void | changeDrawingVectorLayerResolution (QScriptValue drawingKey, double pixelPerModelUnit, QScriptValue options=QScriptValue()) |
| | Changes the vector layer resolution of a given drawing. More...
|
| |
| void | changeDrawingBitmapLayerResolution (QScriptValue drawingKey, double pixelPerModelUnit, QScriptValue options=QScriptValue()) |
| | Changes the bitmap layer resolution of a given drawing. More...
|
| |
| QScriptValue | getDrawingUsedColors (QScriptValue drawingKey) |
| | Returns an array containing the set of colour ids used by the drawing. More...
|
| |
| QScriptValue | getDrawingUsedColorsWithSource (QScriptValue drawingKey) |
| | Returns an array of objects describing the set of colour ids used by the drawing along with the source of the colour. More...
|
| |
| QScriptValue | getMultipleDrawingsUsedColors (QScriptValue drawingKeyArray) |
| | Return an array containing the set of colour ids used by all drawings in the array. More...
|
| |
The DrawingTools JavaScript global object. Get information about the currently selected drawing.
| void DrawingTools::clearArtLayer |
( |
QScriptValue |
drawingKey, |
|
|
int |
artLayer |
|
) |
| |
|
slot |
Clear an art layer of all content.
drawingKey : A drawing key, built from { ElementID : id, exposure : "drawingName"}, or {node: "Qualified_name", frame : i}
artLayer : The artlayer index defining the source art layer that will be copied. [0, 1, 2, 3]
| void DrawingTools::copyArtLayer |
( |
QScriptValue |
sourceDrawingKey, |
|
|
int |
sourceArtLayer, |
|
|
QScriptValue |
targetDrawingKey, |
|
|
int |
targetArtLayer |
|
) |
| |
|
slot |
Copy art layer from a drawing and paste into the art layer of a target drawing.
sourceDrawingKey : A drawing key, built from { ElementID : id, exposure : "drawingName"}, or {node: "Qualified_name", frame : i}
sourceArtLayer : The artlayer index defining the source art layer that will be copied. [0, 1, 2, 3]
targetDrawingKey : A drawing key, built from { ElementID : id, exposure : "drawingName"}, or {node: "Qualified_name", frame : i}
targetArtLayer : The artlayer index defining the source art layer that will be copied. [0, 1, 2, 3]
| void DrawingTools::moveArtLayer |
( |
QScriptValue |
sourceDrawingKey, |
|
|
int |
sourceArtLayer, |
|
|
QScriptValue |
targetDrawingKey, |
|
|
int |
targetArtLayer |
|
) |
| |
|
slot |
Move art layer from a drawing and paste into the art layer of a target drawing.
sourceDrawingKey : A drawing key, built from { ElementID : id, exposure : "drawingName"}, or {node: "Qualified_name", frame : i}
sourceArtLayer : The artlayer index defining the source art layer that will be copied. [0, 1, 2, 3]
targetDrawingKey : A drawing key, built from { ElementID : id, exposure : "drawingName"}, or {node: "Qualified_name", frame : i}
targetArtLayer : The artlayer index defining the source art layer that will be copied. [0, 1, 2, 3]
| void DrawingTools::recolorDrawing |
( |
QScriptValue |
drawingKey, |
|
|
QScriptValue |
colorMap |
|
) |
| |
|
slot |
Recolours the drawing identified by a drawing key.
DrawingKey : A drawing key, built from { ElementID : id, exposure : "drawingName"}, or {node: "Qualified_name", frame : i}
ColorMap : An array of colour mappings of the format [ {from : "colorId", to : "colorId"}, ... ,{...} ].