18 #ifndef PXR_IMAGING_HD_INSTANCED_BY_SCHEMA_H 19 #define PXR_IMAGING_HD_INSTANCED_BY_SCHEMA_H 23 #include "pxr/imaging/hd/api.h" 25 #include "pxr/imaging/hd/schema.h" 30 PXR_NAMESPACE_OPEN_SCOPE
35 #define HD_INSTANCED_BY_SCHEMA_TOKENS \ 41 HD_INSTANCED_BY_SCHEMA_TOKENS);
83 const HdContainerDataSourceHandle &fromParentContainer);
94 HdPathArrayDataSourceHandle GetPaths()
const;
97 HdPathArrayDataSourceHandle GetPrototypeRoots()
const;
141 static HdContainerDataSourceHandle
143 const HdPathArrayDataSourceHandle &paths,
144 const HdPathArrayDataSourceHandle &prototypeRoots
158 const HdPathArrayDataSourceHandle &paths);
161 const HdPathArrayDataSourceHandle &prototypeRoots);
165 HdContainerDataSourceHandle
Build();
168 HdPathArrayDataSourceHandle _paths;
169 HdPathArrayDataSourceHandle _prototypeRoots;
176 PXR_NAMESPACE_CLOSE_SCOPE
static HD_API const HdDataSourceLocator & GetDefaultLocator()
Returns an HdDataSourceLocator (relative to the prim-level data source) where the container represent...
HD_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
static HD_API HdContainerDataSourceHandle BuildRetained(const HdPathArrayDataSourceHandle &paths, const HdPathArrayDataSourceHandle &prototypeRoots)
static HD_API const HdDataSourceLocator & GetPathsLocator()
Prim-level relative data source locator to locate paths.
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.
Utility class for setting sparse sets of child data source fields to be filled as arguments into Buil...
Schema classes represent a structured view of the inherently unstructured container data source passe...
static HD_API const TfToken & GetSchemaToken()
Returns a token where the container representing this schema is found in a container by default.
A schema marking a prim as instanced by another prim.
static HD_API HdInstancedBySchema GetFromParent(const HdContainerDataSourceHandle &fromParentContainer)
Retrieves a container data source with the schema's default name token "instancedBy" from the parent ...