gov.nasa.worldwind.data
Class BufferedDataRaster
java.lang.Object
gov.nasa.worldwind.data.BufferedDataRaster
- All Implemented Interfaces:
- DataRaster
- Direct Known Subclasses:
- BufferWrapperRaster
public abstract class BufferedDataRaster
- extends Object
- implements DataRaster
Method Summary |
protected Rectangle |
computeClipRect(Sector clipSector,
DataRaster clippedRaster)
|
protected AffineTransform |
computeGeographicToRasterTransform(int width,
int height,
Sector sector)
|
protected AffineTransform |
computeSourceToDestTransform(int sourceWidth,
int sourceHeight,
Sector sourceSector,
int destWidth,
int destHeight,
Sector destSector)
|
protected void |
doDrawOnCanvas(BufferedDataRaster canvas,
Sector clipSector)
|
void |
drawOnCanvas(DataRaster canvas)
|
void |
drawOnCanvas(DataRaster canvas,
Sector clipSector)
|
void |
fill(double value)
|
protected abstract void |
get(int x,
int y,
int length,
double[] buffer,
int pos)
|
int |
getHeight()
|
Sector |
getSector()
|
double |
getTransparentValue()
|
int |
getWidth()
|
protected abstract void |
put(int x,
int y,
double[] buffer,
int pos,
int length)
|
void |
setTransparentValue(double transparentValue)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BufferedDataRaster
public BufferedDataRaster(int width,
int height,
Sector sector)
computeClipRect
protected Rectangle computeClipRect(Sector clipSector,
DataRaster clippedRaster)
computeGeographicToRasterTransform
protected AffineTransform computeGeographicToRasterTransform(int width,
int height,
Sector sector)
computeSourceToDestTransform
protected AffineTransform computeSourceToDestTransform(int sourceWidth,
int sourceHeight,
Sector sourceSector,
int destWidth,
int destHeight,
Sector destSector)
doDrawOnCanvas
protected void doDrawOnCanvas(BufferedDataRaster canvas,
Sector clipSector)
drawOnCanvas
public void drawOnCanvas(DataRaster canvas)
- Specified by:
drawOnCanvas
in interface DataRaster
drawOnCanvas
public void drawOnCanvas(DataRaster canvas,
Sector clipSector)
- Specified by:
drawOnCanvas
in interface DataRaster
fill
public void fill(double value)
get
protected abstract void get(int x,
int y,
int length,
double[] buffer,
int pos)
getHeight
public int getHeight()
- Specified by:
getHeight
in interface DataRaster
getSector
public Sector getSector()
- Specified by:
getSector
in interface DataRaster
getTransparentValue
public double getTransparentValue()
getWidth
public int getWidth()
- Specified by:
getWidth
in interface DataRaster
put
protected abstract void put(int x,
int y,
double[] buffer,
int pos,
int length)
setTransparentValue
public void setTransparentValue(double transparentValue)