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"
30PXR_NAMESPACE_OPEN_SCOPE
35#define HD_INSTANCE_SCHEMA_TOKENS \
42 HD_INSTANCE_SCHEMA_TOKENS);
56class HdInstanceSchema :
public HdSchema
62 HdInstanceSchema(HdContainerDataSourceHandle container)
71 static HdInstanceSchema GetFromParent(
72 const HdContainerDataSourceHandle &fromParentContainer);
90 HdPathDataSourceHandle GetInstancer()
const;
95 HdIntDataSourceHandle GetPrototypeIndex()
const;
101 HdIntDataSourceHandle GetInstanceIndex()
const;
111 static const TfToken &GetSchemaToken();
131 static HdContainerDataSourceHandle
133 const HdPathDataSourceHandle &instancer,
134 const HdIntDataSourceHandle &prototypeIndex,
135 const HdIntDataSourceHandle &instanceIndex
149 const HdPathDataSourceHandle &instancer);
152 const HdIntDataSourceHandle &prototypeIndex);
155 const HdIntDataSourceHandle &instanceIndex);
159 HdContainerDataSourceHandle
Build();
162 HdPathDataSourceHandle _instancer;
163 HdIntDataSourceHandle _prototypeIndex;
164 HdIntDataSourceHandle _instanceIndex;
171PXR_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...
Token for efficient comparison, assignment, and hashing of known strings.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.