public class PlaneModel extends Object implements Renderable
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
Angle |
getHeading() |
Position |
getPosition() |
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(Color shadowColor) |
void |
setShadowScale(double shadowScale) |
void |
setShowShadow(boolean state) |
public PlaneModel()
public Angle getHeading()
public Position getPosition()
public 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(Color shadowColor)
public void setShadowScale(double shadowScale)
public void setShowShadow(boolean state)