GL namespace

OpenGL 3D scenes, volume visualization, meshes and exports.

Symbols in this namespace: 87

SymbolKindCategoryDescription
GL.ARROWCommandOpenGL 3D commandsAdds a 3D vector arrow starting at x,y,z and pointing by dx,dy,dz.
GL.AUTOROTATECommandOpenGL 3D commandsStarts or stops the GL viewer internal autorotation timer.
GL.AXESCommandOpenGL 3D commandsAdds RGB XYZ axes: X red, Y green, Z blue.
GL.BACKGROUNDCommandOpenGL 3D commandsSets the GL viewer background color. Accepts Qt color names or #RRGGBB values.
GL.BOUNDSFunctionOpenGL 3D functionsReturns scene bounds as minX,minY,minZ;maxX,maxY,maxZ, useful for reports and sanity checks.
GL.CAPTIONCommandOpenGL 3D commandsSets a scene caption shown in the GL overlay and included in GL.INFO/GL.REPORT.
GL.CAPTURECommandOpenGL 3D commandsAlias of GL.CAPTURE_FRAME.
GL.CAPTURE_FRAMECommandOpenGL 3D commandsSaves a frame snapshot. pathPattern may contain %04d, %03d, %02d, %d or {frame}. Alias: GL.CAPTURE.
GL.CENTERCommandOpenGL 3D commandsRecenters the camera on current bounds without changing rotation.
GL.CLEARCommandOpenGL 3D commandsRemoves all geometry from a GL scene and resets its automatic bounds.
GL.CLOSECommandOpenGL 3D commandsCloses a GL viewer by handle.
GL.COLORCommandOpenGL 3D commandsChanges object color. For gradient surfaces this switches the object to a flat color.
GL.COLORMAPCommandOpenGL 3D commandsApplies a preview colormap to all gradient GL.SURFACE/GL.HEIGHTFIELD objects. Supported modes: gray, hot, blue-red, jet, viridis, thermal, custom.
GL.CREATEFunctionOpenGL 3D functionsCreates an interactive OpenGL MDI viewer for scientific 3D geometry and returns a numeric handle. The viewer supports mouse/keyboard rotation, pan, zoom, fit, grid/axes toggle and snapshot.
GL.DELETECommandOpenGL 3D commandsDeletes a GL object previously identified through GL.LAST_ID.
GL.EXPORT_CSVCommandOpenGL 3D commandsExports GL geometry as a simple CSV table of VERTEX and TRI records. It is easier to inspect than OBJ/PLY and complements GL.SAVE_SCENE.
GL.EXPORT_OBJCommandOpenGL 3D commandsExports visible GL geometry to Wavefront OBJ. If objectId is supplied, only that GL object is exported. Lines are written as OBJ l records; triangle meshes/surfaces are written as faces.
GL.EXPORT_OBJECT_CSVCommandOpenGL 3D commandsExports one selected GL object to a compact CSV geometry table.
GL.EXPORT_OBJECT_OBJCommandOpenGL 3D commandsExports one selected GL object to Wavefront OBJ.
GL.EXPORT_OBJECT_PLYCommandOpenGL 3D commandsExports one selected GL object to ASCII PLY.
GL.EXPORT_PLYCommandOpenGL 3D commandsExports visible GL vertices and triangular faces to ASCII PLY. Point clouds are exported as vertices; lines are not represented as edges in this first lightweight exporter.
GL.EXPORT_SCENECommandOpenGL 3D commandsPublic cvBasic command exported from the live interpreter registry. Documentation entry auto-generated from runtime metadata.
GL.FITCommandOpenGL 3D commandsRecomputes scene bounds, recenters the camera and resets zoom/pan while preserving the current rotation.
GL.FLUSHCommandOpenGL 3D commandsAlias of GL.SYNC.
GL.FRAMECommandOpenGL 3D commandsProcesses GUI events for one animation frame. Without maxMs it uses the delay configured by GL.SET_FPS.
GL.GRIDCommandOpenGL 3D commandsAdds a scientific reference grid on plane XY, XZ or YZ.
GL.HEIGHTFIELDCommandOpenGL 3D commandsConverts an image or stack frame into a shaded 3D heightfield. X/Y are image coordinates centered around the origin; Z is normalized luminance mapped between zMin and zMax. sampleStep reduces large images.
GL.HIDECommandOpenGL 3D commandsTemporarily hides a GL object without deleting it.
GL.IMAGE_POINTSCommandOpenGL 3D commandsAlias of GL.POINTCLOUD_FROM_IMAGE.
GL.IMAGE_SURFACECommandOpenGL 3D commandsAlias of GL.HEIGHTFIELD, intended for OpenCV image-to-surface visualizations.
GL.IMPORT_OBJCommandOpenGL 3D commandsImports a simple Wavefront OBJ mesh. v and f records are supported; polygonal faces are triangulated as fans. If the OBJ has vertices but no faces, it is imported as a point cloud.
GL.INFOFunctionOpenGL 3D functionsReturns a multi-line diagnostic summary of the GL scene: title, caption, bounds, camera, renderer, item/object counts and visible primitive totals.
GL.ISOSURFACECommandOpenGL 3D commandsExtracts a lightweight triangulated isosurface from a W x H x T stack using a marching-tetrahedra pass. threshold01 is normalized over the sampled volume.
GL.ITEM_COUNTFunctionOpenGL 3D functionsReturns the number of internal GL items currently stored in a scene, including grids, axes and labels.
GL.LABELCommandOpenGL 3D commandsAlias of GL.TEXT.
GL.LAST_IDFunctionOpenGL 3D functionsReturns the object id assigned to the last GL object added to the scene. Useful before GL.HIDE, GL.SHOW, GL.DELETE or style changes.
GL.LINECommandOpenGL 3D commandsAdds one 3D line segment to the scene.
GL.LOAD_OBJCommandOpenGL 3D commandsImports a simple Wavefront OBJ mesh. v and f records are supported; polygonal faces are triangulated as fans. If the OBJ has vertices but no faces, it is imported as a point cloud.
GL.MARCHING_CUBESCommandOpenGL 3D commandsAlias of GL.ISOSURFACE. The current implementation uses marching tetrahedra internally to avoid large lookup tables while still producing triangular isosurfaces.
GL.MARCHING_TETRAHEDRACommandOpenGL 3D commandsExtracts a lightweight triangulated isosurface from a W x H x T stack using a marching-tetrahedra pass. threshold01 is normalized over the sampled volume.
GL.MESHCommandOpenGL 3D commandsAdds a triangular mesh from a vertex list and a face list. Face indices may be 0-based or 1-based; polygons with more than three indices are triangulated as fans.
GL.NEWFunctionOpenGL 3D functionsAlias of GL.CREATE.
GL.OBJECT_COUNTFunctionOpenGL 3D functionsReturns the number of user geometry objects, excluding helper grids and axes.
GL.POINTCommandOpenGL 3D commandsAdds one 3D point to the scene.
GL.POINTCLOUD_FROM_IMAGECommandOpenGL 3D commandsConverts bright pixels of an image frame into a sparse 3D point cloud. X/Y come from image coordinates, Z comes from normalized luminance times zScale.
GL.POINTCLOUD_FROM_STACKCommandOpenGL 3D commandsAlias of GL.VOXELS.
GL.POINTSCommandOpenGL 3D commandsAdds a batch of independent 3D points, useful for point clouds, samples and phase-space scatter plots.
GL.POLYLINECommandOpenGL 3D commandsAdds a connected 3D polyline from a semicolon/newline-separated list of x,y,z points.
GL.RAYMARCHCommandOpenGL 3D commandsAlias of GL.VOLUME. Practical slice/ray-sampling preview before heavier GPU 3D-texture ray marching.
GL.RENDER_MODECommandOpenGL 3D commandsSelects the GL renderer path. Modes: AUTO uses shader/VBO when available; MODERN requests the shader/VBO path; LEGACY forces the fixed-pipeline fallback.
GL.RENDERERFunctionOpenGL 3D functionsReturns the requested renderer mode, active renderer and shader/VBO initialization status.
GL.REPORTCommandOpenGL 3D commandsPublic cvBasic command exported from the live interpreter registry. Documentation entry auto-generated from runtime metadata.
GL.RESET_VIEWCommandOpenGL 3D commandsAlias of GL.RESETVIEW.
GL.RESETVIEWCommandOpenGL 3D commandsResets the GL viewer orientation, pan and zoom.
GL.ROTATECommandOpenGL 3D commandsAdds incremental camera rotation deltas to the current GL view. Useful inside animation loops.
GL.SAVE_SCENECommandOpenGL 3D commandsPublic cvBasic command exported from the live interpreter registry. Documentation entry auto-generated from runtime metadata.
GL.SET_COLORCommandOpenGL 3D commandsChanges object color. For gradient surfaces this switches the object to a flat color.
GL.SET_FPSCommandOpenGL 3D commandsSets the default frame delay used by GL.FRAME for this viewer.
GL.SET_SIZECommandOpenGL 3D commandsChanges point size or text size for compatible GL objects.
GL.SET_TITLECommandOpenGL 3D commandsChanges the GL MDI window title. Alias: GL.TITLE.
GL.SET_WIDTHCommandOpenGL 3D commandsChanges line width for line, polyline, grid, axes, arrow, wireframe and mesh-outline objects.
GL.SHADEDCommandOpenGL 3D commandsToggles the simple face-normal shading used by GL.SURFACE and GL.MESH.
GL.SHOWCommandOpenGL 3D commandsShows a previously hidden GL object.
GL.SIZECommandOpenGL 3D commandsChanges point size or text size for compatible GL objects.
GL.SLICECommandOpenGL 3D commandsDisplays an orthogonal X/Y/Z section of a stack as a triangulated relief surface. X/Y are image axes and Z is frame/time; scale extrudes luminance along the slice normal.
GL.SLICE_XCommandOpenGL 3D commandsDisplays the Y/T section at a fixed image column xIndex, useful for temporal stack inspection.
GL.SLICE_YCommandOpenGL 3D commandsDisplays the X/T section at a fixed image row yIndex, revealing temporal trajectories and rotating/moving patterns.
GL.SLICE_ZCommandOpenGL 3D commandsDisplays one normal image frame of the stack as a relief slice positioned at its temporal Z coordinate.
GL.SNAPSHOTCommandOpenGL 3D commandsSaves the current GL framebuffer to an image file such as PNG/JPG/BMP.
GL.STACK_POINTSCommandOpenGL 3D commandsDisplays a stack/image as a thresholded voxel-like point cloud. X/Y are image coordinates, Z is frame index times zStep.
GL.SURFACECommandOpenGL 3D commandsAdds a shaded triangulated surface from a row-major cols x rows grid of 3D points. The surface uses a simple z-gradient between lowColor and highColor.
GL.SYNCCommandOpenGL 3D commandsProcesses pending GUI events briefly after heavy GL scene construction.
GL.TEXTCommandOpenGL 3D commandsAdds a projected 3D label anchored at x,y,z. The label follows camera rotation and zoom.
GL.TITLECommandOpenGL 3D commandsAlias of GL.SET_TITLE.
GL.UPDATE_LINECommandOpenGL 3D commandsUpdates the endpoints of an existing line-segment object.
GL.UPDATE_MESHCommandOpenGL 3D commandsReplaces vertices/faces of an existing GL.MESH/GL.ISOSURFACE mesh object.
GL.UPDATE_POINTSCommandOpenGL 3D commandsReplaces the vertex list of an existing GL.POINT/GL.POINTS object without creating a new object. Useful for particle animation.
GL.UPDATE_POLYLINECommandOpenGL 3D commandsReplaces the points of an existing GL.POLYLINE object while preserving its color/width.
GL.UPDATE_SURFACECommandOpenGL 3D commandsReplaces the grid geometry of an existing GL.SURFACE/heightfield/slice object. Style and colormap are preserved.
GL.UPDATE_TEXTCommandOpenGL 3D commandsMoves and rewrites an existing GL.TEXT/GL.LABEL object.
GL.VIEWCommandOpenGL 3D commandsSets the initial 3D camera orientation and zoom. Users can still rotate/pan/zoom interactively.
GL.VOLUMECommandOpenGL 3D commandsAdds a CPU-built transparent volume-render mesh from a stack. Modes: alpha, threshold, mip. It uses per-vertex color/alpha and the GL alpha-blending renderer.
GL.VOLUME_RENDERCommandOpenGL 3D commandsAlias of GL.VOLUME.
GL.VOXELSCommandOpenGL 3D commandsDisplays a stack/image as a thresholded voxel-like point cloud. X/Y are image coordinates, Z is frame index times zStep.
GL.WAITCommandOpenGL 3D commandsProcesses pending GUI events for animation pacing with an explicit millisecond delay.
GL.WIDTHCommandOpenGL 3D commandsChanges line width for line, polyline, grid, axes, arrow, wireframe and mesh-outline objects.
GL.WIREFRAMECommandOpenGL 3D commandsToggles global wireframe display for GL.SURFACE and GL.MESH objects.

