Properties:
Name | Type | Description |
---|---|---|
_initialized |
Boolean
|
True when glUtils has been initialized |
- Source:
Methods
(static) deleteMarkers(uid)
Delete WebGL resources and other objects created for drawing marker dataset.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
uid |
String
|
Number
|
Identifier referencing the marker dataset in dataUtils. |
(static) draw()
Do rendering to the WebGL canvas. Calling this function will force an update of the rendering of markers and the data used for picking (i.e. for marker selection). Only marker datasets for which glUtils.loadMarkers() have been called will be rendered.
- Source:
(static) init()
Do initialization of the WebGL canvas. This will also load WebGL resources like shaders and textures, as well as set up events for interaction with other parts of TissUUmaps such as the OpenSeaDragon (OSD) canvas.
- Source:
(static) loadMarkers(uid)
Create WebGL resources and other objects for drawing marker dataset.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
uid |
String
|
Number
|
Identifier referencing the marker dataset in dataUtils. |
(static) pick(event)
Do GPU-based picking for marker selection. This function is a callback and should not normally be called directly. The function will automatically call glUtils.draw() to update the rendering and the picking.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
event |
Object
|
An object with click events from the canvas |
(static) resize()
Callback for resizing the WebGL canvas. Calling this function will force an update of the width and height of the WebGL canvas, but will not automatically call glUtils.draw() to update the rendering.
- Source:
(static) resizeAndDraw()
Callback for resizing the WebGL canvas. Works like glUtils.resize(), but will also automatically call glUtils.draw() to update the rendering.
- Source:
(static) restoreLostContext()
Callback for restoring WebGL resources after WebGL context is lost This function is a callback and should not normally be called directly. Loss of context can happen when for example the computer goes into sleep mode.
- Source:
(static) updateColorLUTTextures()
Update the color scale LUTs for all marker datasets. This function is a callback and should not normally be called directly.
- Source:
(static) updateMarkerScale()
Callback for updating marker scale when changing the global marker size GUI slider. This function is a callback and should not normally be called directly.
- Source: