Examples of BasicShapeAttributes


Examples of gov.nasa.worldwind.render.BasicShapeAttributes

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

Examples of gov.nasa.worldwind.render.BasicShapeAttributes

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

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(_strId);
       bsa.setOutlineWidth(dblWidthOut);
     
       Color colRgbOut = GfrWrpBasPrsDspPrjRndWwdEarthShpDimOneLineWiseNo.getInstance().getColor(super._strId)
       bsa.setOutlineMaterial(new Material(colRgbOut));
    
       float fltAlphaOut = GfrWrpBasPrsDspPrjRndWwdEarthShpDimOneLineWiseNo.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

Examples of gov.nasa.worldwind.render.BasicShapeAttributes

        return dist;
   }
  
   public void setAttributesThis() throws Exception
   {
      BasicShapeAttributes bsa = new BasicShapeAttributes();
     
      // beg out
      bsa.setDrawOutline(true);
      final double dblWidthOut = 1;
      bsa.setOutlineWidth(dblWidthOut);
     
      Color colRgbOut = GfrWrpBasPrsDspPrjRndWwdEarthShpDimTwo.getInstance().getColorOut(this._strId_)
     bsa.setOutlineMaterial(new Material(colRgbOut));
    
     float fltAlphaOut = GfrWrpBasPrsDspPrjRndWwdEarthShpDimTwo.getInstance().getTransparencyOut(this._strId_);
     bsa.setOutlineOpacity((double) fltAlphaOut);
      // end out
     
      // beg in
     bsa.setDrawInterior(true);
     Color colRgbIn = GfrWrpBasPrsDspPrjRndWwdEarthShpDimTwo.getInstance().getColorIn(this._strId_)
     bsa.setInteriorMaterial(new Material(colRgbIn));
    
     float fltAlphaIn = GfrWrpBasPrsDspPrjRndWwdEarthShpDimTwo.getInstance().getTransparencyIn(this._strId_);
     bsa.setInteriorOpacity((double) fltAlphaIn);
      // end in
    
     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

     
      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

            // 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

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
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.