GL.ARROW

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.ARROW handle, x, y, z, dx, dy, dz [, color [, width [, headScale]]]

Adds a 3D vector arrow starting at x,y,z and pointing by dx,dy,dz.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
colorOptional plot/drawing color value.
widthOptional parameter. If omitted, the command uses its internal default.
headScaleOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.ARROW g, 0, 0, 0, 0, 50, 0, "#50dcff", 2, 0.18

GL.AUTOROTATE

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.AUTOROTATE handle [, enabled]

Starts or stops the GL viewer internal autorotation timer.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
enabledBoolean switch: TRUE/1 enables the option, FALSE/0 disables it.

Minimal example

GL.AUTOROTATE g, TRUE

GL.AXES

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.AXES handle [, length [, width]]

Adds RGB XYZ axes: X red, Y green, Z blue.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
lengthOptional parameter. If omitted, the command uses its internal default.
widthOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.AXES g, 100, 2

GL.BACKGROUND

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.BACKGROUND handle [, color]

Sets the GL viewer background color. Accepts Qt color names or #RRGGBB values.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
colorOptional plot/drawing color value.

Minimal example

GL.BACKGROUND g, "#101018"

GL.BOUNDS

FUNCTIONGLGUI / INTERACTIVE
Kind: Function   Category: OpenGL 3D functions   Namespace: GL

