Frustum
Overview
Frustum is a class in Aspose.3D FOSS for Java.
Inherits from: Entity, IOrientable.
The base class of Camera and Light /
This class provides 39 methods for working with Frustum objects in Java programs.
Available methods include: A3DObject, Entity, SceneObject, findProperty, getAspect, getBoundingBox, getDirection, getEntityRendererKey, getExcluded, getFarPlane, getLookAt, getName, and 24 additional methods.
All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package.
Properties: aspect, boundingBox, direction, entityRendererKey, excluded, farPlane, and 11 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
rotationMode | RotationMode | Read | Gets the frustum’s orientation mode |
| This property only works when the getTarget() is null. | |||
nearPlane | double | Read | Gets the frustum’s near plane distance. |
farPlane | double | Read | Gets the frustum’s far plane distance. |
aspect | double | Read | Gets the aspect ratio of the frustum |
| @return the aspect ratio of the frustum | |||
| / | |||
orthoHeight | double | Read | Gets the height when frustum in orthographic projection. |
up | Vector3 | Read | Gets the up direction of the camera |
| @return the up direction of the camera | |||
| / | |||
lookAt | Vector3 | Read | Gets the the interested position that the camera is looking at. |
direction | Vector3 | Read | Gets the direction that the camera is looking at. |
target | Node | Read | Gets the target that the camera is looking at. |
parentNode | Node | Read | Gets the parent node. |
parentNodes | ArrayList<Node> | Read | Gets the parent nodes. |
excluded | boolean | Read | Gets the excluded. |
boundingBox | BoundingBox | Read | Gets the bounding box. |
entityRendererKey | EntityRendererKey | Read | Gets the entity renderer key. |
scene | Scene | Read | Gets the scene. |
name | String | Read | Gets the name. |
properties | PropertyCollection | Read | Gets the properties. |
Methods
| Signature | Description |
|---|---|
getRotationMode() → RotationMode | Gets the frustum’s orientation mode |
| This property only works when the getTarget() is null. | |
setRotationMode(value: RotationMode) | Sets the frustum’s orientation mode |
| This property only works when the getTarget() is null. | |
getNearPlane() → double | Gets the frustum’s near plane distance. |
setNearPlane(value: double) | Sets the frustum’s near plane distance. |
getFarPlane() → double | Gets the frustum’s far plane distance. |
setFarPlane(value: double) | Sets the frustum’s far plane distance. |
getAspect() → double | Gets the aspect ratio of the frustum |
| @return the aspect ratio of the frustum | |
| / | |
setAspect(value: double) | Sets the aspect ratio of the frustum |
| @param value New value | |
| / | |
getOrthoHeight() → double | Gets the height when frustum in orthographic projection. |
setOrthoHeight(value: double) | Sets the height when frustum in orthographic projection. |
getUp() → Vector3 | Gets the up direction of the camera |
| @return the up direction of the camera | |
| / | |
setUp(value: Vector3) | Sets the up direction of the camera |
| @param value New value | |
| / | |
getLookAt() → Vector3 | Gets the the interested position that the camera is looking at. |
setLookAt(value: Vector3) | Sets the the interested position that the camera is looking at. |
getDirection() → Vector3 | Gets the direction that the camera is looking at. |
setDirection(value: Vector3) | Sets the direction that the camera is looking at. |
getTarget() → Node | Gets the target that the camera is looking at. |
setTarget(value: Node) | Sets the target that the camera is looking at. |
Entity(name: String) | Calls Entity(name) on this Frustum instance. |
getParentNode() → Node | Returns the parent node. |
setParentNode(value: Node) | Sets the parent node value. |
getParentNodes() → ArrayList<Node> | Returns the parent nodes. |
getExcluded() → boolean | Returns the excluded. |
setExcluded(value: boolean) | Sets the excluded value. |
getBoundingBox() → BoundingBox | Returns the bounding box. |
getEntityRendererKey() → EntityRendererKey | Returns the entity renderer key. |
SceneObject() | The base class of Camera and Light |
SceneObject(name: String) | Calls SceneObject(name) on this Frustum instance. |
getScene() → Scene | Returns the scene. |
A3DObject() | Calls A3DObject on this Frustum instance. |
A3DObject(name: String) | Calls A3DObject(name) on this Frustum instance. |
getName() → String | Returns the name. |
setName(name: String) | Sets the name value. |
getProperties() → PropertyCollection | Returns the properties. |
findProperty(name: String) → Property | Calls findProperty(name) on this Frustum instance. |
getProperty(name: String) → Object | Calls getProperty(name) on this Frustum instance. |
setProperty(name: String, value: Object) | Sets the property value. |
removeProperty(name: String) → boolean | Calls removeProperty(name) on this Frustum instance. |
removeProperty(property: Property) → boolean | Calls removeProperty(property) on this Frustum instance. |