sceneIndexCreateArgsSchema.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_SCENE_INDEX_CREATE_ARGS_SCHEMA_H
19 #define PXR_USD_IMAGING_USD_IMAGING_SCENE_INDEX_CREATE_ARGS_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 
30 PXR_NAMESPACE_OPEN_SCOPE
31 
32 // --(BEGIN CUSTOM CODE: Declares)--
35 using UsdStageRefPtrDataSourceHandle = UsdStageRefPtrDataSource::Handle;
36 // --(END CUSTOM CODE: Declares)--
37 
38 #define USD_IMAGING_SCENE_INDEX_CREATE_ARGS_SCHEMA_TOKENS \
39  (usdImagingSceneIndexCreateArgs) \
40  (stage) \
41  (includeUnloadedPrims) \
42  (displayUnloadedPrimsWithBounds) \
43  (addDrawModeSceneIndex) \
44 
45 TF_DECLARE_PUBLIC_TOKENS(UsdImagingSceneIndexCreateArgsSchemaTokens, USDIMAGING_API,
46  USD_IMAGING_SCENE_INDEX_CREATE_ARGS_SCHEMA_TOKENS);
47 
48 //-----------------------------------------------------------------------------
49 
50 
53 class UsdImagingSceneIndexCreateArgsSchema : public HdSchema
54 {
55 public:
58 
59  UsdImagingSceneIndexCreateArgsSchema(HdContainerDataSourceHandle container)
60  : HdSchema(container) {}
61 
67  USDIMAGING_API
68  static UsdImagingSceneIndexCreateArgsSchema GetFromParent(
69  const HdContainerDataSourceHandle &fromParentContainer);
70 
72 
73 // --(BEGIN CUSTOM CODE: Schema Methods)--
74 // --(END CUSTOM CODE: Schema Methods)--
75 
78 
85  USDIMAGING_API
86  UsdStageRefPtrDataSourceHandle GetStage() const;
87 
88  USDIMAGING_API
89  HdBoolDataSourceHandle GetIncludeUnloadedPrims() const;
90 
92  USDIMAGING_API
93  HdBoolDataSourceHandle GetDisplayUnloadedPrimsWithBounds() const;
94 
97  USDIMAGING_API
98  HdBoolDataSourceHandle GetAddDrawModeSceneIndex() const;
99 
101 
104 
107  USDIMAGING_API
108  static const TfToken &GetSchemaToken();
109 
112  USDIMAGING_API
113  static const HdDataSourceLocator &GetDefaultLocator();
114 
116 
119 
127  USDIMAGING_API
128  static HdContainerDataSourceHandle
129  BuildRetained(
130  const UsdStageRefPtrDataSourceHandle &stage,
131  const HdBoolDataSourceHandle &includeUnloadedPrims,
132  const HdBoolDataSourceHandle &displayUnloadedPrimsWithBounds,
133  const HdBoolDataSourceHandle &addDrawModeSceneIndex
134  );
135 
142  class Builder
143  {
144  public:
145  USDIMAGING_API
146  Builder &SetStage(
147  const UsdStageRefPtrDataSourceHandle &stage);
148  USDIMAGING_API
149  Builder &SetIncludeUnloadedPrims(
150  const HdBoolDataSourceHandle &includeUnloadedPrims);
151  USDIMAGING_API
152  Builder &SetDisplayUnloadedPrimsWithBounds(
153  const HdBoolDataSourceHandle &displayUnloadedPrimsWithBounds);
154  USDIMAGING_API
155  Builder &SetAddDrawModeSceneIndex(
156  const HdBoolDataSourceHandle &addDrawModeSceneIndex);
157 
159  USDIMAGING_API
160  HdContainerDataSourceHandle Build();
161 
162  private:
163  UsdStageRefPtrDataSourceHandle _stage;
164  HdBoolDataSourceHandle _includeUnloadedPrims;
165  HdBoolDataSourceHandle _displayUnloadedPrimsWithBounds;
166  HdBoolDataSourceHandle _addDrawModeSceneIndex;
167 
168  };
169 
171 };
172 
173 PXR_NAMESPACE_CLOSE_SCOPE
174 
175 #endif
Utility class for setting sparse sets of child data source fields to be filled as arguments into Buil...
The outermost container for scene description, which owns and presents composed prims as a scenegraph...
Definition: stage.h:135
USDIMAGING_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:80
Represents an object that can identify the location of a data source.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Definition: staticTokens.h:92
A datasource representing a concretely-typed sampled value.
Definition: dataSource.h:247
#define TF_DECLARE_REF_PTRS(type)
Define standard ref pointer types.
Definition: declarePtrs.h:58
Schema classes represent a structured view of the inherently unstructured container data source passe...
Definition: schema.h:25