18#ifndef PXR_IMAGING_HD_LEGACY_TASK_SCHEMA_H
19#define PXR_IMAGING_HD_LEGACY_TASK_SCHEMA_H
23#include "pxr/imaging/hd/api.h"
25#include "pxr/imaging/hd/schema.h"
28#include "pxr/imaging/hd/rprimCollection.h"
31PXR_NAMESPACE_OPEN_SCOPE
36using HdRprimCollectionDataSourceHandle = HdRprimCollectionDataSource::Handle;
39using HdTokenVectorDataSourceHandle = HdTokenVectorDataSource::Handle;
41using HdLegacyTaskFactorySharedPtr = std::shared_ptr<class HdLegacyTaskFactory>;
44using HdLegacyTaskFactoryDataSourceHandle =
45 HdLegacyTaskFactoryDataSource::Handle;
50#define HD_LEGACY_TASK_SCHEMA_TOKENS \
58 HD_LEGACY_TASK_SCHEMA_TOKENS);
66class HdLegacyTaskSchema :
public HdSchema
72 HdLegacyTaskSchema(HdContainerDataSourceHandle container)
81 static HdLegacyTaskSchema GetFromParent(
82 const HdContainerDataSourceHandle &fromParentContainer);
93 HdLegacyTaskFactoryDataSourceHandle GetFactory()
const;
98 HdSampledDataSourceHandle GetParameters()
const;
101 HdRprimCollectionDataSourceHandle GetCollection()
const;
104 HdTokenVectorDataSourceHandle GetRenderTags()
const;
114 static const TfToken &GetSchemaToken();
160 static HdContainerDataSourceHandle
162 const HdLegacyTaskFactoryDataSourceHandle &factory,
163 const HdSampledDataSourceHandle ¶meters,
164 const HdRprimCollectionDataSourceHandle &collection,
165 const HdTokenVectorDataSourceHandle &renderTags
179 const HdLegacyTaskFactoryDataSourceHandle &factory);
182 const HdSampledDataSourceHandle ¶meters);
185 const HdRprimCollectionDataSourceHandle &collection);
188 const HdTokenVectorDataSourceHandle &renderTags);
192 HdContainerDataSourceHandle
Build();
195 HdLegacyTaskFactoryDataSourceHandle _factory;
196 HdSampledDataSourceHandle _parameters;
197 HdRprimCollectionDataSourceHandle _collection;
198 HdTokenVectorDataSourceHandle _renderTags;
205PXR_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...
A datasource representing a concretely-typed sampled value.
Token for efficient comparison, assignment, and hashing of known strings.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.