public abstract class BufferWrapper extends Object
NOTE: We no longer need to support JDK 1.3 as of the Java 3D 1.3.2 community source release on java.net. We should be able to get rid of this class.
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_BYTE
Value returned from getBufferType(), this indicates
that the BufferWrapper contains a java.nio.ByteBuffer.
|
static int |
TYPE_DOUBLE
Value returned from getBufferType(), this indicates
that the BufferWrapper contains a java.nio.DoubleBuffer.
|
static int |
TYPE_FLOAT
Value returned from getBufferType(), this indicates
that the BufferWrapper contains a java.nio.FloatBuffer.
|
static int |
TYPE_NULL
Value returned from getBufferType(), this indicates
that the BufferWrapper contains a null buffer.
|
static int |
TYPE_UNKNOWN
Value returned from getBufferType(), this indicates
that the BufferWrapper does not hold data of type
byte, float, or double.
|
Constructor and Description |
---|
BufferWrapper()
Never used - this class is abstract.
|
Modifier and Type | Method and Description |
---|---|
int |
capacity() |
Object |
getBufferAsObject() |
static int |
getBufferType(J3DBuffer b) |
int |
limit() |
int |
position() |
BufferWrapper |
position(int newPosition)
Sets this buffer's position.
|
BufferWrapper |
rewind()
Resets this buffer's position to the previously marked
position.
|
public static final int TYPE_NULL
public static final int TYPE_UNKNOWN
public static final int TYPE_BYTE
public static final int TYPE_FLOAT
public static final int TYPE_DOUBLE
public Object getBufferAsObject()
public int capacity()
ByteBufferWrapper.allocateDirect(int)
public int limit()
public int position()
public BufferWrapper position(int newPosition)
public BufferWrapper rewind()
public static int getBufferType(J3DBuffer b)
TYPE_NULL
,
TYPE_BYTE
,
TYPE_FLOAT
,
TYPE_DOUBLE
,
TYPE_UNKNOWN
Copyright © 2016–2022 SciJava. All rights reserved.