Loading...
Searching...
No Matches
materialNodeParameterSchema.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_MATERIAL_NODE_PARAMETER_SCHEMA_H
19#define PXR_IMAGING_HD_MATERIAL_NODE_PARAMETER_SCHEMA_H
20
22
23#include "pxr/imaging/hd/api.h"
24
25#include "pxr/imaging/hd/schema.h"
26
27// --(BEGIN CUSTOM CODE: Includes)--
28// --(END CUSTOM CODE: Includes)--
29
30PXR_NAMESPACE_OPEN_SCOPE
31
32// --(BEGIN CUSTOM CODE: Declares)--
33// --(END CUSTOM CODE: Declares)--
34
35#define HD_MATERIAL_NODE_PARAMETER_SCHEMA_TOKENS \
36 (value) \
37 (colorSpace) \
38 (typeName) \
39
40TF_DECLARE_PUBLIC_TOKENS(HdMaterialNodeParameterSchemaTokens, HD_API,
41 HD_MATERIAL_NODE_PARAMETER_SCHEMA_TOKENS);
42
43//-----------------------------------------------------------------------------
44
45// The MaterialNodeParameter schema defines the value data source for the
46// parameter.
47//
48
49class HdMaterialNodeParameterSchema : public HdSchema
50{
51public:
54
55 HdMaterialNodeParameterSchema(HdContainerDataSourceHandle container)
56 : HdSchema(container) {}
57
59
60// --(BEGIN CUSTOM CODE: Schema Methods)--
61// --(END CUSTOM CODE: Schema Methods)--
62
65
66 HD_API
67 HdSampledDataSourceHandle GetValue() const;
68
69 HD_API
70 HdTokenDataSourceHandle GetColorSpace() const;
71
72 HD_API
73 HdTokenDataSourceHandle GetTypeName() const;
74
76
79
87 HD_API
88 static HdContainerDataSourceHandle
89 BuildRetained(
90 const HdSampledDataSourceHandle &value,
91 const HdTokenDataSourceHandle &colorSpace,
92 const HdTokenDataSourceHandle &typeName
93 );
94
102 {
103 public:
104 HD_API
105 Builder &SetValue(
106 const HdSampledDataSourceHandle &value);
107 HD_API
108 Builder &SetColorSpace(
109 const HdTokenDataSourceHandle &colorSpace);
110 HD_API
111 Builder &SetTypeName(
112 const HdTokenDataSourceHandle &typeName);
113
115 HD_API
116 HdContainerDataSourceHandle Build();
117
118 private:
119 HdSampledDataSourceHandle _value;
120 HdTokenDataSourceHandle _colorSpace;
121 HdTokenDataSourceHandle _typeName;
122
123 };
124
126};
127
128PXR_NAMESPACE_CLOSE_SCOPE
129
130#endif
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
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Definition: staticTokens.h:81