GL.BOUNDS(handle)

Returns scene bounds as minX,minY,minZ;maxX,maxY,maxZ, useful for reports and sanity checks.

Minimal example

PRINT GL.BOUNDS(g)

GL.CAPTION

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.CAPTION handle, caption

Sets a scene caption shown in the GL overlay and included in GL.INFO/GL.REPORT.

Minimal example

GL.CAPTION g, "Potential field with diagnostic bounds"

GL.CAPTURE

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.CAPTURE handle, pathPattern [, frameIndex]

Alias of GL.CAPTURE_FRAME.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
frameIndexOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.CAPTURE

GL.CAPTURE_FRAME

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.CAPTURE_FRAME handle, pathPattern [, frameIndex]

Saves a frame snapshot. pathPattern may contain %04d, %03d, %02d, %d or {frame}. Alias: GL.CAPTURE.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
frameIndexOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.CAPTURE_FRAME g, "frames/orbit_%04d.png", frame

GL.CENTER

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.CENTER handle

Recenters the camera on current bounds without changing rotation.

Minimal example

GL.CENTER g

GL.CLEAR

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.CLEAR handle

Removes all geometry from a GL scene and resets its automatic bounds.

Minimal example

GL.CLEAR g

GL.CLOSE

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.CLOSE handle

Closes a GL viewer by handle.

Minimal example

GL.CLOSE g

GL.COLOR

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.SET_COLOR handle, objectId, color

Changes object color. For gradient surfaces this switches the object to a flat color.

Minimal example

GL.COLOR

GL.COLORMAP

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.COLORMAP handle, mode

Applies a preview colormap to all gradient GL.SURFACE/GL.HEIGHTFIELD objects. Supported modes: gray, hot, blue-red, jet, viridis, thermal, custom.

Minimal example

GL.COLORMAP g, "viridis"

GL.CREATE

FUNCTIONGLGUI / INTERACTIVE
Kind: Function   Category: OpenGL 3D functions   Namespace: GL

GL.CREATE([title [, width [, height [, background]]]])

Creates an interactive OpenGL MDI viewer for scientific 3D geometry and returns a numeric handle. The viewer supports mouse/keyboard rotation, pan, zoom, fit, grid/axes toggle and snapshot.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
titleOptional GUI/DataPlot window title.
widthOptional parameter. If omitted, the command uses its internal default.
heightOptional parameter. If omitted, the command uses its internal default.
backgroundInitial canvas background value.

Minimal example

g = GL.CREATE("3D scene", 900, 700, "#101018")

GL.DELETE

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.DELETE handle, objectId

Deletes a GL object previously identified through GL.LAST_ID.

Minimal example

GL.DELETE g, id

GL.EXPORT_CSV

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.EXPORT_CSV handle, path [, objectId]

