Package com.aspose.threed
Class Frustum
- java.lang.Object
-
- com.aspose.threed.A3DObject
-
- com.aspose.threed.SceneObject
-
- com.aspose.threed.Entity
-
- com.aspose.threed.Frustum
-
- All Implemented Interfaces:
INamedObject
,IOrientable
public abstract class Frustum extends Entity implements IOrientable
-
-
Field Summary
-
Fields inherited from class com.aspose.threed.A3DObject
name, properties
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getAspect()
Gets the aspect ratio of the frustumVector3
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 thegetTarget()
is null.Node
getTarget()
Gets the target that the camera is looking at.Vector3
getUp()
Gets the up direction of the cameravoid
setAspect(double value)
Sets the aspect ratio of the frustumvoid
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 thegetTarget()
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-
Methods inherited from class com.aspose.threed.Entity
getBoundingBox, getEntityRendererKey, getExcluded, getParentNode, getParentNodes, setExcluded, setParentNode
-
Methods inherited from class com.aspose.threed.SceneObject
getScene
-
Methods inherited from class com.aspose.threed.A3DObject
findProperty, getName, getProperties, getProperty, removeProperty, removeProperty, setName, setProperty
-
-
-
-
Method Detail
-
getRotationMode
public RotationMode getRotationMode()
Gets the frustum's orientation mode This property only works when thegetTarget()
is null. If the value isRotationMode.FIXED_TARGET
, the direction is always calculated by the propertygetLookAt()
Otherwise thegetLookAt()
is always calculated by thegetDirection()
-
setRotationMode
public void setRotationMode(RotationMode value)
Sets the frustum's orientation mode This property only works when thegetTarget()
is null. If the value isRotationMode.FIXED_TARGET
, the direction is always calculated by the propertygetLookAt()
Otherwise thegetLookAt()
is always calculated by thegetDirection()
- Parameters:
value
- New value
-
getNearPlane
public double getNearPlane()
Gets the frustum's near plane distance.
-
setNearPlane
public void setNearPlane(double value)
Sets the frustum's near plane distance.- Parameters:
value
- New value
-
getFarPlane
public double getFarPlane()
Gets the frustum's far plane distance.
-
setFarPlane
public void setFarPlane(double value)
Sets the frustum's far plane distance.- Parameters:
value
- New value
-
getAspect
public double getAspect()
Gets the aspect ratio of the frustum
-
setAspect
public void setAspect(double value)
Sets the aspect ratio of the frustum- Parameters:
value
- New value
-
getOrthoHeight
public double getOrthoHeight()
Gets the height when frustum in orthographic projection.
-
setOrthoHeight
public void setOrthoHeight(double value)
Sets the height when frustum in orthographic projection.- Parameters:
value
- New value
-
getUp
public Vector3 getUp()
Gets the up direction of the camera
-
setUp
public void setUp(Vector3 value)
Sets the up direction of the camera- Parameters:
value
- New value
-
getLookAt
public Vector3 getLookAt()
Gets the the interested position that the camera is looking at.
-
setLookAt
public void setLookAt(Vector3 value)
Sets the the interested position that the camera is looking at.- Parameters:
value
- New value
-
getDirection
public Vector3 getDirection()
Gets the direction that the camera is looking at. Changes on this property will also affects thegetLookAt()
andgetTarget()
.- Specified by:
getDirection
in interfaceIOrientable
-
setDirection
public void setDirection(Vector3 value)
Sets the direction that the camera is looking at. Changes on this property will also affects thegetLookAt()
andgetTarget()
.- Specified by:
setDirection
in interfaceIOrientable
- Parameters:
value
- New value
-
getTarget
public Node getTarget()
Gets the target that the camera is looking at. If the user supports this property, it should be prior togetLookAt()
property.- Specified by:
getTarget
in interfaceIOrientable
-
setTarget
public void setTarget(Node value)
Sets the target that the camera is looking at. If the user supports this property, it should be prior togetLookAt()
property.- Specified by:
setTarget
in interfaceIOrientable
- Parameters:
value
- New value
-
-