28 #ifndef PXR_IMAGING_HD_LEGACY_DISPLAY_STYLE_SCHEMA_H 29 #define PXR_IMAGING_HD_LEGACY_DISPLAY_STYLE_SCHEMA_H 31 #include "pxr/imaging/hd/api.h" 33 #include "pxr/imaging/hd/schema.h" 35 PXR_NAMESPACE_OPEN_SCOPE
39 #define HDLEGACYDISPLAYSTYLE_SCHEMA_TOKENS \ 42 (flatShadingEnabled) \ 43 (displacementEnabled) \ 44 (occludedSelectionShowsThrough) \ 45 (pointsShadingEnabled) \ 52 HDLEGACYDISPLAYSTYLE_SCHEMA_TOKENS);
56 class HdLegacyDisplayStyleSchema :
public HdSchema 59 HdLegacyDisplayStyleSchema(HdContainerDataSourceHandle container)
65 HdIntDataSourceHandle GetRefineLevel();
67 HdBoolDataSourceHandle GetFlatShadingEnabled();
69 HdBoolDataSourceHandle GetDisplacementEnabled();
71 HdBoolDataSourceHandle GetOccludedSelectionShowsThrough();
73 HdBoolDataSourceHandle GetPointsShadingEnabled();
75 HdBoolDataSourceHandle GetMaterialIsFinal();
77 HdTokenDataSourceHandle GetShadingStyle();
79 HdTokenArrayDataSourceHandle GetReprSelector();
81 HdTokenDataSourceHandle GetCullStyle();
91 static HdContainerDataSourceHandle
93 const HdIntDataSourceHandle &refineLevel,
94 const HdBoolDataSourceHandle &flatShadingEnabled,
95 const HdBoolDataSourceHandle &displacementEnabled,
96 const HdBoolDataSourceHandle &occludedSelectionShowsThrough,
97 const HdBoolDataSourceHandle &pointsShadingEnabled,
98 const HdBoolDataSourceHandle &materialIsFinal,
99 const HdTokenDataSourceHandle &shadingStyle,
100 const HdTokenArrayDataSourceHandle &reprSelector,
101 const HdTokenDataSourceHandle &cullStyle
115 const HdIntDataSourceHandle &refineLevel);
117 Builder &SetFlatShadingEnabled(
118 const HdBoolDataSourceHandle &flatShadingEnabled);
120 Builder &SetDisplacementEnabled(
121 const HdBoolDataSourceHandle &displacementEnabled);
123 Builder &SetOccludedSelectionShowsThrough(
124 const HdBoolDataSourceHandle &occludedSelectionShowsThrough);
126 Builder &SetPointsShadingEnabled(
127 const HdBoolDataSourceHandle &pointsShadingEnabled);
130 const HdBoolDataSourceHandle &materialIsFinal);
133 const HdTokenDataSourceHandle &shadingStyle);
136 const HdTokenArrayDataSourceHandle &reprSelector);
139 const HdTokenDataSourceHandle &cullStyle);
143 HdContainerDataSourceHandle
Build();
146 HdIntDataSourceHandle _refineLevel;
147 HdBoolDataSourceHandle _flatShadingEnabled;
148 HdBoolDataSourceHandle _displacementEnabled;
149 HdBoolDataSourceHandle _occludedSelectionShowsThrough;
150 HdBoolDataSourceHandle _pointsShadingEnabled;
151 HdBoolDataSourceHandle _materialIsFinal;
152 HdTokenDataSourceHandle _shadingStyle;
153 HdTokenArrayDataSourceHandle _reprSelector;
154 HdTokenDataSourceHandle _cullStyle;
163 static HdLegacyDisplayStyleSchema GetFromParent(
164 const HdContainerDataSourceHandle &fromParentContainer);
188 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...