public class DoubleBufferWrapper extends BufferWrapper
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.
TYPE_BYTE, TYPE_DOUBLE, TYPE_FLOAT, TYPE_NULL, TYPE_UNKNOWN
Constructor and Description |
---|
DoubleBufferWrapper(DoubleBuffer buffer)
Constructor initializes buffer with a
java.nio.DoubleBuffer object.
|
DoubleBufferWrapper(J3DBuffer b)
Constructor initializes buffer with a
org.scijava.java3d.J3DBuffer object.
|
Modifier and Type | Method and Description |
---|---|
double |
get()
Reads the double at this buffer's current position,
and then increments the position.
|
DoubleBufferWrapper |
get(double[] dst)
Bulk get method.
|
DoubleBufferWrapper |
get(double[] dst,
int offset,
int length)
Bulk get method.
|
double |
get(int index)
Reads the double at the given offset into the buffer.
|
Buffer |
getBuffer()
Returns the java.nio.Buffer contained within this
DoubleBufferWrapper.
|
J3DBuffer |
getJ3DBuffer()
Creates and returns a J3DBuffer object containing the
buffer in this DoubleBufferWrapper object.
|
boolean |
isDirect() |
DoubleBufferWrapper |
put(double[] src)
Bulk put method.
|
capacity, getBufferAsObject, getBufferType, limit, position, position, rewind
public DoubleBufferWrapper(DoubleBuffer buffer)
public DoubleBufferWrapper(J3DBuffer b)
public Buffer getBuffer()
public boolean isDirect()
public double get()
public double get(int index)
public DoubleBufferWrapper get(double[] dst)
dst.length
doubles from
the buffer to the destination array and increments the
buffer's position by dst.length
.public DoubleBufferWrapper get(double[] dst, int offset, int length)
public DoubleBufferWrapper put(double[] src)
src.length
doubles into the buffer at the current position.public J3DBuffer getJ3DBuffer()
Copyright © 2016–2022 SciJava. All rights reserved.