Java 类javafx.scene.ParallelCamera 实例源码

项目:Verse    文件:Game.java   
/**
 * Inits the game itself
 * @param stage 
 */
@Override
public void init(Stage stage)
{
    // JavaFX-Szenengraph Wurzel
    Group root = new Group();

    // Kameraeinstellungen
    ParallelCamera cam = new ParallelCamera();
    cam.setNearClip(0.1);
    cam.setFarClip(2000.0);

    // Setzen der Kamera und Fenstergröße
    Scene scene = new Scene(root,W_WIDTH,W_HEIGHT,true);
    scene.setCamera(cam);


    // Initialisieren des LevelLoaders
    this.level  = LevelLoader.getInstance(root);



    // Fenstereinstellungen der Anwendung
    stage.setWidth(W_WIDTH);
    stage.setHeight(W_HEIGHT);
    stage.setResizable(false);
    stage.setScene(scene);
    stage.setTitle("Verse - Jan-Philipp Roslan");

    stage.show();
}
项目:javafx-dpi-scaling    文件:AdjusterTest.java   
@Test
public void testGetParallelCameraAdjuster() {
    Adjuster adjuster = Adjuster.getAdjuster(ParallelCamera.class);

    assertThat(adjuster, is(instanceOf(NodeAdjuster.class)));
    assertThat(adjuster.getNodeClass(), is(sameInstance(Node.class)));
}
项目:openjfx-8u-dev-tests    文件:ShapesParallelPickingTestApp.java   
@Override
protected Camera buildCamera() {
    return new ParallelCamera();
}
项目:openjfx-8u-dev-tests    文件:MeshParallelPickingTestApp.java   
@Override
protected Camera buildCamera() {
    return new ParallelCamera();
}
项目:openjfx-8u-dev-tests    文件:ParallelLodGroupTestApp.java   
@Override
protected Camera addCamera(Scene scene) {
    ParallelCamera pc = new ParallelCamera();
    scene.setCamera(pc);
    return pc;
}
项目:openjfx-8u-dev-tests    文件:ParallelLodCameraTestApp.java   
@Override
protected Camera addCamera(Scene scene) {
    ParallelCamera pc = new ParallelCamera();
    scene.setCamera(pc);
    return pc;
}
项目:openjfx-8u-dev-tests    文件:ParallelCameraAsChildTestApp.java   
@Override
protected Camera addCamera(Scene scene) {
    ParallelCamera parallelCamera = new ParallelCamera();
    scene.setCamera(parallelCamera);
    return parallelCamera;
}
项目:openjfx-8u-dev-tests    文件:ParallelCameraIsolateTestApp.java   
@Override
protected Camera addCamera(Scene scene) {
    ParallelCamera parallelCamera = new ParallelCamera();
    scene.setCamera(parallelCamera);
    return parallelCamera;
}
项目:openjfx-8u-dev-tests    文件:SubSceneParallelCameraAsChildTestApp.java   
@Override
protected Camera addCamera(SubScene scene) {
    ParallelCamera parallelCamera = new ParallelCamera();
    scene.setCamera(parallelCamera);
    return parallelCamera;
}
项目:openjfx-8u-dev-tests    文件:SubSceneParallelCameraIsolateTestApp.java   
@Override
protected Camera addCamera(SubScene scene) {
    ParallelCamera camera = new ParallelCamera();
    scene.setCamera(camera);
    return camera;
}
项目:openjfx-8u-dev-tests    文件:MultipleLightingTestApp.java   
private Camera addCamera(Scene scene) {
    ParallelCamera pc = new ParallelCamera();
    scene.setCamera(pc);
    return pc;
}
项目:openjfx-8u-dev-tests    文件:SingleLightingTestApp.java   
private Camera addCamera(Scene scene) {
    ParallelCamera pc = new ParallelCamera();
    scene.setCamera(pc);
    return pc;
}