Package gov.nasa.worldwind.render

Examples of gov.nasa.worldwind.render.ShapeAttributes


public class GfrEntryBltObjPikShpOpn extends GfrEntryBltObjPikShpAbs
{
    static private ShapeAttributes _s_getSelectionAttributes_()
    {
        ShapeAttributes attributes = new BasicShapeAttributes();
        attributes.setInteriorMaterial(Material.WHITE);
        //attributes.setInteriorMaterial(Material.YELLOW);
        attributes.setOutlineMaterial(Material.BLACK);
        //attributes.setOutlineMaterial(Material.BLUE);
        attributes.setDrawOutline(true);
        attributes.setInteriorOpacity(0.8);
        attributes.setOutlineOpacity(0.8);
        attributes.setOutlineWidth(2);
        return attributes;
    }
View Full Code Here


public class GfrEntryBltObjPikShpCls extends GfrEntryBltObjPikShpAbs
{
   static private ShapeAttributes _s_getSelectionAttributes_()
    {
        ShapeAttributes attributes = new BasicShapeAttributes();
        attributes.setInteriorMaterial(Material.WHITE);
        attributes.setOutlineMaterial(Material.BLACK);
        attributes.setDrawOutline(true);
        attributes.setInteriorOpacity(0.8);
        attributes.setOutlineOpacity(0.8);
        attributes.setOutlineWidth(2);
        return attributes;
    }
View Full Code Here

      {
         this.line.getAttributes().setOutlineMaterial(new Material(color));
      }
      if (this.surfaceShape != null)
      {
         ShapeAttributes attr = this.surfaceShape.getAttributes();
         if (attr == null)
            attr = new BasicShapeAttributes();
         attr.setOutlineMaterial(new Material(color));
         attr.setOutlineOpacity(color.getAlpha() / 255d);
         this.surfaceShape.setAttributes(attr);
      }
      this.wwd.redraw();
   }
View Full Code Here

      if (this.line != null)
         this.line.getAttributes().setOutlineWidth(width);
     
      if (this.surfaceShape != null)
      {
         ShapeAttributes attr = this.surfaceShape.getAttributes();
         if (attr == null)
            attr = new BasicShapeAttributes();
         attr.setOutlineWidth(width);
         this.surfaceShape.setAttributes(attr);
      }
      this.wwd.redraw();
   }
View Full Code Here

            // Init polyline
            this.line = new GfrDirectedPath();
            this.line.setFollowTerrain(true);
            this.line.setAltitudeMode(WorldWind.CLAMP_TO_GROUND);
           
            ShapeAttributes attrs = new BasicShapeAttributes();
            attrs.setOutlineWidth(this.getLineWidth());
            attrs.setOutlineMaterial(new Material(this.getLineColor()));
           
            this.line.setAttributes(attrs);

            ((GfrRenderableLayerPickingCustomXxx) this._lyrCustomXxx).addRenderableToCustomShape(this.line);
         }
View Full Code Here

      {
         this.line.setColor(color);
      }
      if (this.surfaceShape != null)
      {
         ShapeAttributes attr = this.surfaceShape.getAttributes();
         if (attr == null)
            attr = new BasicShapeAttributes();
         attr.setOutlineMaterial(new Material(color));
         attr.setOutlineOpacity(color.getAlpha() / 255d);
         this.surfaceShape.setAttributes(attr);
      }
      this.wwd.redraw();
   }
View Full Code Here

      this.lineWidth = width;
      if (this.line != null)
         this.line.setLineWidth(width);
      if (this.surfaceShape != null)
      {
         ShapeAttributes attr = this.surfaceShape.getAttributes();
         if (attr == null)
            attr = new BasicShapeAttributes();
         attr.setOutlineWidth(width);
         this.surfaceShape.setAttributes(attr);
      }
      this.wwd.redraw();
   }
View Full Code Here

  
   static protected final double _DBL_DEFAULT_SHAPE_SIZE_METERS = 20000.0; // 20 km
  
   static protected ShapeAttributes _s_getDefaultAttributes()
   {
        ShapeAttributes attributes = new BasicShapeAttributes();
       
        attributes.setInteriorMaterial(new Material(Color.BLACK, Color.LIGHT_GRAY, Color.DARK_GRAY, Color.BLACK, 0.0f));
       
        attributes.setOutlineMaterial(Material.DARK_GRAY);
        attributes.setDrawOutline(true);
       
        //attributes.setInteriorOpacity(0.95);
        attributes.setInteriorOpacity(0.1);
       
        attributes.setOutlineOpacity(.95);
        attributes.setOutlineWidth(2);
        return attributes;
   }
View Full Code Here

            super(true, true, false);

            RenderableLayer layer = new RenderableLayer();

            // Create and set an attribute bundle.
            ShapeAttributes attrs = new BasicShapeAttributes();
            attrs.setOutlineMaterial(Material.RED);
            attrs.setOutlineWidth(2d);

            // Create a path, set some of its properties and set its attributes.
            ArrayList<Position> pathPositions = new ArrayList<Position>();
            /*pathPositions.add(Position.fromDegrees(49.01653274909177, -122.7349081128505, 1));
            pathPositions.add(Position.fromDegrees(49.01715024535254, -122.7596194200486, 10));
View Full Code Here

TOP

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

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.