18#ifndef PXR_IMAGING_HD_LEGACY_DISPLAY_STYLE_SCHEMA_H
19#define PXR_IMAGING_HD_LEGACY_DISPLAY_STYLE_SCHEMA_H
23#include "pxr/imaging/hd/api.h"
25#include "pxr/imaging/hd/schema.h"
30PXR_NAMESPACE_OPEN_SCOPE
35#define HD_LEGACY_DISPLAY_STYLE_SCHEMA_TOKENS \
38 (flatShadingEnabled) \
39 (displacementEnabled) \
41 (occludedSelectionShowsThrough) \
42 (pointsShadingEnabled) \
49 HD_LEGACY_DISPLAY_STYLE_SCHEMA_TOKENS);
54class HdLegacyDisplayStyleSchema :
public HdSchema
60 HdLegacyDisplayStyleSchema(HdContainerDataSourceHandle container)
69 static HdLegacyDisplayStyleSchema GetFromParent(
70 const HdContainerDataSourceHandle &fromParentContainer);
81 HdIntDataSourceHandle GetRefineLevel()
const;
84 HdBoolDataSourceHandle GetFlatShadingEnabled()
const;
87 HdBoolDataSourceHandle GetDisplacementEnabled()
const;
90 HdBoolDataSourceHandle GetDisplayInOverlay()
const;
93 HdBoolDataSourceHandle GetOccludedSelectionShowsThrough()
const;
96 HdBoolDataSourceHandle GetPointsShadingEnabled()
const;
99 HdBoolDataSourceHandle GetMaterialIsFinal()
const;
102 HdTokenDataSourceHandle GetShadingStyle()
const;
105 HdTokenArrayDataSourceHandle GetReprSelector()
const;
108 HdTokenDataSourceHandle GetCullStyle()
const;
118 static const TfToken &GetSchemaToken();
188 static HdContainerDataSourceHandle
190 const HdIntDataSourceHandle &refineLevel,
191 const HdBoolDataSourceHandle &flatShadingEnabled,
192 const HdBoolDataSourceHandle &displacementEnabled,
193 const HdBoolDataSourceHandle &displayInOverlay,
194 const HdBoolDataSourceHandle &occludedSelectionShowsThrough,
195 const HdBoolDataSourceHandle &pointsShadingEnabled,
196 const HdBoolDataSourceHandle &materialIsFinal,
197 const HdTokenDataSourceHandle &shadingStyle,
198 const HdTokenArrayDataSourceHandle &reprSelector,
199 const HdTokenDataSourceHandle &cullStyle
213 const HdIntDataSourceHandle &refineLevel);
215 Builder &SetFlatShadingEnabled(
216 const HdBoolDataSourceHandle &flatShadingEnabled);
218 Builder &SetDisplacementEnabled(
219 const HdBoolDataSourceHandle &displacementEnabled);
222 const HdBoolDataSourceHandle &displayInOverlay);
224 Builder &SetOccludedSelectionShowsThrough(
225 const HdBoolDataSourceHandle &occludedSelectionShowsThrough);
227 Builder &SetPointsShadingEnabled(
228 const HdBoolDataSourceHandle &pointsShadingEnabled);
231 const HdBoolDataSourceHandle &materialIsFinal);
234 const HdTokenDataSourceHandle &shadingStyle);
237 const HdTokenArrayDataSourceHandle &reprSelector);
240 const HdTokenDataSourceHandle &cullStyle);
244 HdContainerDataSourceHandle
Build();
247 HdIntDataSourceHandle _refineLevel;
248 HdBoolDataSourceHandle _flatShadingEnabled;
249 HdBoolDataSourceHandle _displacementEnabled;
250 HdBoolDataSourceHandle _displayInOverlay;
251 HdBoolDataSourceHandle _occludedSelectionShowsThrough;
252 HdBoolDataSourceHandle _pointsShadingEnabled;
253 HdBoolDataSourceHandle _materialIsFinal;
254 HdTokenDataSourceHandle _shadingStyle;
255 HdTokenArrayDataSourceHandle _reprSelector;
256 HdTokenDataSourceHandle _cullStyle;
263PXR_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...
Token for efficient comparison, assignment, and hashing of known strings.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.