Examples of SpotLight


Examples of javax.media.j3d.SpotLight

/* 68 */     ((SpotLight)this.node).setSpreadAngle(in.readFloat());
/* 69 */     ((SpotLight)this.node).setConcentration(in.readFloat());
/*    */   }
/*    */
/*    */   protected SceneGraphObject createNode() {
/* 73 */     return new SpotLight();
/*    */   }
View Full Code Here

Examples of net.sf.orexio.common.ui.Spotlight

  protected Spotlight createSpotlight(java.awt.Component c){
    int x=getX(c);
    int y=getY(c);
    int w=c.getSize().width;
    int h=c.getSize().height;
    return new Spotlight(x-((w/2)/2),
        y-((h/2)/2),
        w+(w/2),
        h+(h/2));
  }
View Full Code Here

Examples of net.sf.orexio.common.ui.Spotlight

*/
class Page2 extends DemoPage{
  public List<Spotlight> getSpotlights(FrameCulture cultureViewer){
    List<Spotlight> spotlights=new ArrayList<Spotlight>();
   
    spotlights.add(new Spotlight(getX(cultureViewer.getJTabbedPaneMain())-25,
        getY(cultureViewer.getJTabbedPaneMain())-50,
        150,
        150));
   
    return spotlights;
View Full Code Here

Examples of net.sf.orexio.common.ui.Spotlight

  public List<Spotlight> getSpotlights(FrameCulture cultureViewer){
    List<Spotlight> spotlights=new ArrayList<Spotlight>();
   
    cultureViewer.getJTabbedPaneMain().setSelectedIndex(1);
   
    spotlights.add(new Spotlight(getX(cultureViewer.getJPanelPlantationsDetails())-(cultureViewer.getJPanelPlantationsDetails().getSize().width/8),
        getY(cultureViewer.getJPanelPlantationsDetails())-(cultureViewer.getJPanelPlantationsDetails().getSize().height/8),
        cultureViewer.getJPanelPlantationsDetails().getSize().width+(cultureViewer.getJPanelPlantationsDetails().getSize().width/4),
        cultureViewer.getJPanelPlantationsDetails().getSize().height+(cultureViewer.getJPanelPlantationsDetails().getSize().height/4)));
   
    return spotlights;
View Full Code Here

Examples of org.apache.batik.ext.awt.image.SpotLight

            // 'limitingConeAngle' attribute - default is 90
            double limitingConeAngle = convertNumber
                (lightElement, SVG_LIMITING_CONE_ANGLE_ATTRIBUTE, 90);

            return new SpotLight(x, y, z,
                                 px, py, pz,
                                 specularExponent,
                                 limitingConeAngle,
                                 color);
        }
View Full Code Here

Examples of org.apache.batik.ext.awt.image.SpotLight

            // 'limitingConeAngle' attribute - default is 90
            double limitingConeAngle = convertNumber
                (lightElement, SVG_LIMITING_CONE_ANGLE_ATTRIBUTE, 90);

            return new SpotLight(x, y, z,
                                 px, py, pz,
                                 specularExponent,
                                 limitingConeAngle,
                                 color);
        }
View Full Code Here

Examples of org.apache.batik.ext.awt.image.SpotLight

            // 'limitingConeAngle' attribute - default is 90
            double limitingConeAngle = convertNumber
                (lightElement, SVG_LIMITING_CONE_ANGLE_ATTRIBUTE, 90);

            return new SpotLight(x, y, z,
                                 px, py, pz,
                                 specularExponent,
                                 limitingConeAngle,
                                 color);
        }
View Full Code Here

Examples of org.apache.batik.ext.awt.image.SpotLight

            // 'limitingConeAngle' attribute - default is 90
            double limitingConeAngle = convertNumber
                (lightElement, SVG_LIMITING_CONE_ANGLE_ATTRIBUTE, 90, ctx);

            return new SpotLight(x, y, z,
                                 px, py, pz,
                                 specularExponent,
                                 limitingConeAngle,
                                 color);
        }
View Full Code Here

Examples of org.apache.batik.ext.awt.image.SpotLight

        final double[][][] NA = bumpMap.getNormalArray(minX, minY, w, h);

        // System.out.println("Entering Specular Lighting");
        if (light instanceof SpotLight) {
            SpotLight slight = (SpotLight)light;
            final double[][] LA = new double[w][4];
            for(i=0; i<h; i++){
                // System.out.println("Row: " + i);
                final double [][] NR = NA[i];
                slight.getLightRow4(x, y+i*scaleY, scaleX, w, NR, LA);
                for (j=0; j<w; j++){
                    // Get Normal
                    final double [] N = NR[j];
                   
                    // Get Light Vector
View Full Code Here

Examples of org.apache.batik.ext.awt.image.SpotLight

            // 'limitingConeAngle' attribute - default is 90
            double limitingConeAngle = convertNumber
                (lightElement, SVG_LIMITING_CONE_ANGLE_ATTRIBUTE, 90);

            return new SpotLight(x, y, z,
                                 px, py, pz,
                                 specularExponent,
                                 limitingConeAngle,
                                 color);
        }
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.