18 #ifndef PXR_IMAGING_HD_BACK_PLATE_SCHEMA_H 19 #define PXR_IMAGING_HD_BACK_PLATE_SCHEMA_H 23 #include "pxr/imaging/hd/api.h" 24 #include "pxr/imaging/hd/schemaTypeDefs.h" 26 #include "pxr/imaging/hd/schema.h" 31 PXR_NAMESPACE_OPEN_SCOPE
36 #define HD_BACK_PLATE_SCHEMA_TOKENS \ 45 (depthNormalizingFactor) \ 46 (depthCameraSpaceOffset) \ 56 HD_BACK_PLATE_SCHEMA_TOKENS);
83 const HdContainerDataSourceHandle &fromParentContainer);
94 HdVec2fDataSourceHandle GetScaleTweak()
const;
97 HdVec3fDataSourceHandle GetRotateXYZTweak()
const;
100 HdVec3fDataSourceHandle GetTranslateTweak()
const;
103 HdAssetPathDataSourceHandle GetImage()
const;
106 HdAssetPathDataSourceHandle GetAlphaImage()
const;
109 HdAssetPathDataSourceHandle GetDepthImage()
const;
112 HdFloatDataSourceHandle GetDepthMinOffset()
const;
115 HdFloatDataSourceHandle GetDepthNormalizingFactor()
const;
118 HdFloatDataSourceHandle GetDepthCameraSpaceOffset()
const;
121 HdVec3fDataSourceHandle GetLumaSlope()
const;
124 HdVec3fDataSourceHandle GetLumaOffset()
const;
127 HdVec3fDataSourceHandle GetLumaPower()
const;
130 HdTokenDataSourceHandle GetPlateVisibility()
const;
155 static HdContainerDataSourceHandle
157 const HdVec2fDataSourceHandle &scaleTweak,
158 const HdVec3fDataSourceHandle &rotateXYZTweak,
159 const HdVec3fDataSourceHandle &translateTweak,
160 const HdAssetPathDataSourceHandle &image,
161 const HdAssetPathDataSourceHandle &alphaImage,
162 const HdAssetPathDataSourceHandle &depthImage,
163 const HdFloatDataSourceHandle &depthMinOffset,
164 const HdFloatDataSourceHandle &depthNormalizingFactor,
165 const HdFloatDataSourceHandle &depthCameraSpaceOffset,
166 const HdVec3fDataSourceHandle &lumaSlope,
167 const HdVec3fDataSourceHandle &lumaOffset,
168 const HdVec3fDataSourceHandle &lumaPower,
169 const HdTokenDataSourceHandle &plateVisibility
183 const HdVec2fDataSourceHandle &scaleTweak);
186 const HdVec3fDataSourceHandle &rotateXYZTweak);
189 const HdVec3fDataSourceHandle &translateTweak);
192 const HdAssetPathDataSourceHandle &image);
195 const HdAssetPathDataSourceHandle &alphaImage);
198 const HdAssetPathDataSourceHandle &depthImage);
201 const HdFloatDataSourceHandle &depthMinOffset);
203 Builder &SetDepthNormalizingFactor(
204 const HdFloatDataSourceHandle &depthNormalizingFactor);
206 Builder &SetDepthCameraSpaceOffset(
207 const HdFloatDataSourceHandle &depthCameraSpaceOffset);
210 const HdVec3fDataSourceHandle &lumaSlope);
213 const HdVec3fDataSourceHandle &lumaOffset);
216 const HdVec3fDataSourceHandle &lumaPower);
219 const HdTokenDataSourceHandle &plateVisibility);
223 HdContainerDataSourceHandle
Build();
226 HdVec2fDataSourceHandle _scaleTweak;
227 HdVec3fDataSourceHandle _rotateXYZTweak;
228 HdVec3fDataSourceHandle _translateTweak;
229 HdAssetPathDataSourceHandle _image;
230 HdAssetPathDataSourceHandle _alphaImage;
231 HdAssetPathDataSourceHandle _depthImage;
232 HdFloatDataSourceHandle _depthMinOffset;
233 HdFloatDataSourceHandle _depthNormalizingFactor;
234 HdFloatDataSourceHandle _depthCameraSpaceOffset;
235 HdVec3fDataSourceHandle _lumaSlope;
236 HdVec3fDataSourceHandle _lumaOffset;
237 HdVec3fDataSourceHandle _lumaPower;
238 HdTokenDataSourceHandle _plateVisibility;
251 const TfToken &plateVisibility);
256 PXR_NAMESPACE_CLOSE_SCOPE
static HD_API HdContainerDataSourceHandle BuildRetained(const HdVec2fDataSourceHandle &scaleTweak, const HdVec3fDataSourceHandle &rotateXYZTweak, const HdVec3fDataSourceHandle &translateTweak, const HdAssetPathDataSourceHandle &image, const HdAssetPathDataSourceHandle &alphaImage, const HdAssetPathDataSourceHandle &depthImage, const HdFloatDataSourceHandle &depthMinOffset, const HdFloatDataSourceHandle &depthNormalizingFactor, const HdFloatDataSourceHandle &depthCameraSpaceOffset, const HdVec3fDataSourceHandle &lumaSlope, const HdVec3fDataSourceHandle &lumaOffset, const HdVec3fDataSourceHandle &lumaPower, const HdTokenDataSourceHandle &plateVisibility)
static HD_API HdTokenDataSourceHandle BuildPlateVisibilityDataSource(const TfToken &plateVisibility)
Returns token data source for use as plateVisibility value.
Token for efficient comparison, assignment, and hashing of known strings.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
HD_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
static HD_API const TfToken & GetSchemaToken()
Returns a token where the container representing this schema is found in a container by default.
The HdBackPlateSchema specifies a container that will hold "back plate" data.
Schema classes represent a structured view of the inherently unstructured container data source passe...
Utility class for setting sparse sets of child data source fields to be filled as arguments into Buil...
static HD_API HdBackPlateSchema GetFromParent(const HdContainerDataSourceHandle &fromParentContainer)
Retrieves a container data source with the schema's default name token "backPlate" from the parent co...