Examples of Scene


Examples of com.sun.j3d.loaders.Scene

    // the SimpleUniverse.
    public void createSceneGraph(SimpleUniverse su) {

        // Load an obj-file.
        ObjectFile f = new ObjectFile(ObjectFile.RESIZE);
        Scene s = null;

        try {
            s = f.load("./eas/miscellaneous/java3D/schiff.obj");
        } catch (Exception e) {
            System.out.println("File loading failed:" + e);
        }

        // Generate a transformation group for the loaded object.
        Transform3D tfObject = new Transform3D();
        tfObject.rotZ(0.4 * Math.PI);
        Transform3D xRotation = new Transform3D();
        xRotation.rotY(0.4 * Math.PI);
        tfObject.mul(xRotation);
        TransformGroup tgObject = new TransformGroup(tfObject);
        tgObject.addChild(s.getSceneGroup());

        // In the following way, the names of the parts of the object can be
        // obtained. The names are printed.
        Hashtable namedObjects = s.getNamedObjects();
        Enumeration enumer = namedObjects.keys();
        String name;
        while (enumer.hasMoreElements()) {
            name = (String) enumer.nextElement();
            System.out.println("Name: " + name);
View Full Code Here

Examples of com.threerings.whirled.data.Scene

        // initialized by the place registry and when that is finally complete, then we can let our
        // penders know what's up

        try {
            // first create our scene instance
            final Scene scene = _scfact.createScene(model, _confact.createPlaceConfig(model));

            // now create our scene manager
            _plreg.createPlace(scene.getPlaceConfig(), new PlaceRegistry.PreStartupHook() {
                public void invoke (PlaceManager pmgr) {
                    ((SceneManager)pmgr).setSceneData(scene, updates, extras, SceneRegistry.this);
                }
            });
View Full Code Here

Examples of de.ailis.jollada.model.Scene

     * Enters a scene element.
     */

    private void enterScene()
    {
        this.document.setScene(new Scene());
        enterElement(ParserMode.SCENE);
    }
View Full Code Here

Examples of engine.hierarchy.Scene

        return scene;
    }

    @Override
    public Scene popScene() {
        Scene scene = sceneStack.pop();
        remove(scene);
        return scene;
    }
View Full Code Here

Examples of javafx.scene.Scene

        }

        loadCustomFonts(opts);

        Browser browser = new Browser(path, output, width, height);
        scene = new Scene(browser, width, height, Color.web("#666970"));
        stage.setScene(scene);
        stage.show();
        Profile profile = ProfileLoader.loadProfile(opts.get("profile"), browser.getEngine(), opts);
        browser.doExport(profile, width, height);
    }
View Full Code Here

Examples of javafx.scene.Scene

        (ChangeListener<State>) (ov, oldState, newState) -> {
          if (newState == State.SUCCEEDED) {
            changeState(engine.getLocation());
          }
        });
    primaryStage.setScene(new Scene(view));
    primaryStage.show();

    new Thread(() -> {
      while (!loginSuccess && !loginFailure && primaryStage.isShowing()) {
View Full Code Here

Examples of javafx.scene.Scene

    root.getChildren().add(durationLabel);
    durationLabel.setTranslateX(-25);
    vbox.setMaxWidth(screenWidth);

    hbox.setTranslateY(translatLocation);
    final Scene scene = new Scene(root, screenWidth, screenHeight,
        Color.rgb(35, 35, 35));
    hbox.setMinWidth(screenWidth);
    final int bandWidth = screenWidth / rects.length;
    int recheight = 2;
    for (final Rectangle r : rects) {
View Full Code Here

Examples of javafx.scene.Scene

    view.setFitHeight(1);
    view.setPreserveRatio(false);

    // System.out.println("media.width: "+media.getWidth());

    final Scene scene = new Scene(root, 1, 1, Color.BLACK);

    // player.play();

    player.setOnReady(() -> {
      player.setAutoPlay(false);
View Full Code Here

Examples of javafx.scene.Scene

    final Gauge gauge3 = new Gauge(IndicatorType.NEEDLE, 0.5d, 0.5d, "%04.2f", 0, 0d, 360d, 20, 1);
    final Gauge gauge6 = new Gauge(IndicatorType.NEEDLE, 0.5d, 1d, "%04.2f", 0, 250d, 310d, 10, 0);
    row2.getChildren().addAll(gauge3, gauge6);
   
    root.getItems().addAll(row1, row2);
    primaryStage.setScene(new Scene(root));
    primaryStage.show();
  }
View Full Code Here

Examples of javafx.scene.Scene

      }
    });
    // stage/scene adjustment for transparency/size
    this.setMinSize(minResizableWidth, minResizableHeight);
    stage.initStyle(StageStyle.TRANSPARENT);
    stage.setScene(new Scene(this, sceneWidth, sceneHeight, Color.TRANSPARENT));
    setAlignment(Pos.TOP_LEFT);
    if (cssPaths != null) {
      for (final String cssPath : cssPaths) {
        stage.getScene().getStylesheets().add(cssPath);
      }
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.