Volumetric data cube geometry for rendering 3D scalar volumes as voxel
data. Stores a flat value array and its 3D dimensions in the owning
GeomGroup for JSON export to the three-brain viewer.
Super class
AbstractGeom -> DataCubeGeom
Public fields
typeGeometry type string (
"datacube").clickableLogical; always
FALSEfor volume geometry.
Methods
DataCubeGeom$new()
Create a new data cube geometry.
Usage
DataCubeGeom$new(
name,
value,
dim = dim(value),
group = GeomGroup$new(name = "default"),
position = c(0, 0, 0),
cache_file = NULL,
layer = 13,
digest = TRUE,
...
)Arguments
nameUnique character name.
valueNumeric vector or array of voxel values.
dimInteger vector of length 3: dimensions of the volume (
c(nx, ny, nz)).groupGeomGroupused to store the voxel data.positionNumeric vector of length 3: geometry origin. Default
c(0, 0, 0).cache_filePath to a JSON cache file,
TRUEfor a temporary file, orNULLto keep data in memory.layerCamera layer. Default
13(invisible).digestLogical; compute a content digest for cache validation.
...Additional arguments forwarded to
AbstractGeom.
DataCubeGeom$set_value()
Update the voxel values of the geometry (not yet
implemented; currently calls .NotYetImplemented()).
Usage
DataCubeGeom$set_value(value = NULL, dim = dim(value))DataCubeGeom$to_list()
Serialize the data cube geometry to a named list for JSON
export, adding the isDataCube flag.