Class AntennaAxes

    • Field Detail

      • nHeightIntervals

        protected int nHeightIntervals
      • nThetaIntervals

        protected int nThetaIntervals
      • azimuth

        protected Angle azimuth
      • elevationAngle

        protected Angle elevationAngle
      • length

        protected double length
      • radius

        protected double radius
      • labelFont

        protected java.awt.Font labelFont
      • xAxisLabel

        protected java.lang.String xAxisLabel
      • yAxisLabel

        protected java.lang.String yAxisLabel
      • zAxisLabel

        protected java.lang.String zAxisLabel
    • Constructor Detail

      • AntennaAxes

        public AntennaAxes()
    • Method Detail

      • getCurrent

        protected AntennaAxes.ShapeData getCurrent()
        Returns the current shape data cache entry.
        Returns:
        the current data cache entry.
      • initialize

        protected void initialize()
        Description copied from class: AbstractShape
        Called during construction to establish any subclass-specific state such as different default values than those set by this class.
        Specified by:
        initialize in class AbstractShape
      • getPosition

        public Position getPosition()
      • setPosition

        public void setPosition​(Position position)
        Specifies the position of the axes' origin.
        Parameters:
        position - the position of the axes' origin.
      • getAzimuth

        public Angle getAzimuth()
      • setAzimuth

        public void setAzimuth​(Angle azimuth)
        Specifies an angle clockwise from north by which to rotate the axes.
        Parameters:
        azimuth - the angle from north.
      • getElevationAngle

        public Angle getElevationAngle()
      • setElevationAngle

        public void setElevationAngle​(Angle elevationAngle)
        Specifies an angle to rotate the axes vertically counterclockwise from the horizon. The rotation is a right-handed rotation relative to the X axis.
        Parameters:
        elevationAngle - the elevation angle.
      • getRadius

        public double getRadius()
      • setRadius

        public void setRadius​(double radius)
      • getLength

        public double getLength()
      • setLength

        public void setLength​(double length)
        Specifies the length of the axes, in meters.
        Parameters:
        length - the axes length in meters.
      • getLabelFont

        public java.awt.Font getLabelFont()
      • setLabelFont

        public void setLabelFont​(java.awt.Font labelFont)
      • getXAxisLabel

        public java.lang.String getXAxisLabel()
      • setXAxisLabel

        public void setXAxisLabel​(java.lang.String xAxisLabel)
      • getYAxisLabel

        public java.lang.String getYAxisLabel()
      • setYAxisLabel

        public void setYAxisLabel​(java.lang.String yAxisLabel)
      • getZAxisLabel

        public java.lang.String getZAxisLabel()
      • setZAxisLabel

        public void setZAxisLabel​(java.lang.String zAxisLabel)
      • getReferencePosition

        public Position getReferencePosition()
        Description copied from interface: Movable
        A position associated with the object that indicates its aggregate geographic position. The chosen position varies among implementers of this interface. For objects defined by a list of positions, the reference position is typically the first position in the list. For symmetric objects the reference position is often the center of the object. In many cases the object's reference position may be explicitly specified by the application.
        Returns:
        the object's reference position, or null if no reference position is available.
      • getExtent

        public Extent getExtent​(Globe globe,
                                double verticalExaggeration)
        Description copied from interface: ExtentHolder
        Returns the objects enclosing volume as an Extent in model coordinates, given a specified Globe and vertical exaggeration (see SceneController.getVerticalExaggeration().
        Specified by:
        getExtent in interface ExtentHolder
        Overrides:
        getExtent in class AbstractShape
        Parameters:
        globe - the Globe the object is related to.
        verticalExaggeration - the vertical exaggeration of the scene containing this object.
        Returns:
        the object's Extent in model coordinates.
      • getSector

        public Sector getSector()
        Description copied from interface: GeographicExtent
        Returns the object's geographic extent.
        Returns:
        the object's geographic extent.
      • mustApplyTexture

        protected boolean mustApplyTexture​(DrawContext dc)
        Description copied from class: AbstractShape
        Indicates whether texture should be applied to this shape. Called during rendering to determine whether texture state should be established during preparation for interior drawing.

        Note: This method always returns false during the pick pass.

        Specified by:
        mustApplyTexture in class AbstractShape
        Parameters:
        dc - the current draw context
        Returns:
        true if texture should be applied, otherwise false.
      • shouldUseVBOs

        protected boolean shouldUseVBOs​(DrawContext dc)
        Description copied from class: AbstractShape
        Indicates whether this shape should use OpenGL vertex buffer objects.
        Overrides:
        shouldUseVBOs in class AbstractShape
        Parameters:
        dc - the current draw context.
        Returns:
        true if this shape should use vertex buffer objects, otherwise false.
      • mustDrawOutline

        protected boolean mustDrawOutline()
        Description copied from class: AbstractShape
        Indicates whether this shape's outline must be drawn.
        Overrides:
        mustDrawOutline in class AbstractShape
        Returns:
        true if the outline should be drawn, otherwise false.
      • mustRegenerateGeometry

        protected boolean mustRegenerateGeometry​(DrawContext dc)
        Description copied from class: AbstractShape
        Indicates whether this shape's renderable geometry must be recomputed, either as a result of an attribute or property change or the expiration of the geometry regeneration interval.

        A AbstractShape.AbstractShapeData must be current when this method is called.

        Overrides:
        mustRegenerateGeometry in class AbstractShape
        Parameters:
        dc - the current draw context.
        Returns:
        true if this shape's geometry must be regenerated, otherwise false.
      • drawLabels

        protected void drawLabels​(DrawContext dc)
      • drawLabel

        protected void drawLabel​(TextRenderer textRenderer,
                                 java.lang.String text,
                                 Vec4 screenPoint,
                                 java.awt.Color textColor,
                                 java.awt.Color bgColor)
      • makeCylinderVertices

        protected void makeCylinderVertices​(DrawContext dc)
      • makeCylinderIndices

        protected void makeCylinderIndices()
      • makeCylinderNormals

        protected void makeCylinderNormals()
      • makeCone

        protected void makeCone()
      • fillVBO

        protected void fillVBO​(DrawContext dc)
        Description copied from class: AbstractShape
        Fill this shape's vertex buffer objects. If the vertex buffer object resource IDs don't yet exist, create them.

        A AbstractShape.AbstractShapeData must be current when this method is called.

        Specified by:
        fillVBO in class AbstractShape
        Parameters:
        dc - the current draw context.
      • moveTo

        public void moveTo​(Position position)
        Description copied from interface: Movable
        Move the shape over the globe's surface while maintaining its original azimuth, its orientation relative to North.
        Parameters:
        position - the new position of the shape's reference position.
      • intersect

        public java.util.List<Intersection> intersect​(Line line,
                                                      Terrain terrain)
                                               throws java.lang.InterruptedException
        Description copied from class: AbstractShape
        Compute the intersections of a specified line with this shape. If the shape's altitude mode is other than WorldWind.ABSOLUTE, the shape's geometry is created relative to the specified terrain rather than the terrain used during rendering, which may be at lower level of detail than required for accurate intersection determination.
        Specified by:
        intersect in class AbstractShape
        Parameters:
        line - the line to intersect.
        terrain - the Terrain to use when computing the shape's geometry.
        Returns:
        a list of intersections identifying where the line intersects the shape, or null if the line does not intersect the shape.
        Throws:
        java.lang.InterruptedException - if the operation is interrupted.
        See Also:
        Terrain
      • doExportAsKML

        protected void doExportAsKML​(javax.xml.stream.XMLStreamWriter xmlWriter)
                              throws java.io.IOException,
                                     javax.xml.stream.XMLStreamException
        Description copied from class: AbstractShape
        Exports shape-specific fields.
        Specified by:
        doExportAsKML in class AbstractShape
        Parameters:
        xmlWriter - the export writer to write to.
        Throws:
        java.io.IOException - if an IO error occurs while writing to the output destination.
        javax.xml.stream.XMLStreamException - if an exception occurs converting this shape's fields to XML.