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

#include <cameraSchema.h>

+ Inheritance diagram for HdCameraSchema:

Classes

class  Builder
 

Public Member Functions

Member accessor
HD_API HdTokenDataSourceHandle GetProjection () const
 
HD_API HdFloatDataSourceHandle GetHorizontalAperture () const
 
HD_API HdFloatDataSourceHandle GetVerticalAperture () const
 
HD_API HdFloatDataSourceHandle GetHorizontalApertureOffset () const
 
HD_API HdFloatDataSourceHandle GetVerticalApertureOffset () const
 
HD_API HdFloatDataSourceHandle GetFocalLength () const
 
HD_API HdVec2fDataSourceHandle GetClippingRange () const
 
HD_API HdVec4dArrayDataSourceHandle GetClippingPlanes () const
 
HD_API HdFloatDataSourceHandle GetFStop () const
 
HD_API HdFloatDataSourceHandle GetFocusDistance () const
 
HD_API HdDoubleDataSourceHandle GetShutterOpen () const
 
HD_API HdDoubleDataSourceHandle GetShutterClose () const
 
HD_API HdFloatDataSourceHandle GetExposure () const
 
HD_API HdFloatDataSourceHandle GetExposureTime () const
 
HD_API HdFloatDataSourceHandle GetExposureIso () const
 
HD_API HdFloatDataSourceHandle GetExposureFStop () const
 
HD_API HdFloatDataSourceHandle GetExposureResponsivity () const
 
HD_API HdFloatDataSourceHandle GetLinearExposureScale () const
 
HD_API HdBoolDataSourceHandle GetFocusOn () const
 
HD_API HdFloatDataSourceHandle GetDofAspect () const
 
HD_API HdSplitDiopterSchema GetSplitDiopter () const
 
HD_API HdLensDistortionSchema GetLensDistortion () const
 
HD_API
HdSampledDataSourceContainerContainerSchema 
GetNamespacedProperties () const
 
- Public Member Functions inherited from HdSchema
 HdSchema (HdContainerDataSourceHandle container)
 
HD_API HdContainerDataSourceHandle GetContainer () const
 Returns the container data source that this schema is interpreting. More...
 
HD_API bool IsDefined () const
 
 operator bool () const
 

Static Public Member Functions

Schema location
static HD_API const TfToken & GetSchemaToken ()
 
static HD_API const
HdDataSourceLocator & 
GetDefaultLocator ()
 
Data source locators for members

The following methods return an HdDataSourceLocator (relative to the prim-level data source) where the data source for a member can be found.

This is often useful for checking intersection against the HdDataSourceLocatorSet sent with HdDataSourceObserver::PrimsDirtied.

static HD_API const
HdDataSourceLocator & 
GetShutterOpenLocator ()
 Prim-level relative data source locator to locate shutterOpen. More...
 
static HD_API const
HdDataSourceLocator & 
GetShutterCloseLocator ()
 Prim-level relative data source locator to locate shutterClose. More...
 
static HD_API const
HdDataSourceLocator & 
GetExposureLocator ()
 Prim-level relative data source locator to locate exposure. More...
 
static HD_API const
HdDataSourceLocator & 
GetExposureTimeLocator ()
 Prim-level relative data source locator to locate exposureTime. More...
 
static HD_API const
HdDataSourceLocator & 
GetExposureIsoLocator ()
 Prim-level relative data source locator to locate exposureIso. More...
 
static HD_API const
HdDataSourceLocator & 
GetExposureFStopLocator ()
 Prim-level relative data source locator to locate exposureFStop. More...
 
static HD_API const
HdDataSourceLocator & 
GetExposureResponsivityLocator ()
 Prim-level relative data source locator to locate exposureResponsivity. More...
 
static HD_API const
HdDataSourceLocator & 
GetLinearExposureScaleLocator ()
 Prim-level relative data source locator to locate linearExposureScale. More...
 
static HD_API const
HdDataSourceLocator & 
GetNamespacedPropertiesLocator ()
 Prim-level relative data source locator to locate namespacedProperties. More...
 
