Top Description Constructors Methods
javafx.scene

public non-sealed Class ParallelCamera

extends Camera
Class Inheritance
Imports
com.sun.javafx.geom.PickRay, .Vec3d, com.sun.javafx.geom.transform.Affine3D, .GeneralTransform3D, com.sun.javafx.scene.ParallelCameraHelper, com.sun.javafx.sg.prism.NGNode, .NGParallelCamera

Specifies a parallel camera for rendering a scene without perspective correction.

If a scene contains only 2D transforms, then the following details are not relevant. This camera defines a viewing volume for a parallel (orthographic) projection; a rectangular box. This camera is always located at center of the window and looks along the positive z-axis. The coordinate system defined by this camera has its origin in the upper left corner of the panel with the Y-axis pointing down and the Z axis pointing away from the viewer (into the screen). The units are in pixel coordinates.

Since
JavaFX 2.0

Constructor Summary

AccessConstructor and Description
public
ParallelCamera()

Creates an empty instance of ParallelCamera.

Method Summary

Modifier and TypeMethod and Description
pack-priv final PickRay
computePickRay(double
horizontal coordinate of the pick ray in the projected view, usually mouse cursor position
x
,
double
vertical coordinate of the pick ray in the projected view, usually mouse cursor position
y
,
PickRay
pick ray to be reused. New instance is created in case of null.
pickRay
)

Implements abstract javafx.scene.Camera.computePickRay.

Computes pick ray for the content rendered by this camera.

pack-priv Vec3d
computePosition(Vec3d
Position to be reused. New instance is created in case of null.
position
)

Implements abstract javafx.scene.Camera.computePosition.

Computes local position of the camera in the scene.

pack-priv void
pack-priv void
pack-priv Camera
private NGNode
Inherited from javafx.scene.Camera:
farClipPropertygetCameraTransformgetFarClipgetFarClipInScenegetNearClipgetNearClipInScenegetProjViewTransformgetSceneToLocalTransformgetViewHeightgetViewWidthnearClipPropertypickProjectPlanesetFarClipsetNearClipsetOwnerScenesetOwnerSubScenesetViewHeightsetViewWidth

Constructor Detail

ParallelCameraback to summary
public ParallelCamera()

Creates an empty instance of ParallelCamera.

Method Detail

computePickRayback to summary
pack-priv final PickRay computePickRay(double x, double y, PickRay pickRay)

Implements abstract javafx.scene.Camera.computePickRay.

Doc from javafx.scene.Camera.computePickRay.

Computes pick ray for the content rendered by this camera.

Parameters
x:double

horizontal coordinate of the pick ray in the projected view, usually mouse cursor position

y:double

vertical coordinate of the pick ray in the projected view, usually mouse cursor position

pickRay:PickRay

pick ray to be reused. New instance is created in case of null.

Returns:PickRay

The PickRay instance computed based on this camera and the given arguments.

Annotations
@Override
computePositionback to summary
pack-priv Vec3d computePosition(Vec3d position)

Implements abstract javafx.scene.Camera.computePosition.

Doc from javafx.scene.Camera.computePosition.

Computes local position of the camera in the scene.

Parameters
position:Vec3d

Position to be reused. New instance is created in case of null.

Returns:Vec3d

The position of the camera in the scene in camera local coords

Annotations
@Override
computeProjectionTransformback to summary
pack-priv void computeProjectionTransform(GeneralTransform3D proj)

Implements abstract javafx.scene.Camera.computeProjectionTransform.

Annotations
@Override
computeViewTransformback to summary
pack-priv void computeViewTransform(Affine3D view)

Implements abstract javafx.scene.Camera.computeViewTransform.

Annotations
@Override
copyback to summary
pack-priv Camera copy()

Overrides javafx.scene.Camera.copy.

Annotations
@Override
doCreatePeerback to summary
private NGNode doCreatePeer()