usdPrimInfoSchema.h
1 //
2 // Copyright 2023 Pixar
3 //
4 // Licensed under the Apache License, Version 2.0 (the "Apache License")
5 // with the following modification; you may not use this file except in
6 // compliance with the Apache License and the following modification to it:
7 // Section 6. Trademarks. is deleted and replaced with:
8 //
9 // 6. Trademarks. This License does not grant permission to use the trade
10 // names, trademarks, service marks, or product names of the Licensor
11 // and its affiliates, except as required to comply with Section 4(c) of
12 // the License and to reproduce the content of the NOTICE file.
13 //
14 // You may obtain a copy of the Apache License at
15 //
16 // http://www.apache.org/licenses/LICENSE-2.0
17 //
18 // Unless required by applicable law or agreed to in writing, software
19 // distributed under the Apache License with the above modification is
20 // distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21 // KIND, either express or implied. See the Apache License for the specific
22 // language governing permissions and limitations under the Apache License.
23 //
25 
26 /* ************************************************************************** */
27 /* ** This file is generated by a script. Do not edit directly. Edit ** */
28 /* ** defs.py or the (*)Schema.template.h files to make changes. ** */
29 /* ************************************************************************** */
30 
31 #ifndef PXR_USD_IMAGING_USD_IMAGING_USD_PRIM_INFO_SCHEMA_H
32 #define PXR_USD_IMAGING_USD_IMAGING_USD_PRIM_INFO_SCHEMA_H
33 
34 #include "pxr/usdImaging/usdImaging/api.h"
35 
36 #include "pxr/imaging/hd/schema.h"
37 
38 PXR_NAMESPACE_OPEN_SCOPE
39 
40 //-----------------------------------------------------------------------------
41 
42 #define USDIMAGINGUSDPRIMINFO_SCHEMA_TOKENS \
43  (__usdPrimInfo) \
44  (niPrototypePath) \
45  (isNiPrototype) \
46  (specifier) \
47  (piPropagatedPrototypes) \
48  (def) \
49  (over) \
50  ((class_, "class")) \
51 
52 TF_DECLARE_PUBLIC_TOKENS(UsdImagingUsdPrimInfoSchemaTokens, USDIMAGING_API,
53  USDIMAGINGUSDPRIMINFO_SCHEMA_TOKENS);
54 
55 //-----------------------------------------------------------------------------
56 
57 class UsdImagingUsdPrimInfoSchema : public HdSchema
58 {
59 public:
60  UsdImagingUsdPrimInfoSchema(HdContainerDataSourceHandle container)
61  : HdSchema(container) {}
62 
63  //ACCESSORS
64 
65  USDIMAGING_API
66  HdPathDataSourceHandle GetNiPrototypePath();
67  USDIMAGING_API
68  HdBoolDataSourceHandle GetIsNiPrototype();
69  USDIMAGING_API
70  HdTokenDataSourceHandle GetSpecifier();
71  USDIMAGING_API
72  HdContainerDataSourceHandle GetPiPropagatedPrototypes();
73 
74  // RETRIEVING AND CONSTRUCTING
75 
81  USDIMAGING_API
82  static HdContainerDataSourceHandle
83  BuildRetained(
84  const HdPathDataSourceHandle &niPrototypePath,
85  const HdBoolDataSourceHandle &isNiPrototype,
86  const HdTokenDataSourceHandle &specifier,
87  const HdContainerDataSourceHandle &piPropagatedPrototypes
88  );
89 
96  class Builder
97  {
98  public:
99  USDIMAGING_API
100  Builder &SetNiPrototypePath(
101  const HdPathDataSourceHandle &niPrototypePath);
102  USDIMAGING_API
103  Builder &SetIsNiPrototype(
104  const HdBoolDataSourceHandle &isNiPrototype);
105  USDIMAGING_API
106  Builder &SetSpecifier(
107  const HdTokenDataSourceHandle &specifier);
108  USDIMAGING_API
109  Builder &SetPiPropagatedPrototypes(
110  const HdContainerDataSourceHandle &piPropagatedPrototypes);
111 
113  USDIMAGING_API
114  HdContainerDataSourceHandle Build();
115 
116  private:
117  HdPathDataSourceHandle _niPrototypePath;
118  HdBoolDataSourceHandle _isNiPrototype;
119  HdTokenDataSourceHandle _specifier;
120  HdContainerDataSourceHandle _piPropagatedPrototypes;
121  };
122 
128  USDIMAGING_API
129  static UsdImagingUsdPrimInfoSchema GetFromParent(
130  const HdContainerDataSourceHandle &fromParentContainer);
131 
134  USDIMAGING_API
135  static const HdDataSourceLocator &GetDefaultLocator();
136 
137 
142  USDIMAGING_API
143  static const HdDataSourceLocator &GetNiPrototypePathLocator();
144 
145 };
146 
147 PXR_NAMESPACE_CLOSE_SCOPE
148 
149 #endif
Utility class for setting sparse sets of child data source fields to be filled as arguments into Buil...
Represents an object that can identify the location of a data source.
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:118
Schema classes represent a structured view of the inherently unstructured container data source passe...
Definition: schema.h:43