NASA World Wind

gov.nasa.worldwind.applications.sar
Class PlaneModel

java.lang.Object
  extended by gov.nasa.worldwind.applications.sar.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.
 
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

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 meters
width - the plane width in meter.
color - the plane color.
Method Detail

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)

NASA World Wind