public abstract class Frustum extends Entity implements IOrientable
name, properties
Modifier and Type | Method and Description |
---|---|
double |
getAspect()
Gets the aspect ratio of the frustum
|
Vector3 |
getDirection()
Gets the direction that the camera is looking at.
|
double |
getFarPlane()
Gets the frustum's far plane distance.
|
Vector3 |
getLookAt()
Gets the the interested position that the camera is looking at.
|
double |
getNearPlane()
Gets the frustum's near plane distance.
|
double |
getOrthoHeight()
Gets the height when frustum in orthographic projection.
|
RotationMode |
getRotationMode()
Gets the frustum's orientation mode
This property only works when the
getTarget() is null. |
Node |
getTarget()
Gets the target that the camera is looking at.
|
Vector3 |
getUp()
Gets the up direction of the camera
|
void |
setAspect(double value)
Sets the aspect ratio of the frustum
|
void |
setDirection(Vector3 value)
Sets the direction that the camera is looking at.
|
void |
setFarPlane(double value)
Sets the frustum's far plane distance.
|
void |
setLookAt(Vector3 value)
Sets the the interested position that the camera is looking at.
|
void |
setNearPlane(double value)
Sets the frustum's near plane distance.
|
void |
setOrthoHeight(double value)
Sets the height when frustum in orthographic projection.
|
void |
setRotationMode(RotationMode value)
Sets the frustum's orientation mode
This property only works when the
getTarget() is null. |
void |
setTarget(Node value)
Sets the target that the camera is looking at.
|
void |
setUp(Vector3 value)
Sets the up direction of the camera
|
getBoundingBox, getEntityRendererKey, getExcluded, getParentNode, getParentNodes, setExcluded, setParentNode
getScene
findProperty, getName, getProperties, getProperty, removeProperty, removeProperty, setName, setProperty
public RotationMode getRotationMode()
getTarget()
is null.
If the value is RotationMode.FIXED_TARGET
, the direction is always calculated by the property getLookAt()
Otherwise the getLookAt()
is always calculated by the getDirection()
public void setRotationMode(RotationMode value)
getTarget()
is null.
If the value is RotationMode.FIXED_TARGET
, the direction is always calculated by the property getLookAt()
Otherwise the getLookAt()
is always calculated by the getDirection()
value
- New valuepublic double getNearPlane()
public void setNearPlane(double value)
value
- New valuepublic double getFarPlane()
public void setFarPlane(double value)
value
- New valuepublic double getAspect()
public void setAspect(double value)
value
- New valuepublic double getOrthoHeight()
public void setOrthoHeight(double value)
value
- New valuepublic Vector3 getUp()
public void setUp(Vector3 value)
value
- New valuepublic Vector3 getLookAt()
public void setLookAt(Vector3 value)
value
- New valuepublic Vector3 getDirection()
getLookAt()
and getTarget()
.getDirection
in interface IOrientable
public void setDirection(Vector3 value)
getLookAt()
and getTarget()
.setDirection
in interface IOrientable
value
- New valuepublic Node getTarget()
getLookAt()
property.getTarget
in interface IOrientable
public void setTarget(Node value)
getLookAt()
property.setTarget
in interface IOrientable
value
- New value