public class PlaneModel extends java.lang.Object implements Renderable
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
Angle |
getHeading() |
Position |
getPosition() |
java.awt.Color |
getShadowColor() |
double |
getShadowScale() |
boolean |
getShowShadow() |
void |
render(DrawContext dc)
Causes this
Renderable 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) |
public PlaneModel()
public PlaneModel(java.lang.Double length, java.lang.Double width, java.awt.Color color)
length
- the plane length in meterswidth
- the plane width in meter.color
- the plane color.public Angle getHeading()
public Position getPosition()
public java.awt.Color getShadowColor()
public double getShadowScale()
public boolean getShowShadow()
public void render(DrawContext dc)
Renderable
Renderable
to render itself using the provided draw context.render
in interface Renderable
dc
- the DrawContext
to be usedDrawContext
public void setHeading(Angle head)
public void setPosition(Position pos)
public void setShadowColor(java.awt.Color shadowColor)
public void setShadowScale(double shadowScale)
public void setShowShadow(boolean state)