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

NameTypeAccessDescription
rotationModeRotationModeReadGets the frustum’s orientation mode
This property only works when the getTarget() is null.
nearPlanedoubleReadGets the frustum’s near plane distance.
farPlanedoubleReadGets the frustum’s far plane distance.
aspectdoubleReadGets the aspect ratio of the frustum
@return the aspect ratio of the frustum
/
orthoHeightdoubleReadGets the height when frustum in orthographic projection.
upVector3ReadGets the up direction of the camera
@return the up direction of the camera
/
lookAtVector3ReadGets the the interested position that the camera is looking at.
directionVector3ReadGets the direction that the camera is looking at.
targetNodeReadGets the target that the camera is looking at.
parentNodeNodeReadGets the parent node.
parentNodesArrayList<Node>ReadGets the parent nodes.
excludedbooleanReadGets the excluded.
boundingBoxBoundingBoxReadGets the bounding box.
entityRendererKeyEntityRendererKeyReadGets the entity renderer key.
sceneSceneReadGets the scene.
nameStringReadGets the name.
propertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
getRotationMode()RotationModeGets 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()doubleGets the frustum’s near plane distance.
setNearPlane(value: double)Sets the frustum’s near plane distance.
getFarPlane()doubleGets the frustum’s far plane distance.
setFarPlane(value: double)Sets the frustum’s far plane distance.
getAspect()doubleGets 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()doubleGets the height when frustum in orthographic projection.
setOrthoHeight(value: double)Sets the height when frustum in orthographic projection.
getUp()Vector3Gets 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()Vector3Gets 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()Vector3Gets the direction that the camera is looking at.
setDirection(value: Vector3)Sets the direction that the camera is looking at.
getTarget()NodeGets 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()NodeReturns the parent node.
setParentNode(value: Node)Sets the parent node value.
getParentNodes()ArrayList<Node>Returns the parent nodes.
getExcluded()booleanReturns the excluded.
setExcluded(value: boolean)Sets the excluded value.
getBoundingBox()BoundingBoxReturns the bounding box.
getEntityRendererKey()EntityRendererKeyReturns the entity renderer key.
SceneObject()The base class of Camera and Light
SceneObject(name: String)Calls SceneObject(name) on this Frustum instance.
getScene()SceneReturns the scene.
A3DObject()Calls A3DObject on this Frustum instance.
A3DObject(name: String)Calls A3DObject(name) on this Frustum instance.
getName()StringReturns the name.
setName(name: String)Sets the name value.
getProperties()PropertyCollectionReturns the properties.
findProperty(name: String)PropertyCalls findProperty(name) on this Frustum instance.
getProperty(name: String)ObjectCalls getProperty(name) on this Frustum instance.
setProperty(name: String, value: Object)Sets the property value.
removeProperty(name: String)booleanCalls removeProperty(name) on this Frustum instance.
removeProperty(property: Property)booleanCalls removeProperty(property) on this Frustum instance.

See Also

 English