Class PlaneModel
- java.lang.Object
-
- gov.nasa.worldwindx.applications.sar.render.PlaneModel
-
- All Implemented Interfaces:
Renderable
public class PlaneModel extends java.lang.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
Constructors Constructor Description PlaneModel()Renders a plane model with the defaul dimensions and color.PlaneModel(java.lang.Double length, java.lang.Double width, java.awt.Color color)Renders a plane model with the specified dimensions and color.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnglegetHeading()PositiongetPosition()java.awt.ColorgetShadowColor()doublegetShadowScale()booleangetShowShadow()voidrender(DrawContext dc)Causes thisRenderableto render itself using the provided draw context.voidsetHeading(Angle head)voidsetPosition(Position pos)voidsetShadowColor(java.awt.Color shadowColor)voidsetShadowScale(double shadowScale)voidsetShowShadow(boolean state)
-
-
-
Constructor Detail
-
PlaneModel
public PlaneModel()
Renders a plane model with the defaul dimensions and color.
-
PlaneModel
public PlaneModel(java.lang.Double length, java.lang.Double width, java.awt.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.
-
-
Method Detail
-
setPosition
public void setPosition(Position pos)
-
getPosition
public Position getPosition()
-
setHeading
public void setHeading(Angle head)
-
getHeading
public Angle getHeading()
-
setShowShadow
public void setShowShadow(boolean state)
-
getShowShadow
public boolean getShowShadow()
-
getShadowScale
public double getShadowScale()
-
setShadowScale
public void setShadowScale(double shadowScale)
-
getShadowColor
public java.awt.Color getShadowColor()
-
setShadowColor
public void setShadowColor(java.awt.Color shadowColor)
-
render
public void render(DrawContext dc)
Description copied from interface:RenderableCauses thisRenderableto render itself using the provided draw context.- Specified by:
renderin interfaceRenderable- Parameters:
dc- theDrawContextto be used- See Also:
DrawContext
-
-