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"
31PXR_NAMESPACE_OPEN_SCOPE
36#define HD_INSTANCER_TOPOLOGY_SCHEMA_TOKENS \
44 HD_INSTANCER_TOPOLOGY_SCHEMA_TOKENS);
90class HdInstancerTopologySchema :
public HdSchema
96 HdInstancerTopologySchema(HdContainerDataSourceHandle container)
105 static HdInstancerTopologySchema GetFromParent(
106 const HdContainerDataSourceHandle &fromParentContainer);
121 HdPathArrayDataSourceHandle GetPrototypes()
const;
127 HdBoolArrayDataSourceHandle GetMask()
const;
130 HdPathArrayDataSourceHandle GetInstanceLocations()
const;
140 static const TfToken &GetSchemaToken();
160 static HdContainerDataSourceHandle
162 const HdPathArrayDataSourceHandle &prototypes,
163 const HdVectorDataSourceHandle &instanceIndices,
164 const HdBoolArrayDataSourceHandle &mask,
165 const HdPathArrayDataSourceHandle &instanceLocations
179 const HdPathArrayDataSourceHandle &prototypes);
182 const HdVectorDataSourceHandle &instanceIndices);
185 const HdBoolArrayDataSourceHandle &mask);
188 const HdPathArrayDataSourceHandle &instanceLocations);
192 HdContainerDataSourceHandle
Build();
195 HdPathArrayDataSourceHandle _prototypes;
196 HdVectorDataSourceHandle _instanceIndices;
197 HdBoolArrayDataSourceHandle _mask;
198 HdPathArrayDataSourceHandle _instanceLocations;
205PXR_NAMESPACE_CLOSE_SCOPE
Represents an object that can identify the location of a data source.
Utility class for setting sparse sets of child data source fields to be filled as arguments into Buil...
HD_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
Schema classes represent a structured view of the inherently unstructured container data source passe...
Template class wrapping a vector data source whose children are data source of an expected type.
A path value used to locate objects in layers or scenegraphs.
Token for efficient comparison, assignment, and hashing of known strings.
Represents an arbitrary dimensional rectangular container class.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.