|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.worldwind.applications.sar.PlaneModel
public class PlaneModel
Renders a plane model at a position with a given heading. The plane is parallel to the ground. An optional 'shadow' shape is rendered on the ground.
Constructor Summary | |
---|---|
PlaneModel()
Renders a plane model with the defaul dimensions and color. |
|
PlaneModel(Double length,
Double width,
Color color)
Renders a plane model with the specified dimensions and color. |
Method Summary | |
---|---|
Angle |
getHeading()
|
Position |
getPosition()
|
Color |
getShadowColor()
|
double |
getShadowScale()
|
boolean |
getShowShadow()
|
void |
render(DrawContext dc)
Causes this Renderable to render itself using the DrawContext provided. |
void |
setHeading(Angle head)
|
void |
setPosition(Position pos)
|
void |
setShadowColor(Color shadowColor)
|
void |
setShadowScale(double shadowScale)
|
void |
setShowShadow(boolean state)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlaneModel()
public PlaneModel(Double length, Double width, Color color)
length
- the plane length in meterswidth
- the plane width in meter.color
- the plane color.Method Detail |
---|
public Angle getHeading()
public Position getPosition()
public Color getShadowColor()
public double getShadowScale()
public boolean getShowShadow()
public void render(DrawContext dc)
Renderable
Renderable
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 DrawContext
s.
render
in interface Renderable
dc
- the DrawContext
to be usedDrawContext
public void setHeading(Angle head)
public void setPosition(Position pos)
public void setShadowColor(Color shadowColor)
public void setShadowScale(double shadowScale)
public void setShowShadow(boolean state)
|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |