Examples of BasicShapeAttributes


Examples of gov.nasa.worldwind.render.BasicShapeAttributes

    }
   
    @Override
    public void setAttributesThis() throws Exception
    {
       BasicShapeAttributes bsa = new BasicShapeAttributes();

       bsa.setDrawOutline(true);
       double dblWidthOut = (double) GfrWrpBasPrsDspPrjRndWwdEarthShpDimOneLineWiseYes.getInstance().getThickness(this._strIdParent_);
       bsa.setOutlineWidth(dblWidthOut);
     
       Color colRgbOut = GfrWrpBasPrsDspPrjRndWwdEarthShpDimOneLineWiseYes.getInstance().getColor(this._strIdParent_)
       bsa.setOutlineMaterial(new Material(colRgbOut));
    
       float fltAlphaOut = GfrWrpBasPrsDspPrjRndWwdEarthShpDimOneLineWiseYes.getInstance().getTransparency(this._strIdParent_);
       bsa.setOutlineOpacity((double) fltAlphaOut);
    
       super.setAttributes(bsa);
    }
View Full Code Here

Examples of gov.nasa.worldwind.render.BasicShapeAttributes

         
          if (objWhat == EnuEvtDspRndWwdEarthShpDimOne.COLOR)
          {
             Color col = (Color) evt.getValue();
             BasicShapeAttributes bsa = (BasicShapeAttributes) super.getAttributes();
             bsa.setOutlineMaterial(new Material(col));
             this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
             return;
          }
         
          if (objWhat == EnuEvtDspRndWwdEarthShpDimOne.TRANSPARENCY)
          {
             Float flo = (Float) evt.getValue();
             float fltAlpha = flo.floatValue();
             BasicShapeAttributes bsa = (BasicShapeAttributes) super.getAttributes();
             bsa.setOutlineOpacity((double) fltAlpha);
             this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
             return;
          }
         
          if (objWhat == EnuEvtDspRndWwdEarthShpDimOneLine.THICKNESS)
          {
             Integer itg = (Integer) evt.getValue();
             BasicShapeAttributes bsa = (BasicShapeAttributes) super.getAttributes();
             bsa.setOutlineWidth(itg.doubleValue());
             this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
             return;
          }
         
         
View Full Code Here

Examples of gov.nasa.worldwind.render.BasicShapeAttributes

    }
   
    @Override
    public void setAttributesThis() throws Exception
    {
       BasicShapeAttributes bsa = new BasicShapeAttributes();

       bsa.setDrawOutline(true);
       double dblWidthOut = (double) GfrWrpBasPrsDspPrjRndWwdEarthShpDimOneLineWiseNo.getInstance().getThickness(this._strIdParent_);
       bsa.setOutlineWidth(dblWidthOut);
     
       Color colRgbOut = GfrWrpBasPrsDspPrjRndWwdEarthShpDimOneLineWiseNo.getInstance().getColor(this._strIdParent_)
       bsa.setOutlineMaterial(new Material(colRgbOut));
    
       float fltAlphaOut = GfrWrpBasPrsDspPrjRndWwdEarthShpDimOneLineWiseNo.getInstance().getTransparency(this._strIdParent_);
       bsa.setOutlineOpacity((double) fltAlphaOut);
    
       super.setAttributes(bsa);
    }
View Full Code Here

Examples of gov.nasa.worldwind.render.BasicShapeAttributes

      }
      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

Examples of gov.nasa.worldwind.render.BasicShapeAttributes

         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

Examples of gov.nasa.worldwind.render.BasicShapeAttributes

  
   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

Examples of gov.nasa.worldwind.render.BasicShapeAttributes

            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

Examples of gov.nasa.worldwind.render.BasicShapeAttributes

         
          if (objWhat == EnuEvtDspRndWwdEarthShpDimOne.COLOR)
          {
             Color col = (Color) evt.getValue();
             BasicShapeAttributes bsa = (BasicShapeAttributes) super.getAttributes();
             bsa.setOutlineMaterial(new Material(col));
             this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
             return;
          }
         
          if (objWhat == EnuEvtDspRndWwdEarthShpDimOne.TRANSPARENCY)
          {
             Float flo = (Float) evt.getValue();
             float fltAlpha = flo.floatValue();
             BasicShapeAttributes bsa = (BasicShapeAttributes) super.getAttributes();
             bsa.setOutlineOpacity((double) fltAlpha);
             this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
             return;
          }
         
          if (objWhat == EnuEvtDspRndWwdEarthShpDimOneSegmentWise.THICKNESS)
          {
             Integer itg = (Integer) evt.getValue();
             BasicShapeAttributes bsa = (BasicShapeAttributes) super.getAttributes();
             bsa.setOutlineWidth(itg.doubleValue());
             this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
             return;
          }
         
         
View Full Code Here

Examples of gov.nasa.worldwind.render.BasicShapeAttributes

    }
   
   @Override
    public void setAttributesThis() throws Exception
    {
       BasicShapeAttributes bsa = new BasicShapeAttributes();

       bsa.setDrawOutline(true);
       double dblWidthOut = (double) GfrWrpBasPrsDspPrjRndWwdEarthShpDimOneSegmentWiseYes.getInstance().getThickness(_strId);
       bsa.setOutlineWidth(dblWidthOut);
     
       Color colRgbOut = GfrWrpBasPrsDspPrjRndWwdEarthShpDimOneSegmentWiseYes.getInstance().getColor(super._strId)
       bsa.setOutlineMaterial(new Material(colRgbOut));
    
       float fltAlphaOut = GfrWrpBasPrsDspPrjRndWwdEarthShpDimOneSegmentWiseYes.getInstance().getTransparency(super._strId);
       bsa.setOutlineOpacity((double) fltAlphaOut);
    
       super.setAttributes(bsa);
    }
View Full Code Here

Examples of gov.nasa.worldwind.render.BasicShapeAttributes

          }
         
          if (objWhat == EnuEvtDspRndWwdEarthDimTwo.COLOR_IN) // what about transparency?
          {
             Color col = (Color) evt.getValue();
             BasicShapeAttributes bsa = (BasicShapeAttributes) super.getAttributes();
             bsa.setInteriorMaterial(new Material(col));
             this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
             return;
          }
         
          if (objWhat == EnuEvtDspRndWwdEarthDimTwo.TRANSPARENCY_IN)
          {
             Float flo = (Float) evt.getValue();
             float fltAlpha = flo.floatValue();
             BasicShapeAttributes bsa = (BasicShapeAttributes) super.getAttributes();
             bsa.setInteriorOpacity((double) fltAlpha);
             this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
             return;
          }
         
          if (objWhat == EnuEvtDspRndWwdEarthDimTwo.COLOR_OUT) // what about transparency?
          {
             Color col = (Color) evt.getValue();
             BasicShapeAttributes bsa = (BasicShapeAttributes) super.getAttributes();
             bsa.setOutlineMaterial(new Material(col));
             this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
             return;
          }
         
          if (objWhat == EnuEvtDspRndWwdEarthDimTwo.TRANSPARENCY_OUT)
          {
             Float flo = (Float) evt.getValue();
             float fltAlpha = flo.floatValue();
             BasicShapeAttributes bsa = (BasicShapeAttributes) super.getAttributes();
             bsa.setOutlineOpacity((double) fltAlpha);
             this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
             return;
          }
         
         
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.