public class Camera extends Frustum implements IOrientable
name, properties
Constructor and Description |
---|
Camera()
Initializes a new instance of the
Camera class. |
Camera(ProjectionType projectionType)
Initializes a new instance of the
Camera class. |
Camera(java.lang.String name)
Initializes a new instance of the
Camera class. |
Camera(java.lang.String name,
ProjectionType projectionType)
Initializes a new instance of the
Camera class. |
Modifier and Type | Method and Description |
---|---|
ApertureMode |
getApertureMode()
Gets the camera's aperture mode
|
double |
getAspectRatio()
Gets the view plane aspect ratio.
|
double |
getFieldOfView()
Gets the camera's field of view in degrees, this property is used only when ApertureMode is
ApertureMode.HORIZONTAL or ApertureMode.VERTICAL |
double |
getFieldOfViewX()
Gets the camera's horizontal field of view in degrees, this property is used only when ApertureMode is
ApertureMode.HORIZ_AND_VERT |
double |
getFieldOfViewY()
Gets the camera's vertical field of view in degrees, this property is used only when ApertureMode is
ApertureMode.HORIZ_AND_VERT |
double |
getHeight()
Gets the view plane's height measured in inches
|
Vector2 |
getMagnification()
Gets the magnification used in orthographic camera
|
ProjectionType |
getProjectionType()
Gets the camera's projection type.
|
double |
getWidth()
Gets the view plane's width measured in inches
|
void |
moveForward(double distance)
Move camera forward towards its direction or target.
|
void |
setApertureMode(ApertureMode value)
Sets the camera's aperture mode
|
void |
setAspectRatio(double value)
Sets the view plane aspect ratio.
|
void |
setFieldOfView(double value)
Sets the camera's field of view in degrees, this property is used only when ApertureMode is
ApertureMode.HORIZONTAL or ApertureMode.VERTICAL |
void |
setFieldOfViewX(double value)
Sets the camera's horizontal field of view in degrees, this property is used only when ApertureMode is
ApertureMode.HORIZ_AND_VERT |
void |
setFieldOfViewY(double value)
Sets the camera's vertical field of view in degrees, this property is used only when ApertureMode is
ApertureMode.HORIZ_AND_VERT |
void |
setHeight(double value)
Sets the view plane's height measured in inches
|
void |
setMagnification(Vector2 value)
Sets the magnification used in orthographic camera
|
void |
setProjectionType(ProjectionType value)
Sets the camera's projection type.
|
void |
setWidth(double value)
Sets the view plane's width measured in inches
|
getAspect, getDirection, getFarPlane, getLookAt, getNearPlane, getOrthoHeight, getRotationMode, getTarget, getUp, setAspect, setDirection, setFarPlane, setLookAt, setNearPlane, setOrthoHeight, setRotationMode, setTarget, setUp
getBoundingBox, getEntityRendererKey, getExcluded, getParentNode, getParentNodes, setExcluded, setParentNode
getScene
findProperty, getName, getProperties, getProperty, removeProperty, removeProperty, setName, setProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDirection, getTarget, setDirection, setTarget
public Camera()
Camera
class.public Camera(ProjectionType projectionType)
Camera
class.projectionType
- Projection type.public Camera(java.lang.String name)
Camera
class.name
- Name.public Camera(java.lang.String name, ProjectionType projectionType)
Camera
class.name
- Name.projectionType
- Projection type.public ApertureMode getApertureMode()
public void setApertureMode(ApertureMode value)
value
- New valuepublic double getFieldOfView()
ApertureMode.HORIZONTAL
or ApertureMode.VERTICAL
public void setFieldOfView(double value)
ApertureMode.HORIZONTAL
or ApertureMode.VERTICAL
value
- New valuepublic double getFieldOfViewX()
ApertureMode.HORIZ_AND_VERT
public void setFieldOfViewX(double value)
ApertureMode.HORIZ_AND_VERT
value
- New valuepublic double getFieldOfViewY()
ApertureMode.HORIZ_AND_VERT
public void setFieldOfViewY(double value)
ApertureMode.HORIZ_AND_VERT
value
- New valuepublic double getWidth()
public void setWidth(double value)
value
- New valuepublic double getHeight()
public void setHeight(double value)
value
- New valuepublic double getAspectRatio()
public void setAspectRatio(double value)
value
- New valuepublic Vector2 getMagnification()
public void setMagnification(Vector2 value)
value
- New valuepublic ProjectionType getProjectionType()
public void setProjectionType(ProjectionType value)
value
- New valuepublic void moveForward(double distance)
distance
- How long to move forward