Loading...
Searching...
No Matches
renderSettingsSchema.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_SETTINGS_SCHEMA_H
36#define PXR_IMAGING_HD_RENDER_SETTINGS_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_SETTINGS_SCHEMA_TOKENS \
57 (renderSettings) \
58 (namespacedSettings) \
59 (active) \
60 (renderProducts) \
61 (includedPurposes) \
62 (materialBindingPurposes) \
63 (renderingColorSpace) \
64 (shutterInterval) \
65
66TF_DECLARE_PUBLIC_TOKENS(HdRenderSettingsSchemaTokens, HD_API,
67 HD_RENDER_SETTINGS_SCHEMA_TOKENS);
68
69//-----------------------------------------------------------------------------
70
71
72class HdRenderSettingsSchema : public HdSchema
73{
74public:
77
78 HdRenderSettingsSchema(HdContainerDataSourceHandle container)
79 : HdSchema(container) {}
80
86 HD_API
87 static HdRenderSettingsSchema GetFromParent(
88 const HdContainerDataSourceHandle &fromParentContainer);
89
91
92// --(BEGIN CUSTOM CODE: Schema Methods)--
93// --(END CUSTOM CODE: Schema Methods)--
94
97
98 HD_API
99 HdContainerDataSourceHandle GetNamespacedSettings() const;
100
101 HD_API
102 HdBoolDataSourceHandle GetActive() const;
103
104 HD_API
105 HdRenderProductVectorSchema GetRenderProducts() const;
106
107 HD_API
108 HdTokenArrayDataSourceHandle GetIncludedPurposes() const;
109
110 HD_API
111 HdTokenArrayDataSourceHandle GetMaterialBindingPurposes() const;
112
113 HD_API
114 HdTokenDataSourceHandle GetRenderingColorSpace() const;
115
123 HD_API
124 HdVec2dDataSourceHandle GetShutterInterval() const;
125
127
130
133 HD_API
134 static const TfToken &GetSchemaToken();
135
138 HD_API
139 static const HdDataSourceLocator &GetDefaultLocator();
140
142
151
153 HD_API
154 static const HdDataSourceLocator &GetNamespacedSettingsLocator();
155
157 HD_API
158 static const HdDataSourceLocator &GetActiveLocator();
159
161 HD_API
162 static const HdDataSourceLocator &GetRenderProductsLocator();
163
165 HD_API
166 static const HdDataSourceLocator &GetIncludedPurposesLocator();
167
169 HD_API
170 static const HdDataSourceLocator &GetMaterialBindingPurposesLocator();
171
173 HD_API
174 static const HdDataSourceLocator &GetRenderingColorSpaceLocator();
175
177 HD_API
178 static const HdDataSourceLocator &GetShutterIntervalLocator();
180
183
191 HD_API
192 static HdContainerDataSourceHandle
193 BuildRetained(
194 const HdContainerDataSourceHandle &namespacedSettings,
195 const HdBoolDataSourceHandle &active,
196 const HdVectorDataSourceHandle &renderProducts,
197 const HdTokenArrayDataSourceHandle &includedPurposes,
198 const HdTokenArrayDataSourceHandle &materialBindingPurposes,
199 const HdTokenDataSourceHandle &renderingColorSpace,
200 const HdVec2dDataSourceHandle &shutterInterval
201 );
202
210 {
211 public:
212 HD_API
213 Builder &SetNamespacedSettings(
214 const HdContainerDataSourceHandle &namespacedSettings);
215 HD_API
216 Builder &SetActive(
217 const HdBoolDataSourceHandle &active);
218 HD_API
219 Builder &SetRenderProducts(
220 const HdVectorDataSourceHandle &renderProducts);
221 HD_API
222 Builder &SetIncludedPurposes(
223 const HdTokenArrayDataSourceHandle &includedPurposes);
224 HD_API
225 Builder &SetMaterialBindingPurposes(
226 const HdTokenArrayDataSourceHandle &materialBindingPurposes);
227 HD_API
228 Builder &SetRenderingColorSpace(
229 const HdTokenDataSourceHandle &renderingColorSpace);
230 HD_API
231 Builder &SetShutterInterval(
232 const HdVec2dDataSourceHandle &shutterInterval);
233
235 HD_API
236 HdContainerDataSourceHandle Build();
237
238 private:
239 HdContainerDataSourceHandle _namespacedSettings;
240 HdBoolDataSourceHandle _active;
241 HdVectorDataSourceHandle _renderProducts;
242 HdTokenArrayDataSourceHandle _includedPurposes;
243 HdTokenArrayDataSourceHandle _materialBindingPurposes;
244 HdTokenDataSourceHandle _renderingColorSpace;
245 HdVec2dDataSourceHandle _shutterInterval;
246
247 };
248
250};
251
252PXR_NAMESPACE_CLOSE_SCOPE
253
254#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