Loading...
Searching...
No Matches
rileyGeometryInstanceSchema.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_INSTANCE_SCHEMA_H
19#define EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_RILEY_GEOMETRY_INSTANCE_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_INSTANCE_SCHEMA_TOKENS \
38 (RileyGeometryInstance) \
39 (groupPrototype) \
40 (geoPrototype) \
41 (material) \
42 (coordsys) \
43 (xform) \
44 (attributes) \
45
46TF_DECLARE_PUBLIC_TOKENS(HdPrmanRileyGeometryInstanceSchemaTokens, HDPRMAN_API,
47 HD_PRMAN_RILEY_GEOMETRY_INSTANCE_SCHEMA_TOKENS);
48
49//-----------------------------------------------------------------------------
50
51
52class HdPrmanRileyGeometryInstanceSchema : public HdSchema
53{
54public:
57
58 HdPrmanRileyGeometryInstanceSchema(HdContainerDataSourceHandle container)
59 : HdSchema(container) {}
60
66 HDPRMAN_API
67 static HdPrmanRileyGeometryInstanceSchema GetFromParent(
68 const HdContainerDataSourceHandle &fromParentContainer);
69
71
72// --(BEGIN CUSTOM CODE: Schema Methods)--
73// --(END CUSTOM CODE: Schema Methods)--
74
77
78 HDPRMAN_API
79 HdPathDataSourceHandle GetGroupPrototype()
80#if HD_API_VERSION >= 66
81 const;
82#else
83 ;
84#endif
85
86
87 HDPRMAN_API
88 HdPathDataSourceHandle GetGeoPrototype()
89#if HD_API_VERSION >= 66
90 const;
91#else
92 ;
93#endif
94
95
96 HDPRMAN_API
97 HdPathDataSourceHandle GetMaterial()
98#if HD_API_VERSION >= 66
99 const;
100#else
101 ;
102#endif
103
104
105 HDPRMAN_API
106 HdPathArrayDataSourceHandle GetCoordsys()
107#if HD_API_VERSION >= 66
108 const;
109#else
110 ;
111#endif
112
113
114 HDPRMAN_API
115 HdMatrixDataSourceHandle GetXform()
116#if HD_API_VERSION >= 66
117 const;
118#else
119 ;
120#endif
121
122
123 HDPRMAN_API
124 HdPrmanRileyParamListSchema GetAttributes()
125#if HD_API_VERSION >= 66
126 const;
127#else
128 ;
129#endif
130
131
133
136
139 HDPRMAN_API
140 static const TfToken &GetSchemaToken();
141
144 HDPRMAN_API
145 static const HdDataSourceLocator &GetDefaultLocator();
146
148
157
159 HDPRMAN_API
160 static const HdDataSourceLocator &GetGroupPrototypeLocator();
161
163 HDPRMAN_API
164 static const HdDataSourceLocator &GetGeoPrototypeLocator();
165
167 HDPRMAN_API
168 static const HdDataSourceLocator &GetMaterialLocator();
169
171 HDPRMAN_API
172 static const HdDataSourceLocator &GetCoordsysLocator();
173
175 HDPRMAN_API
176 static const HdDataSourceLocator &GetXformLocator();
177
179 HDPRMAN_API
180 static const HdDataSourceLocator &GetAttributesLocator();
182
185
193 HDPRMAN_API
194 static HdContainerDataSourceHandle
195 BuildRetained(
196 const HdPathDataSourceHandle &groupPrototype,
197 const HdPathDataSourceHandle &geoPrototype,
198 const HdPathDataSourceHandle &material,
199 const HdPathArrayDataSourceHandle &coordsys,
200 const HdMatrixDataSourceHandle &xform,
201 const HdContainerDataSourceHandle &attributes
202 );
203
211 {
212 public:
213 HDPRMAN_API
214 Builder &SetGroupPrototype(
215 const HdPathDataSourceHandle &groupPrototype);
216 HDPRMAN_API
217 Builder &SetGeoPrototype(
218 const HdPathDataSourceHandle &geoPrototype);
219 HDPRMAN_API
220 Builder &SetMaterial(
221 const HdPathDataSourceHandle &material);
222 HDPRMAN_API
223 Builder &SetCoordsys(
224 const HdPathArrayDataSourceHandle &coordsys);
225 HDPRMAN_API
226 Builder &SetXform(
227 const HdMatrixDataSourceHandle &xform);
228 HDPRMAN_API
229 Builder &SetAttributes(
230 const HdContainerDataSourceHandle &attributes);
231
233 HDPRMAN_API
234 HdContainerDataSourceHandle Build();
235
236 private:
237 HdPathDataSourceHandle _groupPrototype;
238 HdPathDataSourceHandle _geoPrototype;
239 HdPathDataSourceHandle _material;
240 HdPathArrayDataSourceHandle _coordsys;
241 HdMatrixDataSourceHandle _xform;
242 HdContainerDataSourceHandle _attributes;
243
244 };
245
247};
248
249PXR_NAMESPACE_CLOSE_SCOPE
250
251#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
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