Loading...
Searching...
No Matches
rileyCameraSchema.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 EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_RILEY_CAMERA_SCHEMA_H
19#define EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_RILEY_CAMERA_SCHEMA_H
20
22
23#include "hdPrman/api.h"
26
27#include "pxr/imaging/hd/schema.h"
28#include "pxr/imaging/hd/version.h"
29
30// --(BEGIN CUSTOM CODE: Includes)--
31// --(END CUSTOM CODE: Includes)--
32
33PXR_NAMESPACE_OPEN_SCOPE
34
35// --(BEGIN CUSTOM CODE: Declares)--
36// --(END CUSTOM CODE: Declares)--
37
38#define HD_PRMAN_RILEY_CAMERA_SCHEMA_TOKENS \
39 (rileyCamera) \
40 (name) \
41 (projection) \
42 (xform) \
43 (properties) \
44 (nearClip) \
45 (farClip) \
46 (focusregion) \
47 (dofaspect) \
48 (apertureNSides) \
49 (apertureAngle) \
50 (apertureRoundness) \
51 (apertureDensity) \
52 (shutterOpenTime) \
53 (shutterCloseTime) \
54 (shutteropening) \
55
56TF_DECLARE_PUBLIC_TOKENS(HdPrmanRileyCameraSchemaTokens, HDPRMAN_API,
57 HD_PRMAN_RILEY_CAMERA_SCHEMA_TOKENS);
58
59//-----------------------------------------------------------------------------
60
61
62class HdPrmanRileyCameraSchema : public HdSchema
63{
64public:
67
68 HdPrmanRileyCameraSchema(HdContainerDataSourceHandle container)
69 : HdSchema(container) {}
70
76 HDPRMAN_API
77 static HdPrmanRileyCameraSchema GetFromParent(
78 const HdContainerDataSourceHandle &fromParentContainer);
79
81
82// --(BEGIN CUSTOM CODE: Schema Methods)--
83// --(END CUSTOM CODE: Schema Methods)--
84
87
88 HDPRMAN_API
89 HdTokenDataSourceHandle GetName()
90#if HD_API_VERSION >= 66
91 const;
92#else
93 ;
94#endif
95
96
97 HDPRMAN_API
98 HdPrmanRileyShadingNodeSchema GetProjection()
99#if HD_API_VERSION >= 66
100 const;
101#else
102 ;
103#endif
104
105
106 HDPRMAN_API
107 HdMatrixDataSourceHandle GetXform()
108#if HD_API_VERSION >= 66
109 const;
110#else
111 ;
112#endif
113
114
115 HDPRMAN_API
116 HdPrmanRileyParamListSchema GetProperties()
117#if HD_API_VERSION >= 66
118 const;
119#else
120 ;
121#endif
122
123
125
128
131 HDPRMAN_API
132 static const TfToken &GetSchemaToken();
133
136 HDPRMAN_API
137 static const HdDataSourceLocator &GetDefaultLocator();
138
140
149
151 HDPRMAN_API
152 static const HdDataSourceLocator &GetNameLocator();
153
155 HDPRMAN_API
156 static const HdDataSourceLocator &GetProjectionLocator();
157
159 HDPRMAN_API
160 static const HdDataSourceLocator &GetXformLocator();
161
163 HDPRMAN_API
164 static const HdDataSourceLocator &GetPropertiesLocator();
166
169
177 HDPRMAN_API
178 static HdContainerDataSourceHandle
179 BuildRetained(
180 const HdTokenDataSourceHandle &name,
181 const HdContainerDataSourceHandle &projection,
182 const HdMatrixDataSourceHandle &xform,
183 const HdContainerDataSourceHandle &properties
184 );
185
193 {
194 public:
195 HDPRMAN_API
196 Builder &SetName(
197 const HdTokenDataSourceHandle &name);
198 HDPRMAN_API
199 Builder &SetProjection(
200 const HdContainerDataSourceHandle &projection);
201 HDPRMAN_API
202 Builder &SetXform(
203 const HdMatrixDataSourceHandle &xform);
204 HDPRMAN_API
205 Builder &SetProperties(
206 const HdContainerDataSourceHandle &properties);
207
209 HDPRMAN_API
210 HdContainerDataSourceHandle Build();
211
212 private:
213 HdTokenDataSourceHandle _name;
214 HdContainerDataSourceHandle _projection;
215 HdMatrixDataSourceHandle _xform;
216 HdContainerDataSourceHandle _properties;
217
218 };
219
221};
222
223PXR_NAMESPACE_CLOSE_SCOPE
224
225#endif
Represents an object that can identify the location of a data source.
Utility class for setting sparse sets of child data source fields to be filled as arguments into Buil...
HDPRMAN_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
Schema to describe RtParamList.
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