Exports GL geometry as a simple CSV table of VERTEX and TRI records. It is easier to inspect than OBJ/PLY and complements GL.SAVE_SCENE.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
objectIdOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.EXPORT_CSV g, "out/scene_geometry.csv"

GL.EXPORT_OBJ

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.EXPORT_OBJ handle, path [, objectId]

Exports visible GL geometry to Wavefront OBJ. If objectId is supplied, only that GL object is exported. Lines are written as OBJ l records; triangle meshes/surfaces are written as faces.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
objectIdOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.EXPORT_OBJ g, "out/scene.obj"

GL.EXPORT_OBJECT_CSV

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.EXPORT_OBJECT_CSV handle, objectId, path

Exports one selected GL object to a compact CSV geometry table.

Minimal example

GL.EXPORT_OBJECT_CSV g, id, "out/object.csv"

GL.EXPORT_OBJECT_OBJ

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.EXPORT_OBJECT_OBJ handle, objectId, path

Exports one selected GL object to Wavefront OBJ.

Minimal example

GL.EXPORT_OBJECT_OBJ g, id, "out/object.obj"

GL.EXPORT_OBJECT_PLY

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.EXPORT_OBJECT_PLY handle, objectId, path

Exports one selected GL object to ASCII PLY.

Minimal example

GL.EXPORT_OBJECT_PLY g, id, "out/object.ply"

GL.EXPORT_PLY

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.EXPORT_PLY handle, path [, objectId]

Exports visible GL vertices and triangular faces to ASCII PLY. Point clouds are exported as vertices; lines are not represented as edges in this first lightweight exporter.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
objectIdOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.EXPORT_PLY g, "out/scene.ply"

GL.EXPORT_SCENE

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.SAVE_SCENE handle, path

Public cvBasic command exported from the live interpreter registry. Documentation entry auto-generated from runtime metadata.

Minimal example

GL.EXPORT_SCENE

GL.FIT

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.FIT handle

Recomputes scene bounds, recenters the camera and resets zoom/pan while preserving the current rotation.

Minimal example

GL.FIT g

GL.FLUSH

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.FLUSH handle [, maxMs]

Alias of GL.SYNC.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
maxMsOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.FLUSH

GL.FRAME

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.FRAME handle [, maxMs]

Processes GUI events for one animation frame. Without maxMs it uses the delay configured by GL.SET_FPS.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
maxMsOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.FRAME g

GL.GRID

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.GRID handle [, plane [, extent [, step [, color [, width]]]]]

Adds a scientific reference grid on plane XY, XZ or YZ.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
planeOptional parameter. If omitted, the command uses its internal default.
extentOptional parameter. If omitted, the command uses its internal default.
stepOptional parameter. If omitted, the command uses its internal default.
colorOptional plot/drawing color value.
widthOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.GRID g, "XZ", 100, 10, "#454552", 1

GL.HEIGHTFIELD

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.HEIGHTFIELD handle, image [, zMin [, zMax [, lowColor [, highColor [, wireframe [, sampleStep [, frame]]]]]]]

Converts an image or stack frame into a shaded 3D heightfield. X/Y are image coordinates centered around the origin; Z is normalized luminance mapped between zMin and zMax. sampleStep reduces large images.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
zMinOptional parameter. If omitted, the command uses its internal default.
zMaxOptional parameter. If omitted, the command uses its internal default.
lowColorOptional parameter. If omitted, the command uses its internal default.
highColorOptional parameter. If omitted, the command uses its internal default.
wireframeOptional parameter. If omitted, the command uses its internal default.
sampleStepOptional parameter. If omitted, the command uses its internal default.
frameZero-based frame index; some stack commands accept -1 for all frames.

Minimal example

GL.HEIGHTFIELD g, gray, 0, 80, "#2030a0", "#ffff80", FALSE, 4

GL.HIDE

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.HIDE handle, objectId

Temporarily hides a GL object without deleting it.

Minimal example

GL.HIDE g, id

GL.IMAGE_POINTS

STATEMENTGLGUI / INTERACTIVEIMAGE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.IMAGE_POINTS handle, image [, threshold01 [, color [, size [, sampleStep [, frame [, zScale [, maxPoints]]]]]]]

Alias of GL.POINTCLOUD_FROM_IMAGE.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
threshold01Optional parameter. If omitted, the command uses its internal default.
colorOptional plot/drawing color value.
sizeOptional parameter. If omitted, the command uses its internal default.
sampleStepOptional parameter. If omitted, the command uses its internal default.
frameZero-based frame index; some stack commands accept -1 for all frames.
zScaleOptional parameter. If omitted, the command uses its internal default.
maxPointsOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.IMAGE_POINTS g, img, 0.70, "yellow", 3

GL.IMAGE_SURFACE

STATEMENTGLGUI / INTERACTIVEIMAGE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.IMAGE_SURFACE handle, image [, zMin [, zMax [, lowColor [, highColor [, wireframe [, sampleStep [, frame]]]]]]]

Alias of GL.HEIGHTFIELD, intended for OpenCV image-to-surface visualizations.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
zMinOptional parameter. If omitted, the command uses its internal default.
zMaxOptional parameter. If omitted, the command uses its internal default.
lowColorOptional parameter. If omitted, the command uses its internal default.
highColorOptional parameter. If omitted, the command uses its internal default.
wireframeOptional parameter. If omitted, the command uses its internal default.
sampleStepOptional parameter. If omitted, the command uses its internal default.
frameZero-based frame index; some stack commands accept -1 for all frames.

Minimal example

GL.IMAGE_SURFACE g, img, 0, 60, "#204080", "#ffe080", FALSE, 6

GL.IMPORT_OBJ

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.IMPORT_OBJ handle, path [, color [, wireframe]]

