24#ifndef EXT_RMANPKG_25_0_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_CAMERA_H
25#define EXT_RMANPKG_25_0_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_CAMERA_H
28#include "hdPrman/api.h"
29#include "hdPrman/renderParam.h"
30#include "pxr/imaging/hd/camera.h"
31#include "pxr/imaging/hd/timeSampleArray.h"
37PXR_NAMESPACE_OPEN_SCOPE
57 std::optional<float> shutterOpenTime;
58 std::optional<float> shutterCloseTime;
59 std::optional<std::array<float, 8>> shutteropening;
72 HdDirtyBits *dirtyBits)
override;
81#if HD_API_VERSION < 52
82 float GetLensDistortionK1()
const {
83 return _lensDistortionK1;
86 float GetLensDistortionK2()
const {
87 return _lensDistortionK2;
90 const GfVec2f &GetLensDistortionCenter()
const {
91 return _lensDistortionCenter;
94 float GetLensDistortionAnaSq()
const {
95 return _lensDistortionAnaSq;
98 const GfVec2f &GetLensDistortionAsym()
const {
99 return _lensDistortionAsym;
102 float GetLensDistortionScale()
const {
103 return _lensDistortionScale;
141 return _shutterCurve;
144 float GetApertureAngle()
const {
145 return _apertureAngle;
148 float GetApertureDensity()
const {
149 return _apertureAngle;
152 float GetApertureNSides()
const {
153 return _apertureNSides;
156 float GetApertureRoundness()
const {
157 return _apertureRoundness;
163#if HD_API_VERSION < 52
164 float _lensDistortionK1;
165 float _lensDistortionK2;
167 float _lensDistortionAnaSq;
169 float _lensDistortionScale;
182 ShutterCurve _shutterCurve;
184 float _apertureAngle;
185 float _apertureDensity;
187 float _apertureRoundness;
191PXR_NAMESPACE_CLOSE_SCOPE
Basic type for a vector of 2 float components.
Hydra schema for a camera that pulls the params (see above) during Sync.
A representation for cameras that pulls on camera parameters used by Riley cameras.
HDPRMAN_API void Sync(HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdDirtyBits *dirtyBits) override
Synchronizes state from the delegate to this object.
HDPRMAN_API HdTimeSampleArray< GfMatrix4d, HDPRMAN_MAX_TIME_SAMPLES > const & GetTimeSampleXforms() const
Returns the time sampled xforms that were queried during Sync.
const ShutterCurve & GetShutterCurve() const
Get the shutter curve of the camera.
See GetShutterCurve() below for a description of what these values represent.
The HdRenderParam is an opaque (to core Hydra) handle, to an object that is obtained from the render ...
Adapter class providing data exchange with the client scene graph.
A path value used to locate objects in layers or scenegraphs.
An array of a value sampled over time, in struct-of-arrays layout.