Class VoxelsArithmeticFactory
Object
VoxelsArithmeticFactory
Creates
VoxelsArithmetic
for buffers of different types.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic VoxelsArithmetic
createFloat
(Extent extent, IntFunction<FloatBuffer> bufferForSlice) Create aVoxelsArithmetic
forFloatBuffer
.static VoxelsArithmetic
createUnsignedByte
(Extent extent, IntFunction<UnsignedByteBuffer> bufferForSlice) Create aVoxelsArithmetic
forUnsignedByteBuffer
.static VoxelsArithmetic
createUnsignedInt
(Extent extent, IntFunction<UnsignedIntBuffer> bufferForSlice) Create aVoxelsArithmetic
forUnsignedIntBuffer
.static VoxelsArithmetic
createUnsignedShort
(Extent extent, IntFunction<UnsignedShortBuffer> bufferForSlice) Create aVoxelsArithmetic
forUnsignedShortBuffer
.
-
Method Details
-
createUnsignedByte
public static VoxelsArithmetic createUnsignedByte(Extent extent, IntFunction<UnsignedByteBuffer> bufferForSlice) Create aVoxelsArithmetic
forUnsignedByteBuffer
.- Parameters:
extent
- the extent of the voxels on which arithmetic is to be performed.bufferForSlice
- a buffer for a particular slice index (set at the initial position in the buffer).- Returns:
- a newly-created instance.
-
createUnsignedShort
public static VoxelsArithmetic createUnsignedShort(Extent extent, IntFunction<UnsignedShortBuffer> bufferForSlice) Create aVoxelsArithmetic
forUnsignedShortBuffer
.- Parameters:
extent
- the extent of the voxels on which arithmetic is to be performed.bufferForSlice
- a buffer for a particular slice index (set at the initial position in the buffer).- Returns:
- a newly-created instance.
-
createUnsignedInt
public static VoxelsArithmetic createUnsignedInt(Extent extent, IntFunction<UnsignedIntBuffer> bufferForSlice) Create aVoxelsArithmetic
forUnsignedIntBuffer
.- Parameters:
extent
- the extent of the voxels on which arithmetic is to be performed.bufferForSlice
- a buffer for a particular slice index (set at the initial position in the buffer).- Returns:
- a newly-created instance.
-
createFloat
Create aVoxelsArithmetic
forFloatBuffer
.- Parameters:
extent
- the extent of the voxels on which arithmetic is to be performed.bufferForSlice
- a buffer for a particular slice index (set at the initial position in the buffer).- Returns:
- a newly-created instance.
-