All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class quicktime.qd3d.camera.CameraViewPort

java.lang.Object
   |
   +----quicktime.util.QTByteObject
           |
           +----quicktime.qd3d.camera.CameraViewPort

public final class CameraViewPort
extends QTByteObject
implements Cloneable
CameraViewPort contains information for the camera's viewport. Viewport specification. Origin is (-1, 1), and corresponds to the upper left-hand corner; width and height maximum is (2.0, 2.0), corresponding to the lower left-hand corner of the window. The Viewport specifies a part of the viewPlane that gets displayed on the window that is to be drawn. Normally, it is set with an origin of (-1.0, 1.0), and a width and height of both 2.0, specifying that the entire window is to be drawn. If, for example, an exposure event of the window exposed the right half of the window, you would set the origin to (0, 1), and the width and height to (1.0) and (2.0), respectively. Refer to TQ3CameraPlacement in QuickDraw3d


Variable Index

 o kNativeSize
This is the size (the number of bytes) that are required for this class

Constructor Index

 o CameraViewPort()
Creates a CameraViewPort object containing no data.
 o CameraViewPort(QDPoint, float, float)
Creates a CameraViewPort object containing given data.

Method Index

 o clone()
Returns a copy of this class.
 o getEndianDescriptor()
Returns the EndianDescriptor for this class.
 o getHeight()
returns the camera viewport's height
 o getOrigin()
returns the origin of camera viewport
 o getWidth()
returns the camera viewport's width
 o setHeight(float)
sets the camera viewport's height
 o setOrigin(QDPoint)
sets the camera viewport's origin
 o setWidth(float)
sets the camera viewport's width
 o toString()
Returns a string representation of the class

Variables

 o kNativeSize
 public static final int kNativeSize
This is the size (the number of bytes) that are required for this class

Constructors

 o CameraViewPort
 public CameraViewPort()
Creates a CameraViewPort object containing no data.

 o CameraViewPort
 public CameraViewPort(QDPoint origin,
                       float width,
                       float height)
Creates a CameraViewPort object containing given data.

Parameters:
origin - The origin.
width - The width.
height - The height.

Methods

 o getEndianDescriptor
 public static final EndianDescriptor getEndianDescriptor()
Returns the EndianDescriptor for this class.

Returns:
an EndianDescriptor
 o getOrigin
 public QDPoint getOrigin()
returns the origin of camera viewport

 o getWidth
 public float getWidth()
returns the camera viewport's width

 o getHeight
 public float getHeight()
returns the camera viewport's height

 o setOrigin
 public void setOrigin(QDPoint origin)
sets the camera viewport's origin

 o setWidth
 public void setWidth(float width)
sets the camera viewport's width

 o setHeight
 public void setHeight(float height)
sets the camera viewport's height

 o clone
 public Object clone()
Returns a copy of this class.

Overrides:
clone in class Object
 o toString
 public String toString()
Returns a string representation of the class

Overrides:
toString in class QTByteObject

All Packages  Class Hierarchy  This Package  Previous  Next  Index