|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.render.SurfaceImage
public class SurfaceImage
Renders a single image contained in a local file or BufferedImage
| Field Summary | |
|---|---|
protected List<LatLon> |
corners
|
protected Extent |
extent
|
protected WWTexture |
generatedTexture
|
protected Object |
globeStateKey
|
protected WWTexture |
sourceTexture
|
| Constructor Summary | |
|---|---|
SurfaceImage(Object imageSource,
Iterable<? extends LatLon> corners)
|
|
SurfaceImage(Object imageSource,
Sector sector)
Renders a single image tile from a local image source. |
|
| Method Summary | |
|---|---|
void |
applyInternalTransform(DrawContext dc)
|
boolean |
bind(DrawContext dc)
|
boolean |
equals(Object o)
|
List<LatLon> |
getCorners()
|
Extent |
getExtent(DrawContext dc)
|
Object |
getImageSource()
|
double |
getOpacity()
|
Position |
getReferencePosition()
|
Sector |
getSector()
|
int |
hashCode()
|
protected void |
initializeGeometry(Iterable<? extends LatLon> corners)
|
protected void |
initializeSourceTexture(Object imageSource)
|
protected boolean |
isExtentValid(DrawContext dc)
|
protected WWTexture |
makeGeneratedTexture(DrawContext dc)
|
void |
move(Position delta)
Shift the shape over the globe's surface while maintaining its original azimuth, its orientation relative to North. |
void |
moveTo(Position position)
Move the shape over the globe's surface while maintaining its original azimuth, its orientation relative to North. |
void |
preRender(DrawContext dc)
|
void |
render(DrawContext dc)
Causes this Renderable to render itself using the DrawContext provided. |
void |
setCorners(Iterable<? extends LatLon> corners)
|
void |
setOpacity(double opacity)
|
protected void |
setReferencePosition(Position referencePosition)
|
protected void |
setSector(Sector sector)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List<LatLon> corners
protected Extent extent
protected WWTexture generatedTexture
protected Object globeStateKey
protected WWTexture sourceTexture
| Constructor Detail |
|---|
public SurfaceImage(Object imageSource,
Iterable<? extends LatLon> corners)
public SurfaceImage(Object imageSource,
Sector sector)
imageSource - either the file path to a local image or a BufferedImage reference.sector - the sector covered by the image.| Method Detail |
|---|
public void applyInternalTransform(DrawContext dc)
applyInternalTransform in interface SurfaceTilepublic boolean bind(DrawContext dc)
bind in interface SurfaceTilepublic boolean equals(Object o)
equals in class Objectpublic List<LatLon> getCorners()
getCorners in interface SurfaceTilepublic Extent getExtent(DrawContext dc)
getExtent in interface SurfaceTilepublic Object getImageSource()
public double getOpacity()
public Position getReferencePosition()
getReferencePosition in interface Movablepublic Sector getSector()
getSector in interface SurfaceTilepublic int hashCode()
hashCode in class Objectprotected void initializeGeometry(Iterable<? extends LatLon> corners)
protected void initializeSourceTexture(Object imageSource)
protected boolean isExtentValid(DrawContext dc)
protected WWTexture makeGeneratedTexture(DrawContext dc)
public void move(Position delta)
Movable
move in interface Movabledelta - the latitude and longitude to add to the shape's reference position.public void moveTo(Position position)
Movable
moveTo in interface Movableposition - the new position of the shape's reference position.public void preRender(DrawContext dc)
preRender in interface PreRenderablepublic void render(DrawContext dc)
RenderableRenderable to render itself using the DrawContext provided. The
DrawContext provides the elevation model, openGl instance, globe and other information required for
drawing. It is recommended that the DrawContext is non-null as most implementations do not support
null DrawContexts.
render in interface Renderabledc - the DrawContext to be usedDrawContextpublic void setCorners(Iterable<? extends LatLon> corners)
public void setOpacity(double opacity)
protected void setReferencePosition(Position referencePosition)
protected void setSector(Sector sector)
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||