NASA World Wind

gov.nasa.worldwind.util
Class TupleBufferFactory.IntTupleBufferFactory

java.lang.Object
  extended by gov.nasa.worldwind.util.TupleBufferFactory
      extended by gov.nasa.worldwind.util.TupleBufferFactory.BasicTupleBufferFactory
          extended by gov.nasa.worldwind.util.TupleBufferFactory.IntTupleBufferFactory
Enclosing class:
TupleBufferFactory

public static class TupleBufferFactory.IntTupleBufferFactory
extends TupleBufferFactory.BasicTupleBufferFactory

Implementation of TupleBufferFactory which constructs instances of VecBuffer, backed by a BufferWrapper.IntBufferWrapper.


Nested Class Summary
 
Nested classes/interfaces inherited from class gov.nasa.worldwind.util.TupleBufferFactory
TupleBufferFactory.BasicTupleBufferFactory, TupleBufferFactory.ByteTupleBufferFactory, TupleBufferFactory.DoubleTupleBufferFactory, TupleBufferFactory.FloatTupleBufferFactory, TupleBufferFactory.IntTupleBufferFactory, TupleBufferFactory.ShortTupleBufferFactory
 
Field Summary
 
Fields inherited from class gov.nasa.worldwind.util.TupleBufferFactory.BasicTupleBufferFactory
bufferFactory, tupleSize
 
Constructor Summary
TupleBufferFactory.IntTupleBufferFactory(int tupleSize)
          Constructs a new IntTupleBufferFactory with the specified tuple size and the default buffer allocation policy.
TupleBufferFactory.IntTupleBufferFactory(int tupleSize, boolean allocateDirect)
          Constructs a new IntTupleBufferFactory with the specified tuple size and buffer allocation policy.
 
Method Summary
 
Methods inherited from class gov.nasa.worldwind.util.TupleBufferFactory.BasicTupleBufferFactory
newBuffer, newTupleBuffer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TupleBufferFactory.IntTupleBufferFactory

public TupleBufferFactory.IntTupleBufferFactory(int tupleSize)
Constructs a new IntTupleBufferFactory with the specified tuple size and the default buffer allocation policy. This factory allocates IntBufferWrappers backed by direct buffers.

Parameters:
tupleSize - the number of coordinates per logical tuple.

TupleBufferFactory.IntTupleBufferFactory

public TupleBufferFactory.IntTupleBufferFactory(int tupleSize,
                                                boolean allocateDirect)
Constructs a new IntTupleBufferFactory with the specified tuple size and buffer allocation policy.

Parameters:
tupleSize - the number of coordinates per logical tuple.
allocateDirect - true to allocate IntBufferWrappers backed by direct buffers, false to allocate IntBufferWrappers backed by non-direct buffers.
Throws:
java.lang.IllegalArgumentException - is the tuple size is negative, or if the buffer factory is null.

NASA World Wind