Loading...
Searching...
No Matches
usdPrimInfoSchema.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_USD_IMAGING_USD_IMAGING_USD_PRIM_INFO_SCHEMA_H
19#define PXR_USD_IMAGING_USD_IMAGING_USD_PRIM_INFO_SCHEMA_H
20
22
23#include "pxr/usdImaging/usdImaging/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 USD_IMAGING_USD_PRIM_INFO_SCHEMA_TOKENS \
36 (__usdPrimInfo) \
37 (specifier) \
38 (typeName) \
39 (isLoaded) \
40 (apiSchemas) \
41 (kind) \
42 (niPrototypePath) \
43 (isNiPrototype) \
44 (piPropagatedPrototypes) \
45 (def) \
46 (over) \
47 ((class_, "class")) \
48
49TF_DECLARE_PUBLIC_TOKENS(UsdImagingUsdPrimInfoSchemaTokens, USDIMAGING_API,
50 USD_IMAGING_USD_PRIM_INFO_SCHEMA_TOKENS);
51
52//-----------------------------------------------------------------------------
53
54
55class UsdImagingUsdPrimInfoSchema : public HdSchema
56{
57public:
60
61 UsdImagingUsdPrimInfoSchema(HdContainerDataSourceHandle container)
62 : HdSchema(container) {}
63
69 USDIMAGING_API
70 static UsdImagingUsdPrimInfoSchema GetFromParent(
71 const HdContainerDataSourceHandle &fromParentContainer);
72
74
75// --(BEGIN CUSTOM CODE: Schema Methods)--
76// --(END CUSTOM CODE: Schema Methods)--
77
80
81 USDIMAGING_API
82 HdTokenDataSourceHandle GetSpecifier() const;
83
84 USDIMAGING_API
85 HdTokenDataSourceHandle GetTypeName() const;
86
87 USDIMAGING_API
88 HdBoolDataSourceHandle GetIsLoaded() const;
89
90 USDIMAGING_API
91 HdTokenArrayDataSourceHandle GetApiSchemas() const;
92
93 USDIMAGING_API
94 HdTokenDataSourceHandle GetKind() const;
95
96 USDIMAGING_API
97 HdPathDataSourceHandle GetNiPrototypePath() const;
98
99 USDIMAGING_API
100 HdBoolDataSourceHandle GetIsNiPrototype() const;
101
102 USDIMAGING_API
103 HdContainerDataSourceHandle GetPiPropagatedPrototypes() const;
104
106
109
112 USDIMAGING_API
113 static const TfToken &GetSchemaToken();
114
117 USDIMAGING_API
118 static const HdDataSourceLocator &GetDefaultLocator();
119
121
130
132 USDIMAGING_API
133 static const HdDataSourceLocator &GetNiPrototypePathLocator();
135
138
146 USDIMAGING_API
147 static HdContainerDataSourceHandle
148 BuildRetained(
149 const HdTokenDataSourceHandle &specifier,
150 const HdTokenDataSourceHandle &typeName,
151 const HdBoolDataSourceHandle &isLoaded,
152 const HdTokenArrayDataSourceHandle &apiSchemas,
153 const HdTokenDataSourceHandle &kind,
154 const HdPathDataSourceHandle &niPrototypePath,
155 const HdBoolDataSourceHandle &isNiPrototype,
156 const HdContainerDataSourceHandle &piPropagatedPrototypes
157 );
158
166 {
167 public:
168 USDIMAGING_API
169 Builder &SetSpecifier(
170 const HdTokenDataSourceHandle &specifier);
171 USDIMAGING_API
172 Builder &SetTypeName(
173 const HdTokenDataSourceHandle &typeName);
174 USDIMAGING_API
175 Builder &SetIsLoaded(
176 const HdBoolDataSourceHandle &isLoaded);
177 USDIMAGING_API
178 Builder &SetApiSchemas(
179 const HdTokenArrayDataSourceHandle &apiSchemas);
180 USDIMAGING_API
181 Builder &SetKind(
182 const HdTokenDataSourceHandle &kind);
183 USDIMAGING_API
184 Builder &SetNiPrototypePath(
185 const HdPathDataSourceHandle &niPrototypePath);
186 USDIMAGING_API
187 Builder &SetIsNiPrototype(
188 const HdBoolDataSourceHandle &isNiPrototype);
189 USDIMAGING_API
190 Builder &SetPiPropagatedPrototypes(
191 const HdContainerDataSourceHandle &piPropagatedPrototypes);
192
194 USDIMAGING_API
195 HdContainerDataSourceHandle Build();
196
197 private:
198 HdTokenDataSourceHandle _specifier;
199 HdTokenDataSourceHandle _typeName;
200 HdBoolDataSourceHandle _isLoaded;
201 HdTokenArrayDataSourceHandle _apiSchemas;
202 HdTokenDataSourceHandle _kind;
203 HdPathDataSourceHandle _niPrototypePath;
204 HdBoolDataSourceHandle _isNiPrototype;
205 HdContainerDataSourceHandle _piPropagatedPrototypes;
206
207 };
208
216 USDIMAGING_API
217 static HdTokenDataSourceHandle BuildSpecifierDataSource(
218 const TfToken &specifier);
219
221};
222
223PXR_NAMESPACE_CLOSE_SCOPE
224
225#endif
Represents an object that can identify the location of a data source.
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
Utility class for setting sparse sets of child data source fields to be filled as arguments into Buil...
USDIMAGING_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Definition: staticTokens.h:92