Imports a simple Wavefront OBJ mesh. v and f records are supported; polygonal faces are triangulated as fans. If the OBJ has vertices but no faces, it is imported as a point cloud.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
colorOptional plot/drawing color value.
wireframeOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.IMPORT_OBJ g, "out/scene.obj", "#b4dcff", TRUE

GL.INFO

FUNCTIONGLGUI / INTERACTIVE
Kind: Function   Category: OpenGL 3D functions   Namespace: GL

GL.INFO(handle)

Returns a multi-line diagnostic summary of the GL scene: title, caption, bounds, camera, renderer, item/object counts and visible primitive totals.

Minimal example

PRINT GL.INFO(g)

GL.ISOSURFACE

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.ISOSURFACE handle, stack [, threshold01 [, color [, sampleStepXY [, sampleStepT [, zStep [, wireframe [, maxTriangles]]]]]]]

Extracts a lightweight triangulated isosurface from a W x H x T stack using a marching-tetrahedra pass. threshold01 is normalized over the sampled volume.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
threshold01Optional parameter. If omitted, the command uses its internal default.
colorOptional plot/drawing color value.
sampleStepXYOptional parameter. If omitted, the command uses its internal default.
sampleStepTOptional parameter. If omitted, the command uses its internal default.
zStepOptional parameter. If omitted, the command uses its internal default.
wireframeOptional parameter. If omitted, the command uses its internal default.
maxTrianglesOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.ISOSURFACE g, stack, 0.50, "#80d8ff", 1, 1, 4, FALSE, 200000

GL.ITEM_COUNT

FUNCTIONGLGUI / INTERACTIVE
Kind: Function   Category: OpenGL 3D functions   Namespace: GL

GL.ITEM_COUNT(handle)

Returns the number of internal GL items currently stored in a scene, including grids, axes and labels.

Minimal example

PRINT GL.ITEM_COUNT(g)

GL.LABEL

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.LABEL handle, x, y, z, text [, color [, size]]

Alias of GL.TEXT.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
colorOptional plot/drawing color value.
sizeOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.LABEL

GL.LAST_ID

FUNCTIONGLGUI / INTERACTIVE
Kind: Function   Category: OpenGL 3D functions   Namespace: GL

GL.LAST_ID(handle)

Returns the object id assigned to the last GL object added to the scene. Useful before GL.HIDE, GL.SHOW, GL.DELETE or style changes.

Minimal example

id = GL.LAST_ID(g)

GL.LINE

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.LINE handle, x1, y1, z1, x2, y2, z2 [, color [, width]]

Adds one 3D line segment to the scene.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
colorOptional plot/drawing color value.
widthOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.LINE g, 0, 0, 0, 100, 0, 0, "red", 2

GL.LOAD_OBJ

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.IMPORT_OBJ handle, path [, color [, wireframe]]

Imports a simple Wavefront OBJ mesh. v and f records are supported; polygonal faces are triangulated as fans. If the OBJ has vertices but no faces, it is imported as a point cloud.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
colorOptional plot/drawing color value.
wireframeOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.LOAD_OBJ

GL.MARCHING_CUBES

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.MARCHING_CUBES handle, stack [, threshold01 [, color [, sampleStepXY [, sampleStepT [, zStep [, wireframe [, maxTriangles]]]]]]]

Alias of GL.ISOSURFACE. The current implementation uses marching tetrahedra internally to avoid large lookup tables while still producing triangular isosurfaces.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
threshold01Optional parameter. If omitted, the command uses its internal default.
colorOptional plot/drawing color value.
sampleStepXYOptional parameter. If omitted, the command uses its internal default.
sampleStepTOptional parameter. If omitted, the command uses its internal default.
zStepOptional parameter. If omitted, the command uses its internal default.
wireframeOptional parameter. If omitted, the command uses its internal default.
maxTrianglesOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.MARCHING_CUBES g, stack, 0.62, "#ff9060", 1, 1, 4, TRUE, 160000

GL.MARCHING_TETRAHEDRA

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.ISOSURFACE handle, stack [, threshold01 [, color [, sampleStepXY [, sampleStepT [, zStep [, wireframe [, maxTriangles]]]]]]]

Extracts a lightweight triangulated isosurface from a W x H x T stack using a marching-tetrahedra pass. threshold01 is normalized over the sampled volume.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
threshold01Optional parameter. If omitted, the command uses its internal default.
colorOptional plot/drawing color value.
sampleStepXYOptional parameter. If omitted, the command uses its internal default.
sampleStepTOptional parameter. If omitted, the command uses its internal default.
zStepOptional parameter. If omitted, the command uses its internal default.
wireframeOptional parameter. If omitted, the command uses its internal default.
maxTrianglesOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.MARCHING_TETRAHEDRA

GL.MESH

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.MESH handle, "x,y,z;...", "i,j,k;i,j,k;..." [, color [, wireframe]]

Adds a triangular mesh from a vertex list and a face list. Face indices may be 0-based or 1-based; polygons with more than three indices are triangulated as fans.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
colorOptional plot/drawing color value.
wireframeOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.MESH g, vertices, faces, "#b4dcff", FALSE

GL.NEW

FUNCTIONGLGUI / INTERACTIVE
Kind: Function   Category: OpenGL 3D functions   Namespace: GL

GL.NEW([title [, width [, height [, background]]]])

Alias of GL.CREATE.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
titleOptional GUI/DataPlot window title.
widthOptional parameter. If omitted, the command uses its internal default.
heightOptional parameter. If omitted, the command uses its internal default.
backgroundInitial canvas background value.

Minimal example

value = GL.NEW([title [, width [, height [, background]]]])

GL.OBJECT_COUNT

FUNCTIONGLGUI / INTERACTIVE
Kind: Function   Category: OpenGL 3D functions   Namespace: GL

GL.OBJECT_COUNT(handle)

Returns the number of user geometry objects, excluding helper grids and axes.

Minimal example

