gov.nasa.worldwind.applications.sar.render
Class PlaneModel
java.lang.Object
gov.nasa.worldwind.applications.sar.render.PlaneModel
- All Implemented Interfaces:
- Renderable
public class PlaneModel - extends Object
- implements Renderable
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlaneModel
public PlaneModel()
- Renders a plane model with the defaul dimensions and color.
PlaneModel
public PlaneModel(Double length,
Double width,
Color color)
- Renders a plane model with the specified dimensions and color.
- Parameters:
length - the plane length in meterswidth - the plane width in meter.color - the plane color.
getHeading
public Angle getHeading()
getPosition
public Position getPosition()
getShadowColor
public Color getShadowColor()
getShadowScale
public double getShadowScale()
getShowShadow
public boolean getShowShadow()
render
public void render(DrawContext dc)
- Description copied from interface:
Renderable
- Causes this
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 DrawContexts.
- Specified by:
render in interface Renderable
- Parameters:
dc - the DrawContext to be used- See Also:
DrawContext
setHeading
public void setHeading(Angle head)
setPosition
public void setPosition(Position pos)
setShadowColor
public void setShadowColor(Color shadowColor)
setShadowScale
public void setShadowScale(double shadowScale)
setShowShadow
public void setShowShadow(boolean state)
|