Loading...
Searching...
No Matches
planeSchema.h
Go to the documentation of this file.
1//
2// Copyright 2023 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_PLANE_SCHEMA_H
19#define PXR_IMAGING_HD_PLANE_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_PLANE_SCHEMA_TOKENS \
36 (plane) \
37 (doubleSided) \
38 (axis) \
39 (length) \
40 (width) \
41 (X) \
42 (Y) \
43 (Z) \
44
45TF_DECLARE_PUBLIC_TOKENS(HdPlaneSchemaTokens, HD_API,
46 HD_PLANE_SCHEMA_TOKENS);
47
48//-----------------------------------------------------------------------------
49
50
53class HdPlaneSchema : public HdSchema
54{
55public:
58
59 HdPlaneSchema(HdContainerDataSourceHandle container)
60 : HdSchema(container) {}
61
67 HD_API
68 static HdPlaneSchema GetFromParent(
69 const HdContainerDataSourceHandle &fromParentContainer);
70
72
73// --(BEGIN CUSTOM CODE: Schema Methods)--
74// --(END CUSTOM CODE: Schema Methods)--
75
78
80 HD_API
81 HdBoolDataSourceHandle GetDoubleSided() const;
82
83 HD_API
84 HdTokenDataSourceHandle GetAxis() const;
85
86 HD_API
87 HdDoubleDataSourceHandle GetLength() const;
88
89 HD_API
90 HdDoubleDataSourceHandle GetWidth() const;
91
93
96
99 HD_API
100 static const TfToken &GetSchemaToken();
101
104 HD_API
105 static const HdDataSourceLocator &GetDefaultLocator();
106
108
111
119 HD_API
120 static HdContainerDataSourceHandle
121 BuildRetained(
122 const HdBoolDataSourceHandle &doubleSided,
123 const HdTokenDataSourceHandle &axis,
124 const HdDoubleDataSourceHandle &length,
125 const HdDoubleDataSourceHandle &width
126 );
127
134 class Builder
135 {
136 public:
137 HD_API
138 Builder &SetDoubleSided(
139 const HdBoolDataSourceHandle &doubleSided);
140 HD_API
141 Builder &SetAxis(
142 const HdTokenDataSourceHandle &axis);
143 HD_API
144 Builder &SetLength(
145 const HdDoubleDataSourceHandle &length);
146 HD_API
147 Builder &SetWidth(
148 const HdDoubleDataSourceHandle &width);
149
151 HD_API
152 HdContainerDataSourceHandle Build();
153
154 private:
155 HdBoolDataSourceHandle _doubleSided;
156 HdTokenDataSourceHandle _axis;
157 HdDoubleDataSourceHandle _length;
158 HdDoubleDataSourceHandle _width;
159
160 };
161
169 HD_API
170 static HdTokenDataSourceHandle BuildAxisDataSource(
171 const TfToken &axis);
172
174};
175
176PXR_NAMESPACE_CLOSE_SCOPE
177
178#endif
Represents an object that can identify the location of a data source.
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...
Definition schema.h:26
Token for efficient comparison, assignment, and hashing of known strings.
Definition token.h:81
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.