24 #ifndef PXR_IMAGING_CAMERA_UTIL_FRAMING_H 25 #define PXR_IMAGING_CAMERA_UTIL_FRAMING_H 28 #include "pxr/imaging/cameraUtil/api.h" 30 #include "pxr/imaging/cameraUtil/conformWindow.h" 35 PXR_NAMESPACE_OPEN_SCOPE
131 float cameraAspectRatio,
132 CameraUtilConformWindowPolicy windowPolicy)
const;
142 CameraUtilConformWindowPolicy windowPolicy)
const;
156 PXR_NAMESPACE_CLOSE_SCOPE
CAMERAUTIL_API bool IsValid() const
Is display and data window non-empty.
A 2D rectangle with integer coordinates.
CAMERAUTIL_API GfMatrix4d ApplyToProjectionMatrix(const GfMatrix4d &projectionMatrix, CameraUtilConformWindowPolicy windowPolicy) const
Given the projectionMatrix computed from a camera, applies the framing.
CAMERAUTIL_API CameraUtilFraming()
Creates an invalid framing, i.e., with empty display and data window.
Stores a 4x4 matrix of double elements.
GfRect2i dataWindow
The data window.
CAMERAUTIL_API GfRange2f ComputeFilmbackWindow(float cameraAspectRatio, CameraUtilConformWindowPolicy windowPolicy) const
The filmback window is the rectangle in pixel space corresponding to the filmback plane.
GfRange2f displayWindow
The display window.
Basic type: 2-dimensional floating point range.
float pixelAspectRatio
The ratio of the width to the height of a pixel - same as OpenEXR.