18 #ifndef PXR_IMAGING_HD_INSTANCER_TOPOLOGY_SCHEMA_H 19 #define PXR_IMAGING_HD_INSTANCER_TOPOLOGY_SCHEMA_H 23 #include "pxr/imaging/hd/api.h" 24 #include "pxr/imaging/hd/schemaTypeDefs.h" 26 #include "pxr/imaging/hd/schema.h" 31 PXR_NAMESPACE_OPEN_SCOPE
36 #define HD_INSTANCER_TOPOLOGY_SCHEMA_TOKENS \ 44 HD_INSTANCER_TOPOLOGY_SCHEMA_TOKENS);
108 const HdContainerDataSourceHandle &fromParentContainer);
123 HdPathArrayDataSourceHandle GetPrototypes()
const;
129 HdBoolArrayDataSourceHandle GetMask()
const;
132 HdPathArrayDataSourceHandle GetInstanceLocations()
const;
162 static HdContainerDataSourceHandle
164 const HdPathArrayDataSourceHandle &prototypes,
165 const HdVectorDataSourceHandle &instanceIndices,
166 const HdBoolArrayDataSourceHandle &mask,
167 const HdPathArrayDataSourceHandle &instanceLocations
181 const HdPathArrayDataSourceHandle &prototypes);
184 const HdVectorDataSourceHandle &instanceIndices);
187 const HdBoolArrayDataSourceHandle &mask);
190 const HdPathArrayDataSourceHandle &instanceLocations);
194 HdContainerDataSourceHandle
Build();
197 HdPathArrayDataSourceHandle _prototypes;
198 HdVectorDataSourceHandle _instanceIndices;
199 HdBoolArrayDataSourceHandle _mask;
200 HdPathArrayDataSourceHandle _instanceLocations;
207 PXR_NAMESPACE_CLOSE_SCOPE
HD_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
static HD_API HdInstancerTopologySchema GetFromParent(const HdContainerDataSourceHandle &fromParentContainer)
Retrieves a container data source with the schema's default name token "instancerTopology" from the p...
Since the instancing schema is complicated:
Template class wrapping a vector data source whose children are data source of an expected type.
Token for efficient comparison, assignment, and hashing of known strings.
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.
static HD_API const HdDataSourceLocator & GetDefaultLocator()
Returns an HdDataSourceLocator (relative to the prim-level data source) where the container represent...
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
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 HdContainerDataSourceHandle BuildRetained(const HdPathArrayDataSourceHandle &prototypes, const HdVectorDataSourceHandle &instanceIndices, const HdBoolArrayDataSourceHandle &mask, const HdPathArrayDataSourceHandle &instanceLocations)
Represents an arbitrary dimensional rectangular container class.
A path value used to locate objects in layers or scenegraphs.
Schema classes represent a structured view of the inherently unstructured container data source passe...