18 #ifndef PXR_IMAGING_HD_INSTANCE_SCHEMA_H 19 #define PXR_IMAGING_HD_INSTANCE_SCHEMA_H 23 #include "pxr/imaging/hd/api.h" 25 #include "pxr/imaging/hd/schema.h" 30 PXR_NAMESPACE_OPEN_SCOPE
35 #define HD_INSTANCE_SCHEMA_TOKENS \ 42 HD_INSTANCE_SCHEMA_TOKENS);
74 const HdContainerDataSourceHandle &fromParentContainer);
133 static HdContainerDataSourceHandle
135 const HdPathDataSourceHandle &instancer,
136 const HdIntDataSourceHandle &prototypeIndex,
137 const HdIntDataSourceHandle &instanceIndex
151 const HdPathDataSourceHandle &instancer);
154 const HdIntDataSourceHandle &prototypeIndex);
157 const HdIntDataSourceHandle &instanceIndex);
161 HdContainerDataSourceHandle
Build();
164 HdPathDataSourceHandle _instancer;
165 HdIntDataSourceHandle _prototypeIndex;
166 HdIntDataSourceHandle _instanceIndex;
173 PXR_NAMESPACE_CLOSE_SCOPE
HD_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.
static HD_API const HdDataSourceLocator & GetDefaultLocator()
Returns an HdDataSourceLocator (relative to the prim-level data source) where the container represent...
This schema can be considered the opposite of instancerTopology's "instanceLocations".
HD_API HdIntDataSourceHandle GetInstanceIndex() const
Index into int array within the vector data source at instancer's instancerTopology's instanceIndices...
Utility class for setting sparse sets of child data source fields to be filled as arguments into Buil...
static HD_API HdContainerDataSourceHandle BuildRetained(const HdPathDataSourceHandle &instancer, const HdIntDataSourceHandle &prototypeIndex, const HdIntDataSourceHandle &instanceIndex)
HD_API HdIntDataSourceHandle GetPrototypeIndex() const
Index into vector data source at instancer's instancerTopology's instanceIndices to find entry corres...
HD_API HdPathDataSourceHandle GetInstancer() const
Path to instancer for which a (sub-)entry was added to its instancerTopology's instanceIndices during...
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.
static HD_API HdInstanceSchema GetFromParent(const HdContainerDataSourceHandle &fromParentContainer)
Retrieves a container data source with the schema's default name token "instance" from the parent con...