PRINT GL.OBJECT_COUNT(g)

GL.POINT

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.POINT handle, x, y, z [, color [, size]]

Adds one 3D point to the scene.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
colorOptional plot/drawing color value.
sizeOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.POINT g, 0, 0, 0, "yellow", 6

GL.POINTCLOUD_FROM_IMAGE

STATEMENTGLGUI / INTERACTIVEIMAGE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.POINTCLOUD_FROM_IMAGE handle, image [, threshold01 [, color [, size [, sampleStep [, frame [, zScale [, maxPoints]]]]]]]

Converts bright pixels of an image frame into a sparse 3D point cloud. X/Y come from image coordinates, Z comes from normalized luminance times zScale.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
threshold01Optional parameter. If omitted, the command uses its internal default.
colorOptional plot/drawing color value.
sizeOptional parameter. If omitted, the command uses its internal default.
sampleStepOptional parameter. If omitted, the command uses its internal default.
frameZero-based frame index; some stack commands accept -1 for all frames.
zScaleOptional parameter. If omitted, the command uses its internal default.
maxPointsOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.POINTCLOUD_FROM_IMAGE g, img, 0.65, "#ffcc40", 3, 2, 0, 70

GL.POINTCLOUD_FROM_STACK

STATEMENTGLGUI / INTERACTIVESTACK / VIDEO
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.POINTCLOUD_FROM_STACK handle, stack [, threshold01 [, color [, size [, sampleStepXY [, sampleStepT [, zStep [, maxPoints]]]]]]]

Alias of GL.VOXELS.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
threshold01Optional parameter. If omitted, the command uses its internal default.
colorOptional plot/drawing color value.
sizeOptional parameter. If omitted, the command uses its internal default.
sampleStepXYOptional parameter. If omitted, the command uses its internal default.
sampleStepTOptional parameter. If omitted, the command uses its internal default.
zStepOptional parameter. If omitted, the command uses its internal default.
maxPointsOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.POINTCLOUD_FROM_STACK g, stack, 0.65, "#ffcc40", 3

GL.POINTS

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.POINTS handle, "x,y,z;x,y,z;..." [, color [, size]]

Adds a batch of independent 3D points, useful for point clouds, samples and phase-space scatter plots.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
colorOptional plot/drawing color value.
sizeOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.POINTS g, "0,0,0;10,20,5;30,10,15", "yellow", 5

GL.POLYLINE

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.POLYLINE handle, "x,y,z;x,y,z;..." [, color [, width]]

Adds a connected 3D polyline from a semicolon/newline-separated list of x,y,z points.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
colorOptional plot/drawing color value.
widthOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.POLYLINE g, "0,0,0;10,20,5;30,10,15", "#ffc040", 2

GL.RAYMARCH

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.RAYMARCH handle, stack [, mode [, threshold01 [, opacity [, sampleStepXY [, sampleStepT [, zStep [, colormap [, maxQuads]]]]]]]]

Alias of GL.VOLUME. Practical slice/ray-sampling preview before heavier GPU 3D-texture ray marching.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
modeMode selector; accepted values are described in the command text.
threshold01Optional parameter. If omitted, the command uses its internal default.
opacityOptional parameter. If omitted, the command uses its internal default.
sampleStepXYOptional parameter. If omitted, the command uses its internal default.
sampleStepTOptional parameter. If omitted, the command uses its internal default.
zStepOptional parameter. If omitted, the command uses its internal default.
colormapOptional parameter. If omitted, the command uses its internal default.
maxQuadsOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.RAYMARCH g, stack, "mip", 0.22, 0.75, 2, 1, 4, "viridis", 60000

GL.RENDER_MODE

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.RENDER_MODE handle, mode

Selects the GL renderer path. Modes: AUTO uses shader/VBO when available; MODERN requests the shader/VBO path; LEGACY forces the fixed-pipeline fallback.

Minimal example

GL.RENDER_MODE g, "modern"

GL.RENDERER

FUNCTIONGLGUI / INTERACTIVE
Kind: Function   Category: OpenGL 3D functions   Namespace: GL

GL.RENDERER(handle)

Returns the requested renderer mode, active renderer and shader/VBO initialization status.

Minimal example

PRINT GL.RENDERER(g)

GL.REPORT

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.REPORT handle, htmlPath [, snapshotPath]

Public cvBasic command exported from the live interpreter registry. Documentation entry auto-generated from runtime metadata.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
snapshotPathOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.REPORT

GL.RESET_VIEW

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.RESET_VIEW handle

Alias of GL.RESETVIEW.

Minimal example

GL.RESET_VIEW

GL.RESETVIEW

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.RESETVIEW handle

Resets the GL viewer orientation, pan and zoom.

Minimal example

GL.RESETVIEW g

GL.ROTATE

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.ROTATE handle [, dRotX [, dRotY [, dRotZ]]]

Adds incremental camera rotation deltas to the current GL view. Useful inside animation loops.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
dRotXOptional parameter. If omitted, the command uses its internal default.
dRotYOptional parameter. If omitted, the command uses its internal default.
dRotZOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.ROTATE g, 0, 1.5, 0

GL.SAVE_SCENE

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.SAVE_SCENE handle, path

Public cvBasic command exported from the live interpreter registry. Documentation entry auto-generated from runtime metadata.

Minimal example

GL.SAVE_SCENE

GL.SET_COLOR

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.SET_COLOR handle, objectId, color

Changes object color. For gradient surfaces this switches the object to a flat color.

Minimal example

GL.SET_COLOR g, id, "#ffcc00"

GL.SET_FPS

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.SET_FPS handle, fps

Sets the default frame delay used by GL.FRAME for this viewer.

Minimal example

GL.SET_FPS g, 30

GL.SET_SIZE

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.SET_SIZE handle, objectId, size

Changes point size or text size for compatible GL objects.

