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);
56class HdLegacyDisplayStyleSchema :
public HdSchema
62 HdLegacyDisplayStyleSchema(HdContainerDataSourceHandle container)
71 static HdLegacyDisplayStyleSchema GetFromParent(
72 const HdContainerDataSourceHandle &fromParentContainer);
83 HdIntDataSourceHandle GetRefineLevel()
const;
86 HdBoolDataSourceHandle GetFlatShadingEnabled()
const;
89 HdBoolDataSourceHandle GetDisplacementEnabled()
const;
92 HdBoolDataSourceHandle GetDisplayInOverlay()
const;
95 HdBoolDataSourceHandle GetOccludedSelectionShowsThrough()
const;
98 HdBoolDataSourceHandle GetPointsShadingEnabled()
const;
101 HdBoolDataSourceHandle GetMaterialIsFinal()
const;
104 HdTokenDataSourceHandle GetShadingStyle()
const;
107 HdTokenArrayDataSourceHandle GetReprSelector()
const;
110 HdTokenDataSourceHandle GetCullStyle()
const;
120 static const TfToken &GetSchemaToken();
190 static HdContainerDataSourceHandle
192 const HdIntDataSourceHandle &refineLevel,
193 const HdBoolDataSourceHandle &flatShadingEnabled,
194 const HdBoolDataSourceHandle &displacementEnabled,
195 const HdBoolDataSourceHandle &displayInOverlay,
196 const HdBoolDataSourceHandle &occludedSelectionShowsThrough,
197 const HdBoolDataSourceHandle &pointsShadingEnabled,
198 const HdBoolDataSourceHandle &materialIsFinal,
199 const HdTokenDataSourceHandle &shadingStyle,
200 const HdTokenArrayDataSourceHandle &reprSelector,
201 const HdTokenDataSourceHandle &cullStyle
215 const HdIntDataSourceHandle &refineLevel);
217 Builder &SetFlatShadingEnabled(
218 const HdBoolDataSourceHandle &flatShadingEnabled);
220 Builder &SetDisplacementEnabled(
221 const HdBoolDataSourceHandle &displacementEnabled);
224 const HdBoolDataSourceHandle &displayInOverlay);
226 Builder &SetOccludedSelectionShowsThrough(
227 const HdBoolDataSourceHandle &occludedSelectionShowsThrough);
229 Builder &SetPointsShadingEnabled(
230 const HdBoolDataSourceHandle &pointsShadingEnabled);
233 const HdBoolDataSourceHandle &materialIsFinal);
236 const HdTokenDataSourceHandle &shadingStyle);
239 const HdTokenArrayDataSourceHandle &reprSelector);
242 const HdTokenDataSourceHandle &cullStyle);
246 HdContainerDataSourceHandle
Build();
249 HdIntDataSourceHandle _refineLevel;
250 HdBoolDataSourceHandle _flatShadingEnabled;
251 HdBoolDataSourceHandle _displacementEnabled;
252 HdBoolDataSourceHandle _displayInOverlay;
253 HdBoolDataSourceHandle _occludedSelectionShowsThrough;
254 HdBoolDataSourceHandle _pointsShadingEnabled;
255 HdBoolDataSourceHandle _materialIsFinal;
256 HdTokenDataSourceHandle _shadingStyle;
257 HdTokenArrayDataSourceHandle _reprSelector;
258 HdTokenDataSourceHandle _cullStyle;
265PXR_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.