31 #ifndef PXR_IMAGING_HD_LEGACY_DISPLAY_STYLE_SCHEMA_H 32 #define PXR_IMAGING_HD_LEGACY_DISPLAY_STYLE_SCHEMA_H 34 #include "pxr/imaging/hd/api.h" 36 #include "pxr/imaging/hd/schema.h" 38 PXR_NAMESPACE_OPEN_SCOPE
42 #define HDLEGACYDISPLAYSTYLE_SCHEMA_TOKENS \ 45 (flatShadingEnabled) \ 46 (displacementEnabled) \ 47 (occludedSelectionShowsThrough) \ 48 (pointsShadingEnabled) \ 55 HDLEGACYDISPLAYSTYLE_SCHEMA_TOKENS);
59 class HdLegacyDisplayStyleSchema :
public HdSchema 62 HdLegacyDisplayStyleSchema(HdContainerDataSourceHandle container)
68 HdIntDataSourceHandle GetRefineLevel();
70 HdBoolDataSourceHandle GetFlatShadingEnabled();
72 HdBoolDataSourceHandle GetDisplacementEnabled();
74 HdBoolDataSourceHandle GetOccludedSelectionShowsThrough();
76 HdBoolDataSourceHandle GetPointsShadingEnabled();
78 HdBoolDataSourceHandle GetMaterialIsFinal();
80 HdTokenDataSourceHandle GetShadingStyle();
82 HdTokenArrayDataSourceHandle GetReprSelector();
84 HdTokenDataSourceHandle GetCullStyle();
94 static HdContainerDataSourceHandle
96 const HdIntDataSourceHandle &refineLevel,
97 const HdBoolDataSourceHandle &flatShadingEnabled,
98 const HdBoolDataSourceHandle &displacementEnabled,
99 const HdBoolDataSourceHandle &occludedSelectionShowsThrough,
100 const HdBoolDataSourceHandle &pointsShadingEnabled,
101 const HdBoolDataSourceHandle &materialIsFinal,
102 const HdTokenDataSourceHandle &shadingStyle,
103 const HdTokenArrayDataSourceHandle &reprSelector,
104 const HdTokenDataSourceHandle &cullStyle
118 const HdIntDataSourceHandle &refineLevel);
120 Builder &SetFlatShadingEnabled(
121 const HdBoolDataSourceHandle &flatShadingEnabled);
123 Builder &SetDisplacementEnabled(
124 const HdBoolDataSourceHandle &displacementEnabled);
126 Builder &SetOccludedSelectionShowsThrough(
127 const HdBoolDataSourceHandle &occludedSelectionShowsThrough);
129 Builder &SetPointsShadingEnabled(
130 const HdBoolDataSourceHandle &pointsShadingEnabled);
133 const HdBoolDataSourceHandle &materialIsFinal);
136 const HdTokenDataSourceHandle &shadingStyle);
139 const HdTokenArrayDataSourceHandle &reprSelector);
142 const HdTokenDataSourceHandle &cullStyle);
146 HdContainerDataSourceHandle
Build();
149 HdIntDataSourceHandle _refineLevel;
150 HdBoolDataSourceHandle _flatShadingEnabled;
151 HdBoolDataSourceHandle _displacementEnabled;
152 HdBoolDataSourceHandle _occludedSelectionShowsThrough;
153 HdBoolDataSourceHandle _pointsShadingEnabled;
154 HdBoolDataSourceHandle _materialIsFinal;
155 HdTokenDataSourceHandle _shadingStyle;
156 HdTokenArrayDataSourceHandle _reprSelector;
157 HdTokenDataSourceHandle _cullStyle;
166 static HdLegacyDisplayStyleSchema GetFromParent(
167 const HdContainerDataSourceHandle &fromParentContainer);
191 PXR_NAMESPACE_CLOSE_SCOPE
Represents an object that can identify the location of a data source.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
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...