Loading...
Searching...
No Matches
rileyGeometryPrototypeSchema.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_GEOMETRY_PROTOTYPE_SCHEMA_H
19#define EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_RILEY_GEOMETRY_PROTOTYPE_SCHEMA_H
20
22
23#include "hdPrman/api.h"
25
26#include "pxr/imaging/hd/schema.h"
27#include "pxr/imaging/hd/version.h"
28
29// --(BEGIN CUSTOM CODE: Includes)--
30// --(END CUSTOM CODE: Includes)--
31
32PXR_NAMESPACE_OPEN_SCOPE
33
34// --(BEGIN CUSTOM CODE: Declares)--
35// --(END CUSTOM CODE: Declares)--
36
37#define HD_PRMAN_RILEY_GEOMETRY_PROTOTYPE_SCHEMA_TOKENS \
38 (RileyGeometryPrototype) \
39 (type) \
40 (displacement) \
41 (primvars) \
42
43TF_DECLARE_PUBLIC_TOKENS(HdPrmanRileyGeometryPrototypeSchemaTokens, HDPRMAN_API,
44 HD_PRMAN_RILEY_GEOMETRY_PROTOTYPE_SCHEMA_TOKENS);
45
46//-----------------------------------------------------------------------------
47
48
49class HdPrmanRileyGeometryPrototypeSchema : public HdSchema
50{
51public:
54
55 HdPrmanRileyGeometryPrototypeSchema(HdContainerDataSourceHandle container)
56 : HdSchema(container) {}
57
63 HDPRMAN_API
64 static HdPrmanRileyGeometryPrototypeSchema GetFromParent(
65 const HdContainerDataSourceHandle &fromParentContainer);
66
68
69// --(BEGIN CUSTOM CODE: Schema Methods)--
70// --(END CUSTOM CODE: Schema Methods)--
71
74
75 HDPRMAN_API
76 HdTokenDataSourceHandle GetType()
77#if HD_API_VERSION >= 66
78 const;
79#else
80 ;
81#endif
82
83
84 HDPRMAN_API
85 HdPathDataSourceHandle GetDisplacement()
86#if HD_API_VERSION >= 66
87 const;
88#else
89 ;
90#endif
91
92
93 HDPRMAN_API
95#if HD_API_VERSION >= 66
96 const;
97#else
98 ;
99#endif
100
101
103
106
109 HDPRMAN_API
110 static const TfToken &GetSchemaToken();
111
114 HDPRMAN_API
115 static const HdDataSourceLocator &GetDefaultLocator();
116
118
127
129 HDPRMAN_API
130 static const HdDataSourceLocator &GetTypeLocator();
131
133 HDPRMAN_API
134 static const HdDataSourceLocator &GetDisplacementLocator();
135
137 HDPRMAN_API
138 static const HdDataSourceLocator &GetPrimvarsLocator();
140
143
151 HDPRMAN_API
152 static HdContainerDataSourceHandle
153 BuildRetained(
154 const HdTokenDataSourceHandle &type,
155 const HdPathDataSourceHandle &displacement,
156 const HdContainerDataSourceHandle &primvars
157 );
158
166 {
167 public:
168 HDPRMAN_API
169 Builder &SetType(
170 const HdTokenDataSourceHandle &type);
171 HDPRMAN_API
172 Builder &SetDisplacement(
173 const HdPathDataSourceHandle &displacement);
174 HDPRMAN_API
175 Builder &SetPrimvars(
176 const HdContainerDataSourceHandle &primvars);
177
179 HDPRMAN_API
180 HdContainerDataSourceHandle Build();
181
182 private:
183 HdTokenDataSourceHandle _type;
184 HdPathDataSourceHandle _displacement;
185 HdContainerDataSourceHandle _primvars;
186
187 };
188
190};
191
192PXR_NAMESPACE_CLOSE_SCOPE
193
194#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 RtPrimvarList.
Schema classes represent a structured view of the inherently unstructured container data source passe...
Definition: schema.h:26
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