| Home | | | Quick start | | | Cookbook | | | All symbols | | | Analytical index | | | Namespaces | | | Syntax | | | Statements | | | CX | | | Frequency | | | Functions | | | Examples | | | Examples by command |
Vector canvas drawing, plotting, layers, items and export.
Symbols in this namespace: 107
| Symbol | Kind | Category | Description |
|---|---|---|---|
VEC.ANIM.CIRCLE | Command | Vector animation statements | Alias of VEC.ANIM.ORBIT. |
VEC.ANIM.MOVE | Command | Vector animation statements | Animates the item position. loops=1 runs once; loops=0 loops forever; yoyo=TRUE reverses every other loop. |
VEC.ANIM.OPACITY | Command | Vector animation statements | Animates item opacity between two values in range 0..1. |
VEC.ANIM.OPACITY_KEYFRAMES | Command | Vector animation statements | Animates item opacity using absolute time/value keyframes. This is useful for discrete states: switches, traffic lights, phase indicators, etc. loops=0 loops forever. |
VEC.ANIM.OPACITY_PATH | Command | Vector animation statements | Alias of VEC.ANIM.OPACITY_KEYFRAMES. |
VEC.ANIM.ORBIT | Command | Vector animation statements | Animates an item on a circular orbit around a center point. Alias: VEC.ANIM.CIRCLE. |
VEC.ANIM.PATH | Command | Vector animation statements | Animates an item along a polyline trajectory. Very useful for physics/mathematics demonstrations. Alias: VEC.ANIM.TRAJECTORY. |
VEC.ANIM.ROTATE | Command | Vector animation statements | Animates the item rotation in degrees. |
VEC.ANIM.ROTATE_PATH | Command | Vector animation statements | Animates item rotation through a list of angle keyframes. This is more useful than linear rotation for physics, because the angle can come from a numerical simulation. Alias: VEC.ANIM.ROTATION_PATH. |
VEC.ANIM.ROTATION_PATH | Command | Vector animation statements | Alias of VEC.ANIM.ROTATE_PATH. |
VEC.ANIM.SCALE | Command | Vector animation statements | Animates uniform scale, useful for pulsating markers or attention cues. |
VEC.ANIM.STATE | Command | Vector animation statements | Alias of VEC.ANIM.OPACITY_KEYFRAMES, intended for visibility/state timelines. |
VEC.ANIM.STOP | Command | Vector animation statements | Stops animations. Omit itemId or pass 0 to stop all animations on the canvas. |
VEC.ANIM.TRAJECTORY | Command | Vector animation statements | Alias of VEC.ANIM.PATH. |
VEC.ANIM.VISIBLE_TIMELINE | Command | Vector animation statements | Alias of VEC.ANIM.OPACITY_KEYFRAMES. |
VEC.ARROW | Command | Vector canvas statements | Adds a line with a simple arrow head, useful for annotations and motion/vector diagrams. |
VEC.ARROW_ID | Function | Vector canvas functions | Function form of VEC.ARROW. It returns the item id. |
VEC.AXES | Command | Vector canvas statements | Draws X/Y axes with optional ticks. This is intentionally simple and script-friendly. |
VEC.BATCH | Command | Vector canvas statements | Temporarily freezes viewport repaints/info-label updates while many vector items are created. Use VEC.BATCH v, TRUE before a heavy plot block and VEC.BATCH v, FALSE after it. Alias: VEC.FREEZE. |
VEC.BRUSH | Command | Vector canvas statements | Sets the fill brush for rectangles and ellipses. Use TRANSPARENT/NONE to draw outlines only. |
VEC.CAPTURE_AVI | Command | Vector export and capture statements | Captures the animated vector canvas directly to an AVI file. Default codec is MJPG; aliases: VEC.SAVE_AVI and VEC.EXPORT_AVI. |
VEC.CAPTURE_FRAMES | Command | Vector export and capture statements | Alias of VEC.CAPTURE_PNG. |
VEC.CAPTURE_PNG | Command | Vector export and capture statements | Captures a sequence of PNG frames from the current canvas while active animations are running. Aliases: VEC.CAPTURE_FRAMES and VEC.EXPORT_FRAMES. |
VEC.CAPTURE_STACK | Function | Vector canvas functions | Captures the animated vector canvas into a stack/image-sequence object that can be passed to GUI.SHOW or saved by the normal image/stack pipeline. Alias: VEC.STACK. |
VEC.CLEAR | Command | Vector canvas statements | Removes all vector items from the selected canvas without destroying the window. |
VEC.CLOSE | Command | Vector canvas statements | Closes a vector canvas window. |
VEC.CREATE | Function | Vector canvas functions | Creates an interactive vector canvas and returns a numeric handle. The canvas is a scriptable QGraphicsScene-based whiteboard that can be exported to SVG or rasterized back to a Mat. |
VEC.ELLIPSE | Command | Vector canvas statements | Adds an ellipse inscribed in the rectangle x,y,w,h using the current pen and brush. |
VEC.ELLIPSE_ID | Function | Vector canvas functions | Function form of VEC.ELLIPSE. It adds the ellipse and returns its item id. |
VEC.EXPORT_AVI | Command | Vector export and capture statements | Alias of VEC.CAPTURE_AVI. |
VEC.EXPORT_FRAMES | Command | Vector export and capture statements | Alias of VEC.CAPTURE_PNG. |
VEC.FLUSH | Command | Vector canvas statements | Alias of VEC.SYNC. |
VEC.FONT | Command | Vector canvas statements | Sets the current font used by VEC.TEXT. |
VEC.FRAME | Function | Vector canvas functions | Alias of VEC.MAT, named for animated/capture workflows: returns the current canvas frame as Mat. |
VEC.FRAME_PNG | Command | Vector export and capture statements | Alias of VEC.SAVE_FRAME. |
VEC.FREEZE | Command | Vector canvas statements | Alias of VEC.BATCH. |
VEC.GRID | Command | Vector canvas statements | Draws a lightweight grid as one vector item. It is useful as a plotting/geometry reference layer. |
VEC.IMAGE | Command | Vector canvas statements | Inserts the first frame of an image/stack into the vector canvas. If w and h are positive the image is scaled; opacity is 0..1. |
VEC.IMAGE_ID | Function | Vector canvas functions | Function form of VEC.IMAGE. It adds the image layer and returns its item id. |
VEC.ITEM.CENTER_X | Function | Vector item query functions | Returns the current scene-center x coordinate of a vector item. |
VEC.ITEM.CENTER_Y | Function | Vector item query functions | Returns the current scene-center y coordinate of a vector item. |
VEC.ITEM.DRAGGABLE | Command | Vector item statements | Alias of VEC.ITEM.MOVABLE. |
VEC.ITEM.MOVABLE | Command | Vector item statements | Makes an item draggable with the mouse inside the vector canvas. Movable items are also made selectable. Alias: VEC.ITEM.DRAGGABLE. |
VEC.ITEM.MOVE | Command | Vector item statements | Alias of VEC.ITEM.POS. |
VEC.ITEM.OPACITY | Command | Vector item statements | Sets opacity 0..1 for one existing item. |
VEC.ITEM.OPACITY_VALUE | Function | Vector item query functions | Returns the current opacity value of a vector item. |
VEC.ITEM.ORIGIN | Command | Vector item statements | Sets the local transform origin/pivot for rotation and scale. Alias: VEC.ITEM.PIVOT. This is important for physical systems such as pendulums, levers and rotating arms. |
VEC.ITEM.PIVOT | Command | Vector item statements | Alias of VEC.ITEM.ORIGIN. |
VEC.ITEM.POS | Command | Vector item statements | Sets the position transform of an existing vector item. Alias: VEC.ITEM.MOVE. |
VEC.ITEM.ROTATE | Command | Vector item statements | Rotates an existing vector item around its local bounding-box center. |
VEC.ITEM.ROTATION | Function | Vector item query functions | Returns the current rotation angle of a vector item in degrees. |
VEC.ITEM.SCALE | Command | Vector item statements | Scales an existing item around its local bounding-box center. If sy is omitted, sx is used for both axes. |
VEC.ITEM.SELECTABLE | Command | Vector item statements | Enables or disables mouse selection for an existing vector item. |
VEC.ITEM.X | Function | Vector item query functions | Returns the current x position transform of a vector item. |
VEC.ITEM.Y | Function | Vector item query functions | Returns the current y position transform of a vector item. |
VEC.ITEM.Z | Command | Vector item statements | Changes the z-order of an existing item. |
VEC.ITEM_COUNT | Function | Vector canvas functions | Returns the number of registered vector items in the canvas. |
VEC.LAST_ITEM | Function | Vector canvas functions | Returns the numeric id of the last vector item created on the canvas. This id can be used by VEC.ITEM.* and VEC.ANIM.* commands. |
VEC.LAYER | Command | Vector layer statements | Alias of VEC.LAYER.SELECT. |
VEC.LAYER.CLEAR | Command | Vector layer statements | Deletes all vector items assigned to the selected layer. Useful for interactive redraw loops where a dynamic overlay is recalculated. |
VEC.LAYER.SELECT | Command | Vector layer statements | Selects the current drawing layer. New vector items are assigned to that layer. The default layer is named default. |
VEC.LAYER.SHOW | Command | Vector layer statements | Alias of VEC.LAYER.VISIBLE. |
VEC.LAYER.VISIBLE | Command | Vector layer statements | Shows or hides all items belonging to a layer. Alias: VEC.LAYER.SHOW. |
VEC.LINE | Command | Vector canvas statements | Adds a line using the current pen. |
VEC.LINE_ID | Function | Vector canvas functions | Function form of VEC.LINE. It adds the line and returns its item id. |
VEC.MAT | Function | Vector canvas functions | Rasterizes the current vector canvas and returns it as an image/Mat value. By default it produces a normal 3-channel BGR Mat; with transparent=TRUE it keeps an alpha channel and makes the background transparent. |
VEC.NEW | Function | Vector canvas functions | Alias of VEC.CREATE. |
VEC.OPACITY | Command | Vector canvas statements | Sets the default opacity for following vector items. Opacity is 0..1. |
VEC.PEN | Command | Vector canvas statements | Sets the current stroke color, width and style for following vector primitives. Colors are Qt names or #RRGGBB. Styles: SOLID, DASH, DOT, DASHDOT, DASHDOTDOT, NONE. |
VEC.PLOT.AREA | Command | Vector plot statements | Draws a filled area under a data polyline down to a baseline. Use VEC.BRUSH before the command to choose the fill color; alias: VEC.PLOT.FILL. |
VEC.PLOT.AXES | Command | Vector plot statements | Draws a scientific plot frame in the given rectangle, including border, tick marks, optional grid and zero axes when visible in range. |
VEC.PLOT.BAR | Command | Vector plot statements | Alias of VEC.PLOT.BARS. |
VEC.PLOT.BARS | Command | Vector plot statements | Draws a categorical bar plot from a numeric list. The current brush fills the bars, and the current pen outlines them. |
VEC.PLOT.FILL | Command | Vector plot statements | Alias of VEC.PLOT.AREA. |
VEC.PLOT.FUNCTION | Command | Vector plot statements | Evaluates a function of x and plots it as a polyline. The expression can use normal math functions such as SIN, COS, EXP, SQRT, etc. When autoScale is TRUE the y range is estimated from the sampled values. |
VEC.PLOT.FUNCTION_ID | Function | Vector plot functions | Function form of VEC.PLOT.FUNCTION. It returns the created item id of the plotted curve. |
VEC.PLOT.HIST | Command | Vector plot statements | Alias of VEC.PLOT.HISTOGRAM. |
VEC.PLOT.HISTOGRAM | Command | Vector plot statements | Builds a histogram from a numeric list. If xMin=xMax the range is auto-estimated; if yMax<=0 the histogram height is auto-scaled. Alias: VEC.PLOT.HIST. |
VEC.PLOT.LABELS | Command | Vector plot statements | Adds title, X label and Y label to a plot rectangle. The Y label is rotated vertically. |
VEC.PLOT.LEGEND | Command | Vector plot statements | Draws a small legend box. Each item uses color|label syntax; comma is also accepted as separator. |
VEC.PLOT.PARAMETRIC | Command | Vector plot statements | Evaluates a parametric curve using variable t and plots it in the selected rectangle. Useful for circles, spirals, Lissajous figures and many mathematical curves. |
VEC.PLOT.PARAMETRIC_ID | Function | Vector plot functions | Function form of VEC.PLOT.PARAMETRIC. It returns the created item id of the plotted curve. |
VEC.PLOT.POINTS | Command | Vector plot statements | Alias of VEC.PLOT.XY. |
VEC.PLOT.SCATTER | Command | Vector plot statements | Plots a list of data-space points as vector point markers in the selected plot rectangle. |
VEC.PLOT.TICKS | Command | Vector plot statements | Adds numeric tick labels around a VEC.PLOT.AXES rectangle. decimals=-1 uses compact general formatting. |
VEC.PLOT.XY | Command | Vector plot statements | Plots a polyline from data-space points into the specified plot rectangle. Alias: VEC.PLOT.POINTS. |
VEC.PLOT.XY_ID | Function | Vector plot functions | Function form of VEC.PLOT.XY. It plots the data polyline and returns the created item id. |
VEC.PNG | Command | Vector export and capture statements | Alias of VEC.SAVE_PNG. |
VEC.POINT | Command | Vector canvas statements | Adds a small circular point marker using the current pen color. |
VEC.POINT_ID | Function | Vector canvas functions | Function form of VEC.POINT. It adds the point marker and returns its item id. |
VEC.POLYGON | Command | Vector canvas statements | Adds a closed polygon using the current pen and brush. |
VEC.POLYGON_ID | Function | Vector canvas functions | Function form of VEC.POLYGON. It returns the item id. |
VEC.POLYLINE | Command | Vector canvas statements | Adds an open polyline. The point list is a compact string using semicolon-separated x,y pairs. |
VEC.POLYLINE_ID | Function | Vector canvas functions | Function form of VEC.POLYLINE. It returns the item id. |
VEC.RECT | Command | Vector canvas statements | Adds a rectangle using the current pen and brush. |
VEC.RECT_ID | Function | Vector canvas functions | Function form of VEC.RECT. It adds the rectangle and returns its item id. |
VEC.SAVE_AVI | Command | Vector export and capture statements | Alias of VEC.CAPTURE_AVI. |
VEC.SAVE_FRAME | Command | Vector export and capture statements | Captures the current animated canvas state to a PNG frame. With transparent=TRUE the background is transparent. Alias: VEC.FRAME_PNG. |
VEC.SAVE_PNG | Command | Vector export and capture statements | Rasterizes and saves the current vector canvas as a PNG preview. |
VEC.SAVE_SVG | Command | Vector export and capture statements | Exports the vector canvas to SVG. This keeps vector primitives scalable and is ideal for reports/documentation. |
VEC.STACK | Function | Vector canvas functions | Alias of VEC.CAPTURE_STACK. |
VEC.SVG | Command | Vector export and capture statements | Alias of VEC.SAVE_SVG. |
VEC.SYNC | Command | Vector canvas statements | Processes pending Qt GUI events for a bounded time. Use it after heavy vector scene creation and before export/animation when a script builds many items continuously. maxMs is clamped to 1..250 ms. Alias: VEC.FLUSH. |
VEC.TEXT | Command | Vector canvas statements | Adds a text item using the current pen color and current font. |
VEC.TEXT_ID | Function | Vector canvas functions | Function form of VEC.TEXT. It adds the text and returns its item id. |
VEC.TO_MAT | Function | Vector canvas functions | Alias of VEC.MAT. |
VEC.Z | Command | Vector canvas statements | Sets the default z-order for following vector items. Higher values are drawn above lower values. |
VEC.ANIM.CIRCLE handle, itemId, centerX, centerY, radius, durationMs [, startDeg [, endDeg [, loops [, yoyo]]]]
Alias of VEC.ANIM.ORBIT.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
startDeg | Optional parameter. If omitted, the command uses its internal default. |
endDeg | Optional parameter. If omitted, the command uses its internal default. |
loops | Optional parameter. If omitted, the command uses its internal default. |
yoyo | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.CIRCLEVEC.ANIM.MOVE handle, itemId, x1, y1, x2, y2, durationMs [, loops [, yoyo]]
Animates the item position. loops=1 runs once; loops=0 loops forever; yoyo=TRUE reverses every other loop.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
loops | Optional parameter. If omitted, the command uses its internal default. |
yoyo | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.MOVE v, ball, 40, 180, 600, 180, 2500, 0, TRUEVEC.ANIM.OPACITY handle, itemId, o1, o2, durationMs [, loops [, yoyo]]
Animates item opacity between two values in range 0..1.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
loops | Optional parameter. If omitted, the command uses its internal default. |
yoyo | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.OPACITYVEC.ANIM.OPACITY_KEYFRAMES handle, itemId, "timeMs,opacity;timeMs,opacity;..." [, loops]
Animates item opacity using absolute time/value keyframes. This is useful for discrete states: switches, traffic lights, phase indicators, etc. loops=0 loops forever.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
loops | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.OPACITY_KEYFRAMES v, leverA, "0,1;5200,1;5201,0;10400,0", 0VEC.ANIM.OPACITY_PATH handle, itemId, keyframes [, loops]
Alias of VEC.ANIM.OPACITY_KEYFRAMES.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
loops | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.OPACITY_PATHVEC.ANIM.ORBIT handle, itemId, centerX, centerY, radius, durationMs [, startDeg [, endDeg [, loops [, yoyo]]]]
Animates an item on a circular orbit around a center point. Alias: VEC.ANIM.CIRCLE.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
startDeg | Optional parameter. If omitted, the command uses its internal default. |
endDeg | Optional parameter. If omitted, the command uses its internal default. |
loops | Optional parameter. If omitted, the command uses its internal default. |
yoyo | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.ORBIT v, moon, 400, 260, 120, 3000, 0, 360, 0, FALSEVEC.ANIM.PATH handle, itemId, "x,y;x,y;...", durationMs [, loops [, yoyo]]
Animates an item along a polyline trajectory. Very useful for physics/mathematics demonstrations. Alias: VEC.ANIM.TRAJECTORY.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
loops | Optional parameter. If omitted, the command uses its internal default. |
yoyo | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.PATH v, particle, "80,320;180,220;320,250;520,160", 4000, 0, TRUEVEC.ANIM.ROTATE handle, itemId, a1, a2, durationMs [, loops [, yoyo]]
Animates the item rotation in degrees.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
loops | Optional parameter. If omitted, the command uses its internal default. |
yoyo | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.ROTATEVEC.ANIM.ROTATE_PATH handle, itemId, "a;a;a;...", durationMs [, loops [, yoyo]]
Animates item rotation through a list of angle keyframes. This is more useful than linear rotation for physics, because the angle can come from a numerical simulation. Alias: VEC.ANIM.ROTATION_PATH.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
loops | Optional parameter. If omitted, the command uses its internal default. |
yoyo | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.ROTATE_PATH v, rod, angleList, 6000, 0, TRUEVEC.ANIM.ROTATION_PATH handle, itemId, angleList, durationMs [, loops [, yoyo]]
Alias of VEC.ANIM.ROTATE_PATH.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
loops | Optional parameter. If omitted, the command uses its internal default. |
yoyo | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.ROTATION_PATHVEC.ANIM.SCALE handle, itemId, s1, s2, durationMs [, loops [, yoyo]]
Animates uniform scale, useful for pulsating markers or attention cues.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
loops | Optional parameter. If omitted, the command uses its internal default. |
yoyo | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.SCALEVEC.ANIM.STATE handle, itemId, keyframes [, loops]
Alias of VEC.ANIM.OPACITY_KEYFRAMES, intended for visibility/state timelines.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
loops | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.STATEVEC.ANIM.STOP handle [, itemId]
Stops animations. Omit itemId or pass 0 to stop all animations on the canvas.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
itemId | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.STOP vVEC.ANIM.TRAJECTORY handle, itemId, "x,y;x,y;...", durationMs [, loops [, yoyo]]
Alias of VEC.ANIM.PATH.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
loops | Optional parameter. If omitted, the command uses its internal default. |
yoyo | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.TRAJECTORYVEC.ANIM.VISIBLE_TIMELINE handle, itemId, keyframes [, loops]
Alias of VEC.ANIM.OPACITY_KEYFRAMES.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
loops | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.VISIBLE_TIMELINEVEC.ARROW handle, x1, y1, x2, y2 [, headSize]
Adds a line with a simple arrow head, useful for annotations and motion/vector diagrams.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
headSize | Optional parameter. If omitted, the command uses its internal default. |
VEC.ARROW v, 80, 420, 300, 360, 18VEC.ARROW_ID(handle, x1, y1, x2, y2 [, headSize])
Function form of VEC.ARROW. It returns the item id.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
headSize | Optional parameter. If omitted, the command uses its internal default. |
value = VEC.ARROW_ID(handle, x1, y1, x2, y2 [, headSize])VEC.AXES handle [, originX [, originY [, tickStep [, color [, width]]]]]
Draws X/Y axes with optional ticks. This is intentionally simple and script-friendly.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
originX | Optional parameter. If omitted, the command uses its internal default. |
originY | Optional parameter. If omitted, the command uses its internal default. |
tickStep | Optional parameter. If omitted, the command uses its internal default. |
color | Optional plot/drawing color value. |
width | Optional parameter. If omitted, the command uses its internal default. |
VEC.AXES v, 60, 420, 50, "#444444", 1.5VEC.BATCH handle [, enabled]
Temporarily freezes viewport repaints/info-label updates while many vector items are created. Use VEC.BATCH v, TRUE before a heavy plot block and VEC.BATCH v, FALSE after it. Alias: VEC.FREEZE.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
enabled | Boolean switch: TRUE/1 enables the option, FALSE/0 disables it. |
VEC.BATCH v, TRUE
' heavy plot commands...
VEC.BATCH v, FALSE
VEC.SYNC v, 40VEC.BRUSH handle [, color|TRANSPARENT]
Sets the fill brush for rectangles and ellipses. Use TRANSPARENT/NONE to draw outlines only.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
color | Optional plot/drawing color value. |
TRANSPARENT | Optional parameter. If omitted, the command uses its internal default. |
VEC.BRUSH v, "#ffeeaa"VEC.CAPTURE_AVI handle, path, frames [, fps [, transparent [, fourcc]]]
Captures the animated vector canvas directly to an AVI file. Default codec is MJPG; aliases: VEC.SAVE_AVI and VEC.EXPORT_AVI.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
fps | Optional parameter. If omitted, the command uses its internal default. |
transparent | Optional parameter. If omitted, the command uses its internal default. |
fourcc | Optional parameter. If omitted, the command uses its internal default. |
VEC.CAPTURE_AVI v, "out/orbit.avi", 180, 30, FALSE, "MJPG"VEC.CAPTURE_FRAMES handle, folder, prefix, frames [, delayMs [, transparent]]
Alias of VEC.CAPTURE_PNG.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
delayMs | Optional parameter. If omitted, the command uses its internal default. |
transparent | Optional parameter. If omitted, the command uses its internal default. |
VEC.CAPTURE_FRAMESVEC.CAPTURE_PNG handle, folder, prefix, frames [, delayMs [, transparent]]
Captures a sequence of PNG frames from the current canvas while active animations are running. Aliases: VEC.CAPTURE_FRAMES and VEC.EXPORT_FRAMES.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
delayMs | Optional parameter. If omitted, the command uses its internal default. |
transparent | Optional parameter. If omitted, the command uses its internal default. |
VEC.CAPTURE_PNG v, "out/orbit_frames", "orbit", 90, 33, FALSEVEC.CAPTURE_STACK(handle, frames [, fps [, transparent]])
Captures the animated vector canvas into a stack/image-sequence object that can be passed to GUI.SHOW or saved by the normal image/stack pipeline. Alias: VEC.STACK.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
fps | Optional parameter. If omitted, the command uses its internal default. |
transparent | Optional parameter. If omitted, the command uses its internal default. |
stack = VEC.CAPTURE_STACK(v, 120, 30, FALSE)
GUI.SHOW stack, "Vector animation stack"VEC.CLEAR handle
Removes all vector items from the selected canvas without destroying the window.
VEC.CLEAR vVEC.CLOSE handle
Closes a vector canvas window.
VEC.CLOSE vVEC.CREATE(width, height [, title [, background]])
Creates an interactive vector canvas and returns a numeric handle. The canvas is a scriptable QGraphicsScene-based whiteboard that can be exported to SVG or rasterized back to a Mat.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
title | Optional GUI/DataPlot window title. |
background | Initial canvas background value. |
v = VEC.CREATE(800, 500, "Vector demo", "white")VEC.ELLIPSE handle, x, y, w, h
Adds an ellipse inscribed in the rectangle x,y,w,h using the current pen and brush.
VEC.ELLIPSE v, 260, 70, 160, 90VEC.ELLIPSE_ID(handle, x, y, w, h)
Function form of VEC.ELLIPSE. It adds the ellipse and returns its item id.
ball = VEC.ELLIPSE_ID(v, 60, 180, 40, 40)VEC.EXPORT_AVI handle, path, frames [, fps [, transparent [, fourcc]]]
Alias of VEC.CAPTURE_AVI.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
fps | Optional parameter. If omitted, the command uses its internal default. |
transparent | Optional parameter. If omitted, the command uses its internal default. |
fourcc | Optional parameter. If omitted, the command uses its internal default. |
VEC.EXPORT_AVIVEC.EXPORT_FRAMES handle, folder, prefix, frames [, delayMs [, transparent]]
Alias of VEC.CAPTURE_PNG.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
delayMs | Optional parameter. If omitted, the command uses its internal default. |
transparent | Optional parameter. If omitted, the command uses its internal default. |
VEC.EXPORT_FRAMESVEC.FLUSH handle [, maxMs]
Alias of VEC.SYNC.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
maxMs | Optional parameter. If omitted, the command uses its internal default. |
VEC.FLUSHVEC.FONT handle [, family [, pointSize [, bold [, italic]]]]
Sets the current font used by VEC.TEXT.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
family | Optional parameter. If omitted, the command uses its internal default. |
pointSize | Optional parameter. If omitted, the command uses its internal default. |
bold | Optional parameter. If omitted, the command uses its internal default. |
italic | Optional parameter. If omitted, the command uses its internal default. |
VEC.FONT v, "Arial", 18, TRUE, FALSEVEC.FRAME(handle [, transparent])
Alias of VEC.MAT, named for animated/capture workflows: returns the current canvas frame as Mat.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
transparent | Optional parameter. If omitted, the command uses its internal default. |
value = VEC.FRAME(handle [, transparent])VEC.FRAME_PNG handle, path [, transparent]
Alias of VEC.SAVE_FRAME.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
transparent | Optional parameter. If omitted, the command uses its internal default. |
VEC.FRAME_PNGVEC.FREEZE handle [, enabled]
Alias of VEC.BATCH.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
enabled | Boolean switch: TRUE/1 enables the option, FALSE/0 disables it. |
VEC.FREEZEVEC.GRID handle, step [, color [, width]]
Draws a lightweight grid as one vector item. It is useful as a plotting/geometry reference layer.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
color | Optional plot/drawing color value. |
width | Optional parameter. If omitted, the command uses its internal default. |
VEC.GRID v, 50, "#dddddd", 1VEC.IMAGE handle, image [, x [, y [, w [, h [, opacity]]]]]
Inserts the first frame of an image/stack into the vector canvas. If w and h are positive the image is scaled; opacity is 0..1.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
x | Optional parameter. If omitted, the command uses its internal default. |
y | Optional parameter. If omitted, the command uses its internal default. |
w | Optional output width, or ROI width when part of x,y,w,h. |
h | Optional output height, or ROI height when part of x,y,w,h. |
opacity | Optional parameter. If omitted, the command uses its internal default. |
VEC.IMAGE v, img, 0, 0, 512, 512, 0.35VEC.IMAGE_ID(handle, image [, x [, y [, w [, h [, opacity]]]]])
Function form of VEC.IMAGE. It adds the image layer and returns its item id.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
x | Optional parameter. If omitted, the command uses its internal default. |
y | Optional parameter. If omitted, the command uses its internal default. |
w | Optional output width, or ROI width when part of x,y,w,h. |
h | Optional output height, or ROI height when part of x,y,w,h. |
opacity | Optional parameter. If omitted, the command uses its internal default. |
value = VEC.IMAGE_ID(handle, image [, x [, y [, w [, h [, opacity]]]]])VEC.ITEM.CENTER_X(handle, itemId)
Returns the current scene-center x coordinate of a vector item.
value = VEC.ITEM.CENTER_X(handle, itemId)VEC.ITEM.CENTER_Y(handle, itemId)
Returns the current scene-center y coordinate of a vector item.
value = VEC.ITEM.CENTER_Y(handle, itemId)VEC.ITEM.DRAGGABLE handle, itemId [, enabled]
Alias of VEC.ITEM.MOVABLE.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
enabled | Boolean switch: TRUE/1 enables the option, FALSE/0 disables it. |
VEC.ITEM.DRAGGABLEVEC.ITEM.MOVABLE handle, itemId [, enabled]
Makes an item draggable with the mouse inside the vector canvas. Movable items are also made selectable. Alias: VEC.ITEM.DRAGGABLE.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
enabled | Boolean switch: TRUE/1 enables the option, FALSE/0 disables it. |
VEC.ITEM.MOVABLE v, chargeItem, TRUEVEC.ITEM.MOVE handle, itemId, x, y
Alias of VEC.ITEM.POS.
VEC.ITEM.MOVEVEC.ITEM.OPACITY handle, itemId, opacity
Sets opacity 0..1 for one existing item.
VEC.ITEM.OPACITYVEC.ITEM.OPACITY_VALUE(handle, itemId)
Returns the current opacity value of a vector item.
value = VEC.ITEM.OPACITY_VALUE(handle, itemId)VEC.ITEM.ORIGIN handle, itemId, x, y
Sets the local transform origin/pivot for rotation and scale. Alias: VEC.ITEM.PIVOT. This is important for physical systems such as pendulums, levers and rotating arms.
VEC.ITEM.ORIGIN v, rod, 0, 0VEC.ITEM.PIVOT handle, itemId, x, y
Alias of VEC.ITEM.ORIGIN.
VEC.ITEM.PIVOTVEC.ITEM.POS handle, itemId, x, y
Sets the position transform of an existing vector item. Alias: VEC.ITEM.MOVE.
VEC.ITEM.POS v, ball, 100, 160VEC.ITEM.ROTATE handle, itemId, angleDeg
Rotates an existing vector item around its local bounding-box center.
VEC.ITEM.ROTATEVEC.ITEM.ROTATION(handle, itemId)
Returns the current rotation angle of a vector item in degrees.
value = VEC.ITEM.ROTATION(handle, itemId)VEC.ITEM.SCALE handle, itemId, sx [, sy]
Scales an existing item around its local bounding-box center. If sy is omitted, sx is used for both axes.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
sy | Optional parameter. If omitted, the command uses its internal default. |
VEC.ITEM.SCALEVEC.ITEM.SELECTABLE handle, itemId [, enabled]
Enables or disables mouse selection for an existing vector item.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
enabled | Boolean switch: TRUE/1 enables the option, FALSE/0 disables it. |
VEC.ITEM.SELECTABLE v, labelItem, TRUEVEC.ITEM.X(handle, itemId)
Returns the current x position transform of a vector item.
value = VEC.ITEM.X(handle, itemId)VEC.ITEM.Y(handle, itemId)
Returns the current y position transform of a vector item.
value = VEC.ITEM.Y(handle, itemId)VEC.ITEM.Z handle, itemId, z
Changes the z-order of an existing item.
VEC.ITEM.ZVEC.ITEM_COUNT(handle)
Returns the number of registered vector items in the canvas.
PRINT VEC.ITEM_COUNT(v)VEC.LAST_ITEM(handle)
Returns the numeric id of the last vector item created on the canvas. This id can be used by VEC.ITEM.* and VEC.ANIM.* commands.
id = VEC.LAST_ITEM(v)VEC.LAYER handle [, name]
Alias of VEC.LAYER.SELECT.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
name | Optional parameter. If omitted, the command uses its internal default. |
VEC.LAYERVEC.LAYER.CLEAR handle [, name]
Deletes all vector items assigned to the selected layer. Useful for interactive redraw loops where a dynamic overlay is recalculated.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
name | Optional parameter. If omitted, the command uses its internal default. |
VEC.LAYER.CLEAR v, "field"VEC.LAYER.SELECT handle [, name]
Selects the current drawing layer. New vector items are assigned to that layer. The default layer is named default.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
name | Optional parameter. If omitted, the command uses its internal default. |
VEC.LAYER.SELECT v, "field"VEC.LAYER.SHOW handle, name [, visible]
Alias of VEC.LAYER.VISIBLE.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
visible | Optional parameter. If omitted, the command uses its internal default. |
VEC.LAYER.SHOWVEC.LAYER.VISIBLE handle, name [, visible]
Shows or hides all items belonging to a layer. Alias: VEC.LAYER.SHOW.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
visible | Optional parameter. If omitted, the command uses its internal default. |
VEC.LAYER.VISIBLE v, "field", TRUEVEC.LINE handle, x1, y1, x2, y2
Adds a line using the current pen.
VEC.LINE v, 20, 20, 300, 120VEC.LINE_ID(handle, x1, y1, x2, y2)
Function form of VEC.LINE. It adds the line and returns its item id.
line = VEC.LINE_ID(v, 20, 20, 200, 120)VEC.MAT(handle [, transparent])
Rasterizes the current vector canvas and returns it as an image/Mat value. By default it produces a normal 3-channel BGR Mat; with transparent=TRUE it keeps an alpha channel and makes the background transparent.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
transparent | Optional parameter. If omitted, the command uses its internal default. |
overlay = VEC.MAT(v, TRUE)
GUI.SHOW overlay, "Vector overlay"VEC.NEW(width, height [, title [, background]])
Alias of VEC.CREATE.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
title | Optional GUI/DataPlot window title. |
background | Initial canvas background value. |
value = VEC.NEW(width, height [, title [, background]])VEC.OPACITY handle, opacity
Sets the default opacity for following vector items. Opacity is 0..1.
VEC.OPACITY v, 0.65VEC.PEN handle, color [, width [, style]]
Sets the current stroke color, width and style for following vector primitives. Colors are Qt names or #RRGGBB. Styles: SOLID, DASH, DOT, DASHDOT, DASHDOTDOT, NONE.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
width | Optional parameter. If omitted, the command uses its internal default. |
style | Optional parameter. If omitted, the command uses its internal default. |
VEC.PEN v, "red", 2, "SOLID"VEC.PLOT.AREA handle, left, top, width, height, "x,y;x,y;...", xMin, xMax, yMin, yMax [, baseline]
Draws a filled area under a data polyline down to a baseline. Use VEC.BRUSH before the command to choose the fill color; alias: VEC.PLOT.FILL.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
baseline | Optional parameter. If omitted, the command uses its internal default. |
VEC.BRUSH v, "#ddeeff"
VEC.PLOT.AREA v, 70, 55, 620, 300, "0,0;1,2;2,1;3,3", 0, 3, 0, 4, 0VEC.PLOT.AXES handle, left, top, width, height, xMin, xMax, yMin, yMax [, xTicks [, yTicks [, grid]]]]
Draws a scientific plot frame in the given rectangle, including border, tick marks, optional grid and zero axes when visible in range.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
xTicks | Optional parameter. If omitted, the command uses its internal default. |
yTicks | Optional parameter. If omitted, the command uses its internal default. |
grid | Optional parameter. If omitted, the command uses its internal default. |
VEC.PLOT.AXES v, 60, 50, 520, 300, -6.28, 6.28, -1.5, 1.5, 8, 6, TRUEVEC.PLOT.BAR handle, left, top, width, height, values, yMin, yMax [, barFill]
Alias of VEC.PLOT.BARS.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
barFill | Optional parameter. If omitted, the command uses its internal default. |
VEC.PLOT.BARVEC.PLOT.BARS handle, left, top, width, height, "v1;v2;...", yMin, yMax [, barFill]
Draws a categorical bar plot from a numeric list. The current brush fills the bars, and the current pen outlines them.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
barFill | Optional parameter. If omitted, the command uses its internal default. |
VEC.BRUSH v, "#88ccee"
VEC.PLOT.BARS v, 80, 80, 280, 220, "2;5;3;7;4", 0, 8, 0.75VEC.PLOT.FILL handle, left, top, width, height, points, xMin, xMax, yMin, yMax [, baseline]
Alias of VEC.PLOT.AREA.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
baseline | Optional parameter. If omitted, the command uses its internal default. |
VEC.PLOT.FILLVEC.PLOT.FUNCTION handle, left, top, width, height, expression, xMin, xMax [, samples [, yMin [, yMax [, autoScale]]]]
Evaluates a function of x and plots it as a polyline. The expression can use normal math functions such as SIN, COS, EXP, SQRT, etc. When autoScale is TRUE the y range is estimated from the sampled values.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
samples | Optional parameter. If omitted, the command uses its internal default. |
yMin | Optional parameter. If omitted, the command uses its internal default. |
yMax | Optional parameter. If omitted, the command uses its internal default. |
autoScale | Optional parameter. If omitted, the command uses its internal default. |
VEC.PLOT.FUNCTION v, 60, 50, 520, 300, "MATH.SIN(x)", -6.28, 6.28, 500, -1.2, 1.2, FALSEVEC.PLOT.FUNCTION_ID(handle, left, top, width, height, expression, xMin, xMax [, samples [, yMin [, yMax [, autoScale]]]])
Function form of VEC.PLOT.FUNCTION. It returns the created item id of the plotted curve.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
samples | Optional parameter. If omitted, the command uses its internal default. |
yMin | Optional parameter. If omitted, the command uses its internal default. |
yMax | Optional parameter. If omitted, the command uses its internal default. |
autoScale | Optional parameter. If omitted, the command uses its internal default. |
curve = VEC.PLOT.FUNCTION_ID(v, 60, 50, 520, 300, "MATH.SIN(x)", -6.28, 6.28, 500, -1.2, 1.2, FALSE)VEC.PLOT.HIST handle, left, top, width, height, values [, bins [, xMin [, xMax [, yMax [, barFill]]]]]
Alias of VEC.PLOT.HISTOGRAM.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
bins | Number of histogram bins. |
xMin | Optional parameter. If omitted, the command uses its internal default. |
xMax | Optional parameter. If omitted, the command uses its internal default. |
yMax | Optional parameter. If omitted, the command uses its internal default. |
barFill | Optional parameter. If omitted, the command uses its internal default. |
VEC.PLOT.HISTVEC.PLOT.HISTOGRAM handle, left, top, width, height, "v1;v2;..." [, bins [, xMin [, xMax [, yMax [, barFill]]]]]
Builds a histogram from a numeric list. If xMin=xMax the range is auto-estimated; if yMax<=0 the histogram height is auto-scaled. Alias: VEC.PLOT.HIST.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
bins | Number of histogram bins. |
xMin | Optional parameter. If omitted, the command uses its internal default. |
xMax | Optional parameter. If omitted, the command uses its internal default. |
yMax | Optional parameter. If omitted, the command uses its internal default. |
barFill | Optional parameter. If omitted, the command uses its internal default. |
VEC.PLOT.HISTOGRAM v, 410, 80, 280, 220, "0.1;0.4;0.5;1.2;1.3;1.8", 8, 0, 2, 0, 0.9VEC.PLOT.LABELS handle, left, top, width, height [, title [, xLabel [, yLabel [, fontSize]]]]
Adds title, X label and Y label to a plot rectangle. The Y label is rotated vertically.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
title | Optional GUI/DataPlot window title. |
xLabel | Optional parameter. If omitted, the command uses its internal default. |
yLabel | Optional parameter. If omitted, the command uses its internal default. |
fontSize | Optional parameter. If omitted, the command uses its internal default. |
VEC.PLOT.LABELS v, 70, 55, 620, 300, "Oscillazioni", "x", "ampiezza", 12VEC.PLOT.LEGEND handle, left, top, "color|label;color|label;..." [, fontSize [, lineLength [, lineStep]]]
Draws a small legend box. Each item uses color|label syntax; comma is also accepted as separator.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
fontSize | Optional parameter. If omitted, the command uses its internal default. |
lineLength | Optional parameter. If omitted, the command uses its internal default. |
lineStep | Optional parameter. If omitted, the command uses its internal default. |
VEC.PLOT.LEGEND v, 500, 80, "#0033aa|MATH.SIN(x);#cc0000|0.5*MATH.COS(2*x)", 10VEC.PLOT.PARAMETRIC handle, left, top, width, height, exprX, exprY, tMin, tMax [, samples [, xMin [, xMax [, yMin [, yMax [, autoScale]]]]]]
Evaluates a parametric curve using variable t and plots it in the selected rectangle. Useful for circles, spirals, Lissajous figures and many mathematical curves.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
samples | Optional parameter. If omitted, the command uses its internal default. |
xMin | Optional parameter. If omitted, the command uses its internal default. |
xMax | Optional parameter. If omitted, the command uses its internal default. |
yMin | Optional parameter. If omitted, the command uses its internal default. |
yMax | Optional parameter. If omitted, the command uses its internal default. |
autoScale | Optional parameter. If omitted, the command uses its internal default. |
VEC.PLOT.PARAMETRIC v, 60, 50, 520, 300, "MATH.COS(t)", "MATH.SIN(t)", 0, 6.28318, 600, -1.2, 1.2, -1.2, 1.2, FALSEVEC.PLOT.PARAMETRIC_ID(handle, left, top, width, height, exprX, exprY, tMin, tMax [, samples [, xMin [, xMax [, yMin [, yMax [, autoScale]]]]]])
Function form of VEC.PLOT.PARAMETRIC. It returns the created item id of the plotted curve.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
samples | Optional parameter. If omitted, the command uses its internal default. |
xMin | Optional parameter. If omitted, the command uses its internal default. |
xMax | Optional parameter. If omitted, the command uses its internal default. |
yMin | Optional parameter. If omitted, the command uses its internal default. |
yMax | Optional parameter. If omitted, the command uses its internal default. |
autoScale | Optional parameter. If omitted, the command uses its internal default. |
value = VEC.PLOT.PARAMETRIC_ID(handle, left, top, width, height, exprX, exprY, tMin, tMax [, samples [, xMin [, xMax [, yMin [, yMax [, autoScale]]]]]])VEC.PLOT.POINTS handle, left, top, width, height, "x,y;x,y;...", xMin, xMax, yMin, yMax [, closed]
Alias of VEC.PLOT.XY.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
closed | Optional parameter. If omitted, the command uses its internal default. |
VEC.PLOT.POINTSVEC.PLOT.SCATTER handle, left, top, width, height, "x,y;x,y;...", xMin, xMax, yMin, yMax [, radius]
Plots a list of data-space points as vector point markers in the selected plot rectangle.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
radius | Kernel radius or neighborhood radius used by the filter. |
VEC.PLOT.SCATTER v, 70, 55, 620, 300, "-3,-1;-1,0;0,1;2,0.2;3,1.3", -3, 3, -2, 2, 4VEC.PLOT.TICKS handle, left, top, width, height, xMin, xMax, yMin, yMax [, xTicks [, yTicks [, decimals [, fontSize]]]]
Adds numeric tick labels around a VEC.PLOT.AXES rectangle. decimals=-1 uses compact general formatting.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
xTicks | Optional parameter. If omitted, the command uses its internal default. |
yTicks | Optional parameter. If omitted, the command uses its internal default. |
decimals | Optional parameter. If omitted, the command uses its internal default. |
fontSize | Optional parameter. If omitted, the command uses its internal default. |
VEC.PLOT.TICKS v, 70, 55, 620, 300, -6.28, 6.28, -1.5, 1.5, 8, 6, 2, 9VEC.PLOT.XY handle, left, top, width, height, "x,y;x,y;...", xMin, xMax, yMin, yMax [, closed]
Plots a polyline from data-space points into the specified plot rectangle. Alias: VEC.PLOT.POINTS.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
closed | Optional parameter. If omitted, the command uses its internal default. |
VEC.PLOT.XY v, 60, 50, 520, 300, "-3,-1;-1,0;0,1;2,0.2;3,1.3", -3, 3, -2, 2, FALSEVEC.PLOT.XY_ID(handle, left, top, width, height, points, xMin, xMax, yMin, yMax [, closed])
Function form of VEC.PLOT.XY. It plots the data polyline and returns the created item id.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
closed | Optional parameter. If omitted, the command uses its internal default. |
value = VEC.PLOT.XY_ID(handle, left, top, width, height, points, xMin, xMax, yMin, yMax [, closed])VEC.PNG handle, path
Alias of VEC.SAVE_PNG.
VEC.PNGVEC.POINT handle, x, y [, radius]
Adds a small circular point marker using the current pen color.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
radius | Kernel radius or neighborhood radius used by the filter. |
VEC.POINT v, 250, 120, 4VEC.POINT_ID(handle, x, y [, radius])
Function form of VEC.POINT. It adds the point marker and returns its item id.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
radius | Kernel radius or neighborhood radius used by the filter. |
value = VEC.POINT_ID(handle, x, y [, radius])VEC.POLYGON handle, "x,y;x,y;..."
Adds a closed polygon using the current pen and brush.
VEC.POLYGON v, "400,180;520,140;560,260;430,300"VEC.POLYGON_ID(handle, points)
Function form of VEC.POLYGON. It returns the item id.
value = VEC.POLYGON_ID(handle, points)VEC.POLYLINE handle, "x,y;x,y;..."
Adds an open polyline. The point list is a compact string using semicolon-separated x,y pairs.
VEC.POLYLINE v, "20,240;120,180;220,210;340,110"VEC.POLYLINE_ID(handle, points)
Function form of VEC.POLYLINE. It returns the item id.
value = VEC.POLYLINE_ID(handle, points)VEC.RECT handle, x, y, w, h
Adds a rectangle using the current pen and brush.
VEC.RECT v, 40, 70, 180, 90VEC.RECT_ID(handle, x, y, w, h)
Function form of VEC.RECT. It adds the rectangle and returns its item id.
value = VEC.RECT_ID(handle, x, y, w, h)VEC.SAVE_AVI handle, path, frames [, fps [, transparent [, fourcc]]]
Alias of VEC.CAPTURE_AVI.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
fps | Optional parameter. If omitted, the command uses its internal default. |
transparent | Optional parameter. If omitted, the command uses its internal default. |
fourcc | Optional parameter. If omitted, the command uses its internal default. |
VEC.SAVE_AVIVEC.SAVE_FRAME handle, path [, transparent]
Captures the current animated canvas state to a PNG frame. With transparent=TRUE the background is transparent. Alias: VEC.FRAME_PNG.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
transparent | Optional parameter. If omitted, the command uses its internal default. |
VEC.SAVE_FRAME v, "out/frame_00000.png", TRUEVEC.SAVE_PNG handle, path
Rasterizes and saves the current vector canvas as a PNG preview.
VEC.SAVE_PNG v, "out/vector_demo.png"VEC.SAVE_SVG handle, path
Exports the vector canvas to SVG. This keeps vector primitives scalable and is ideal for reports/documentation.
VEC.SAVE_SVG v, "out/vector_demo.svg"VEC.STACK(handle, frames [, fps [, transparent]])
Alias of VEC.CAPTURE_STACK.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
fps | Optional parameter. If omitted, the command uses its internal default. |
transparent | Optional parameter. If omitted, the command uses its internal default. |
value = VEC.STACK(handle, frames [, fps [, transparent]])VEC.SVG handle, path
Alias of VEC.SAVE_SVG.
VEC.SVGVEC.SYNC handle [, maxMs]
Processes pending Qt GUI events for a bounded time. Use it after heavy vector scene creation and before export/animation when a script builds many items continuously. maxMs is clamped to 1..250 ms. Alias: VEC.FLUSH.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
maxMs | Optional parameter. If omitted, the command uses its internal default. |
VEC.SYNC v, 50VEC.TEXT handle, x, y, text
Adds a text item using the current pen color and current font.
VEC.TEXT v, 50, 40, "cvBasic VEC canvas"VEC.TEXT_ID(handle, x, y, text)
Function form of VEC.TEXT. It adds the text and returns its item id.
value = VEC.TEXT_ID(handle, x, y, text)VEC.TO_MAT(handle [, transparent])
Alias of VEC.MAT.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
transparent | Optional parameter. If omitted, the command uses its internal default. |
value = VEC.TO_MAT(handle [, transparent])VEC.Z handle, z
Sets the default z-order for following vector items. Higher values are drawn above lower values.
VEC.Z v, 10