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
52{
53public:
56
57 HdMaterialNodeParameterSchema(HdContainerDataSourceHandle container)
58 : HdSchema(container) {}
59
61
62// --(BEGIN CUSTOM CODE: Schema Methods)--
63// --(END CUSTOM CODE: Schema Methods)--
64
67
68 HD_API
69 HdSampledDataSourceHandle GetValue() const;
70
71 HD_API
72 HdTokenDataSourceHandle GetColorSpace() const;
73
74 HD_API
75 HdTokenDataSourceHandle GetTypeName() const;
76
78
81
89 HD_API
90 static HdContainerDataSourceHandle
92 const HdSampledDataSourceHandle &value,
93 const HdTokenDataSourceHandle &colorSpace,
94 const HdTokenDataSourceHandle &typeName
95 );
96
104 {
105 public:
106 HD_API
107 Builder &SetValue(
108 const HdSampledDataSourceHandle &value);
109 HD_API
110 Builder &SetColorSpace(
111 const HdTokenDataSourceHandle &colorSpace);
112 HD_API
113 Builder &SetTypeName(
114 const HdTokenDataSourceHandle &typeName);
115
117 HD_API
118 HdContainerDataSourceHandle Build();
119
120 private:
121 HdSampledDataSourceHandle _value;
122 HdTokenDataSourceHandle _colorSpace;
123 HdTokenDataSourceHandle _typeName;
124
125 };
126
128};
129
130PXR_NAMESPACE_CLOSE_SCOPE
131
132#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.
The MaterialNodeParameter schema defines the value data source for the parameter.
static HD_API HdContainerDataSourceHandle BuildRetained(const HdSampledDataSourceHandle &value, const HdTokenDataSourceHandle &colorSpace, const HdTokenDataSourceHandle &typeName)
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:92