Class VoxelsArithmeticFactory
Object
VoxelsArithmeticFactory
Creates
VoxelsArithmetic for buffers of different types.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic VoxelsArithmeticcreateFloat(Extent extent, IntFunction<FloatBuffer> bufferForSlice) Create aVoxelsArithmeticforFloatBuffer.static VoxelsArithmeticcreateUnsignedByte(Extent extent, IntFunction<UnsignedByteBuffer> bufferForSlice) Create aVoxelsArithmeticforUnsignedByteBuffer.static VoxelsArithmeticcreateUnsignedInt(Extent extent, IntFunction<UnsignedIntBuffer> bufferForSlice) Create aVoxelsArithmeticforUnsignedIntBuffer.static VoxelsArithmeticcreateUnsignedShort(Extent extent, IntFunction<UnsignedShortBuffer> bufferForSlice) Create aVoxelsArithmeticforUnsignedShortBuffer.
-
Method Details
-
createUnsignedByte
public static VoxelsArithmetic createUnsignedByte(Extent extent, IntFunction<UnsignedByteBuffer> bufferForSlice) Create aVoxelsArithmeticforUnsignedByteBuffer.- 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 aVoxelsArithmeticforUnsignedShortBuffer.- 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 aVoxelsArithmeticforUnsignedIntBuffer.- 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 aVoxelsArithmeticforFloatBuffer.- 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.
-