Package gov.nasa.worldwind.util
Class CompoundVecBuffer.EmptyCompoundVecBuffer
- java.lang.Object
-
- gov.nasa.worldwind.util.CompoundVecBuffer
-
- gov.nasa.worldwind.util.CompoundVecBuffer.EmptyCompoundVecBuffer
-
- Enclosing class:
- CompoundVecBuffer
protected static class CompoundVecBuffer.EmptyCompoundVecBuffer extends CompoundVecBuffer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gov.nasa.worldwind.util.CompoundVecBuffer
CompoundVecBuffer.CompoundIterator<T>, CompoundVecBuffer.CoordIterable, CompoundVecBuffer.EmptyCompoundVecBuffer, CompoundVecBuffer.LocationIterable, CompoundVecBuffer.PositionIterable, CompoundVecBuffer.ReverseCompoundIterator<T>, CompoundVecBuffer.SubBufferIterable<T>, CompoundVecBuffer.VectorIterable
-
-
Field Summary
Fields Modifier and Type Field Description protected intcoordsPerVec-
Fields inherited from class gov.nasa.worldwind.util.CompoundVecBuffer
ALLOCATE_DIRECT_BUFFERS, capacity, count, DEFAULT_INITIAL_CAPACITY, lengths, offsets
-
-
Constructor Summary
Constructors Modifier Constructor Description EmptyCompoundVecBuffer(int coordsPerVec)protectedEmptyCompoundVecBuffer(CompoundVecBuffer.EmptyCompoundVecBuffer that, int[] indices, int offset, int length)protectedEmptyCompoundVecBuffer(CompoundVecBuffer.EmptyCompoundVecBuffer that, int beginIndex, int endIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CompoundVecBuffercreateSlice(int[] indices, int offset, int length)protected CompoundVecBuffercreateSlice(int beginIndex, int endIndex)protected VecBuffercreateSubBuffer(int offset, int length)intgetCoordsPerVec()Returns the number of coordinates per logical vector element.intsubBufferSize(int index)Returns the size in logical vectors of the VecBuffer with the specified index.-
Methods inherited from class gov.nasa.worldwind.util.CompoundVecBuffer
addSubBuffer, clear, emptyCompoundVecBuffer, expandCapacity, getCoords, getCoords, getLocations, getPositions, getReverseCoords, getReverseLocations, getReversePositions, getReverseVectors, getVectors, size, slice, slice, slice, subBuffer
-
-
-
-
Constructor Detail
-
EmptyCompoundVecBuffer
public EmptyCompoundVecBuffer(int coordsPerVec)
-
EmptyCompoundVecBuffer
protected EmptyCompoundVecBuffer(CompoundVecBuffer.EmptyCompoundVecBuffer that, int beginIndex, int endIndex)
-
EmptyCompoundVecBuffer
protected EmptyCompoundVecBuffer(CompoundVecBuffer.EmptyCompoundVecBuffer that, int[] indices, int offset, int length)
-
-
Method Detail
-
subBufferSize
public int subBufferSize(int index)
Description copied from class:CompoundVecBufferReturns the size in logical vectors of the VecBuffer with the specified index.- Specified by:
subBufferSizein classCompoundVecBuffer- Parameters:
index- the index for the VecBuffer who's size is returned.- Returns:
- the size of the specified VecBuffer.
-
getCoordsPerVec
public int getCoordsPerVec()
Description copied from class:CompoundVecBufferReturns the number of coordinates per logical vector element.- Specified by:
getCoordsPerVecin classCompoundVecBuffer- Returns:
- the cardinality of a logical vector element.
-
createSubBuffer
protected VecBuffer createSubBuffer(int offset, int length)
- Specified by:
createSubBufferin classCompoundVecBuffer
-
createSlice
protected CompoundVecBuffer createSlice(int[] indices, int offset, int length)
- Specified by:
createSlicein classCompoundVecBuffer
-
createSlice
protected CompoundVecBuffer createSlice(int beginIndex, int endIndex)
- Specified by:
createSlicein classCompoundVecBuffer
-
-