Package gov.nasa.worldwind.render

Examples of gov.nasa.worldwind.render.Polyline


      if (this.measureShapeType.equals(SHAPE_LINE) || this.measureShapeType.equals(SHAPE_PATH))
      {
         if (this.positions.size() > 1 && this.line == null)
         {
            // Init polyline
            this.line = new Polyline();
            this.line.setFollowTerrain(true);
            this.line.setLineWidth(this.getLineWidth());
            this.line.setColor(this.getLineColor());
            this.line.setPathType(polylinePathTypeFromKey(this.getPathType()));
View Full Code Here


    @Override
    public void _createNewEntry()
    {
       ((GfrEditorObjShpSegWiseTool) super._epe).setArmed(true);
      
       Polyline polygon = GfrFactoryObjShpSegWiseYes.s_getInstance().create(
                super._glcWwd,
                super.isResizeNewShapesToViewport());
       
        /*polygon.setColor(Color.yellow);
        polygon.setLineWidth(2d);
        polygon.setFollowTerrain(true);*/
       
       
        ArrayList<Position> alt = (ArrayList<Position>) polygon.getPositions();
                     
        ((GfrEditorObjShpSegWiseTool) super._epe).addControlPoint(alt.get(0));
        ((GfrEditorObjShpSegWiseTool) super._epe).addControlPoint(alt.get(1));
       
        ((GfrEditorObjShpSegWiseTool) super._epe).setArmed(false);
View Full Code Here

   


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

        return poly;
    }
View Full Code Here

      {

         public void actionPerformed(ActionEvent actionEvent)
         {
            shapeCombo.setSelectedIndex(1);
            measureTool.setMeasureShape(new Polyline(PATH));
         }

      });
      presetPanel.add(bt);
View Full Code Here

    public Aircraft(String id, String flightID) {
        this.id = id;
        this.flightID = flightID;
        trail = new LinkedList<Position>();
        visibleTrail = new Polyline(trail);
        visibleTrail.setColor(Color.YELLOW);
        visibleTrail.setLineWidth(2.0);
        AircraftLayer.getInstance().addRenderable(visibleTrail);
    }
View Full Code Here

        a = b = c = d = 1;
//        safetyBubble = new SafetyBubble(-1, null, length, beam);
        hull = new Polygon();
        predictedRoute = new ArrayList<Position>(200);
        trail = new LinkedList<gov.nasa.worldwind.geom.Position>();
        visibleTrail = new Polyline(trail);
        visibleTrail.setColor(Color.WHITE);
        visibleTrail.setLineWidth(2.0);
        TargetLayer.getInstance().addRenderable(visibleTrail);
        switch (msg.getMsgType()) {
            case 1:
View Full Code Here

    }

    private void createRenderables(DrawContext dc)
    {
        ArrayList<LatLon> positions = computePlaneShape(dc, this.width, this.length);
        this.planeModel = new Polyline(positions, this.position.getElevation());
        this.planeModel.setPathType(Polyline.LINEAR);
        this.planeModel.setFollowTerrain(false);
        this.planeModel.setNumSubsegments(1);
        this.planeModel.setColor(this.color);

        positions = computePlaneShape(dc, this.shadowScale * this.width, this.shadowScale * this.length);
        this.shadowModel = new Polyline(positions, this.position.getElevation());
        this.shadowModel.setPathType(Polyline.LINEAR);
        this.shadowModel.setFollowTerrain(true);
        this.shadowModel.setColor(this.shadowColor);
    }
View Full Code Here

TOP

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

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.