35#ifndef PXR_IMAGING_HD_LEGACY_DISPLAY_STYLE_SCHEMA_H
36#define PXR_IMAGING_HD_LEGACY_DISPLAY_STYLE_SCHEMA_H
40#include "pxr/imaging/hd/api.h"
42#include "pxr/imaging/hd/schema.h"
47PXR_NAMESPACE_OPEN_SCOPE
52#define HD_LEGACY_DISPLAY_STYLE_SCHEMA_TOKENS \
55 (flatShadingEnabled) \
56 (displacementEnabled) \
57 (occludedSelectionShowsThrough) \
58 (pointsShadingEnabled) \
65 HD_LEGACY_DISPLAY_STYLE_SCHEMA_TOKENS);
70class HdLegacyDisplayStyleSchema :
public HdSchema
76 HdLegacyDisplayStyleSchema(HdContainerDataSourceHandle container)
85 static HdLegacyDisplayStyleSchema GetFromParent(
86 const HdContainerDataSourceHandle &fromParentContainer);
97 HdIntDataSourceHandle GetRefineLevel()
const;
100 HdBoolDataSourceHandle GetFlatShadingEnabled()
const;
103 HdBoolDataSourceHandle GetDisplacementEnabled()
const;
106 HdBoolDataSourceHandle GetOccludedSelectionShowsThrough()
const;
109 HdBoolDataSourceHandle GetPointsShadingEnabled()
const;
112 HdBoolDataSourceHandle GetMaterialIsFinal()
const;
115 HdTokenDataSourceHandle GetShadingStyle()
const;
118 HdTokenArrayDataSourceHandle GetReprSelector()
const;
121 HdTokenDataSourceHandle GetCullStyle()
const;
131 static const TfToken &GetSchemaToken();
169 static HdContainerDataSourceHandle
171 const HdIntDataSourceHandle &refineLevel,
172 const HdBoolDataSourceHandle &flatShadingEnabled,
173 const HdBoolDataSourceHandle &displacementEnabled,
174 const HdBoolDataSourceHandle &occludedSelectionShowsThrough,
175 const HdBoolDataSourceHandle &pointsShadingEnabled,
176 const HdBoolDataSourceHandle &materialIsFinal,
177 const HdTokenDataSourceHandle &shadingStyle,
178 const HdTokenArrayDataSourceHandle &reprSelector,
179 const HdTokenDataSourceHandle &cullStyle
193 const HdIntDataSourceHandle &refineLevel);
195 Builder &SetFlatShadingEnabled(
196 const HdBoolDataSourceHandle &flatShadingEnabled);
198 Builder &SetDisplacementEnabled(
199 const HdBoolDataSourceHandle &displacementEnabled);
201 Builder &SetOccludedSelectionShowsThrough(
202 const HdBoolDataSourceHandle &occludedSelectionShowsThrough);
204 Builder &SetPointsShadingEnabled(
205 const HdBoolDataSourceHandle &pointsShadingEnabled);
208 const HdBoolDataSourceHandle &materialIsFinal);
211 const HdTokenDataSourceHandle &shadingStyle);
214 const HdTokenArrayDataSourceHandle &reprSelector);
217 const HdTokenDataSourceHandle &cullStyle);
221 HdContainerDataSourceHandle
Build();
224 HdIntDataSourceHandle _refineLevel;
225 HdBoolDataSourceHandle _flatShadingEnabled;
226 HdBoolDataSourceHandle _displacementEnabled;
227 HdBoolDataSourceHandle _occludedSelectionShowsThrough;
228 HdBoolDataSourceHandle _pointsShadingEnabled;
229 HdBoolDataSourceHandle _materialIsFinal;
230 HdTokenDataSourceHandle _shadingStyle;
231 HdTokenArrayDataSourceHandle _reprSelector;
232 HdTokenDataSourceHandle _cullStyle;
239PXR_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.