28 #ifndef PXR_IMAGING_HD_PURPOSE_SCHEMA_H 29 #define PXR_IMAGING_HD_PURPOSE_SCHEMA_H 31 #include "pxr/imaging/hd/api.h" 33 #include "pxr/imaging/hd/schema.h" 35 PXR_NAMESPACE_OPEN_SCOPE
39 #define HDPURPOSE_SCHEMA_TOKENS \ 44 HDPURPOSE_SCHEMA_TOKENS);
48 class HdPurposeSchema :
public HdSchema 51 HdPurposeSchema(HdContainerDataSourceHandle container)
57 HdTokenDataSourceHandle GetPurpose();
67 static HdContainerDataSourceHandle
69 const HdTokenDataSourceHandle &purpose
83 const HdTokenDataSourceHandle &purpose);
87 HdContainerDataSourceHandle
Build();
90 HdTokenDataSourceHandle _purpose;
99 static HdPurposeSchema GetFromParent(
100 const HdContainerDataSourceHandle &fromParentContainer);
109 PXR_NAMESPACE_CLOSE_SCOPE
HD_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
Represents an object that can identify the location of a data source.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Utility class for setting sparse sets of child data source fields to be filled as arguments into Buil...
Schema classes represent a structured view of the inherently unstructured container data source passe...