Package gov.nasa.worldwind.render

Examples of gov.nasa.worldwind.render.ExtrudedPolygon


    @Override
    protected void _assembleVertexControlPoints_(DrawContext dc)
    {
        Terrain terrain = dc.getTerrain();
        ExtrudedPolygon pol = (ExtrudedPolygon) super._pol_;

        Position refPos = pol.getReferencePosition();
        Vec4 refPoint = terrain.getSurfacePoint(refPos.getLatitude(), refPos.getLongitude(), 0);

        int altitudeMode = pol.getAltitudeMode();
        double height = pol.getHeight();

        Vec4 vaa = null;
        double vaaLength = 0; // used to compute independent length of each cap vertex
        double vaLength = 0;

        int i = 0;
        for (LatLon location : pol.getOuterBoundary())
        {
            Vec4 vert;

            // Compute the top/cap point.
            if (altitudeMode == WorldWind.CONSTANT || !(location instanceof Position))
View Full Code Here


        {
            System.out.println("this._lstMarkerControlPoints.size() == 5, preventing remove");
            return false;
        }
       
        ExtrudedPolygon polygon = (ExtrudedPolygon) super._pol_;
        ArrayList<LatLon> locations = new ArrayList<LatLon>(this._lstMarkerControlPoints.size() - 1);

        for (LatLon latLon : polygon.getOuterBoundary())
        {
            locations.add(latLon);
        }
       
        locations.remove(vertexToRemove.getIndex());

        polygon.setOuterBoundary(locations);
        return true;
    }
View Full Code Here

    }
   

    public ExtrudedPolygon create(WorldWindow wwd, boolean blnFitObjectToViewport)
    {
        ExtrudedPolygon poly = new ExtrudedPolygon();
        poly.setAttributes(GfrFactoryObjShpPlnAbs._s_getDefaultAttributes());
        poly.setValue(AVKey.DISPLAY_NAME, GfrFactoryObjShpPlnCls._s_getNextName_(toString()));
        this._initializePolygon_(wwd, poly, blnFitObjectToViewport);

        return poly;
    }
View Full Code Here

   public Object getValue()
   {
      if (super._pey == null)
         return (Object) null;

      ExtrudedPolygon epn = (ExtrudedPolygon) this._pey.getRenderable();
      Iterator<? extends LatLon> itr = epn.getOuterBoundary().iterator();
      return super._getValue(itr);
   }
View Full Code Here

   }

   @Override
   public void _createNewEntry()
   {
      ExtrudedPolygon polygon = GfrFactoryObjShpPlnCls.s_getInstance().create(
              super._glcWwd, super.isResizeNewShapesToViewport());

      GfrEntryBltObjPikShpAbs pey = new GfrEntryBltObjPikShpCls(polygon);
      super._createNewEntry(pey);
   }
View Full Code Here

TOP

Related Classes of gov.nasa.worldwind.render.ExtrudedPolygon

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.