Loading...
Searching...
No Matches
surfaceSchema.h
Go to the documentation of this file.
1//
2// Copyright 2026 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
8
9/* ************************************************************************** */
10/* ** ** */
11/* ** This file is generated by a script. ** */
12/* ** ** */
13/* ** Do not edit it directly (unless it is within a CUSTOM CODE section)! ** */
14/* ** Edit hdSchemaDefs.py instead to make changes. ** */
15/* ** ** */
16/* ************************************************************************** */
17
18#ifndef PXR_IMAGING_HD_SURFACE_SCHEMA_H
19#define PXR_IMAGING_HD_SURFACE_SCHEMA_H
20
22
23#include "pxr/imaging/hd/api.h"
24
25#include "pxr/imaging/hd/schema.h"
26
27// --(BEGIN CUSTOM CODE: Includes)--
28// --(END CUSTOM CODE: Includes)--
29
30PXR_NAMESPACE_OPEN_SCOPE
31
32// --(BEGIN CUSTOM CODE: Declares)--
33// --(END CUSTOM CODE: Declares)--
34
35#define HD_SURFACE_SCHEMA_TOKENS \
36 (surface) \
37 (doubleSided) \
38
39TF_DECLARE_PUBLIC_TOKENS(HdSurfaceSchemaTokens, HD_API,
40 HD_SURFACE_SCHEMA_TOKENS);
41
42//-----------------------------------------------------------------------------
43
44
47class HdSurfaceSchema : public HdSchema
48{
49public:
52
53 HdSurfaceSchema(HdContainerDataSourceHandle container)
54 : HdSchema(container) {}
55
61 HD_API
62 static HdSurfaceSchema GetFromParent(
63 const HdContainerDataSourceHandle &fromParentContainer);
64
66
67// --(BEGIN CUSTOM CODE: Schema Methods)--
68// --(END CUSTOM CODE: Schema Methods)--
69
72
73 HD_API
74 HdBoolDataSourceHandle GetDoubleSided() const;
75
77
80
83 HD_API
84 static const TfToken &GetSchemaToken();
85
88 HD_API
89 static const HdDataSourceLocator &GetDefaultLocator();
90
92
101
103 HD_API
104 static const HdDataSourceLocator &GetDoubleSidedLocator();
106
109
117 HD_API
118 static HdContainerDataSourceHandle
119 BuildRetained(
120 const HdBoolDataSourceHandle &doubleSided
121 );
122
129 class Builder
130 {
131 public:
132 HD_API
133 Builder &SetDoubleSided(
134 const HdBoolDataSourceHandle &doubleSided);
135
137 HD_API
138 HdContainerDataSourceHandle Build();
139
140 private:
141 HdBoolDataSourceHandle _doubleSided;
142
143 };
144
146};
147
148PXR_NAMESPACE_CLOSE_SCOPE
149
150#endif
Represents an object that can identify the location of a data source.
Schema classes represent a structured view of the inherently unstructured container data source passe...
Definition schema.h:26
HD_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
Token for efficient comparison, assignment, and hashing of known strings.
Definition token.h:81
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.