public class VoxelBufferWrap extends Object
VoxelBuffer
.Modifier and Type | Method and Description |
---|---|
static VoxelBuffer<FloatBuffer> |
floatArray(float[] array)
Wraps an float-array into a voxel-buffer.
|
static VoxelBuffer<FloatBuffer> |
floatBuffer(FloatBuffer buffer)
Wraps a float buffer into a voxel-buffer.
|
static VoxelBuffer<UnsignedByteBuffer> |
unsignedByteArray(byte[] array)
Wraps an existing array (encoding unsigned bytes as a signed array) as a voxel-buffer.
|
static VoxelBuffer<UnsignedByteBuffer> |
unsignedByteBuffer(UnsignedByteBuffer buffer)
Wraps an unsigned-byte buffer into a voxel-buffer.
|
static VoxelBuffer<UnsignedByteBuffer> |
unsignedByteRaw(ByteBuffer buffer)
Wraps an unsigned-byte buffer (represented by a NIO signed-buffer) into a voxel-buffer.
|
static VoxelBuffer<UnsignedIntBuffer> |
unsignedIntArray(int[] array)
Wraps an unsigned-int buffer into a voxel-buffer.
|
static VoxelBuffer<UnsignedIntBuffer> |
unsignedIntBuffer(UnsignedIntBuffer buffer)
Wraps an unsigned-int buffer (represented by a NIO signed-buffer) into a voxel-buffer.
|
static VoxelBuffer<UnsignedShortBuffer> |
unsignedShortArray(short[] array)
Wraps an existing array (encoding unsigned shorts as a signed array) as a voxel-buffer.
|
static VoxelBuffer<UnsignedShortBuffer> |
unsignedShortBuffer(UnsignedShortBuffer buffer)
Wraps an unsigned-short buffer into a voxel-buffer.
|
static VoxelBuffer<UnsignedShortBuffer> |
unsignedShortRaw(ShortBuffer buffer)
Wraps an unsigned-short buffer (represented by a NIO signed-buffer) into a voxel-buffer.
|
public static VoxelBuffer<UnsignedByteBuffer> unsignedByteArray(byte[] array)
array
- the array to wrapVoxelBuffer
reusing the array internally.public static VoxelBuffer<UnsignedByteBuffer> unsignedByteBuffer(UnsignedByteBuffer buffer)
buffer
- the buffer to wrapVoxelBuffer
reusing the buffer internally.public static VoxelBuffer<UnsignedByteBuffer> unsignedByteRaw(ByteBuffer buffer)
buffer
- the signed-buffer to wrap as unsignedVoxelBuffer
reusing the buffer internally.public static VoxelBuffer<UnsignedShortBuffer> unsignedShortArray(short[] array)
array
- the array to wrapVoxelBuffer
reusing the array internally.public static VoxelBuffer<UnsignedShortBuffer> unsignedShortBuffer(UnsignedShortBuffer buffer)
buffer
- the buffer to wrapVoxelBuffer
reusing the buffer internally.public static VoxelBuffer<UnsignedShortBuffer> unsignedShortRaw(ShortBuffer buffer)
buffer
- the signed-buffer to wrap as unsignedVoxelBuffer
reusing the buffer internally.public static VoxelBuffer<UnsignedIntBuffer> unsignedIntArray(int[] array)
array
- the array to wrapVoxelBuffer
reusing the buffer internally.public static VoxelBuffer<UnsignedIntBuffer> unsignedIntBuffer(UnsignedIntBuffer buffer)
buffer
- the signed-buffer to wrap as unsignedVoxelBuffer
reusing the buffer internally.public static VoxelBuffer<FloatBuffer> floatBuffer(FloatBuffer buffer)
buffer
- the buffer to wrapVoxelBuffer
reusing the buffer internally.public static VoxelBuffer<FloatBuffer> floatArray(float[] array)
array
- the array to wrapVoxelBuffer
reusing the buffer internally.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.