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 (niPrototypePath) \
38 (isNiPrototype) \
39 (specifier) \
40 (piPropagatedPrototypes) \
41 (isLoaded) \
42 (def) \
43 (over) \
44 ((class_, "class")) \
45
46TF_DECLARE_PUBLIC_TOKENS(UsdImagingUsdPrimInfoSchemaTokens, USDIMAGING_API,
47 USD_IMAGING_USD_PRIM_INFO_SCHEMA_TOKENS);
48
49//-----------------------------------------------------------------------------
50
51
52class UsdImagingUsdPrimInfoSchema : public HdSchema
53{
54public:
57
58 UsdImagingUsdPrimInfoSchema(HdContainerDataSourceHandle container)
59 : HdSchema(container) {}
60
66 USDIMAGING_API
67 static UsdImagingUsdPrimInfoSchema GetFromParent(
68 const HdContainerDataSourceHandle &fromParentContainer);
69
71
72// --(BEGIN CUSTOM CODE: Schema Methods)--
73// --(END CUSTOM CODE: Schema Methods)--
74
77
78 USDIMAGING_API
79 HdPathDataSourceHandle GetNiPrototypePath() const;
80
81 USDIMAGING_API
82 HdBoolDataSourceHandle GetIsNiPrototype() const;
83
84 USDIMAGING_API
85 HdTokenDataSourceHandle GetSpecifier() const;
86
87 USDIMAGING_API
88 HdContainerDataSourceHandle GetPiPropagatedPrototypes() const;
89
90 USDIMAGING_API
91 HdBoolDataSourceHandle GetIsLoaded() const;
92
94
97
100 USDIMAGING_API
101 static const TfToken &GetSchemaToken();
102
105 USDIMAGING_API
106 static const HdDataSourceLocator &GetDefaultLocator();
107
109
118
120 USDIMAGING_API
121 static const HdDataSourceLocator &GetNiPrototypePathLocator();
123
126
134 USDIMAGING_API
135 static HdContainerDataSourceHandle
136 BuildRetained(
137 const HdPathDataSourceHandle &niPrototypePath,
138 const HdBoolDataSourceHandle &isNiPrototype,
139 const HdTokenDataSourceHandle &specifier,
140 const HdContainerDataSourceHandle &piPropagatedPrototypes,
141 const HdBoolDataSourceHandle &isLoaded
142 );
143
151 {
152 public:
153 USDIMAGING_API
154 Builder &SetNiPrototypePath(
155 const HdPathDataSourceHandle &niPrototypePath);
156 USDIMAGING_API
157 Builder &SetIsNiPrototype(
158 const HdBoolDataSourceHandle &isNiPrototype);
159 USDIMAGING_API
160 Builder &SetSpecifier(
161 const HdTokenDataSourceHandle &specifier);
162 USDIMAGING_API
163 Builder &SetPiPropagatedPrototypes(
164 const HdContainerDataSourceHandle &piPropagatedPrototypes);
165 USDIMAGING_API
166 Builder &SetIsLoaded(
167 const HdBoolDataSourceHandle &isLoaded);
168
170 USDIMAGING_API
171 HdContainerDataSourceHandle Build();
172
173 private:
174 HdPathDataSourceHandle _niPrototypePath;
175 HdBoolDataSourceHandle _isNiPrototype;
176 HdTokenDataSourceHandle _specifier;
177 HdContainerDataSourceHandle _piPropagatedPrototypes;
178 HdBoolDataSourceHandle _isLoaded;
179
180 };
181
189 USDIMAGING_API
190 static HdTokenDataSourceHandle BuildSpecifierDataSource(
191 const TfToken &specifier);
192
194};
195
196PXR_NAMESPACE_CLOSE_SCOPE
197
198#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:81