Class 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 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 meters
        width - 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 this Renderable to render itself using the provided draw context.
        Specified by:
        render in interface Renderable
        Parameters:
        dc - the DrawContext to be used
        See Also:
        DrawContext