Loading...
Searching...
No Matches
rileyParamSchema.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_PARAM_SCHEMA_H
19#define EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_RILEY_PARAM_SCHEMA_H
20
22
23#include "hdPrman/api.h"
24
25#include "pxr/imaging/hd/schema.h"
26#include "pxr/imaging/hd/version.h"
27
28// --(BEGIN CUSTOM CODE: Includes)--
29// --(END CUSTOM CODE: Includes)--
30
31PXR_NAMESPACE_OPEN_SCOPE
32
33// --(BEGIN CUSTOM CODE: Declares)--
34// --(END CUSTOM CODE: Declares)--
35
36#define HD_PRMAN_RILEY_PARAM_SCHEMA_TOKENS \
37 (value) \
38 (role) \
39
40TF_DECLARE_PUBLIC_TOKENS(HdPrmanRileyParamSchemaTokens, HDPRMAN_API,
41 HD_PRMAN_RILEY_PARAM_SCHEMA_TOKENS);
42
43//-----------------------------------------------------------------------------
44
45
46class HdPrmanRileyParamSchema : public HdSchema
47{
48public:
51
52 HdPrmanRileyParamSchema(HdContainerDataSourceHandle container)
53 : HdSchema(container) {}
54
56
57// --(BEGIN CUSTOM CODE: Schema Methods)--
58// --(END CUSTOM CODE: Schema Methods)--
59
62
63 HDPRMAN_API
64 HdSampledDataSourceHandle GetValue()
65#if HD_API_VERSION >= 66
66 const;
67#else
68 ;
69#endif
70
71
74 HDPRMAN_API
75 HdTokenDataSourceHandle GetRole()
76#if HD_API_VERSION >= 66
77 const;
78#else
79 ;
80#endif
81
82
84
87
95 HDPRMAN_API
96 static HdContainerDataSourceHandle
97 BuildRetained(
98 const HdSampledDataSourceHandle &value,
99 const HdTokenDataSourceHandle &role
100 );
101
109 {
110 public:
111 HDPRMAN_API
112 Builder &SetValue(
113 const HdSampledDataSourceHandle &value);
114 HDPRMAN_API
115 Builder &SetRole(
116 const HdTokenDataSourceHandle &role);
117
119 HDPRMAN_API
120 HdContainerDataSourceHandle Build();
121
122 private:
123 HdSampledDataSourceHandle _value;
124 HdTokenDataSourceHandle _role;
125
126 };
127
129};
130
131PXR_NAMESPACE_CLOSE_SCOPE
132
133#endif
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 classes represent a structured view of the inherently unstructured container data source passe...
Definition: schema.h:26
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Definition: staticTokens.h:92