Loading...
Searching...
No Matches
pxrDisplayFilterAdapter.h
Go to the documentation of this file.
1//
2// Copyright 2022 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_USD_IMAGING_USD_RI_PXR_IMAGING_PXR_DISPLAY_FILTER_ADAPTER_H
8#define PXR_USD_IMAGING_USD_RI_PXR_IMAGING_PXR_DISPLAY_FILTER_ADAPTER_H
9
11
12#include "pxr/pxr.h"
13#include "pxr/usdImaging/usdRiPxrImaging/api.h"
15
16PXR_NAMESPACE_OPEN_SCOPE
17
18
24{
25public:
27
30 {}
31
32 USDRIPXRIMAGING_API
34
35 // ---------------------------------------------------------------------- //
37 // ---------------------------------------------------------------------- //
38
39 USDRIPXRIMAGING_API
40 TfTokenVector GetImagingSubprims(UsdPrim const& prim) override;
41
42 USDRIPXRIMAGING_API
43 TfToken GetImagingSubprimType(
44 UsdPrim const& prim,
45 TfToken const& subprim) override;
46
47 USDRIPXRIMAGING_API
48 HdContainerDataSourceHandle GetImagingSubprimData(
49 UsdPrim const& prim,
50 TfToken const& subprim,
51 const UsdImagingDataSourceStageGlobals &stageGlobals) override;
52
53 USDRIPXRIMAGING_API
54 HdDataSourceLocatorSet InvalidateImagingSubprim(
55 UsdPrim const& prim,
56 TfToken const& subprim,
57 TfTokenVector const& properties,
58 UsdImagingPropertyInvalidationType invalidationType) override;
59
60 // ---------------------------------------------------------------------- //
62 // ---------------------------------------------------------------------- //
63
64 USDRIPXRIMAGING_API
68 instancerContext = nullptr) override;
69
70 USDRIPXRIMAGING_API
71 bool IsSupported(UsdImagingIndexProxy const* index) const override;
72
73 // ---------------------------------------------------------------------- //
75 // ---------------------------------------------------------------------- //
76
78 USDRIPXRIMAGING_API
79 void TrackVariability(UsdPrim const& prim,
80 SdfPath const& cachePath,
81 HdDirtyBits* timeVaryingBits,
83 instancerContext = nullptr) const override;
84
85
87 USDRIPXRIMAGING_API
88 void UpdateForTime(UsdPrim const& prim,
89 SdfPath const& cachePath,
90 UsdTimeCode time,
91 HdDirtyBits requestedBits,
93 instancerContext = nullptr) const override;
94
95 // ---------------------------------------------------------------------- //
97 // ---------------------------------------------------------------------- //
98
101 USDRIPXRIMAGING_API
102 HdDirtyBits ProcessPropertyChange(UsdPrim const& prim,
103 SdfPath const& cachePath,
104 TfToken const& propertyName) override;
105
106 USDRIPXRIMAGING_API
107 void MarkDirty(UsdPrim const& prim,
108 SdfPath const& cachePath,
109 HdDirtyBits dirty,
110 UsdImagingIndexProxy* index) override;
111
112 // ---------------------------------------------------------------------- //
114 // ---------------------------------------------------------------------- //
115
116 USDRIPXRIMAGING_API
117 VtValue Get(UsdPrim const& prim,
118 SdfPath const& cachePath,
119 TfToken const& key,
120 UsdTimeCode time,
121 VtIntArray *outIndices) const override;
122
123protected:
124 USDRIPXRIMAGING_API
125 void _RemovePrim(SdfPath const& cachePath,
126 UsdImagingIndexProxy* index) override;
127
128};
129
130
131PXR_NAMESPACE_CLOSE_SCOPE
132
133#endif // PXR_USD_IMAGING_USD_RI_PXR_IMAGING_PXR_DISPLAY_FILTER_ADAPTER_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
This class is used as a context object with global stage information, that gets passed down to dataso...
This proxy class exposes a subset of the private Delegate API to PrimAdapters.
Definition: indexProxy.h:30
Base class for all PrimAdapters.
Definition: primAdapter.h:54
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
Definition: prim.h:117
Delegate support for Display Filter Prims.
USDRIPXRIMAGING_API bool IsSupported(UsdImagingIndexProxy const *index) const override
Returns true if the adapter can be populated into the target index.
USDRIPXRIMAGING_API void TrackVariability(UsdPrim const &prim, SdfPath const &cachePath, HdDirtyBits *timeVaryingBits, UsdImagingInstancerContext const *instancerContext=nullptr) const override
Thread Safe.
USDRIPXRIMAGING_API HdDirtyBits ProcessPropertyChange(UsdPrim const &prim, SdfPath const &cachePath, TfToken const &propertyName) override
Returns a bit mask of attributes to be udpated, or HdChangeTracker::AllDirty if the entire prim must ...
USDRIPXRIMAGING_API VtValue Get(UsdPrim const &prim, SdfPath const &cachePath, TfToken const &key, UsdTimeCode time, VtIntArray *outIndices) const override
Gets the value of the parameter named key for the given prim (which has the given cache path) and giv...
USDRIPXRIMAGING_API void UpdateForTime(UsdPrim const &prim, SdfPath const &cachePath, UsdTimeCode time, HdDirtyBits requestedBits, UsdImagingInstancerContext const *instancerContext=nullptr) const override
Thread Safe.
USDRIPXRIMAGING_API SdfPath Populate(UsdPrim const &prim, UsdImagingIndexProxy *index, UsdImagingInstancerContext const *instancerContext=nullptr) override
Called to populate the RenderIndex for this UsdPrim.
Represent a time value, which may be either numeric, holding a double value, or a sentinel value UsdT...
Definition: timeCode.h:72
Provides a container which may hold any type, and provides introspection and iteration over array typ...
Definition: value.h:90
Object used by instancer prim adapters to pass along context about the instancer and instance prim to...
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440