Loading...
Searching...
No Matches
renderProductSchema.h
Go to the documentation of this file.
1//
2// Copyright 2023 Pixar
3//
4// Licensed under the Apache License, Version 2.0 (the "Apache License")
5// with the following modification; you may not use this file except in
6// compliance with the Apache License and the following modification to it:
7// Section 6. Trademarks. is deleted and replaced with:
8//
9// 6. Trademarks. This License does not grant permission to use the trade
10// names, trademarks, service marks, or product names of the Licensor
11// and its affiliates, except as required to comply with Section 4(c) of
12// the License and to reproduce the content of the NOTICE file.
13//
14// You may obtain a copy of the Apache License at
15//
16// http://www.apache.org/licenses/LICENSE-2.0
17//
18// Unless required by applicable law or agreed to in writing, software
19// distributed under the Apache License with the above modification is
20// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21// KIND, either express or implied. See the Apache License for the specific
22// language governing permissions and limitations under the Apache License.
23//
25
26/* ************************************************************************** */
27/* ** ** */
28/* ** This file is generated by a script. ** */
29/* ** ** */
30/* ** Do not edit it directly (unless it is within a CUSTOM CODE section)! ** */
31/* ** Edit hdSchemaDefs.py instead to make changes. ** */
32/* ** ** */
33/* ************************************************************************** */
34
35#ifndef PXR_IMAGING_HD_RENDER_PRODUCT_SCHEMA_H
36#define PXR_IMAGING_HD_RENDER_PRODUCT_SCHEMA_H
37
39
40#include "pxr/imaging/hd/api.h"
41#include "pxr/imaging/hd/schemaTypeDefs.h"
42
43#include "pxr/imaging/hd/schema.h"
44
45// --(BEGIN CUSTOM CODE: Includes)--
46// --(END CUSTOM CODE: Includes)--
47
48// --(BEGIN CUSTOM CODE: Includes)--
49// --(END CUSTOM CODE: Includes)--
50
51PXR_NAMESPACE_OPEN_SCOPE
52
53// --(BEGIN CUSTOM CODE: Declares)--
54// --(END CUSTOM CODE: Declares)--
55
56#define HD_RENDER_PRODUCT_SCHEMA_TOKENS \
57 (renderProduct) \
58 (path) \
59 (type) \
60 (name) \
61 (resolution) \
62 (renderVars) \
63 (cameraPrim) \
64 (pixelAspectRatio) \
65 (aspectRatioConformPolicy) \
66 (apertureSize) \
67 (dataWindowNDC) \
68 (disableMotionBlur) \
69 (disableDepthOfField) \
70 (namespacedSettings) \
71
72TF_DECLARE_PUBLIC_TOKENS(HdRenderProductSchemaTokens, HD_API,
73 HD_RENDER_PRODUCT_SCHEMA_TOKENS);
74
75//-----------------------------------------------------------------------------
76
77
78class HdRenderProductSchema : public HdSchema
79{
80public:
83
84 HdRenderProductSchema(HdContainerDataSourceHandle container)
85 : HdSchema(container) {}
86
92 HD_API
93 static HdRenderProductSchema GetFromParent(
94 const HdContainerDataSourceHandle &fromParentContainer);
95
97
98// --(BEGIN CUSTOM CODE: Schema Methods)--
99// --(END CUSTOM CODE: Schema Methods)--
100
103
104 HD_API
105 HdPathDataSourceHandle GetPath() const;
106
107 HD_API
108 HdTokenDataSourceHandle GetType() const;
109
110 HD_API
111 HdTokenDataSourceHandle GetName() const;
112
113 HD_API
114 HdVec2iDataSourceHandle GetResolution() const;
115
116 HD_API
117 HdRenderVarVectorSchema GetRenderVars() const;
118
119 HD_API
120 HdPathDataSourceHandle GetCameraPrim() const;
121
122 HD_API
123 HdFloatDataSourceHandle GetPixelAspectRatio() const;
124
125 HD_API
126 HdTokenDataSourceHandle GetAspectRatioConformPolicy() const;
127
128 HD_API
129 HdVec2fDataSourceHandle GetApertureSize() const;
130
131 HD_API
132 HdVec4fDataSourceHandle GetDataWindowNDC() const;
133
134 HD_API
135 HdBoolDataSourceHandle GetDisableMotionBlur() const;
136
137 HD_API
138 HdBoolDataSourceHandle GetDisableDepthOfField() const;
139
140 HD_API
141 HdContainerDataSourceHandle GetNamespacedSettings() const;
142
144
147
150 HD_API
151 static const TfToken &GetSchemaToken();
152
155 HD_API
156 static const HdDataSourceLocator &GetDefaultLocator();
157
159
168
170 HD_API
171 static const HdDataSourceLocator &GetResolutionLocator();
172
174 HD_API
175 static const HdDataSourceLocator &GetRenderVarsLocator();
176
178 HD_API
179 static const HdDataSourceLocator &GetNamespacedSettingsLocator();
181
184
192 HD_API
193 static HdContainerDataSourceHandle
194 BuildRetained(
195 const HdPathDataSourceHandle &path,
196 const HdTokenDataSourceHandle &type,
197 const HdTokenDataSourceHandle &name,
198 const HdVec2iDataSourceHandle &resolution,
199 const HdVectorDataSourceHandle &renderVars,
200 const HdPathDataSourceHandle &cameraPrim,
201 const HdFloatDataSourceHandle &pixelAspectRatio,
202 const HdTokenDataSourceHandle &aspectRatioConformPolicy,
203 const HdVec2fDataSourceHandle &apertureSize,
204 const HdVec4fDataSourceHandle &dataWindowNDC,
205 const HdBoolDataSourceHandle &disableMotionBlur,
206 const HdBoolDataSourceHandle &disableDepthOfField,
207 const HdContainerDataSourceHandle &namespacedSettings
208 );
209
217 {
218 public:
219 HD_API
220 Builder &SetPath(
221 const HdPathDataSourceHandle &path);
222 HD_API
223 Builder &SetType(
224 const HdTokenDataSourceHandle &type);
225 HD_API
226 Builder &SetName(
227 const HdTokenDataSourceHandle &name);
228 HD_API
229 Builder &SetResolution(
230 const HdVec2iDataSourceHandle &resolution);
231 HD_API
232 Builder &SetRenderVars(
233 const HdVectorDataSourceHandle &renderVars);
234 HD_API
235 Builder &SetCameraPrim(
236 const HdPathDataSourceHandle &cameraPrim);
237 HD_API
238 Builder &SetPixelAspectRatio(
239 const HdFloatDataSourceHandle &pixelAspectRatio);
240 HD_API
241 Builder &SetAspectRatioConformPolicy(
242 const HdTokenDataSourceHandle &aspectRatioConformPolicy);
243 HD_API
244 Builder &SetApertureSize(
245 const HdVec2fDataSourceHandle &apertureSize);
246 HD_API
247 Builder &SetDataWindowNDC(
248 const HdVec4fDataSourceHandle &dataWindowNDC);
249 HD_API
250 Builder &SetDisableMotionBlur(
251 const HdBoolDataSourceHandle &disableMotionBlur);
252 HD_API
253 Builder &SetDisableDepthOfField(
254 const HdBoolDataSourceHandle &disableDepthOfField);
255 HD_API
256 Builder &SetNamespacedSettings(
257 const HdContainerDataSourceHandle &namespacedSettings);
258
260 HD_API
261 HdContainerDataSourceHandle Build();
262
263 private:
264 HdPathDataSourceHandle _path;
265 HdTokenDataSourceHandle _type;
266 HdTokenDataSourceHandle _name;
267 HdVec2iDataSourceHandle _resolution;
268 HdVectorDataSourceHandle _renderVars;
269 HdPathDataSourceHandle _cameraPrim;
270 HdFloatDataSourceHandle _pixelAspectRatio;
271 HdTokenDataSourceHandle _aspectRatioConformPolicy;
272 HdVec2fDataSourceHandle _apertureSize;
273 HdVec4fDataSourceHandle _dataWindowNDC;
274 HdBoolDataSourceHandle _disableMotionBlur;
275 HdBoolDataSourceHandle _disableDepthOfField;
276 HdContainerDataSourceHandle _namespacedSettings;
277
278 };
279
281};
282
283PXR_NAMESPACE_CLOSE_SCOPE
284
285#endif
Represents an object that can identify the location of a data source.
Utility class for setting sparse sets of child data source fields to be filled as arguments into Buil...
HD_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
Template class wrapping a vector data source whose children are container data source conforming to a...
Definition: vectorSchema.h:98
Schema classes represent a structured view of the inherently unstructured container data source passe...
Definition: schema.h:43
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:88
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Definition: staticTokens.h:98