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
-
kNativeSize
- This is the size (the number of bytes) that are required for this class
-
CameraViewPort()
- Creates a CameraViewPort object containing no data.
-
CameraViewPort(QDPoint, float, float)
- Creates a CameraViewPort object containing given data.
-
clone()
- Returns a copy of this class.
-
getEndianDescriptor()
- Returns the EndianDescriptor for this class.
-
getHeight()
- returns the camera viewport's height
-
getOrigin()
- returns the origin of camera viewport
-
getWidth()
- returns the camera viewport's width
-
setHeight(float)
- sets the camera viewport's height
-
setOrigin(QDPoint)
- sets the camera viewport's origin
-
setWidth(float)
- sets the camera viewport's width
-
toString()
- Returns a string representation of the class
kNativeSize
public static final int kNativeSize
- This is the size (the number of bytes) that are required for this class
CameraViewPort
public CameraViewPort()
- Creates a CameraViewPort object containing no data.
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.
getEndianDescriptor
public static final EndianDescriptor getEndianDescriptor()
- Returns the EndianDescriptor for this class.
- Returns:
- an EndianDescriptor
getOrigin
public QDPoint getOrigin()
- returns the origin of camera viewport
getWidth
public float getWidth()
- returns the camera viewport's width
getHeight
public float getHeight()
- returns the camera viewport's height
setOrigin
public void setOrigin(QDPoint origin)
- sets the camera viewport's origin
setWidth
public void setWidth(float width)
- sets the camera viewport's width
setHeight
public void setHeight(float height)
- sets the camera viewport's height
clone
public Object clone()
- Returns a copy of this class.
- Overrides:
- clone in class Object
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