Loading...
Searching...
No Matches
splitDiopterSchema.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_SPLIT_DIOPTER_SCHEMA_H
19#define PXR_IMAGING_HD_SPLIT_DIOPTER_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_SPLIT_DIOPTER_SCHEMA_TOKENS \
36 (splitDiopter) \
37 (count) \
38 (angle) \
39 (offset1) \
40 (width1) \
41 (focusDistance1) \
42 (offset2) \
43 (width2) \
44 (focusDistance2) \
45
46TF_DECLARE_PUBLIC_TOKENS(HdSplitDiopterSchemaTokens, HD_API,
47 HD_SPLIT_DIOPTER_SCHEMA_TOKENS);
48
49//-----------------------------------------------------------------------------
50
51
54class HdSplitDiopterSchema : public HdSchema
55{
56public:
59
60 HdSplitDiopterSchema(HdContainerDataSourceHandle container)
61 : HdSchema(container) {}
62
68 HD_API
69 static HdSplitDiopterSchema 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 HdIntDataSourceHandle GetCount() const;
82
83 HD_API
84 HdFloatDataSourceHandle GetAngle() const;
85
86 HD_API
87 HdFloatDataSourceHandle GetOffset1() const;
88
89 HD_API
90 HdFloatDataSourceHandle GetWidth1() const;
91
92 HD_API
93 HdFloatDataSourceHandle GetFocusDistance1() const;
94
95 HD_API
96 HdFloatDataSourceHandle GetOffset2() const;
97
98 HD_API
99 HdFloatDataSourceHandle GetWidth2() const;
100
101 HD_API
102 HdFloatDataSourceHandle GetFocusDistance2() const;
103
105
108
111 HD_API
112 static const TfToken &GetSchemaToken();
113
116 HD_API
117 static const HdDataSourceLocator &GetDefaultLocator();
118
120
123
131 HD_API
132 static HdContainerDataSourceHandle
133 BuildRetained(
134 const HdIntDataSourceHandle &count,
135 const HdFloatDataSourceHandle &angle,
136 const HdFloatDataSourceHandle &offset1,
137 const HdFloatDataSourceHandle &width1,
138 const HdFloatDataSourceHandle &focusDistance1,
139 const HdFloatDataSourceHandle &offset2,
140 const HdFloatDataSourceHandle &width2,
141 const HdFloatDataSourceHandle &focusDistance2
142 );
143
151 {
152 public:
153 HD_API
154 Builder &SetCount(
155 const HdIntDataSourceHandle &count);
156 HD_API
157 Builder &SetAngle(
158 const HdFloatDataSourceHandle &angle);
159 HD_API
160 Builder &SetOffset1(
161 const HdFloatDataSourceHandle &offset1);
162 HD_API
163 Builder &SetWidth1(
164 const HdFloatDataSourceHandle &width1);
165 HD_API
166 Builder &SetFocusDistance1(
167 const HdFloatDataSourceHandle &focusDistance1);
168 HD_API
169 Builder &SetOffset2(
170 const HdFloatDataSourceHandle &offset2);
171 HD_API
172 Builder &SetWidth2(
173 const HdFloatDataSourceHandle &width2);
174 HD_API
175 Builder &SetFocusDistance2(
176 const HdFloatDataSourceHandle &focusDistance2);
177
179 HD_API
180 HdContainerDataSourceHandle Build();
181
182 private:
183 HdIntDataSourceHandle _count;
184 HdFloatDataSourceHandle _angle;
185 HdFloatDataSourceHandle _offset1;
186 HdFloatDataSourceHandle _width1;
187 HdFloatDataSourceHandle _focusDistance1;
188 HdFloatDataSourceHandle _offset2;
189 HdFloatDataSourceHandle _width2;
190 HdFloatDataSourceHandle _focusDistance2;
191
192 };
193
195};
196
197PXR_NAMESPACE_CLOSE_SCOPE
198
199#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
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.
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