28 #ifndef PXR_IMAGING_HD_VOLUME_FIELD_SCHEMA_H 29 #define PXR_IMAGING_HD_VOLUME_FIELD_SCHEMA_H 31 #include "pxr/imaging/hd/api.h" 33 #include "pxr/imaging/hd/schema.h" 35 PXR_NAMESPACE_OPEN_SCOPE
39 #define HDVOLUMEFIELD_SCHEMA_TOKENS \ 45 (vectorDataRoleHint) \ 48 HDVOLUMEFIELD_SCHEMA_TOKENS);
52 class HdVolumeFieldSchema :
public HdSchema 55 HdVolumeFieldSchema(HdContainerDataSourceHandle container)
61 HdAssetPathDataSourceHandle GetFilePath();
63 HdTokenDataSourceHandle GetFieldName();
65 HdIntDataSourceHandle GetFieldIndex();
67 HdTokenDataSourceHandle GetFieldDataType();
69 HdTokenDataSourceHandle GetVectorDataRoleHint();
79 static HdContainerDataSourceHandle
81 const HdAssetPathDataSourceHandle &filePath,
82 const HdTokenDataSourceHandle &fieldName,
83 const HdIntDataSourceHandle &fieldIndex,
84 const HdTokenDataSourceHandle &fieldDataType,
85 const HdTokenDataSourceHandle &vectorDataRoleHint
99 const HdAssetPathDataSourceHandle &filePath);
102 const HdTokenDataSourceHandle &fieldName);
105 const HdIntDataSourceHandle &fieldIndex);
108 const HdTokenDataSourceHandle &fieldDataType);
110 Builder &SetVectorDataRoleHint(
111 const HdTokenDataSourceHandle &vectorDataRoleHint);
115 HdContainerDataSourceHandle
Build();
118 HdAssetPathDataSourceHandle _filePath;
119 HdTokenDataSourceHandle _fieldName;
120 HdIntDataSourceHandle _fieldIndex;
121 HdTokenDataSourceHandle _fieldDataType;
122 HdTokenDataSourceHandle _vectorDataRoleHint;
131 static HdVolumeFieldSchema GetFromParent(
132 const HdContainerDataSourceHandle &fromParentContainer);
141 PXR_NAMESPACE_CLOSE_SCOPE
Represents an object that can identify the location of a data source.
HD_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
#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...