Loading...
Searching...
No Matches
dataSourceRenderPrims.h
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//
7
8#ifndef PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_RENDER_PRIMS_H
9#define PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_RENDER_PRIMS_H
10
11#include "pxr/usdImaging/usdImaging/dataSourcePrim.h"
12#include "pxr/usdImaging/usdImaging/dataSourceStageGlobals.h"
13
14#include "pxr/imaging/hd/dataSource.h"
15
16
17PXR_NAMESPACE_OPEN_SCOPE
18
24{
25public:
26 HD_DECLARE_DATASOURCE(UsdImagingDataSourceRenderPassPrim);
27
28 USDIMAGING_API
30
31 USDIMAGING_API
32 HdDataSourceBaseHandle Get(const TfToken &name) override;
33
34 USDIMAGING_API
35 static
37 Invalidate(
38 UsdPrim const& prim,
39 const TfToken &subprim,
40 const TfTokenVector &properties,
41 UsdImagingPropertyInvalidationType invalidationType);
42
43private:
44 // Private constructor, use static New() instead.
46 const SdfPath &sceneIndexPath,
47 UsdPrim usdPrim,
48 const UsdImagingDataSourceStageGlobals &stageGlobals);
49};
50
51HD_DECLARE_DATASOURCE_HANDLES(UsdImagingDataSourceRenderPassPrim);
52
53
59{
60public:
61 HD_DECLARE_DATASOURCE(UsdImagingDataSourceRenderSettingsPrim);
62
63 USDIMAGING_API
65
66 USDIMAGING_API
67 HdDataSourceBaseHandle Get(const TfToken &name) override;
68
69 USDIMAGING_API
70 static
72 Invalidate(
73 UsdPrim const& prim,
74 const TfToken &subprim,
75 const TfTokenVector &properties,
76 UsdImagingPropertyInvalidationType invalidationType);
77
78private:
79 // Private constructor, use static New() instead.
81 const SdfPath &sceneIndexPath,
82 UsdPrim usdPrim,
83 const UsdImagingDataSourceStageGlobals &stageGlobals);
84};
85
86HD_DECLARE_DATASOURCE_HANDLES(UsdImagingDataSourceRenderSettingsPrim);
87
88
94{
95public:
96 HD_DECLARE_DATASOURCE(UsdImagingDataSourceRenderProductPrim);
97
98 USDIMAGING_API
100
101 USDIMAGING_API
102 HdDataSourceBaseHandle Get(const TfToken &name) override;
103
104 USDIMAGING_API
105 static
107 Invalidate(
108 UsdPrim const& prim,
109 const TfToken &subprim,
110 const TfTokenVector &properties,
111 UsdImagingPropertyInvalidationType invalidationType);
112
113private:
114 // Private constructor, use static New() instead.
116 const SdfPath &sceneIndexPath,
117 UsdPrim usdPrim,
118 const UsdImagingDataSourceStageGlobals &stageGlobals);
119};
120
121HD_DECLARE_DATASOURCE_HANDLES(UsdImagingDataSourceRenderProductPrim);
122
123
129{
130public:
131 HD_DECLARE_DATASOURCE(UsdImagingDataSourceRenderVarPrim);
132
133 USDIMAGING_API
135
136 USDIMAGING_API
137 HdDataSourceBaseHandle Get(const TfToken &name) override;
138
139 USDIMAGING_API
140 static
142 Invalidate(
143 UsdPrim const& prim,
144 const TfToken &subprim,
145 const TfTokenVector &properties,
146 UsdImagingPropertyInvalidationType invalidationType);
147
148private:
149
150 // Private constructor, use static New() instead.
152 const SdfPath &sceneIndexPath,
153 UsdPrim usdPrim,
154 const UsdImagingDataSourceStageGlobals &stageGlobals);
155};
156
157HD_DECLARE_DATASOURCE_HANDLES(UsdImagingDataSourceRenderVarPrim);
158
159PXR_NAMESPACE_CLOSE_SCOPE
160
161#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:274
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71
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:117
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440