Loading...
Searching...
No Matches
materialInterfaceMappingSchema.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_INTERFACE_MAPPING_SCHEMA_H
19#define PXR_IMAGING_HD_MATERIAL_INTERFACE_MAPPING_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_INTERFACE_MAPPING_SCHEMA_TOKENS \
36 (nodePath) \
37 (inputName) \
38
39TF_DECLARE_PUBLIC_TOKENS(HdMaterialInterfaceMappingSchemaTokens, HD_API,
40 HD_MATERIAL_INTERFACE_MAPPING_SCHEMA_TOKENS);
41
42//-----------------------------------------------------------------------------
43
44
65{
66public:
69
70 HdMaterialInterfaceMappingSchema(HdContainerDataSourceHandle container)
71 : HdSchema(container) {}
72
74
75// --(BEGIN CUSTOM CODE: Schema Methods)--
76
81
82// --(END CUSTOM CODE: Schema Methods)--
83
86
87 HD_API
88 HdTokenDataSourceHandle GetNodePath() const;
89
90 HD_API
91 HdTokenDataSourceHandle GetInputName() const;
92
94
97
105 HD_API
106 static HdContainerDataSourceHandle
108 const HdTokenDataSourceHandle &nodePath,
109 const HdTokenDataSourceHandle &inputName
110 );
111
119 {
120 public:
121 HD_API
122 Builder &SetNodePath(
123 const HdTokenDataSourceHandle &nodePath);
124 HD_API
125 Builder &SetInputName(
126 const HdTokenDataSourceHandle &inputName);
127
129 HD_API
130 HdContainerDataSourceHandle Build();
131
132 private:
133 HdTokenDataSourceHandle _nodePath;
134 HdTokenDataSourceHandle _inputName;
135
136 };
137
139};
140
141PXR_NAMESPACE_CLOSE_SCOPE
142
143#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.
The MaterialInterfaceMapping schema identifies a material node parameter using its two members 'nodeP...
HdDataSourceLocator BuildNetworkRelativeLocator()
Returns the data source locator relative to the material network for the material node parameter indi...
static HD_API HdContainerDataSourceHandle BuildRetained(const HdTokenDataSourceHandle &nodePath, const HdTokenDataSourceHandle &inputName)
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