Loading...
Searching...
No Matches
rileyMaterialSchema.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 EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_RILEY_MATERIAL_SCHEMA_H
19#define EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_RILEY_MATERIAL_SCHEMA_H
20
22
23#include "hdPrman/api.h"
24#include "hdPrman/rileySchemaTypeDefs.h"
26
27#include "pxr/imaging/hd/schema.h"
28#include "pxr/imaging/hd/version.h"
29
30// --(BEGIN CUSTOM CODE: Includes)--
31// --(END CUSTOM CODE: Includes)--
32
33PXR_NAMESPACE_OPEN_SCOPE
34
35// --(BEGIN CUSTOM CODE: Declares)--
36// --(END CUSTOM CODE: Declares)--
37
38#define HD_PRMAN_RILEY_MATERIAL_SCHEMA_TOKENS \
39 (rileyMaterial) \
40 (bxdf) \
41 (attributes) \
42
43TF_DECLARE_PUBLIC_TOKENS(HdPrmanRileyMaterialSchemaTokens, HDPRMAN_API,
44 HD_PRMAN_RILEY_MATERIAL_SCHEMA_TOKENS);
45
46//-----------------------------------------------------------------------------
47
48
49class HdPrmanRileyMaterialSchema : public HdSchema
50{
51public:
54
55 HdPrmanRileyMaterialSchema(HdContainerDataSourceHandle container)
56 : HdSchema(container) {}
57
63 HDPRMAN_API
64 static HdPrmanRileyMaterialSchema GetFromParent(
65 const HdContainerDataSourceHandle &fromParentContainer);
66
68
69// --(BEGIN CUSTOM CODE: Schema Methods)--
70// --(END CUSTOM CODE: Schema Methods)--
71
74
75 HDPRMAN_API
77#if HD_API_VERSION >= 66
78 const;
79#else
80 ;
81#endif
82
83
84 HDPRMAN_API
85 HdPrmanRileyParamListSchema GetAttributes()
86#if HD_API_VERSION >= 66
87 const;
88#else
89 ;
90#endif
91
92
94
97
100 HDPRMAN_API
101 static const TfToken &GetSchemaToken();
102
105 HDPRMAN_API
106 static const HdDataSourceLocator &GetDefaultLocator();
107
109
118
120 HDPRMAN_API
121 static const HdDataSourceLocator &GetBxdfLocator();
122
124 HDPRMAN_API
125 static const HdDataSourceLocator &GetAttributesLocator();
127
130
138 HDPRMAN_API
139 static HdContainerDataSourceHandle
140 BuildRetained(
141 const HdVectorDataSourceHandle &bxdf,
142 const HdContainerDataSourceHandle &attributes
143 );
144
152 {
153 public:
154 HDPRMAN_API
155 Builder &SetBxdf(
156 const HdVectorDataSourceHandle &bxdf);
157 HDPRMAN_API
158 Builder &SetAttributes(
159 const HdContainerDataSourceHandle &attributes);
160
162 HDPRMAN_API
163 HdContainerDataSourceHandle Build();
164
165 private:
166 HdVectorDataSourceHandle _bxdf;
167 HdContainerDataSourceHandle _attributes;
168
169 };
170
172};
173
174PXR_NAMESPACE_CLOSE_SCOPE
175
176#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...
HDPRMAN_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
Schema to describe RtParamList.
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