public class Quadrilateral extends Object implements Renderable, Movable
| Modifier and Type | Field and Description |
|---|---|
protected WWTexture |
texture |
protected DoubleBuffer |
textureCoordinates |
| Constructor and Description |
|---|
Quadrilateral(LatLon southwestCorner,
LatLon northeastCorner,
double elevation) |
Quadrilateral(Sector sector,
double elevation) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAntiAliasHint() |
Color |
getColor() |
LatLon[] |
getCorners() |
double |
getElevation() |
Object |
getImageSource() |
Position |
getReferencePosition()
A position associated with the object that indicates its aggregate geographic position.
|
protected void |
initializeTextureCoordinates() |
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 |
render(DrawContext dc)
Causes this
Renderable to render itself using the provided draw context. |
void |
setAntiAliasHint(int hint) |
void |
setColor(Color color) |
void |
setCorners(LatLon southWest,
LatLon northEast) |
void |
setElevation(double elevation) |
void |
setImageSource(Object imageSource) |
protected WWTexture texture
protected DoubleBuffer textureCoordinates
public Quadrilateral(LatLon southwestCorner, LatLon northeastCorner, double elevation)
public Quadrilateral(Sector sector, double elevation)
public int getAntiAliasHint()
public Color getColor()
public LatLon[] getCorners()
public double getElevation()
public Object getImageSource()
public Position getReferencePosition()
MovablegetReferencePosition in interface Movableprotected void initializeTextureCoordinates()
public void move(Position delta)
Movablepublic void moveTo(Position position)
Movablepublic void render(DrawContext dc)
RenderableRenderable to render itself using the provided draw context.render in interface Renderabledc - the DrawContext to be usedDrawContextpublic void setAntiAliasHint(int hint)
public void setColor(Color color)
public void setElevation(double elevation)
public void setImageSource(Object imageSource)