Loading...
Searching...
No Matches
renderSettingsSchema.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_RENDER_SETTINGS_SCHEMA_H
19#define PXR_IMAGING_HD_RENDER_SETTINGS_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// --(BEGIN CUSTOM CODE: Includes)--
32// --(END CUSTOM CODE: Includes)--
33
34PXR_NAMESPACE_OPEN_SCOPE
35
36// --(BEGIN CUSTOM CODE: Declares)--
37// --(END CUSTOM CODE: Declares)--
38
39#define HD_RENDER_SETTINGS_SCHEMA_TOKENS \
40 (renderSettings) \
41 (namespacedSettings) \
42 (active) \
43 (renderProducts) \
44 (includedPurposes) \
45 (materialBindingPurposes) \
46 (renderingColorSpace) \
47 (shutterInterval) \
48
49TF_DECLARE_PUBLIC_TOKENS(HdRenderSettingsSchemaTokens, HD_API,
50 HD_RENDER_SETTINGS_SCHEMA_TOKENS);
51
52//-----------------------------------------------------------------------------
53
54
57class HdRenderSettingsSchema : public HdSchema
58{
59public:
62
63 HdRenderSettingsSchema(HdContainerDataSourceHandle container)
64 : HdSchema(container) {}
65
71 HD_API
72 static HdRenderSettingsSchema GetFromParent(
73 const HdContainerDataSourceHandle &fromParentContainer);
74
76
77// --(BEGIN CUSTOM CODE: Schema Methods)--
78
81 HD_API
82 static const HdDataSourceLocator &GetFrameLocator();
83
84// --(END CUSTOM CODE: Schema Methods)--
85
88
89 HD_API
90 HdSampledDataSourceContainerSchema GetNamespacedSettings() const;
91
92 HD_API
93 HdBoolDataSourceHandle GetActive() const;
94
95 HD_API
96 HdRenderProductVectorSchema GetRenderProducts() const;
97
98 HD_API
99 HdTokenArrayDataSourceHandle GetIncludedPurposes() const;
100
101 HD_API
102 HdTokenArrayDataSourceHandle GetMaterialBindingPurposes() const;
103
104 HD_API
105 HdTokenDataSourceHandle GetRenderingColorSpace() const;
106
114 HD_API
115 HdVec2dDataSourceHandle GetShutterInterval() const;
116
118
121
124 HD_API
125 static const TfToken &GetSchemaToken();
126
129 HD_API
130 static const HdDataSourceLocator &GetDefaultLocator();
131
133
142
144 HD_API
145 static const HdDataSourceLocator &GetNamespacedSettingsLocator();
146
148 HD_API
149 static const HdDataSourceLocator &GetActiveLocator();
150
152 HD_API
153 static const HdDataSourceLocator &GetRenderProductsLocator();
154
156 HD_API
157 static const HdDataSourceLocator &GetIncludedPurposesLocator();
158
160 HD_API
161 static const HdDataSourceLocator &GetMaterialBindingPurposesLocator();
162
164 HD_API
165 static const HdDataSourceLocator &GetRenderingColorSpaceLocator();
166
168 HD_API
169 static const HdDataSourceLocator &GetShutterIntervalLocator();
171
174
182 HD_API
183 static HdContainerDataSourceHandle
184 BuildRetained(
185 const HdContainerDataSourceHandle &namespacedSettings,
186 const HdBoolDataSourceHandle &active,
187 const HdVectorDataSourceHandle &renderProducts,
188 const HdTokenArrayDataSourceHandle &includedPurposes,
189 const HdTokenArrayDataSourceHandle &materialBindingPurposes,
190 const HdTokenDataSourceHandle &renderingColorSpace,
191 const HdVec2dDataSourceHandle &shutterInterval
192 );
193
201 {
202 public:
203 HD_API
204 Builder &SetNamespacedSettings(
205 const HdContainerDataSourceHandle &namespacedSettings);
206 HD_API
207 Builder &SetActive(
208 const HdBoolDataSourceHandle &active);
209 HD_API
210 Builder &SetRenderProducts(
211 const HdVectorDataSourceHandle &renderProducts);
212 HD_API
213 Builder &SetIncludedPurposes(
214 const HdTokenArrayDataSourceHandle &includedPurposes);
215 HD_API
216 Builder &SetMaterialBindingPurposes(
217 const HdTokenArrayDataSourceHandle &materialBindingPurposes);
218 HD_API
219 Builder &SetRenderingColorSpace(
220 const HdTokenDataSourceHandle &renderingColorSpace);
221 HD_API
222 Builder &SetShutterInterval(
223 const HdVec2dDataSourceHandle &shutterInterval);
224
226 HD_API
227 HdContainerDataSourceHandle Build();
228
229 private:
230 HdContainerDataSourceHandle _namespacedSettings;
231 HdBoolDataSourceHandle _active;
232 HdVectorDataSourceHandle _renderProducts;
233 HdTokenArrayDataSourceHandle _includedPurposes;
234 HdTokenArrayDataSourceHandle _materialBindingPurposes;
235 HdTokenDataSourceHandle _renderingColorSpace;
236 HdVec2dDataSourceHandle _shutterInterval;
237
238 };
239
241};
242
243PXR_NAMESPACE_CLOSE_SCOPE
244
245#endif
Template class for a schema backed by a container whose children have arbitrary names but an expected...
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.
Schema classes represent a structured view of the inherently unstructured container data source passe...
Definition: schema.h:26
Template class wrapping a vector data source whose children are container data source conforming to a...
Definition: vectorSchema.h:85
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Definition: staticTokens.h:92