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 Angle
getHeading()
Position
getPosition()
java.awt.Color
getShadowColor()
double
getShadowScale()
boolean
getShowShadow()
void
render(DrawContext dc)
Causes thisRenderable
to render itself using the provided draw context.void
setHeading(Angle head)
void
setPosition(Position pos)
void
setShadowColor(java.awt.Color shadowColor)
void
setShadowScale(double shadowScale)
void
setShowShadow(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:Renderable
Causes thisRenderable
to render itself using the provided draw context.- Specified by:
render
in interfaceRenderable
- Parameters:
dc
- theDrawContext
to be used- See Also:
DrawContext
-
-