Class KMLSurfaceImageImpl

    • Field Detail

      • attributesResolved

        protected boolean attributesResolved
      • textureResolved

        protected boolean textureResolved
        Indicates that the source texture has been resolved and loaded.
      • iconRetrievalTime

        protected long iconRetrievalTime
        Indicates the time at which the image source was specified.
      • mustApplyRotation

        protected boolean mustApplyRotation
        Flag to indicate the rotation must be applied to the SurfaceImage. Rotation is applied the first time that the image is rendered.
    • Constructor Detail

      • KMLSurfaceImageImpl

        public KMLSurfaceImageImpl​(KMLTraversalContext tc,
                                   KMLGroundOverlay overlay)
        Create an screen image.
        Parameters:
        tc - the current KMLTraversalContext.
        overlay - the Overlay element containing.
        Throws:
        java.lang.NullPointerException - if the traversal context is null.
        java.lang.IllegalArgumentException - if the parent overlay or the traversal context is null.
    • Method Detail

      • mustResolveHref

        protected boolean mustResolveHref()
        Indicates whether or not the image source needs to be resolved. The source needs to be resolved when the KMLIcon is updated.
        Returns:
        True if the image source must be resolved.
      • resolveHref

        protected java.lang.String resolveHref()
        Resolve the HREF in this overlay's Icon element against the KML root.
        Returns:
        The resolved path to the image source.
      • applyRotation

        protected void applyRotation​(DrawContext dc)
        Apply a rotation to the corner points of the overlay.
        Parameters:
        dc - Current draw context.