public abstract class Camera extends Node
ParallelCamera
およびPerspectiveCamera
の2つの具象サブクラスを持つ抽象クラスです。
デフォルトのカメラは、シーン座標空間でのその投影面がZ = 0となるようにシーンに配置され、Zの正の方向である画面の奥方向に向いています。カメラから投影面までのZ軸の距離は、アタッチされているSceneのwidth
およびheight
、およびそのfieldOfView
によって決まります。
このカメラのnearClip
およびfarClip
は視点座標空間で指定されます。この空間は、視点がその起点となり、投影面はZの正の方向の視点の前方にある1つの単位として定義されます。
次の擬似コードは、シーン座標空間の近距離および遠距離クリップの距離の計算に使用される計算式です。
final double tanOfHalfFOV = Math.tan(Math.toRadians(FOV) / 2.0); final double halfHeight = HEIGHT / 2; final double focalLenght = halfHeight / tanOfHalfFOV; final double eyePositionZ = -1.0 * focalLenght; final double nearClipDistance = focalLenght * NEAR + eyePositionZ; final double farClipDistance = focalLenght * FAR + eyePositionZ;
FOV
はfieldOfView
(度数)、NEAR
は視点空間で指定されたnearClip
、およびFAR
は視点空間で指定されたfarClip
になります。
注意: ParallelCameraクラスにはfieldOfView
プロパティがないため、ビューの30度垂直フィールドが使用されます。
注意: PerspectiveCameraのfixedEyeAtCameraZero属性がtrueの場合は、視錐台に収まるようにシーン座標空間が標準化されます(詳細は、PerspectiveCamera
を参照)。このモードでは、視点座標空間はこのCameraノードのローカル座標空間と同じになります。そのため、前述の変換式は使用されません。
Type | プロパティと説明 |
---|---|
DoubleProperty |
farClip
視点座標空間のこの
Camera の遠距離クリッピング面の視点からの距離を指定します。 |
DoubleProperty |
nearClip
視点座標空間のこの
Camera の近距離クリッピング面の視点からの距離を指定します。 |
accessibleHelp、accessibleRoleDescription、accessibleRole、accessibleText、blendMode、boundsInLocal、boundsInParent、cacheHint、cache、clip、cursor、depthTest、disabled、disable、effectiveNodeOrientation、effect、eventDispatcher、focused、focusTraversable、hover、id、inputMethodRequests、layoutBounds、layoutX、layoutY、localToParentTransform、localToSceneTransform、managed、mouseTransparent、nodeOrientation、onContextMenuRequested、onDragDetected、onDragDone、onDragDropped、onDragEntered、onDragExited、onDragOver、onInputMethodTextChanged、onKeyPressed、onKeyReleased、onKeyTyped、onMouseClicked、onMouseDragEntered、onMouseDragExited、onMouseDragged、onMouseDragOver、onMouseDragReleased、onMouseEntered、onMouseExited、onMouseMoved、onMousePressed、onMouseReleased、onRotate、onRotationFinished、onRotationStarted、onScrollFinished、onScroll、onScrollStarted、onSwipeDown、onSwipeLeft、onSwipeRight、onSwipeUp、onTouchMoved、onTouchPressed、onTouchReleased、onTouchStationary、onZoomFinished、onZoom、onZoomStarted、opacity、parent、pickOnBounds、pressed、rotate、rotationAxis、scaleX、scaleY、scaleZ、scene、style、translateX、translateY、translateZ、visible
BASELINE_OFFSET_SAME_AS_HEIGHT
修飾子 | コンストラクタと説明 |
---|---|
protected |
Camera() |
修飾子と型 | メソッドと説明 |
---|---|
DoubleProperty |
farClipProperty()
視点座標空間のこの
Camera の遠距離クリッピング面の視点からの距離を指定します。 |
double |
getFarClip()
プロパティfarClipの値を取得します。
|
double |
getNearClip()
プロパティnearClipの値を取得します。
|
DoubleProperty |
nearClipProperty()
視点座標空間のこの
Camera の近距離クリッピング面の視点からの距離を指定します。 |
void |
setFarClip(double value)
プロパティfarClipの値を設定します。
|
void |
setNearClip(double value)
プロパティnearClipの値を設定します。
|
accessibleHelpProperty、accessibleRoleDescriptionProperty、accessibleRoleProperty、accessibleTextProperty、addEventFilter、addEventHandler、applyCss、autosize、blendModeProperty、boundsInLocalProperty、boundsInParentProperty、buildEventDispatchChain、cacheHintProperty、cacheProperty、clipProperty、computeAreaInScreen、contains、contains、cursorProperty、depthTestProperty、disabledProperty、disableProperty、effectiveNodeOrientationProperty、effectProperty、eventDispatcherProperty、executeAccessibleAction、fireEvent、focusedProperty、focusTraversableProperty、getAccessibleHelp、getAccessibleRole、getAccessibleRoleDescription、getAccessibleText、getBaselineOffset、getBlendMode、getBoundsInLocal、getBoundsInParent、getCacheHint、getClassCssMetaData、getClip、getContentBias、getCssMetaData、getCursor、getDepthTest、getEffect、getEffectiveNodeOrientation、getEventDispatcher、getId、getInputMethodRequests、getLayoutBounds、getLayoutX、getLayoutY、getLocalToParentTransform、getLocalToSceneTransform、getNodeOrientation、getOnContextMenuRequested、getOnDragDetected、getOnDragDone、getOnDragDropped、getOnDragEntered、getOnDragExited、getOnDragOver、getOnInputMethodTextChanged、getOnKeyPressed、getOnKeyReleased、getOnKeyTyped、getOnMouseClicked、getOnMouseDragEntered、getOnMouseDragExited、getOnMouseDragged、getOnMouseDragOver、getOnMouseDragReleased、getOnMouseEntered、getOnMouseExited、getOnMouseMoved、getOnMousePressed、getOnMouseReleased、getOnRotate、getOnRotationFinished、getOnRotationStarted、getOnScroll、getOnScrollFinished、getOnScrollStarted、getOnSwipeDown、getOnSwipeLeft、getOnSwipeRight、getOnSwipeUp、getOnTouchMoved、getOnTouchPressed、getOnTouchReleased、getOnTouchStationary、getOnZoom、getOnZoomFinished、getOnZoomStarted、getOpacity、getParent、getProperties、getPseudoClassStates、getRotate、getRotationAxis、getScaleX、getScaleY、getScaleZ、getScene、getStyle、getStyleableParent、getStyleClass、getTransforms、getTranslateX、getTranslateY、getTranslateZ、getTypeSelector、getUserData、hasProperties、hoverProperty、idProperty、inputMethodRequestsProperty、intersects、intersects、isCache、isDisable、isDisabled、isFocused、isFocusTraversable、isHover、isManaged、isMouseTransparent、isPickOnBounds、isPressed、isResizable、isVisible、layoutBoundsProperty、layoutXProperty、layoutYProperty、localToParent、localToParent、localToParent、localToParent、localToParent、localToParentTransformProperty、localToScene、localToScene、localToScene、localToScene、localToScene、localToScene、localToScene、localToScene、localToScene、localToScene、localToSceneTransformProperty、localToScreen、localToScreen、localToScreen、localToScreen、localToScreen、lookup、lookupAll、managedProperty、maxHeight、maxWidth、minHeight、minWidth、mouseTransparentProperty、nodeOrientationProperty、notifyAccessibleAttributeChanged、onContextMenuRequestedProperty、onDragDetectedProperty、onDragDoneProperty、onDragDroppedProperty、onDragEnteredProperty、onDragExitedProperty、onDragOverProperty、onInputMethodTextChangedProperty、onKeyPressedProperty、onKeyReleasedProperty、onKeyTypedProperty、onMouseClickedProperty、onMouseDragEnteredProperty、onMouseDragExitedProperty、onMouseDraggedProperty、onMouseDragOverProperty、onMouseDragReleasedProperty、onMouseEnteredProperty、onMouseExitedProperty、onMouseMovedProperty、onMousePressedProperty、onMouseReleasedProperty、onRotateProperty、onRotationFinishedProperty、onRotationStartedProperty、onScrollFinishedProperty、onScrollProperty、onScrollStartedProperty、onSwipeDownProperty、onSwipeLeftProperty、onSwipeRightProperty、onSwipeUpProperty、onTouchMovedProperty、onTouchPressedProperty、onTouchReleasedProperty、onTouchStationaryProperty、onZoomFinishedProperty、onZoomProperty、onZoomStartedProperty、opacityProperty、parentProperty、parentToLocal、parentToLocal、parentToLocal、parentToLocal、parentToLocal、pickOnBoundsProperty、prefHeight、prefWidth、pressedProperty、pseudoClassStateChanged、queryAccessibleAttribute、relocate、removeEventFilter、removeEventHandler、requestFocus、resize、resizeRelocate、rotateProperty、rotationAxisProperty、scaleXProperty、scaleYProperty、scaleZProperty、sceneProperty、sceneToLocal、sceneToLocal、sceneToLocal、sceneToLocal、sceneToLocal、sceneToLocal、sceneToLocal、sceneToLocal、screenToLocal、screenToLocal、screenToLocal、setAccessibleHelp、setAccessibleRole、setAccessibleRoleDescription、setAccessibleText、setBlendMode、setCache、setCacheHint、setClip、setCursor、setDepthTest、setDisable、setDisabled、setEffect、setEventDispatcher、setEventHandler、setFocused、setFocusTraversable、setHover、setId、setInputMethodRequests、setLayoutX、setLayoutY、setManaged、setMouseTransparent、setNodeOrientation、setOnContextMenuRequested、setOnDragDetected、setOnDragDone、setOnDragDropped、setOnDragEntered、setOnDragExited、setOnDragOver、setOnInputMethodTextChanged、setOnKeyPressed、setOnKeyReleased、setOnKeyTyped、setOnMouseClicked、setOnMouseDragEntered、setOnMouseDragExited、setOnMouseDragged、setOnMouseDragOver、setOnMouseDragReleased、setOnMouseEntered、setOnMouseExited、setOnMouseMoved、setOnMousePressed、setOnMouseReleased、setOnRotate、setOnRotationFinished、setOnRotationStarted、setOnScroll、setOnScrollFinished、setOnScrollStarted、setOnSwipeDown、setOnSwipeLeft、setOnSwipeRight、setOnSwipeUp、setOnTouchMoved、setOnTouchPressed、setOnTouchReleased、setOnTouchStationary、setOnZoom、setOnZoomFinished、setOnZoomStarted、setOpacity、setPickOnBounds、setPressed、setRotate、setRotationAxis、setScaleX、setScaleY、setScaleZ、setStyle、setTranslateX、setTranslateY、setTranslateZ、setUserData、setVisible、snapshot、snapshot、startDragAndDrop、startFullDrag、styleProperty、toBack、toFront、toString、translateXProperty、translateYProperty、translateZProperty、usesMirroring、visibleProperty
public final DoubleProperty nearClipProperty
Camera
の近距離クリッピング面の視点からの距離を指定します。nearClip
よりも視点に近いオブジェクトは描画されません。nearClip
はゼロよりも大きい値として指定されます。ゼロ以下の値は非常に小さい正数として処理されます。getNearClip()
、setNearClip(double)
public final DoubleProperty farClipProperty
Camera
の遠距離クリッピング面の視点からの距離を指定します。farClip
よりも視点から離れたオブジェクトは描画されません。farClip
はnearClip
よりも大きい値として指定されます。nearClip
以下の値は、nearClip
に非常に小さい正数を加算した値として処理されます。getFarClip()
、setFarClip(double)
public final void setNearClip(double value)
Camera
の近距離クリッピング面の視点からの距離を指定します。nearClip
よりも視点に近いオブジェクトは描画されません。nearClip
はゼロよりも大きい値として指定されます。ゼロ以下の値は非常に小さい正数として処理されます。public final double getNearClip()
Camera
の近距離クリッピング面の視点からの距離を指定します。nearClip
よりも視点に近いオブジェクトは描画されません。nearClip
はゼロよりも大きい値として指定されます。ゼロ以下の値は非常に小さい正数として処理されます。public final DoubleProperty nearClipProperty()
Camera
の近距離クリッピング面の視点からの距離を指定します。nearClip
よりも視点に近いオブジェクトは描画されません。nearClip
はゼロよりも大きい値として指定されます。ゼロ以下の値は非常に小さい正数として処理されます。getNearClip()
、setNearClip(double)
public final void setFarClip(double value)
Camera
の遠距離クリッピング面の視点からの距離を指定します。farClip
よりも視点から離れたオブジェクトは描画されません。farClip
はnearClip
よりも大きい値として指定されます。nearClip
以下の値は、nearClip
に非常に小さい正数を加算した値として処理されます。public final double getFarClip()
Camera
の遠距離クリッピング面の視点からの距離を指定します。farClip
よりも視点から離れたオブジェクトは描画されません。farClip
はnearClip
よりも大きい値として指定されます。nearClip
以下の値は、nearClip
に非常に小さい正数を加算した値として処理されます。public final DoubleProperty farClipProperty()
Camera
の遠距離クリッピング面の視点からの距離を指定します。farClip
よりも視点から離れたオブジェクトは描画されません。farClip
はnearClip
よりも大きい値として指定されます。nearClip
以下の値は、nearClip
に非常に小さい正数を加算した値として処理されます。getFarClip()
、setFarClip(double)
Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.