public class FromByte extends Object implements SliceBufferIndex<UnsignedByteBuffer>
SliceBufferIndex
with voxels of type unsigned byte.Modifier and Type | Method and Description |
---|---|
static SliceBufferIndex<UnsignedByteBuffer> |
createInitialized(Extent extent)
Create a buffer of a particular size, that has been initialized.
|
static SliceBufferIndex<UnsignedByteBuffer> |
createUninitialized(Extent extent)
Create a buffer of a particular size, that has not been initialized.
|
Extent |
extent()
The size of each buffer.
|
void |
replaceSlice(int z,
VoxelBuffer<UnsignedByteBuffer> sliceToAssign)
Replaces the voxels for a particular z-slice.
|
VoxelBuffer<UnsignedByteBuffer> |
slice(int z)
A
VoxelBuffer corresponding to a particular z-slice. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
iterateOverSlices, iterateOverSlicesAndOffsets, sliceBuffer
public static SliceBufferIndex<UnsignedByteBuffer> createInitialized(Extent extent)
extent
- the size of buffer to create.public static SliceBufferIndex<UnsignedByteBuffer> createUninitialized(Extent extent)
extent
- the size of buffer to create.public void replaceSlice(int z, VoxelBuffer<UnsignedByteBuffer> sliceToAssign)
SliceBufferIndex
replaceSlice
in interface SliceBufferIndex<UnsignedByteBuffer>
z
- the index of z-slice to replace.sliceToAssign
- the voxels for the new slice to assign.public VoxelBuffer<UnsignedByteBuffer> slice(int z)
SliceBufferIndex
VoxelBuffer
corresponding to a particular z-slice.slice
in interface SliceBufferIndex<UnsignedByteBuffer>
z
- the index (beginning at 0) of all z-slices.z
.public Extent extent()
SliceBufferIndex
extent
in interface SliceBufferIndex<UnsignedByteBuffer>
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.