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 23 #include "pxr/usdImaging/usdImaging/api.h" 25 #include "pxr/imaging/hd/schema.h" 30 PXR_NAMESPACE_OPEN_SCOPE
35 using UsdStageRefPtrDataSourceHandle = UsdStageRefPtrDataSource::Handle;
38 #define USD_IMAGING_SCENE_INDEX_CREATE_ARGS_SCHEMA_TOKENS \ 39 (usdImagingSceneIndexCreateArgs) \ 41 (includeUnloadedPrims) \ 42 (displayUnloadedPrimsWithBounds) \ 43 (addDrawModeSceneIndex) \ 46 USD_IMAGING_SCENE_INDEX_CREATE_ARGS_SCHEMA_TOKENS);
53 class UsdImagingSceneIndexCreateArgsSchema :
public HdSchema 59 UsdImagingSceneIndexCreateArgsSchema(HdContainerDataSourceHandle container)
68 static UsdImagingSceneIndexCreateArgsSchema GetFromParent(
69 const HdContainerDataSourceHandle &fromParentContainer);
86 UsdStageRefPtrDataSourceHandle GetStage()
const;
89 HdBoolDataSourceHandle GetIncludeUnloadedPrims()
const;
93 HdBoolDataSourceHandle GetDisplayUnloadedPrimsWithBounds()
const;
98 HdBoolDataSourceHandle GetAddDrawModeSceneIndex()
const;
108 static const TfToken &GetSchemaToken();
128 static HdContainerDataSourceHandle
130 const UsdStageRefPtrDataSourceHandle &stage,
131 const HdBoolDataSourceHandle &includeUnloadedPrims,
132 const HdBoolDataSourceHandle &displayUnloadedPrimsWithBounds,
133 const HdBoolDataSourceHandle &addDrawModeSceneIndex
147 const UsdStageRefPtrDataSourceHandle &stage);
149 Builder &SetIncludeUnloadedPrims(
150 const HdBoolDataSourceHandle &includeUnloadedPrims);
152 Builder &SetDisplayUnloadedPrimsWithBounds(
153 const HdBoolDataSourceHandle &displayUnloadedPrimsWithBounds);
155 Builder &SetAddDrawModeSceneIndex(
156 const HdBoolDataSourceHandle &addDrawModeSceneIndex);
160 HdContainerDataSourceHandle
Build();
163 UsdStageRefPtrDataSourceHandle _stage;
164 HdBoolDataSourceHandle _includeUnloadedPrims;
165 HdBoolDataSourceHandle _displayUnloadedPrimsWithBounds;
166 HdBoolDataSourceHandle _addDrawModeSceneIndex;
173 PXR_NAMESPACE_CLOSE_SCOPE
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...
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.
Represents an object that can identify the location of a data source.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
A datasource representing a concretely-typed sampled value.
#define TF_DECLARE_REF_PTRS(type)
Define standard ref pointer types.
Schema classes represent a structured view of the inherently unstructured container data source passe...