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);
84 const HdContainerDataSourceHandle &fromParentContainer);
95 HdLegacyTaskFactoryDataSourceHandle GetFactory()
const;
103 HdRprimCollectionDataSourceHandle GetCollection()
const;
106 HdTokenVectorDataSourceHandle GetRenderTags()
const;
162 static HdContainerDataSourceHandle
164 const HdLegacyTaskFactoryDataSourceHandle &factory,
165 const HdSampledDataSourceHandle ¶meters,
166 const HdRprimCollectionDataSourceHandle &collection,
167 const HdTokenVectorDataSourceHandle &renderTags
181 const HdLegacyTaskFactoryDataSourceHandle &factory);
184 const HdSampledDataSourceHandle ¶meters);
187 const HdRprimCollectionDataSourceHandle &collection);
190 const HdTokenVectorDataSourceHandle &renderTags);
194 HdContainerDataSourceHandle
Build();
197 HdLegacyTaskFactoryDataSourceHandle _factory;
198 HdSampledDataSourceHandle _parameters;
199 HdRprimCollectionDataSourceHandle _collection;
200 HdTokenVectorDataSourceHandle _renderTags;
207PXR_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.
The HdLegacyTaskSchema specifies a Hydra task by providing a task factory and data.
static HD_API const HdDataSourceLocator & GetParametersLocator()
Prim-level relative data source locator to locate parameters.
static HD_API const HdDataSourceLocator & GetCollectionLocator()
Prim-level relative data source locator to locate collection.
static HD_API const HdDataSourceLocator & GetRenderTagsLocator()
Prim-level relative data source locator to locate renderTags.
static HD_API const HdDataSourceLocator & GetFactoryLocator()
Prim-level relative data source locator to locate factory.
static HD_API HdContainerDataSourceHandle BuildRetained(const HdLegacyTaskFactoryDataSourceHandle &factory, const HdSampledDataSourceHandle ¶meters, const HdRprimCollectionDataSourceHandle &collection, const HdTokenVectorDataSourceHandle &renderTags)
static HD_API HdLegacyTaskSchema GetFromParent(const HdContainerDataSourceHandle &fromParentContainer)
Retrieves a container data source with the schema's default name token "task" from the parent contain...
static HD_API const TfToken & GetSchemaToken()
Returns a token where the container representing this schema is found in a container by default.
HD_API HdSampledDataSourceHandle GetParameters() const
Parameters for task.
static HD_API const HdDataSourceLocator & GetDefaultLocator()
Returns an HdDataSourceLocator (relative to the prim-level data source) where the container represent...
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.