Schema construction
static HD_API
HdContainerDataSourceHandle 
BuildRetained (const HdTokenDataSourceHandle &projection, const HdFloatDataSourceHandle &horizontalAperture, const HdFloatDataSourceHandle &verticalAperture, const HdFloatDataSourceHandle &horizontalApertureOffset, const HdFloatDataSourceHandle &verticalApertureOffset, const HdFloatDataSourceHandle &focalLength, const HdVec2fDataSourceHandle &clippingRange, const HdVec4dArrayDataSourceHandle &clippingPlanes, const HdFloatDataSourceHandle &fStop, const HdFloatDataSourceHandle &focusDistance, const HdDoubleDataSourceHandle &shutterOpen, const HdDoubleDataSourceHandle &shutterClose, const HdFloatDataSourceHandle &exposure, const HdFloatDataSourceHandle &exposureTime, const HdFloatDataSourceHandle &exposureIso, const HdFloatDataSourceHandle &exposureFStop, const HdFloatDataSourceHandle &exposureResponsivity, const HdFloatDataSourceHandle &linearExposureScale, const HdBoolDataSourceHandle &focusOn, const HdFloatDataSourceHandle &dofAspect, const HdContainerDataSourceHandle &splitDiopter, const HdContainerDataSourceHandle &lensDistortion, const HdContainerDataSourceHandle &namespacedProperties)
 
static HD_API
HdTokenDataSourceHandle 
BuildProjectionDataSource (const TfToken &projection)
 

Schema retrieval

 HdCameraSchema (HdContainerDataSourceHandle container)
 
static HD_API HdCameraSchema GetFromParent (const HdContainerDataSourceHandle &fromParentContainer)
 

Additional Inherited Members

- Public Types inherited from HdSchema
using UnderlyingDataSource = HdContainerDataSource
 
- Protected Member Functions inherited from HdSchema
template<typename T >
T::Handle _GetTypedDataSource (TfToken name) const
 
- Protected Attributes inherited from HdSchema
HdContainerDataSourceHandle _container
 

Detailed Description

Definition at line 74 of file cameraSchema.h.

Constructor & Destructor Documentation

HdCameraSchema::HdCameraSchema ( HdContainerDataSourceHandle  container)
inline

Retrieves a container data source with the schema's default name token "camera" from the parent container and constructs a HdCameraSchema instance. Because the requested container data source may not exist, the result should be checked with IsDefined() or a bool comparison before use.

Definition at line 80 of file cameraSchema.h.

Member Function Documentation

static HD_API HdTokenDataSourceHandle HdCameraSchema::BuildProjectionDataSource ( const TfToken &  projection)
static

Returns token data source for use as projection value.

The following values will be stored statically and reused for future calls:

  • HdCameraSchemaTokens->perspective
  • HdCameraSchemaTokens->orthographic
static HD_API HdContainerDataSourceHandle HdCameraSchema::BuildRetained ( const HdTokenDataSourceHandle &  projection,
const HdFloatDataSourceHandle &  horizontalAperture,
const HdFloatDataSourceHandle &  verticalAperture,
const HdFloatDataSourceHandle &  horizontalApertureOffset,
const HdFloatDataSourceHandle &  verticalApertureOffset,
const HdFloatDataSourceHandle &  focalLength,
const HdVec2fDataSourceHandle &  clippingRange,
const HdVec4dArrayDataSourceHandle &  clippingPlanes,
const HdFloatDataSourceHandle &  fStop,
const HdFloatDataSourceHandle &  focusDistance,
const HdDoubleDataSourceHandle &  shutterOpen,
const HdDoubleDataSourceHandle &  shutterClose,
const HdFloatDataSourceHandle &  exposure,
const HdFloatDataSourceHandle &  exposureTime,
const HdFloatDataSourceHandle &  exposureIso,
const HdFloatDataSourceHandle &  exposureFStop,
const HdFloatDataSourceHandle &  exposureResponsivity,
const HdFloatDataSourceHandle &  linearExposureScale,
const HdBoolDataSourceHandle &  focusOn,
const HdFloatDataSourceHandle &  dofAspect,
const HdContainerDataSourceHandle &  splitDiopter,
const HdContainerDataSourceHandle &  lensDistortion,
const HdContainerDataSourceHandle &  namespacedProperties 
)
static
Deprecated:
Use Builder instead.

Builds a container data source which includes the provided child data sources. Parameters with nullptr values are excluded. This is a low-level interface. For cases in which it's desired to define the container with a sparse set of child fields, the Builder class is often more convenient and readable.

