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

#include <screenWindowParameters.h>

Public Member Functions

CAMERAUTIL_API CameraUtilScreenWindowParameters (const GfCamera &camera, GfCamera::FOVDirection fitDirection=GfCamera::FOVHorizontal)
const GfVec4dGetScreenWindow () const
double GetFieldOfView () const
const GfMatrix4dGetZFacingViewMatrix () const

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::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 CameraUtilScreenWindowParameters::GetFieldOfView ( ) const

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& CameraUtilScreenWindowParameters::GetScreenWindow ( ) const

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& CameraUtilScreenWindowParameters::GetZFacingViewMatrix ( ) 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). 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: