A voxel style allows you to define the visualization of the voxel layer. A voxel layer can be represented as volume or surface depending on your analysis needs. You can change the visibility of the different representations and change their drawing options.

Referenced by: voxelLayerDefinition

Properties

PropertyDetails
currentVariableIdId of the currently visible variable.
enableDynamicSectionsEnable dynamic section (only if renderMode = "surfaces").
enableIsosurfacesEnable isosurfaces (only if renderMode = "surfaces").
enableSectionsEnable static sections.
enableSlicesEnable slices.
renderModeCurrent rendering mode for the voxel layer. Depending on the rendering mode different voxel layer representations can be shown. volume draws the voxel layer as rectangular cuboid (but any slices defined for the voxel layer will change the volume to the area of interest). surfaces will represent the layer as a set of surfaces, for example, dynamic sections can define a plane through the volume or isosurfaces can show a specific value as surface.
Valid values:
  • surfaces
  • volume
shadingDefines the shading properties.
variableStyles[]Array of variable styles. Each variable can have one variable style.
volumeStyles[]Array of volume styles. Currently only one volume style is allowed.

renderMode: surfaces Example

A style with surfaces render mode.

{
"volumeStyles": [
{
"verticalExaggeration": 183677.1598089014
}
],
"currentVariableId": 0,
"renderMode": "surfaces",
"enableIsosurfaces": true,
"enableDynamicSections": true,
"variableStyles": [
{
"variableId": 0,
"transferFunction": {
"interpolation": "nearest",
"stretchRange": [
327.131,
2941.46
],
"colorStops": [
{
"color": [
0,
48,
246,
255
],
"position": 0
},
{
"color": [
0,
52,
243,
255
],
"position": 0.00392
}
]
}
}
]
}

renderMode: volume Example

A style with volume render mode.

{
"volumeStyles": [
{
"verticalExaggeration": 1
}
],
"currentVariableId": 0,
"renderMode": "volume",
"variableStyles": [
{
"variableId": 0,
"transferFunction": {
"interpolation": "nearest",
"stretchRange": [
327.131,
2941.46
],
"colorStops": [
{
"color": [
0,
48,
246,
255
],
"position": 0
},
{
"color": [
0,
52,
243,
255
],
"position": 0.00392
}
]
}
}
]
}