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) \
40 (occludedSelectionShowsThrough) \
41 (pointsShadingEnabled) \
48 HD_LEGACY_DISPLAY_STYLE_SCHEMA_TOKENS);
53class HdLegacyDisplayStyleSchema :
public HdSchema
59 HdLegacyDisplayStyleSchema(HdContainerDataSourceHandle container)
68 static HdLegacyDisplayStyleSchema GetFromParent(
69 const HdContainerDataSourceHandle &fromParentContainer);
80 HdIntDataSourceHandle GetRefineLevel()
const;
83 HdBoolDataSourceHandle GetFlatShadingEnabled()
const;
86 HdBoolDataSourceHandle GetDisplacementEnabled()
const;
89 HdBoolDataSourceHandle GetOccludedSelectionShowsThrough()
const;
92 HdBoolDataSourceHandle GetPointsShadingEnabled()
const;
95 HdBoolDataSourceHandle GetMaterialIsFinal()
const;
98 HdTokenDataSourceHandle GetShadingStyle()
const;
101 HdTokenArrayDataSourceHandle GetReprSelector()
const;
104 HdTokenDataSourceHandle GetCullStyle()
const;
114 static const TfToken &GetSchemaToken();
152 static HdContainerDataSourceHandle
154 const HdIntDataSourceHandle &refineLevel,
155 const HdBoolDataSourceHandle &flatShadingEnabled,
156 const HdBoolDataSourceHandle &displacementEnabled,
157 const HdBoolDataSourceHandle &occludedSelectionShowsThrough,
158 const HdBoolDataSourceHandle &pointsShadingEnabled,
159 const HdBoolDataSourceHandle &materialIsFinal,
160 const HdTokenDataSourceHandle &shadingStyle,
161 const HdTokenArrayDataSourceHandle &reprSelector,
162 const HdTokenDataSourceHandle &cullStyle
176 const HdIntDataSourceHandle &refineLevel);
178 Builder &SetFlatShadingEnabled(
179 const HdBoolDataSourceHandle &flatShadingEnabled);
181 Builder &SetDisplacementEnabled(
182 const HdBoolDataSourceHandle &displacementEnabled);
184 Builder &SetOccludedSelectionShowsThrough(
185 const HdBoolDataSourceHandle &occludedSelectionShowsThrough);
187 Builder &SetPointsShadingEnabled(
188 const HdBoolDataSourceHandle &pointsShadingEnabled);
191 const HdBoolDataSourceHandle &materialIsFinal);
194 const HdTokenDataSourceHandle &shadingStyle);
197 const HdTokenArrayDataSourceHandle &reprSelector);
200 const HdTokenDataSourceHandle &cullStyle);
204 HdContainerDataSourceHandle
Build();
207 HdIntDataSourceHandle _refineLevel;
208 HdBoolDataSourceHandle _flatShadingEnabled;
209 HdBoolDataSourceHandle _displacementEnabled;
210 HdBoolDataSourceHandle _occludedSelectionShowsThrough;
211 HdBoolDataSourceHandle _pointsShadingEnabled;
212 HdBoolDataSourceHandle _materialIsFinal;
213 HdTokenDataSourceHandle _shadingStyle;
214 HdTokenArrayDataSourceHandle _reprSelector;
215 HdTokenDataSourceHandle _cullStyle;
222PXR_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.