Loading...
Searching...
No Matches
capsuleSchema.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_CAPSULE_SCHEMA_H
19#define PXR_IMAGING_HD_CAPSULE_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_CAPSULE_SCHEMA_TOKENS \
36 (capsule) \
37 (height) \
38 (radius) \
39 (radiusTop) \
40 (radiusBottom) \
41 (axis) \
42 (X) \
43 (Y) \
44 (Z) \
45
46TF_DECLARE_PUBLIC_TOKENS(HdCapsuleSchemaTokens, HD_API,
47 HD_CAPSULE_SCHEMA_TOKENS);
48
49//-----------------------------------------------------------------------------
50
51
54class HdCapsuleSchema : public HdSchema
55{
56public:
59
60 HdCapsuleSchema(HdContainerDataSourceHandle container)
61 : HdSchema(container) {}
62
68 HD_API
69 static HdCapsuleSchema GetFromParent(
70 const HdContainerDataSourceHandle &fromParentContainer);
71
73
74// --(BEGIN CUSTOM CODE: Schema Methods)--
75// --(END CUSTOM CODE: Schema Methods)--
76
79
80 HD_API
81 HdDoubleDataSourceHandle GetHeight() const;
82
86 HD_API
87 HdDoubleDataSourceHandle GetRadius() const;
88
89 HD_API
90 HdDoubleDataSourceHandle GetRadiusTop() const;
91
92 HD_API
93 HdDoubleDataSourceHandle GetRadiusBottom() const;
94
95 HD_API
96 HdTokenDataSourceHandle GetAxis() const;
97
99
102
105 HD_API
106 static const TfToken &GetSchemaToken();
107
110 HD_API
111 static const HdDataSourceLocator &GetDefaultLocator();
112
114
117
125 HD_API
126 static HdContainerDataSourceHandle
127 BuildRetained(
128 const HdDoubleDataSourceHandle &height,
129 const HdDoubleDataSourceHandle &radius,
130 const HdDoubleDataSourceHandle &radiusTop,
131 const HdDoubleDataSourceHandle &radiusBottom,
132 const HdTokenDataSourceHandle &axis
133 );
134
142 {
143 public:
144 HD_API
145 Builder &SetHeight(
146 const HdDoubleDataSourceHandle &height);
147 HD_API
148 Builder &SetRadius(
149 const HdDoubleDataSourceHandle &radius);
150 HD_API
151 Builder &SetRadiusTop(
152 const HdDoubleDataSourceHandle &radiusTop);
153 HD_API
154 Builder &SetRadiusBottom(
155 const HdDoubleDataSourceHandle &radiusBottom);
156 HD_API
157 Builder &SetAxis(
158 const HdTokenDataSourceHandle &axis);
159
161 HD_API
162 HdContainerDataSourceHandle Build();
163
164 private:
165 HdDoubleDataSourceHandle _height;
166 HdDoubleDataSourceHandle _radius;
167 HdDoubleDataSourceHandle _radiusTop;
168 HdDoubleDataSourceHandle _radiusBottom;
169 HdTokenDataSourceHandle _axis;
170
171 };
172
180 HD_API
181 static HdTokenDataSourceHandle BuildAxisDataSource(
182 const TfToken &axis);
183
185};
186
187PXR_NAMESPACE_CLOSE_SCOPE
188
189#endif
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.
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
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Definition: staticTokens.h:92