T
- buffer-typepublic interface VoxelsFactoryTypeBound<T>
This class (and all its sub-classes) are immutable.
Modifier and Type | Method and Description |
---|---|
Voxels<T> |
create(SliceBufferIndex<T> voxels)
Create a new
Voxels that has been initialized with buffers from SliceBufferIndex . |
default BoundedVoxels<T> |
createBounded(BoundingBox box)
Creates and initializes voxels that correspond to a particular bounding-box region.
|
default Voxels<T> |
createForVoxelBuffer(VoxelBuffer<T> buffer,
Extent extent)
Create a new
Voxels that has been initialized with a single-slice's memory
buffers. |
Voxels<T> |
createInitialized(Extent extent)
Create a new
Voxels that has been initialized with memory buffers. |
Voxels<T> |
createUninitialized(Extent extent)
Create a new
Voxels that has not yet been initialized with memory buffers. |
VoxelDataType |
dataType()
The data-type of the voxels, as created by this factory.
|
Voxels<T> create(SliceBufferIndex<T> voxels)
Voxels
that has been initialized with buffers from SliceBufferIndex
.voxels
- the buffers to initialize with.Voxels<T> createInitialized(Extent extent)
Voxels
that has been initialized with memory buffers.
The voxel values in all initialized buffers are 0.
extent
- the size of voxels to create.Voxels<T> createUninitialized(Extent extent)
Voxels
that has not yet been initialized with memory buffers.extent
- the size of voxels to create.VoxelDataType dataType()
default Voxels<T> createForVoxelBuffer(VoxelBuffer<T> buffer, Extent extent)
Voxels
that has been initialized with a single-slice's memory
buffers.buffer
- the voxels for a single-slice.extent
- the size of voxels, that should be equal to the number of elements in buffer
.default BoundedVoxels<T> createBounded(BoundingBox box)
box
- the bounding-box region.box
and retaining an association
with box
.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.