35#ifndef PXR_IMAGING_HD_VOLUME_FIELD_SCHEMA_H
36#define PXR_IMAGING_HD_VOLUME_FIELD_SCHEMA_H
40#include "pxr/imaging/hd/api.h"
42#include "pxr/imaging/hd/schema.h"
47PXR_NAMESPACE_OPEN_SCOPE
52#define HD_VOLUME_FIELD_SCHEMA_TOKENS \
58 (vectorDataRoleHint) \
61 HD_VOLUME_FIELD_SCHEMA_TOKENS);
66class HdVolumeFieldSchema :
public HdSchema
72 HdVolumeFieldSchema(HdContainerDataSourceHandle container)
81 static HdVolumeFieldSchema GetFromParent(
82 const HdContainerDataSourceHandle &fromParentContainer);
93 HdAssetPathDataSourceHandle GetFilePath()
const;
96 HdTokenDataSourceHandle GetFieldName()
const;
99 HdIntDataSourceHandle GetFieldIndex()
const;
102 HdTokenDataSourceHandle GetFieldDataType()
const;
105 HdTokenDataSourceHandle GetVectorDataRoleHint()
const;
115 static const TfToken &GetSchemaToken();
135 static HdContainerDataSourceHandle
137 const HdAssetPathDataSourceHandle &filePath,
138 const HdTokenDataSourceHandle &fieldName,
139 const HdIntDataSourceHandle &fieldIndex,
140 const HdTokenDataSourceHandle &fieldDataType,
141 const HdTokenDataSourceHandle &vectorDataRoleHint
155 const HdAssetPathDataSourceHandle &filePath);
158 const HdTokenDataSourceHandle &fieldName);
161 const HdIntDataSourceHandle &fieldIndex);
164 const HdTokenDataSourceHandle &fieldDataType);
166 Builder &SetVectorDataRoleHint(
167 const HdTokenDataSourceHandle &vectorDataRoleHint);
171 HdContainerDataSourceHandle
Build();
174 HdAssetPathDataSourceHandle _filePath;
175 HdTokenDataSourceHandle _fieldName;
176 HdIntDataSourceHandle _fieldIndex;
177 HdTokenDataSourceHandle _fieldDataType;
178 HdTokenDataSourceHandle _vectorDataRoleHint;
185PXR_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.