18#ifndef PXR_IMAGING_HD_PURPOSE_SCHEMA_H
19#define PXR_IMAGING_HD_PURPOSE_SCHEMA_H
23#include "pxr/imaging/hd/api.h"
25#include "pxr/imaging/hd/schema.h"
30PXR_NAMESPACE_OPEN_SCOPE
35#define HD_PURPOSE_SCHEMA_TOKENS \
41 HD_PURPOSE_SCHEMA_TOKENS);
48class HdPurposeSchema :
public HdSchema
54 HdPurposeSchema(HdContainerDataSourceHandle container)
63 static HdPurposeSchema GetFromParent(
64 const HdContainerDataSourceHandle &fromParentContainer);
82 HdTokenDataSourceHandle GetPurpose()
const;
87 HdBoolDataSourceHandle GetInheritable()
const;
95 HdTokenDataSourceHandle GetFallback()
const;
105 static const TfToken &GetSchemaToken();
125 static HdContainerDataSourceHandle
127 const HdTokenDataSourceHandle &purpose,
128 const HdBoolDataSourceHandle &inheritable,
129 const HdTokenDataSourceHandle &fallback
143 const HdTokenDataSourceHandle &purpose);
146 const HdBoolDataSourceHandle &inheritable);
149 const HdTokenDataSourceHandle &fallback);
153 HdContainerDataSourceHandle
Build();
156 HdTokenDataSourceHandle _purpose;
157 HdBoolDataSourceHandle _inheritable;
158 HdTokenDataSourceHandle _fallback;
165PXR_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.