T
- buffer-type for voxelspublic abstract class VoxelBufferUnsigned<T extends UnsignedBuffer> extends VoxelBuffer<T>
VoxelBuffer
that accepts unsigned-buffers and implements some common
operations.Constructor and Description |
---|
VoxelBufferUnsigned(T buffer) |
Modifier and Type | Method and Description |
---|---|
T |
buffer()
The associated buffer for storing the voxels.
|
int |
capacity()
The capacity (i.e.
|
boolean |
hasRemaining()
Are there voxels remaining in a buffer?
|
boolean |
isDirect()
Is this buffer direct or non-direct?
|
void |
position(int newPosition)
Assigns a new position to the buffer.
|
copyVoxelFrom, dataType, duplicate, getInt, putByte, putInt, toString, underlyingBytes
public VoxelBufferUnsigned(T buffer)
public T buffer()
VoxelBuffer
This buffer is either a NIO or other classes that wraps the underlying array storing voxel intensities.
buffer
in class VoxelBuffer<T extends UnsignedBuffer>
public int capacity()
VoxelBuffer
This is meant in the sense of Java's NIO Buffer
classes.
capacity
in class VoxelBuffer<T extends UnsignedBuffer>
public boolean hasRemaining()
VoxelBuffer
This is meant in the sense of Java's NIO Buffer
classes.
hasRemaining
in class VoxelBuffer<T extends UnsignedBuffer>
public void position(int newPosition)
VoxelBuffer
This is meant in the sense of Java's NIO Buffer
classes.
position
in class VoxelBuffer<T extends UnsignedBuffer>
newPosition
- the offset to assign as position.public boolean isDirect()
VoxelBuffer
This is meant in the sense of Java's NIO Buffer
classes.
isDirect
in class VoxelBuffer<T extends UnsignedBuffer>
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.