Loading...
Searching...
No Matches
CameraUtilScreenWindowParameters Class Reference

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

#include <screenWindowParameters.h>

Public Member Functions

CAMERAUTIL_API CameraUtilScreenWindowParameters (const GfCamera &camera, GfCamera::FOVDirection fitDirection=GfCamera::FOVHorizontal)
 Constructs screenwindow parameter.
 
const GfVec4d & GetScreenWindow () const
 The vector (left, right, bottom, top) defining the rectangle in the image plane.
 
double GetFieldOfView () const
 The field of view.
 
const GfMatrix4d & 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).
 

Detailed Description

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

Definition at line 22 of file screenWindowParameters.h.

Constructor & Destructor Documentation

◆ CameraUtilScreenWindowParameters()

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

◆ GetFieldOfView()

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 42 of file screenWindowParameters.h.

◆ GetScreenWindow()

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 35 of file screenWindowParameters.h.

◆ GetZFacingViewMatrix()

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 48 of file screenWindowParameters.h.


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