Minimal example

GL.SET_SIZE g, id, 8

GL.SET_TITLE

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.SET_TITLE handle, title

Changes the GL MDI window title. Alias: GL.TITLE.

Minimal example

GL.SET_TITLE g, "Final scene"

GL.SET_WIDTH

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.SET_WIDTH handle, objectId, width

Changes line width for line, polyline, grid, axes, arrow, wireframe and mesh-outline objects.

Minimal example

GL.SET_WIDTH g, id, 3

GL.SHADED

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.SHADED handle [, enabled]

Toggles the simple face-normal shading used by GL.SURFACE and GL.MESH.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
enabledBoolean switch: TRUE/1 enables the option, FALSE/0 disables it.

Minimal example

GL.SHADED g, TRUE

GL.SHOW

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.SHOW handle, objectId

Shows a previously hidden GL object.

Minimal example

GL.SHOW g, id

GL.SIZE

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.SET_SIZE handle, objectId, size

Changes point size or text size for compatible GL objects.

Minimal example

GL.SIZE

GL.SLICE

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.SLICE handle, stack, axis, index [, scale [, lowColor [, highColor [, sampleStep [, zStep [, wireframe]]]]]]

Displays an orthogonal X/Y/Z section of a stack as a triangulated relief surface. X/Y are image axes and Z is frame/time; scale extrudes luminance along the slice normal.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
scaleMultiplicative scale factor; for geometric transforms it may mean image scale around the center.
lowColorOptional parameter. If omitted, the command uses its internal default.
highColorOptional parameter. If omitted, the command uses its internal default.
sampleStepOptional parameter. If omitted, the command uses its internal default.
zStepOptional parameter. If omitted, the command uses its internal default.
wireframeOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.SLICE g, stack, "Z", 8, 24, "#2050c0", "#ffe070", 1, 4, TRUE

GL.SLICE_X

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.SLICE_X handle, stack, xIndex [, scale [, lowColor [, highColor [, sampleStep [, zStep [, wireframe]]]]]]

Displays the Y/T section at a fixed image column xIndex, useful for temporal stack inspection.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
scaleMultiplicative scale factor; for geometric transforms it may mean image scale around the center.
lowColorOptional parameter. If omitted, the command uses its internal default.
highColorOptional parameter. If omitted, the command uses its internal default.
sampleStepOptional parameter. If omitted, the command uses its internal default.
zStepOptional parameter. If omitted, the command uses its internal default.
wireframeOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.SLICE_X g, stack, 32, 20, "#203080", "#ffdf70", 1, 4, TRUE

GL.SLICE_Y

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.SLICE_Y handle, stack, yIndex [, scale [, lowColor [, highColor [, sampleStep [, zStep [, wireframe]]]]]]

Displays the X/T section at a fixed image row yIndex, revealing temporal trajectories and rotating/moving patterns.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
scaleMultiplicative scale factor; for geometric transforms it may mean image scale around the center.
lowColorOptional parameter. If omitted, the command uses its internal default.
highColorOptional parameter. If omitted, the command uses its internal default.
sampleStepOptional parameter. If omitted, the command uses its internal default.
zStepOptional parameter. If omitted, the command uses its internal default.
wireframeOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.SLICE_Y g, stack, 32, 20, "#203080", "#ffdf70", 1, 4, TRUE

GL.SLICE_Z

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.SLICE_Z handle, stack, frameIndex [, scale [, lowColor [, highColor [, sampleStep [, zStep [, wireframe]]]]]]

Displays one normal image frame of the stack as a relief slice positioned at its temporal Z coordinate.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
scaleMultiplicative scale factor; for geometric transforms it may mean image scale around the center.
lowColorOptional parameter. If omitted, the command uses its internal default.
highColorOptional parameter. If omitted, the command uses its internal default.
sampleStepOptional parameter. If omitted, the command uses its internal default.
zStepOptional parameter. If omitted, the command uses its internal default.
wireframeOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.SLICE_Z g, stack, 8, 22, "#2050c0", "#ffe070", 1, 4, TRUE

GL.SNAPSHOT

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.SNAPSHOT handle, path

Saves the current GL framebuffer to an image file such as PNG/JPG/BMP.

Minimal example

GL.SNAPSHOT g, "gl_scene.png"

GL.STACK_POINTS

STATEMENTGLGUI / INTERACTIVESTACK / VIDEO
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.VOXELS handle, stack [, threshold01 [, color [, size [, sampleStepXY [, sampleStepT [, zStep [, maxPoints]]]]]]]

Displays a stack/image as a thresholded voxel-like point cloud. X/Y are image coordinates, Z is frame index times zStep.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
threshold01Optional parameter. If omitted, the command uses its internal default.
colorOptional plot/drawing color value.
sizeOptional parameter. If omitted, the command uses its internal default.
sampleStepXYOptional parameter. If omitted, the command uses its internal default.
sampleStepTOptional parameter. If omitted, the command uses its internal default.
zStepOptional parameter. If omitted, the command uses its internal default.
maxPointsOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.STACK_POINTS

GL.SURFACE

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.SURFACE handle, "x,y,z;x,y,z;...", cols, rows [, lowColor [, highColor [, wireframe]]]

Adds a shaded triangulated surface from a row-major cols x rows grid of 3D points. The surface uses a simple z-gradient between lowColor and highColor.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
lowColorOptional parameter. If omitted, the command uses its internal default.
highColorOptional parameter. If omitted, the command uses its internal default.
wireframeOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.SURFACE g, pts, 64, 64, "#2060ff", "#ffe060", FALSE

GL.SYNC

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.SYNC handle [, maxMs]

Processes pending GUI events briefly after heavy GL scene construction.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
maxMsOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.SYNC g, 50

GL.TEXT

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.TEXT handle, x, y, z, text [, color [, size]]

