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
52class HdSplitDiopterSchema : public HdSchema
53{
54public:
57
58 HdSplitDiopterSchema(HdContainerDataSourceHandle container)
59 : HdSchema(container) {}
60
66 HD_API
67 static HdSplitDiopterSchema GetFromParent(
68 const HdContainerDataSourceHandle &fromParentContainer);
69
71
72// --(BEGIN CUSTOM CODE: Schema Methods)--
73// --(END CUSTOM CODE: Schema Methods)--
74
77
78 HD_API
79 HdIntDataSourceHandle GetCount() const;
80
81 HD_API
82 HdFloatDataSourceHandle GetAngle() const;
83
84 HD_API
85 HdFloatDataSourceHandle GetOffset1() const;
86
87 HD_API
88 HdFloatDataSourceHandle GetWidth1() const;
89
90 HD_API
91 HdFloatDataSourceHandle GetFocusDistance1() const;
92
93 HD_API
94 HdFloatDataSourceHandle GetOffset2() const;
95
96 HD_API
97 HdFloatDataSourceHandle GetWidth2() const;
98
99 HD_API
100 HdFloatDataSourceHandle GetFocusDistance2() const;
101
103
106
109 HD_API
110 static const TfToken &GetSchemaToken();
111
114 HD_API
115 static const HdDataSourceLocator &GetDefaultLocator();
116
118
121
129 HD_API
130 static HdContainerDataSourceHandle
131 BuildRetained(
132 const HdIntDataSourceHandle &count,
133 const HdFloatDataSourceHandle &angle,
134 const HdFloatDataSourceHandle &offset1,
135 const HdFloatDataSourceHandle &width1,
136 const HdFloatDataSourceHandle &focusDistance1,
137 const HdFloatDataSourceHandle &offset2,
138 const HdFloatDataSourceHandle &width2,
139 const HdFloatDataSourceHandle &focusDistance2
140 );
141
149 {
150 public:
151 HD_API
152 Builder &SetCount(
153 const HdIntDataSourceHandle &count);
154 HD_API
155 Builder &SetAngle(
156 const HdFloatDataSourceHandle &angle);
157 HD_API
158 Builder &SetOffset1(
159 const HdFloatDataSourceHandle &offset1);
160 HD_API
161 Builder &SetWidth1(
162 const HdFloatDataSourceHandle &width1);
163 HD_API
164 Builder &SetFocusDistance1(
165 const HdFloatDataSourceHandle &focusDistance1);
166 HD_API
167 Builder &SetOffset2(
168 const HdFloatDataSourceHandle &offset2);
169 HD_API
170 Builder &SetWidth2(
171 const HdFloatDataSourceHandle &width2);
172 HD_API
173 Builder &SetFocusDistance2(
174 const HdFloatDataSourceHandle &focusDistance2);
175
177 HD_API
178 HdContainerDataSourceHandle Build();
179
180 private:
181 HdIntDataSourceHandle _count;
182 HdFloatDataSourceHandle _angle;
183 HdFloatDataSourceHandle _offset1;
184 HdFloatDataSourceHandle _width1;
185 HdFloatDataSourceHandle _focusDistance1;
186 HdFloatDataSourceHandle _offset2;
187 HdFloatDataSourceHandle _width2;
188 HdFloatDataSourceHandle _focusDistance2;
189
190 };
191
193};
194
195PXR_NAMESPACE_CLOSE_SCOPE
196
197#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:81