All Packages Class Hierarchy This Package Previous Next Index
Class quicktime.qd3d.camera.ViewPlaneCameraData
java.lang.Object
|
+----quicktime.util.QTByteObject
|
+----quicktime.qd3d.camera.CameraData
|
+----quicktime.qd3d.camera.ViewPlaneCameraData
- public final class ViewPlaneCameraData
- extends CameraData
- implements PrimitivesLib
A perspective camera specified in terms of an arbitrary view plane.
This is most useful when setting the camera to look at a particular
object. The mViewPlane is set to distance from the camera to the object.
The halfWidth is set to half the width of the cross section of the object,
and the halfHeight equal to the halfWidth divided by the aspect ratio
of the viewPort.
This is the only perspective camera with specifications for off-axis
viewing, which is desirable for scrolling.
refer to TQ3ViewPlaneCameraData in QuickDraw3d
-
kNativeSize
- This is the size (the number of bytes) that are required for this class
-
ViewPlaneCameraData()
- Creates a ViewPlaneCameraData object containing no data.
-
ViewPlaneCameraData(CameraData, float, float, float, float, float)
- Sets the ViewPlaneCameraData object's data.
-
clone()
- Returns a copy of this class.
-
getCenterX()
- returns the centerXOnViewPlane
-
getCenterY()
- returns the centerYOnViewPlane
-
getHalfHeight()
- returns the halfHeightAtViewPlane
-
getHalfWidth()
- returns the halfWidthAtViewPlane
-
getViewPlane()
- returns the viewPlane
-
setCenterX(float)
- sets the centerXOnViewPlane
-
setCenterY(float)
- sets the centerYOnViewPlane
-
setHalfHeight(float)
- sets the halfHeightAtViewPlane
-
setHalfWidth(float)
- sets the halfWidthAtViewPlane
-
setViewPlane(float)
- sets the viewPlane
kNativeSize
public static final int kNativeSize
- This is the size (the number of bytes) that are required for this class
ViewPlaneCameraData
public ViewPlaneCameraData()
- Creates a ViewPlaneCameraData object containing no data.
ViewPlaneCameraData
public ViewPlaneCameraData(CameraData cameraData,
float viewPlane,
float halfWidthAtViewPlane,
float halfHeightAtViewPlane,
float centerXOnViewPlane,
float centerYOnViewPlane)
- Sets the ViewPlaneCameraData object's data.
- Parameters:
- cameraData - The camera data.
getViewPlane
public float getViewPlane()
- returns the viewPlane
getHalfWidth
public float getHalfWidth()
- returns the halfWidthAtViewPlane
getHalfHeight
public float getHalfHeight()
- returns the halfHeightAtViewPlane
getCenterX
public float getCenterX()
- returns the centerXOnViewPlane
getCenterY
public float getCenterY()
- returns the centerYOnViewPlane
setViewPlane
public void setViewPlane(float viewPlane)
- sets the viewPlane
setHalfWidth
public void setHalfWidth(float halfWidthAtViewPlane)
- sets the halfWidthAtViewPlane
setHalfHeight
public void setHalfHeight(float halfHeightAtViewPlane)
- sets the halfHeightAtViewPlane
setCenterX
public void setCenterX(float centerXOnViewPlane)
- sets the centerXOnViewPlane
setCenterY
public void setCenterY(float centerYOnViewPlane)
- sets the centerYOnViewPlane
clone
public Object clone()
- Returns a copy of this class.
- Overrides:
- clone in class CameraData
All Packages Class Hierarchy This Package Previous Next Index