18#ifndef PXR_IMAGING_HD_DEPENDENCY_SCHEMA_H
19#define PXR_IMAGING_HD_DEPENDENCY_SCHEMA_H
23#include "pxr/imaging/hd/api.h"
25#include "pxr/imaging/hd/schema.h"
30PXR_NAMESPACE_OPEN_SCOPE
35#define HD_DEPENDENCY_SCHEMA_TOKENS \
36 (dependedOnPrimPath) \
37 (dependedOnDataSourceLocator) \
38 (affectedDataSourceLocator) \
41 HD_DEPENDENCY_SCHEMA_TOKENS);
46class HdDependencySchema :
public HdSchema
52 HdDependencySchema(HdContainerDataSourceHandle container)
64 HdPathDataSourceHandle GetDependedOnPrimPath()
const;
67 HdLocatorDataSourceHandle GetDependedOnDataSourceLocator()
const;
70 HdLocatorDataSourceHandle GetAffectedDataSourceLocator()
const;
85 static HdContainerDataSourceHandle
87 const HdPathDataSourceHandle &dependedOnPrimPath,
88 const HdLocatorDataSourceHandle &dependedOnDataSourceLocator,
89 const HdLocatorDataSourceHandle &affectedDataSourceLocator
102 Builder &SetDependedOnPrimPath(
103 const HdPathDataSourceHandle &dependedOnPrimPath);
105 Builder &SetDependedOnDataSourceLocator(
106 const HdLocatorDataSourceHandle &dependedOnDataSourceLocator);
108 Builder &SetAffectedDataSourceLocator(
109 const HdLocatorDataSourceHandle &affectedDataSourceLocator);
113 HdContainerDataSourceHandle
Build();
116 HdPathDataSourceHandle _dependedOnPrimPath;
117 HdLocatorDataSourceHandle _dependedOnDataSourceLocator;
118 HdLocatorDataSourceHandle _affectedDataSourceLocator;
125PXR_NAMESPACE_CLOSE_SCOPE
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...
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.