@Override public void setTracking(boolean track, boolean trackX, boolean trackY, boolean trackZ) { setTracking(track); setTrackingX(trackX); setTrackingY(trackY); setTrackingZ(trackZ); }
public ClassicCameraController(Graphics3DAdapter graphics3dAdapter, ViewportAdapter viewportAdapter, CameraTrackingAndDollyPositionHolder cameraTrackAndDollyVariablesHolder, JFrame jFrame) { if (graphics3dAdapter == null) throw new RuntimeException("graphics3dAdapter == null"); this.graphics3dAdapter = graphics3dAdapter; this.viewportAdapter = viewportAdapter; this.jFrame = jFrame; this.camX = CAMERA_START_X; this.camY = CAMERA_START_Y; this.camZ = CAMERA_START_Z; this.fixX = 0.0; this.fixY = 0.0; this.fixZ = 0.6; this.cameraTrackAndDollyVariablesHolder = cameraTrackAndDollyVariablesHolder; // Don't do this stuff by default setTracking(false); setDolly(false); }
@Override public void copyPositionTrackingDollyConfiguration(TrackingDollyCameraController otherCamera) { setTracking(otherCamera.isTracking(), otherCamera.isTrackingX(), otherCamera.isTrackingY(), otherCamera.isTrackingZ()); setDolly(otherCamera.isDolly(), otherCamera.isDollyX(), otherCamera.isDollyY(), otherCamera.isDollyZ()); setCameraPosition(otherCamera.getCamX(), otherCamera.getCamY(), otherCamera.getCamZ()); setFixPosition(otherCamera.getFixX(), otherCamera.getFixY(), otherCamera.getFixZ()); setDollyOffsets(otherCamera.getDollyXOffset(), otherCamera.getDollyYOffset(), otherCamera.getDollyZOffset()); setTrackingOffsets(otherCamera.getTrackingXOffset(), otherCamera.getTrackingYOffset(), otherCamera.getTrackingZOffset()); if (otherCamera instanceof ClassicCameraController) { ClassicCameraController classicOtherCamera = (ClassicCameraController) otherCamera; keyFrameCamPos = classicOtherCamera.keyFrameCamPos; keyFrameFixPos = classicOtherCamera.keyFrameFixPos; keyFrameTimes = classicOtherCamera.keyFrameTimes; toggleCameraKeyPoints = classicOtherCamera.toggleCameraKeyPoints; cameraKeyPointIndex = classicOtherCamera.cameraKeyPointIndex; cameraKeyPoints = classicOtherCamera.cameraKeyPoints; System.out.println("Copying camera keys"); } }
@Override public void setTracking(boolean track, boolean trackX, boolean trackY, boolean trackZ) { setTracking(track); setTrackingX(trackX); setTrackingY(trackY); setTrackingZ(trackZ); }
public ClassicCameraController(Graphics3DAdapter graphics3dAdapter, ViewportAdapter viewportAdapter, CameraTrackingAndDollyPositionHolder cameraTrackAndDollyVariablesHolder, JFrame jFrame) { if (graphics3dAdapter == null) throw new RuntimeException("graphics3dAdapter == null"); this.graphics3dAdapter = graphics3dAdapter; this.viewportAdapter = viewportAdapter; this.jFrame = jFrame; this.camX = CAMERA_START_X; this.camY = CAMERA_START_Y; this.camZ = CAMERA_START_Z; this.fixX = 0.0; this.fixY = 0.0; this.fixZ = 0.6; this.cameraTrackAndDollyVariablesHolder = cameraTrackAndDollyVariablesHolder; // Don't do this stuff by default setTracking(false); setDolly(false); }
@Override public void copyPositionTrackingDollyConfiguration(TrackingDollyCameraController otherCamera) { setTracking(otherCamera.isTracking(), otherCamera.isTrackingX(), otherCamera.isTrackingY(), otherCamera.isTrackingZ()); setDolly(otherCamera.isDolly(), otherCamera.isDollyX(), otherCamera.isDollyY(), otherCamera.isDollyZ()); setCameraPosition(otherCamera.getCamX(), otherCamera.getCamY(), otherCamera.getCamZ()); setFixPosition(otherCamera.getFixX(), otherCamera.getFixY(), otherCamera.getFixZ()); setDollyOffsets(otherCamera.getDollyXOffset(), otherCamera.getDollyYOffset(), otherCamera.getDollyZOffset()); setTrackingOffsets(otherCamera.getTrackingXOffset(), otherCamera.getTrackingYOffset(), otherCamera.getTrackingZOffset()); if (otherCamera instanceof ClassicCameraController) { ClassicCameraController classicOtherCamera = (ClassicCameraController) otherCamera; keyFrameCamPos = classicOtherCamera.keyFrameCamPos; keyFrameFixPos = classicOtherCamera.keyFrameFixPos; keyFrameTimes = classicOtherCamera.keyFrameTimes; toggleCameraKeyPoints = classicOtherCamera.toggleCameraKeyPoints; cameraKeyPointIndex = classicOtherCamera.cameraKeyPointIndex; cameraKeyPoints = classicOtherCamera.cameraKeyPoints; System.out.println("Copying camera keys"); } }
public static void addFirstCamera(Graphics3DAdapter graphics3DAdapter, PanBackAndForthTrackingAndDollyPositionHolder cameraTrackAndDollyVariablesHolder) { ViewportAdapter viewportAdapter = graphics3DAdapter.createNewViewport(null, false, false); ClassicCameraController classicCameraController = ClassicCameraController.createClassicCameraControllerAndAddListeners(viewportAdapter, cameraTrackAndDollyVariablesHolder, graphics3DAdapter); viewportAdapter.setCameraController(classicCameraController); classicCameraController.setTracking(true, true, false, false); Canvas canvas = viewportAdapter.getCanvas(); createNewWindow(canvas); }
public static void addFirstCamera(Graphics3DAdapter graphics3DAdapter, PanBackAndForthTrackingAndDollyPositionHolder cameraTrackAndDollyVariablesHolder) { ViewportAdapter viewportAdapter = graphics3DAdapter.createNewViewport(null, false, false); ClassicCameraController classicCameraController = ClassicCameraController.createClassicCameraControllerAndAddListeners(viewportAdapter, cameraTrackAndDollyVariablesHolder, graphics3DAdapter); viewportAdapter.setCameraController(classicCameraController); classicCameraController.setTracking(true, true, false, false); Canvas canvas = viewportAdapter.getCanvas(); createNewWindow(canvas); }
classicCameraController.setTracking(true, true, false, false);
classicCameraController.setTracking(true, true, false, false);
createNewWindow(secondCamera.getCanvas()); classicCameraController.setTracking(true, true, false, false);
createNewWindow(secondCamera.getCanvas()); classicCameraController.setTracking(true, true, false, false);