35#ifndef PXR_IMAGING_HD_INSTANCER_TOPOLOGY_SCHEMA_H
36#define PXR_IMAGING_HD_INSTANCER_TOPOLOGY_SCHEMA_H
40#include "pxr/imaging/hd/api.h"
41#include "pxr/imaging/hd/schemaTypeDefs.h"
43#include "pxr/imaging/hd/schema.h"
48PXR_NAMESPACE_OPEN_SCOPE
53#define HD_INSTANCER_TOPOLOGY_SCHEMA_TOKENS \
61 HD_INSTANCER_TOPOLOGY_SCHEMA_TOKENS);
107class HdInstancerTopologySchema :
public HdSchema
113 HdInstancerTopologySchema(HdContainerDataSourceHandle container)
122 static HdInstancerTopologySchema GetFromParent(
123 const HdContainerDataSourceHandle &fromParentContainer);
138 HdPathArrayDataSourceHandle GetPrototypes()
const;
144 HdBoolArrayDataSourceHandle GetMask()
const;
147 HdPathArrayDataSourceHandle GetInstanceLocations()
const;
157 static const TfToken &GetSchemaToken();
177 static HdContainerDataSourceHandle
179 const HdPathArrayDataSourceHandle &prototypes,
180 const HdVectorDataSourceHandle &instanceIndices,
181 const HdBoolArrayDataSourceHandle &mask,
182 const HdPathArrayDataSourceHandle &instanceLocations
196 const HdPathArrayDataSourceHandle &prototypes);
199 const HdVectorDataSourceHandle &instanceIndices);
202 const HdBoolArrayDataSourceHandle &mask);
205 const HdPathArrayDataSourceHandle &instanceLocations);
209 HdContainerDataSourceHandle
Build();
212 HdPathArrayDataSourceHandle _prototypes;
213 HdVectorDataSourceHandle _instanceIndices;
214 HdBoolArrayDataSourceHandle _mask;
215 HdPathArrayDataSourceHandle _instanceLocations;
222PXR_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.