gov.nasa.worldwind.data
Class BufferWrapperRaster
java.lang.Object
gov.nasa.worldwind.data.BufferedDataRaster
gov.nasa.worldwind.data.BufferWrapperRaster
- All Implemented Interfaces:
- Cacheable, DataRaster, Disposable
- Direct Known Subclasses:
- ByteBufferRaster
public class BufferWrapperRaster
- extends BufferedDataRaster
- implements Cacheable, Disposable
|
Method Summary |
void |
dispose()
|
protected void |
get(int x,
int y,
int length,
double[] buffer,
int pos)
|
BufferWrapper |
getBuffer()
|
long |
getSizeInBytes()
Retrieves the approximate size of this object in bytes. |
protected int |
indexFor(int x,
int y)
|
protected void |
put(int x,
int y,
double[] buffer,
int pos,
int length)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BufferWrapperRaster
public BufferWrapperRaster(int width,
int height,
Sector sector,
BufferWrapper buffer)
dispose
public void dispose()
- Specified by:
dispose in interface Disposable
get
protected void get(int x,
int y,
int length,
double[] buffer,
int pos)
- Specified by:
get in class BufferedDataRaster
getBuffer
public BufferWrapper getBuffer()
getSizeInBytes
public long getSizeInBytes()
- Description copied from interface:
Cacheable
- Retrieves the approximate size of this object in bytes. Implementors are encouraged to calculate the exact size
for smaller objects, but use approximate values for objects that include such large components that the
approximation would produce an error so small that the extra computation would be wasteful.
- Specified by:
getSizeInBytes in interface Cacheable
- Returns:
- this
Cacheable object's size in bytes
indexFor
protected final int indexFor(int x,
int y)
put
protected void put(int x,
int y,
double[] buffer,
int pos,
int length)
- Specified by:
put in class BufferedDataRaster