public class VoxelsExtracterFactory extends Object
VoxelsExtracter
corresponding to Voxels
of differing data-type.Modifier and Type | Method and Description |
---|---|
static <T> VoxelsExtracter<T> |
atCorner(ReadableTuple3i corner,
VoxelsExtracter<T> delegate)
Projects a
VoxelsExtracter to a corner in a larger global space. |
static VoxelsExtracter<FloatBuffer> |
createFloat(Voxels<FloatBuffer> voxels)
Create voxels-extracter for
FloatBuffer . |
static VoxelsExtracter<UnsignedByteBuffer> |
createUnsignedByte(Voxels<UnsignedByteBuffer> voxels)
Create voxels-extracter for
UnsignedByteBuffer . |
static VoxelsExtracter<UnsignedIntBuffer> |
createUnsignedInt(Voxels<UnsignedIntBuffer> voxels)
Create voxels-extracter for
UnsignedIntBuffer . |
static VoxelsExtracter<UnsignedShortBuffer> |
createUnsignedShort(Voxels<UnsignedShortBuffer> voxels)
Create voxels-extracter for
UnsignedShortBuffer . |
public static VoxelsExtracter<UnsignedByteBuffer> createUnsignedByte(Voxels<UnsignedByteBuffer> voxels)
UnsignedByteBuffer
.voxels
- the voxels to extract from.public static VoxelsExtracter<UnsignedShortBuffer> createUnsignedShort(Voxels<UnsignedShortBuffer> voxels)
UnsignedShortBuffer
.voxels
- the voxels to extract from.public static VoxelsExtracter<UnsignedIntBuffer> createUnsignedInt(Voxels<UnsignedIntBuffer> voxels)
UnsignedIntBuffer
.voxels
- the voxels to extract from.public static VoxelsExtracter<FloatBuffer> createFloat(Voxels<FloatBuffer> voxels)
FloatBuffer
.voxels
- the voxels to extract from.public static <T> VoxelsExtracter<T> atCorner(ReadableTuple3i corner, VoxelsExtracter<T> delegate)
VoxelsExtracter
to a corner in a larger global space.
Coordinates are translated appropriately for any calls from the larger global space to the
space on which delegate
is defined.
T
- buffer-typecorner
- the corner at which the voxels referred to by delegate
are considered
to exist.delegate
- the delegate.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.