HD_API HdVec4dArrayDataSourceHandle HdCameraSchema::GetClippingPlanes ( ) const
HD_API HdVec2fDataSourceHandle HdCameraSchema::GetClippingRange ( ) const
static HD_API const HdDataSourceLocator& HdCameraSchema::GetDefaultLocator ( )
static

Returns an HdDataSourceLocator (relative to the prim-level data source) where the container representing this schema is found by default.

HD_API HdFloatDataSourceHandle HdCameraSchema::GetDofAspect ( ) const
HD_API HdFloatDataSourceHandle HdCameraSchema::GetExposure ( ) const
HD_API HdFloatDataSourceHandle HdCameraSchema::GetExposureFStop ( ) const
static HD_API const HdDataSourceLocator& HdCameraSchema::GetExposureFStopLocator ( )
static

Prim-level relative data source locator to locate exposureFStop.

HD_API HdFloatDataSourceHandle HdCameraSchema::GetExposureIso ( ) const
static HD_API const HdDataSourceLocator& HdCameraSchema::GetExposureIsoLocator ( )
static

Prim-level relative data source locator to locate exposureIso.

static HD_API const HdDataSourceLocator& HdCameraSchema::GetExposureLocator ( )
static

Prim-level relative data source locator to locate exposure.

HD_API HdFloatDataSourceHandle HdCameraSchema::GetExposureResponsivity ( ) const
static HD_API const HdDataSourceLocator& HdCameraSchema::GetExposureResponsivityLocator ( )
static

Prim-level relative data source locator to locate exposureResponsivity.

HD_API HdFloatDataSourceHandle HdCameraSchema::GetExposureTime ( ) const
static HD_API const HdDataSourceLocator& HdCameraSchema::GetExposureTimeLocator ( )
static

Prim-level relative data source locator to locate exposureTime.

HD_API HdFloatDataSourceHandle HdCameraSchema::GetFocalLength ( ) const
HD_API HdFloatDataSourceHandle HdCameraSchema::GetFocusDistance ( ) const
HD_API HdBoolDataSourceHandle HdCameraSchema::GetFocusOn ( ) const
static HD_API HdCameraSchema HdCameraSchema::GetFromParent ( const HdContainerDataSourceHandle &  fromParentContainer)
static

Retrieves a container data source with the schema's default name token "camera" from the parent container and constructs a HdCameraSchema instance. Because the requested container data source may not exist, the result should be checked with IsDefined() or a bool comparison before use.

HD_API HdFloatDataSourceHandle HdCameraSchema::GetFStop ( ) const
HD_API HdFloatDataSourceHandle HdCameraSchema::GetHorizontalAperture ( ) const
HD_API HdFloatDataSourceHandle HdCameraSchema::GetHorizontalApertureOffset ( ) const
HD_API HdLensDistortionSchema HdCameraSchema::GetLensDistortion ( ) const
HD_API HdFloatDataSourceHandle HdCameraSchema::GetLinearExposureScale ( ) const
static HD_API const HdDataSourceLocator& HdCameraSchema::GetLinearExposureScaleLocator ( )
static

Prim-level relative data source locator to locate linearExposureScale.

HD_API HdSampledDataSourceContainerContainerSchema HdCameraSchema::GetNamespacedProperties ( ) const
static HD_API const HdDataSourceLocator& HdCameraSchema::GetNamespacedPropertiesLocator ( )
static

Prim-level relative data source locator to locate namespacedProperties.

HD_API HdTokenDataSourceHandle HdCameraSchema::GetProjection ( ) const
static HD_API const TfToken& HdCameraSchema::GetSchemaToken ( )
static

Returns a token where the container representing this schema is found in a container by default.

HD_API HdDoubleDataSourceHandle HdCameraSchema::GetShutterClose ( ) const
static HD_API const HdDataSourceLocator& HdCameraSchema::GetShutterCloseLocator ( )
static

Prim-level relative data source locator to locate shutterClose.

HD_API HdDoubleDataSourceHandle HdCameraSchema::GetShutterOpen ( ) const
static HD_API const HdDataSourceLocator& HdCameraSchema::GetShutterOpenLocator ( )
static

Prim-level relative data source locator to locate shutterOpen.

HD_API HdSplitDiopterSchema HdCameraSchema::GetSplitDiopter ( ) const
HD_API HdFloatDataSourceHandle HdCameraSchema::GetVerticalAperture ( ) const
HD_API HdFloatDataSourceHandle HdCameraSchema::GetVerticalApertureOffset ( ) const

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