Class ExtrudedPolygonEditor

    • Constructor Detail

      • ExtrudedPolygonEditor

        public ExtrudedPolygonEditor()
    • Method Detail

      • assembleControlPoints

        protected void assembleControlPoints​(DrawContext dc)
      • assembleVertexControlPoints

        protected void assembleVertexControlPoints​(DrawContext dc)
      • assembleHeightControlPoints

        protected void assembleHeightControlPoints()
      • assembleMarkerAttributes

        protected void assembleMarkerAttributes()
      • mouseClicked

        public void mouseClicked​(java.awt.event.MouseEvent e)
      • mouseDragged

        public void mouseDragged​(java.awt.event.MouseEvent e)
      • mousePressed

        public void mousePressed​(java.awt.event.MouseEvent e)
      • mouseReleased

        public void mouseReleased​(java.awt.event.MouseEvent e)
      • movePolygon

        protected void movePolygon​(java.awt.Point previousMousePoint,
                                   java.awt.Point mousePoint)
      • setPolygonHeight

        protected void setPolygonHeight​(java.awt.Point previousMousePoint,
                                        java.awt.Point mousePoint)
      • addVertex

        protected void addVertex​(java.awt.Point mousePoint)
        Add a vertex to the polygon's outer boundary.
        Parameters:
        mousePoint - the point at which the mouse was clicked. The new vertex will be placed as near as possible to this point, at the elevation of the polygon.
      • intersectPolygonAltitudeAt

        protected Vec4 intersectPolygonAltitudeAt​(Line ray)
        Determine the point at which a ray intersects a the globe at the elevation of the polygon.
        Parameters:
        ray - Ray to intersect with the globe.
        Returns:
        The point at which the ray intersects the globe at the elevation of the polygon.
      • mouseEntered

        public void mouseEntered​(java.awt.event.MouseEvent e)
      • mouseExited

        public void mouseExited​(java.awt.event.MouseEvent e)
      • mouseMoved

        public void mouseMoved​(java.awt.event.MouseEvent e)
      • computeAnnotationPosition

        protected Vec4 computeAnnotationPosition​(Position pos)
      • getDisplayString

        protected java.lang.String getDisplayString​(Position pos)
      • formatMeasurements

        protected java.lang.String formatMeasurements​(Position pos)