18#ifndef PXR_IMAGING_HD_VOLUME_FIELD_SCHEMA_H
19#define PXR_IMAGING_HD_VOLUME_FIELD_SCHEMA_H
23#include "pxr/imaging/hd/api.h"
25#include "pxr/imaging/hd/schema.h"
30PXR_NAMESPACE_OPEN_SCOPE
35#define HD_VOLUME_FIELD_SCHEMA_TOKENS \
41 (vectorDataRoleHint) \
44 HD_VOLUME_FIELD_SCHEMA_TOKENS);
49class HdVolumeFieldSchema :
public HdSchema
55 HdVolumeFieldSchema(HdContainerDataSourceHandle container)
64 static HdVolumeFieldSchema GetFromParent(
65 const HdContainerDataSourceHandle &fromParentContainer);
76 HdAssetPathDataSourceHandle GetFilePath()
const;
79 HdTokenDataSourceHandle GetFieldName()
const;
82 HdIntDataSourceHandle GetFieldIndex()
const;
85 HdTokenDataSourceHandle GetFieldDataType()
const;
88 HdTokenDataSourceHandle GetVectorDataRoleHint()
const;
98 static const TfToken &GetSchemaToken();
118 static HdContainerDataSourceHandle
120 const HdAssetPathDataSourceHandle &filePath,
121 const HdTokenDataSourceHandle &fieldName,
122 const HdIntDataSourceHandle &fieldIndex,
123 const HdTokenDataSourceHandle &fieldDataType,
124 const HdTokenDataSourceHandle &vectorDataRoleHint
138 const HdAssetPathDataSourceHandle &filePath);
141 const HdTokenDataSourceHandle &fieldName);
144 const HdIntDataSourceHandle &fieldIndex);
147 const HdTokenDataSourceHandle &fieldDataType);
149 Builder &SetVectorDataRoleHint(
150 const HdTokenDataSourceHandle &vectorDataRoleHint);
154 HdContainerDataSourceHandle
Build();
157 HdAssetPathDataSourceHandle _filePath;
158 HdTokenDataSourceHandle _fieldName;
159 HdIntDataSourceHandle _fieldIndex;
160 HdTokenDataSourceHandle _fieldDataType;
161 HdTokenDataSourceHandle _vectorDataRoleHint;
168PXR_NAMESPACE_CLOSE_SCOPE
Represents an object that can identify the location of a data source.
Schema classes represent a structured view of the inherently unstructured container data source passe...
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.
Token for efficient comparison, assignment, and hashing of known strings.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.