Adds a projected 3D label anchored at x,y,z. The label follows camera rotation and zoom.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
colorOptional plot/drawing color value.
sizeOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.TEXT g, 0, 0, 0, "origin", "white", 12

GL.TITLE

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.TITLE handle, title

Alias of GL.SET_TITLE.

Minimal example

GL.TITLE

GL.UPDATE_LINE

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.UPDATE_LINE handle, objectId, x1, y1, z1, x2, y2, z2

Updates the endpoints of an existing line-segment object.

Minimal example

GL.UPDATE_LINE g, lineId, 0,0,0, x,y,z

GL.UPDATE_MESH

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.UPDATE_MESH handle, objectId, "x,y,z;...", "i,j,k;..."

Replaces vertices/faces of an existing GL.MESH/GL.ISOSURFACE mesh object.

Minimal example

GL.UPDATE_MESH g, meshId, verts, faces

GL.UPDATE_POINTS

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.UPDATE_POINTS handle, objectId, "x,y,z;x,y,z;..."

Replaces the vertex list of an existing GL.POINT/GL.POINTS object without creating a new object. Useful for particle animation.

Minimal example

GL.UPDATE_POINTS g, pid, pts

GL.UPDATE_POLYLINE

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.UPDATE_POLYLINE handle, objectId, "x,y,z;x,y,z;..."

Replaces the points of an existing GL.POLYLINE object while preserving its color/width.

Minimal example

GL.UPDATE_POLYLINE g, trailId, trailPts

GL.UPDATE_SURFACE

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.UPDATE_SURFACE handle, objectId, "x,y,z;x,y,z;...", cols, rows

Replaces the grid geometry of an existing GL.SURFACE/heightfield/slice object. Style and colormap are preserved.

Minimal example

GL.UPDATE_SURFACE g, surfId, pts, cols, rows

GL.UPDATE_TEXT

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.UPDATE_TEXT handle, objectId, x, y, z, text

Moves and rewrites an existing GL.TEXT/GL.LABEL object.

Minimal example

GL.UPDATE_TEXT g, labelId, x, y, z, "t=" + STR(t)

GL.VIEW

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.VIEW handle, rotX, rotY, rotZ [, zoom]

Sets the initial 3D camera orientation and zoom. Users can still rotate/pan/zoom interactively.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
zoomOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.VIEW g, 28, -35, 0, 1.0

GL.VOLUME

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.VOLUME handle, stack [, mode [, threshold01 [, opacity [, sampleStepXY [, sampleStepT [, zStep [, colormap [, maxQuads]]]]]]]]

Adds a CPU-built transparent volume-render mesh from a stack. Modes: alpha, threshold, mip. It uses per-vertex color/alpha and the GL alpha-blending renderer.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
modeMode selector; accepted values are described in the command text.
threshold01Optional parameter. If omitted, the command uses its internal default.
opacityOptional parameter. If omitted, the command uses its internal default.
sampleStepXYOptional parameter. If omitted, the command uses its internal default.
sampleStepTOptional parameter. If omitted, the command uses its internal default.
zStepOptional parameter. If omitted, the command uses its internal default.
colormapOptional parameter. If omitted, the command uses its internal default.
maxQuadsOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.VOLUME g, stack, "alpha", 0.18, 0.08, 2, 1, 4, "thermal", 80000

GL.VOLUME_RENDER

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.VOLUME_RENDER handle, stack [, mode [, threshold01 [, opacity [, sampleStepXY [, sampleStepT [, zStep [, colormap [, maxQuads]]]]]]]]

Alias of GL.VOLUME.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
modeMode selector; accepted values are described in the command text.
threshold01Optional parameter. If omitted, the command uses its internal default.
opacityOptional parameter. If omitted, the command uses its internal default.
sampleStepXYOptional parameter. If omitted, the command uses its internal default.
sampleStepTOptional parameter. If omitted, the command uses its internal default.
zStepOptional parameter. If omitted, the command uses its internal default.
colormapOptional parameter. If omitted, the command uses its internal default.
maxQuadsOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.VOLUME_RENDER g, stack, "threshold", 0.45, 0.20, 2, 1, 4, "blue-red", 50000

GL.VOXELS

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.VOXELS handle, stack [, threshold01 [, color [, size [, sampleStepXY [, sampleStepT [, zStep [, maxPoints]]]]]]]

Displays a stack/image as a thresholded voxel-like point cloud. X/Y are image coordinates, Z is frame index times zStep.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
threshold01Optional parameter. If omitted, the command uses its internal default.
colorOptional plot/drawing color value.
sizeOptional parameter. If omitted, the command uses its internal default.
sampleStepXYOptional parameter. If omitted, the command uses its internal default.
sampleStepTOptional parameter. If omitted, the command uses its internal default.
zStepOptional parameter. If omitted, the command uses its internal default.
maxPointsOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.VOXELS g, stack, 0.60, "#ffb030", 3, 1, 1, 4, 100000

GL.WAIT

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.WAIT handle [, maxMs]

Processes pending GUI events for animation pacing with an explicit millisecond delay.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
maxMsOptional parameter. If omitted, the command uses its internal default.

Minimal example

GL.WAIT g, 16

GL.WIDTH

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.SET_WIDTH handle, objectId, width

Changes line width for line, polyline, grid, axes, arrow, wireframe and mesh-outline objects.

Minimal example

GL.WIDTH

GL.WIREFRAME

STATEMENTGLGUI / INTERACTIVE
Kind: Command   Category: OpenGL 3D commands   Namespace: GL

GL.WIREFRAME handle [, enabled]

Toggles global wireframe display for GL.SURFACE and GL.MESH objects.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
enabledBoolean switch: TRUE/1 enables the option, FALSE/0 disables it.

Minimal example

GL.WIREFRAME g, TRUE