< prev index next >

modules/graphics/src/main/java/javafx/scene/Camera.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 42,51 **** --- 42,52 ---- import com.sun.javafx.geom.transform.NoninvertibleTransformException; import com.sun.javafx.jmx.MXNodeAlgorithm; import com.sun.javafx.jmx.MXNodeAlgorithmContext; import com.sun.javafx.scene.CameraHelper; import com.sun.javafx.scene.DirtyBits; + import com.sun.javafx.scene.transform.TransformHelper; import com.sun.javafx.sg.prism.NGCamera; import sun.util.logging.PlatformLogger; /**
*** 357,367 **** * Returns directly the internal instance, it must not be altered. */ Affine3D getCameraTransform() { if (!localToSceneValid) { localToSceneTx.setToIdentity(); ! getLocalToSceneTransform().impl_apply(localToSceneTx); localToSceneValid = true; } return localToSceneTx; } --- 358,368 ---- * Returns directly the internal instance, it must not be altered. */ Affine3D getCameraTransform() { if (!localToSceneValid) { localToSceneTx.setToIdentity(); ! TransformHelper.apply(getLocalToSceneTransform(), localToSceneTx); localToSceneValid = true; } return localToSceneTx; }
*** 410,420 **** */ private Point2D pickNodeXYPlane(Node node, double x, double y) { final PickRay ray = computePickRay(x, y, null); final Affine3D localToScene = new Affine3D(); ! node.getLocalToSceneTransform().impl_apply(localToScene); final Vec3d o = ray.getOriginNoClone(); final Vec3d d = ray.getDirectionNoClone(); try { --- 411,421 ---- */ private Point2D pickNodeXYPlane(Node node, double x, double y) { final PickRay ray = computePickRay(x, y, null); final Affine3D localToScene = new Affine3D(); ! TransformHelper.apply(node.getLocalToSceneTransform(), localToScene); final Vec3d o = ray.getOriginNoClone(); final Vec3d d = ray.getDirectionNoClone(); try {
< prev index next >