Loading...
Searching...
No Matches
dataSourceRenderPrims.h
1//
2// Copyright 2023 Pixar
3//
4// Licensed under the Apache License, Version 2.0 (the "Apache License")
5// with the following modification; you may not use this file except in
6// compliance with the Apache License and the following modification to it:
7// Section 6. Trademarks. is deleted and replaced with:
8//
9// 6. Trademarks. This License does not grant permission to use the trade
10// names, trademarks, service marks, or product names of the Licensor
11// and its affiliates, except as required to comply with Section 4(c) of
12// the License and to reproduce the content of the NOTICE file.
13//
14// You may obtain a copy of the Apache License at
15//
16// http://www.apache.org/licenses/LICENSE-2.0
17//
18// Unless required by applicable law or agreed to in writing, software
19// distributed under the Apache License with the above modification is
20// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21// KIND, either express or implied. See the Apache License for the specific
22// language governing permissions and limitations under the Apache License.
23//
24
25#ifndef PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_RENDER_PRIMS_H
26#define PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_RENDER_PRIMS_H
27
28#include "pxr/usdImaging/usdImaging/dataSourcePrim.h"
29#include "pxr/usdImaging/usdImaging/dataSourceStageGlobals.h"
30
31#include "pxr/imaging/hd/dataSource.h"
32
33
34PXR_NAMESPACE_OPEN_SCOPE
35
41{
42public:
43 HD_DECLARE_DATASOURCE(UsdImagingDataSourceRenderPassPrim);
44
45 USDIMAGING_API
47
48 USDIMAGING_API
49 HdDataSourceBaseHandle Get(const TfToken &name) override;
50
51 USDIMAGING_API
52 static
54 Invalidate(
55 UsdPrim const& prim,
56 const TfToken &subprim,
57 const TfTokenVector &properties,
58 UsdImagingPropertyInvalidationType invalidationType);
59
60private:
61 // Private constructor, use static New() instead.
63 const SdfPath &sceneIndexPath,
64 UsdPrim usdPrim,
65 const UsdImagingDataSourceStageGlobals &stageGlobals);
66};
67
68HD_DECLARE_DATASOURCE_HANDLES(UsdImagingDataSourceRenderPassPrim);
69
70
76{
77public:
78 HD_DECLARE_DATASOURCE(UsdImagingDataSourceRenderSettingsPrim);
79
80 USDIMAGING_API
82
83 USDIMAGING_API
84 HdDataSourceBaseHandle Get(const TfToken &name) override;
85
86 USDIMAGING_API
87 static
89 Invalidate(
90 UsdPrim const& prim,
91 const TfToken &subprim,
92 const TfTokenVector &properties,
93 UsdImagingPropertyInvalidationType invalidationType);
94
95private:
96 // Private constructor, use static New() instead.
98 const SdfPath &sceneIndexPath,
99 UsdPrim usdPrim,
100 const UsdImagingDataSourceStageGlobals &stageGlobals);
101};
102
103HD_DECLARE_DATASOURCE_HANDLES(UsdImagingDataSourceRenderSettingsPrim);
104
105
111{
112public:
113 HD_DECLARE_DATASOURCE(UsdImagingDataSourceRenderProductPrim);
114
115 USDIMAGING_API
117
118 USDIMAGING_API
119 HdDataSourceBaseHandle Get(const TfToken &name) override;
120
121 USDIMAGING_API
122 static
124 Invalidate(
125 UsdPrim const& prim,
126 const TfToken &subprim,
127 const TfTokenVector &properties,
128 UsdImagingPropertyInvalidationType invalidationType);
129
130private:
131 // Private constructor, use static New() instead.
133 const SdfPath &sceneIndexPath,
134 UsdPrim usdPrim,
135 const UsdImagingDataSourceStageGlobals &stageGlobals);
136};
137
138HD_DECLARE_DATASOURCE_HANDLES(UsdImagingDataSourceRenderProductPrim);
139
140
146{
147public:
148 HD_DECLARE_DATASOURCE(UsdImagingDataSourceRenderVarPrim);
149
150 USDIMAGING_API
152
153 USDIMAGING_API
154 HdDataSourceBaseHandle Get(const TfToken &name) override;
155
156 USDIMAGING_API
157 static
159 Invalidate(
160 UsdPrim const& prim,
161 const TfToken &subprim,
162 const TfTokenVector &properties,
163 UsdImagingPropertyInvalidationType invalidationType);
164
165private:
166
167 // Private constructor, use static New() instead.
169 const SdfPath &sceneIndexPath,
170 UsdPrim usdPrim,
171 const UsdImagingDataSourceStageGlobals &stageGlobals);
172};
173
174HD_DECLARE_DATASOURCE_HANDLES(UsdImagingDataSourceRenderVarPrim);
175
176PXR_NAMESPACE_CLOSE_SCOPE
177
178#endif // PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_RENDER_PRIMS_H
Represents a set of data source locators closed under descendancy.
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:290
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:88
Data source representing a basic USD prim.
A prim data source representing UsdRenderPass.
USDIMAGING_API TfTokenVector GetNames() override
Returns the names for which this data source can return meaningful results.
USDIMAGING_API HdDataSourceBaseHandle Get(const TfToken &name) override
Returns the data source representing name, if valid.
A prim data source representing UsdRenderProduct.
USDIMAGING_API TfTokenVector GetNames() override
Returns the names for which this data source can return meaningful results.
USDIMAGING_API HdDataSourceBaseHandle Get(const TfToken &name) override
Returns the data source representing name, if valid.
A prim data source representing UsdRenderSettings.
USDIMAGING_API TfTokenVector GetNames() override
Returns the names for which this data source can return meaningful results.
USDIMAGING_API HdDataSourceBaseHandle Get(const TfToken &name) override
Returns the data source representing name, if valid.
A prim data source representing UsdRenderVar.
USDIMAGING_API TfTokenVector GetNames() override
Returns the names for which this data source can return meaningful results.
USDIMAGING_API HdDataSourceBaseHandle Get(const TfToken &name) override
Returns the data source representing name, if valid.
This class is used as a context object with global stage information, that gets passed down to dataso...
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
Definition: prim.h:134
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:457