Loading...
Searching...
No Matches
integratorSchema.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_INTEGRATOR_SCHEMA_H
19#define PXR_IMAGING_HD_INTEGRATOR_SCHEMA_H
20
22
23#include "pxr/imaging/hd/api.h"
25
26#include "pxr/imaging/hd/schema.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_INTEGRATOR_SCHEMA_TOKENS \
37 (integrator) \
38 (resource) \
39
40TF_DECLARE_PUBLIC_TOKENS(HdIntegratorSchemaTokens, HD_API,
41 HD_INTEGRATOR_SCHEMA_TOKENS);
42
43//-----------------------------------------------------------------------------
44
45
48class HdIntegratorSchema : public HdSchema
49{
50public:
53
54 HdIntegratorSchema(HdContainerDataSourceHandle container)
55 : HdSchema(container) {}
56
62 HD_API
63 static HdIntegratorSchema GetFromParent(
64 const HdContainerDataSourceHandle &fromParentContainer);
65
67
68// --(BEGIN CUSTOM CODE: Schema Methods)--
69// --(END CUSTOM CODE: Schema Methods)--
70
73
74 HD_API
75 HdMaterialNodeSchema GetResource() const;
76
78
81
84 HD_API
85 static const TfToken &GetSchemaToken();
86
89 HD_API
90 static const HdDataSourceLocator &GetDefaultLocator();
91
93
102
104 HD_API
105 static const HdDataSourceLocator &GetResourceLocator();
107
110
118 HD_API
119 static HdContainerDataSourceHandle
120 BuildRetained(
121 const HdContainerDataSourceHandle &resource
122 );
123
131 {
132 public:
133 HD_API
134 Builder &SetResource(
135 const HdContainerDataSourceHandle &resource);
136
138 HD_API
139 HdContainerDataSourceHandle Build();
140
141 private:
142 HdContainerDataSourceHandle _resource;
143
144 };
145
147};
148
149PXR_NAMESPACE_CLOSE_SCOPE
150
151#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...
HD_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
The MaterialNode schema is a container schema that defines a particular node in a material network.
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