All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CameraUtilScreenWindowParameters Class Reference

Given a camera object, compute parameters suitable for setting up RenderMan. More...

Public Member Functions

CAMERAUTIL_API CameraUtilScreenWindowParameters (const GfCamera &camera, GfCamera::FOVDirection fitDirection=GfCamera::FOVHorizontal)
 Constructs screenwindow parameter. More...
 
const GfVec4dGetScreenWindow () const
 The vector (left, right, bottom, top) defining the rectangle in the image plane. More...
 
double GetFieldOfView () const
 The field of view. More...
 
const GfMatrix4dGetZFacingViewMatrix () const
 Returns the inverse of the transform for a camera that is y-Up and z-facing (vs the OpenGL camera that is (-z)-facing). More...
 

Detailed Description

Given a camera object, compute parameters suitable for setting up RenderMan.

Definition at line 39 of file screenWindowParameters.h.

Constructor & Destructor Documentation

CAMERAUTIL_API CameraUtilScreenWindowParameters ( const GfCamera camera,
GfCamera::FOVDirection  fitDirection = GfCamera::FOVHorizontal 
)

Constructs screenwindow parameter.

The optional fitDirection indicates in which direction the screenwindow will have length 2.

Member Function Documentation

double GetFieldOfView ( ) const
inline

The field of view.

More precisely, the full angle perspective field of view (in degrees) between screen space coordinates (-1,0) and (1,0). Give these parameters to RiProjection as parameter after "perspective".

Definition at line 59 of file screenWindowParameters.h.

const GfVec4d& GetScreenWindow ( ) const
inline

The vector (left, right, bottom, top) defining the rectangle in the image plane.

Give these parameters to RiScreenWindow.

Definition at line 52 of file screenWindowParameters.h.

const GfMatrix4d& GetZFacingViewMatrix ( ) const
inline

Returns the inverse of the transform for a camera that is y-Up and z-facing (vs the OpenGL camera that is (-z)-facing).

Write this transform with RiConcatTransform before RiWorldBegin.

Definition at line 65 of file screenWindowParameters.h.


The documentation for this class was generated from the following file: