HDK
|
#include <camera.h>
Public Types | |
enum | DirtyBits : HdDirtyBits { Clean = 0, DirtyTransform = 1 << 0, DirtyParams = 1 << 1, DirtyClipPlanes = 1 << 2, DirtyWindowPolicy = 1 << 3, AllDirty } |
enum | Projection { Perspective = 0, Orthographic } |
using | ClipPlanesVector = std::vector< GfVec4d > |
Public Member Functions | |
HD_API | HdCamera (SdfPath const &id) |
HD_API | ~HdCamera () override |
HD_API void | Sync (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdDirtyBits *dirtyBits) override |
Sprim API. More... | |
HD_API HdDirtyBits | GetInitialDirtyBitsMask () const override |
GfMatrix4d const & | GetTransform () const |
Camera parameters accessor API. More... | |
Projection | GetProjection () const |
Returns whether camera is orthographic and perspective. More... | |
float | GetHorizontalAperture () const |
Returns horizontal aperture in world units. More... | |
float | GetVerticalAperture () const |
Returns vertical aperture in world units. More... | |
float | GetHorizontalApertureOffset () const |
Returns horizontal aperture offset in world units. More... | |
float | GetVerticalApertureOffset () const |
Returns vertical aperture offset in world units. More... | |
float | GetFocalLength () const |
Returns focal length in world units. More... | |
GfRange1f const & | GetClippingRange () const |
Returns near and far plane in world units. More... | |
std::vector< GfVec4d > const & | GetClipPlanes () const |
Returns any additional clipping planes defined in camera space. More... | |
float | GetFStop () const |
Returns fstop of camera. More... | |
float | GetFocusDistance () const |
Returns focus distance in world units. More... | |
bool | GetFocusOn () const |
float | GetDofAspect () const |
int | GetSplitDiopterCount () const |
float | GetSplitDiopterAngle () const |
float | GetSplitDiopterOffset1 () const |
float | GetSplitDiopterWidth1 () const |
float | GetSplitDiopterFocusDistance1 () const |
float | GetSplitDiopterOffset2 () const |
float | GetSplitDiopterWidth2 () const |
float | GetSplitDiopterFocusDistance2 () const |
double | GetShutterOpen () const |
double | GetShutterClose () const |
float | GetExposure () const |
TfToken | GetLensDistortionType () const |
float | GetLensDistortionK1 () const |
float | GetLensDistortionK2 () const |
const GfVec2f & | GetLensDistortionCenter () const |
float | GetLensDistortionAnaSq () const |
const GfVec2f & | GetLensDistortionAsym () const |
float | GetLensDistortionScale () const |
float | GetLensDistortionIor () const |
const CameraUtilConformWindowPolicy & | GetWindowPolicy () const |
HD_API GfMatrix4d | ComputeProjectionMatrix () const |
Convenience API for rasterizers. More... | |
Public Member Functions inherited from HdSprim | |
HD_API | HdSprim (SdfPath const &id) |
virtual HD_API | ~HdSprim () |
SdfPath const & | GetId () const |
virtual HD_API void | Finalize (HdRenderParam *renderParam) |
Hydra schema for a camera that pulls the params (see above) during Sync. Backends that use additional camera parameters can inherit from HdCamera and pull on them.
using HdCamera::ClipPlanesVector = std::vector<GfVec4d> |
enum HdCamera::DirtyBits : HdDirtyBits |
enum HdCamera::Projection |
|
override |
HD_API GfMatrix4d HdCamera::ComputeProjectionMatrix | ( | ) | const |
Convenience API for rasterizers.
Computes the projection matrix for a camera from its physical properties.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
overridevirtual |
Returns the minimal set of dirty bits to place in the change tracker for use in the first sync of this prim. Typically this would be all dirty bits.
Implements HdSprim.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
overridevirtual |
|
protected |
|
protected |
|
protected |