Package gov.nasa.worldwind.render

Examples of gov.nasa.worldwind.render.Material


         
          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)
View Full Code Here


       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

         
          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)
View Full Code Here

      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
    
View Full Code Here

      }
      this.lineColor = color;
     
      if (this.line != null)
      {
         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

            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

         
          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)
View Full Code Here

       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

         
          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)
View Full Code Here

       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

TOP

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

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.