backPlateSchema.h
Go to the documentation of this file.
1 //
2 // Copyright 2023 Pixar
3 //
4 // Licensed under the terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
8 
9 /* ************************************************************************** */
10 /* ** ** */
11 /* ** This file is generated by a script. ** */
12 /* ** ** */
13 /* ** Do not edit it directly (unless it is within a CUSTOM CODE section)! ** */
14 /* ** Edit hdSchemaDefs.py instead to make changes. ** */
15 /* ** ** */
16 /* ************************************************************************** */
17 
18 #ifndef PXR_IMAGING_HD_BACK_PLATE_SCHEMA_H
19 #define PXR_IMAGING_HD_BACK_PLATE_SCHEMA_H
20 
22 
23 #include "pxr/imaging/hd/api.h"
24 #include "pxr/imaging/hd/schemaTypeDefs.h"
25 
26 #include "pxr/imaging/hd/schema.h"
27 
28 // --(BEGIN CUSTOM CODE: Includes)--
29 // --(END CUSTOM CODE: Includes)--
30 
31 PXR_NAMESPACE_OPEN_SCOPE
32 
33 // --(BEGIN CUSTOM CODE: Declares)--
34 // --(END CUSTOM CODE: Declares)--
35 
36 #define HD_BACK_PLATE_SCHEMA_TOKENS \
37  (backPlate) \
38  (scaleTweak) \
39  (rotateXYZTweak) \
40  (translateTweak) \
41  (image) \
42  (alphaImage) \
43  (depthImage) \
44  (depthMinOffset) \
45  (depthNormalizingFactor) \
46  (depthCameraSpaceOffset) \
47  (lumaSlope) \
48  (lumaOffset) \
49  (lumaPower) \
50  (plateVisibility) \
51  (all) \
52  (solo) \
53  (none) \
54 
55 TF_DECLARE_PUBLIC_TOKENS(HdBackPlateSchemaTokens, HD_API,
56  HD_BACK_PLATE_SCHEMA_TOKENS);
57 
58 //-----------------------------------------------------------------------------
59 
60 
68 {
69 public:
72 
73  HdBackPlateSchema(HdContainerDataSourceHandle container)
74  : HdSchema(container) {}
75 
81  HD_API
83  const HdContainerDataSourceHandle &fromParentContainer);
84 
86 
87 // --(BEGIN CUSTOM CODE: Schema Methods)--
88 // --(END CUSTOM CODE: Schema Methods)--
89 
92 
93  HD_API
94  HdVec2fDataSourceHandle GetScaleTweak() const;
95 
96  HD_API
97  HdVec3fDataSourceHandle GetRotateXYZTweak() const;
98 
99  HD_API
100  HdVec3fDataSourceHandle GetTranslateTweak() const;
101 
102  HD_API
103  HdAssetPathDataSourceHandle GetImage() const;
104 
105  HD_API
106  HdAssetPathDataSourceHandle GetAlphaImage() const;
107 
108  HD_API
109  HdAssetPathDataSourceHandle GetDepthImage() const;
110 
111  HD_API
112  HdFloatDataSourceHandle GetDepthMinOffset() const;
113 
114  HD_API
115  HdFloatDataSourceHandle GetDepthNormalizingFactor() const;
116 
117  HD_API
118  HdFloatDataSourceHandle GetDepthCameraSpaceOffset() const;
119 
120  HD_API
121  HdVec3fDataSourceHandle GetLumaSlope() const;
122 
123  HD_API
124  HdVec3fDataSourceHandle GetLumaOffset() const;
125 
126  HD_API
127  HdVec3fDataSourceHandle GetLumaPower() const;
128 
129  HD_API
130  HdTokenDataSourceHandle GetPlateVisibility() const;
131 
133 
136 
139  HD_API
140  static const TfToken &GetSchemaToken();
141 
143 
146 
154  HD_API
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
170  );
171 
178  class Builder
179  {
180  public:
181  HD_API
182  Builder &SetScaleTweak(
183  const HdVec2fDataSourceHandle &scaleTweak);
184  HD_API
185  Builder &SetRotateXYZTweak(
186  const HdVec3fDataSourceHandle &rotateXYZTweak);
187  HD_API
188  Builder &SetTranslateTweak(
189  const HdVec3fDataSourceHandle &translateTweak);
190  HD_API
191  Builder &SetImage(
192  const HdAssetPathDataSourceHandle &image);
193  HD_API
194  Builder &SetAlphaImage(
195  const HdAssetPathDataSourceHandle &alphaImage);
196  HD_API
197  Builder &SetDepthImage(
198  const HdAssetPathDataSourceHandle &depthImage);
199  HD_API
200  Builder &SetDepthMinOffset(
201  const HdFloatDataSourceHandle &depthMinOffset);
202  HD_API
203  Builder &SetDepthNormalizingFactor(
204  const HdFloatDataSourceHandle &depthNormalizingFactor);
205  HD_API
206  Builder &SetDepthCameraSpaceOffset(
207  const HdFloatDataSourceHandle &depthCameraSpaceOffset);
208  HD_API
209  Builder &SetLumaSlope(
210  const HdVec3fDataSourceHandle &lumaSlope);
211  HD_API
212  Builder &SetLumaOffset(
213  const HdVec3fDataSourceHandle &lumaOffset);
214  HD_API
215  Builder &SetLumaPower(
216  const HdVec3fDataSourceHandle &lumaPower);
217  HD_API
218  Builder &SetPlateVisibility(
219  const HdTokenDataSourceHandle &plateVisibility);
220 
222  HD_API
223  HdContainerDataSourceHandle Build();
224 
225  private:
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;
239 
240  };
241 
249  HD_API
250  static HdTokenDataSourceHandle BuildPlateVisibilityDataSource(
251  const TfToken &plateVisibility);
252 
254 };
255 
256 PXR_NAMESPACE_CLOSE_SCOPE
257 
258 #endif
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.
Definition: token.h:80
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Definition: staticTokens.h:92
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...
Definition: schema.h:25
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...