public class Viewpoint
extends java.lang.Object
Supported properties:
C14ModelImporter | FxmlModelImporter | X3dModelImporter | Default value | |
Name | X | X | X | null |
Projection mode | X | X | X | Perspective |
Near clipping distance | X | 0.1 | ||
Far clipping distance | X | 100.0 | ||
Field of view | X | X | X | 30 |
Field of view dimension | X | X | X | Vertical |
Transformation | X | X | X | Identity |
Center of rotation | X | null |
ParallelCamera
,
PerspectiveCamera
,
ColModelImporter.getViewpoints()
,
FxmlModelImporter.getViewpoints()
,
X3dModelImporter.getViewpoints()
Constructor and Description |
---|
Viewpoint()
Constructs a perspective Viewpoint object with an identity transform.
|
Modifier and Type | Method and Description |
---|---|
javafx.geometry.Point3D |
getCenterOfRotation()
Gets the center of rotation.
|
double |
getFarClip()
Gets the far clipping plane distance.
|
double |
getFieldOfView()
Gets the field of view value.
|
java.lang.String |
getName()
Gets the name.
|
double |
getNearClip()
Gets the near clipping plane distance.
|
javafx.scene.transform.Affine |
getTransform()
Gets the affine transform.
|
boolean |
isPerspective()
Gets the state whether the projection mode is perspective (default) or parallel.
|
boolean |
isVerticalFieldOfView()
Gets the state whether the field of view is measured vertically (default) or horizontally.
|
void |
setCenterOfRotation(javafx.geometry.Point3D value)
Set the center of rotation.
|
void |
setFarClip(double value)
Sets the far clipping plane distance.
|
void |
setFieldOfView(double value)
Sets the field of view value.
|
void |
setName(java.lang.String value)
Sets the name.
|
void |
setNearClip(double value)
Sets the near clipping plane distance.
|
void |
setPerspectiveProjection(boolean value)
Sets the projection mode.
|
void |
setTransform(javafx.scene.transform.Affine value)
Sets the affine transform.
|
void |
setVerticalFieldOfView(boolean value)
Sets the state whether the field of view is measured vertically or horizontally.
|
public Viewpoint()
public java.lang.String getName()
null
if no name is setpublic void setName(java.lang.String value)
value
- namepublic boolean isPerspective()
public void setPerspectiveProjection(boolean value)
value
- true if perspective projection or false if parallel projection modepublic double getFarClip()
public void setFarClip(double value)
value
- far clipping plane distancepublic double getNearClip()
public void setNearClip(double value)
value
- near clipping plane distancepublic double getFieldOfView()
public void setFieldOfView(double value)
value
- field of viewpublic boolean isVerticalFieldOfView()
public void setVerticalFieldOfView(boolean value)
value
- true if the field of view is vertical or false if horizontalpublic javafx.scene.transform.Affine getTransform()
public void setTransform(javafx.scene.transform.Affine value)
value
- affine transform to be copiedpublic javafx.geometry.Point3D getCenterOfRotation()
null
if no center value is setpublic void setCenterOfRotation(javafx.geometry.Point3D value)
value
- center of rotationCopyright (C) 2013-2014 InteractiveMesh e.K.