HDK
|
#include <cameraSchema.h>
Classes | |
class | Builder |
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... | |
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 HdBoolDataSourceHandle &focusOn, const HdFloatDataSourceHandle &dofAspect, const HdContainerDataSourceHandle &splitDiopter, const HdContainerDataSourceHandle &lensDistortion) |
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) |
Protected Attributes inherited from HdSchema | |
HdContainerDataSourceHandle | _container |
Definition at line 82 of file cameraSchema.h.
|
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 88 of file cameraSchema.h.
|
static |
Returns token data source for use as projection value.
The following values will be stored statically and reused for future calls:
|
static |
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 | ( | ) |
HD_API HdVec2fDataSourceHandle HdCameraSchema::GetClippingRange | ( | ) |
|
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 | ( | ) |
HD_API HdFloatDataSourceHandle HdCameraSchema::GetExposure | ( | ) |
HD_API HdFloatDataSourceHandle HdCameraSchema::GetFocalLength | ( | ) |
HD_API HdFloatDataSourceHandle HdCameraSchema::GetFocusDistance | ( | ) |
HD_API HdBoolDataSourceHandle HdCameraSchema::GetFocusOn | ( | ) |
|
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 | ( | ) |
HD_API HdFloatDataSourceHandle HdCameraSchema::GetHorizontalAperture | ( | ) |
HD_API HdFloatDataSourceHandle HdCameraSchema::GetHorizontalApertureOffset | ( | ) |
HD_API HdLensDistortionSchema HdCameraSchema::GetLensDistortion | ( | ) |
HD_API HdTokenDataSourceHandle HdCameraSchema::GetProjection | ( | ) |
Returns a token where the container representing this schema is found in a container by default.
HD_API HdDoubleDataSourceHandle HdCameraSchema::GetShutterClose | ( | ) |
|
static |
Prim-level relative data source locator to locate shutterClose.
HD_API HdDoubleDataSourceHandle HdCameraSchema::GetShutterOpen | ( | ) |
|
static |
Prim-level relative data source locator to locate shutterOpen.
HD_API HdSplitDiopterSchema HdCameraSchema::GetSplitDiopter | ( | ) |
HD_API HdFloatDataSourceHandle HdCameraSchema::GetVerticalAperture | ( | ) |
HD_API HdFloatDataSourceHandle HdCameraSchema::GetVerticalApertureOffset | ( | ) |