18#ifndef PXR_IMAGING_HD_INSTANCE_PROXY_SCHEMA_H
19#define PXR_IMAGING_HD_INSTANCE_PROXY_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_INSTANCE_PROXY_SCHEMA_TOKENS \
38 (pathToPrimInPrototype) \
42 HD_INSTANCE_PROXY_SCHEMA_TOKENS);
73 const HdContainerDataSourceHandle &fromParentContainer);
123 static HdContainerDataSourceHandle
125 const HdPathDataSourceHandle &pathToPrimInPrototype,
126 const HdVectorDataSourceHandle &instancingContext
139 Builder &SetPathToPrimInPrototype(
140 const HdPathDataSourceHandle &pathToPrimInPrototype);
143 const HdVectorDataSourceHandle &instancingContext);
147 HdContainerDataSourceHandle
Build();
150 HdPathDataSourceHandle _pathToPrimInPrototype;
151 HdVectorDataSourceHandle _instancingContext;
158PXR_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.
A schema for marking a prim as an instance proxy.
HD_API HdPathDataSourceHandle GetPathToPrimInPrototype() const
The path to the prim in the propagated prototype hierarchy that this instance proxy prim corresponds ...
static HD_API HdInstanceProxySchema GetFromParent(const HdContainerDataSourceHandle &fromParentContainer)
Retrieves a container data source with the schema's default name token "instanceProxy" from the paren...
HD_API HdInstanceVectorSchema GetInstancingContext() const
Starting from the outer most, lists the instancer, prototype index and instance index for each level ...
static HD_API HdContainerDataSourceHandle BuildRetained(const HdPathDataSourceHandle &pathToPrimInPrototype, const HdVectorDataSourceHandle &instancingContext)
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 const HdDataSourceLocator & GetDefaultLocator()
Returns an HdDataSourceLocator (relative to the prim-level data source) where the container represent...
Schema classes represent a structured view of the inherently unstructured container data source passe...
Template class wrapping a vector data source whose children are container data source conforming to a...
Token for efficient comparison, assignment, and hashing of known strings.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.