Loading...
Searching...
No Matches
representedByAncestorPrimAdapter.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_IMAGING_REPRESENTED_BY_ANCESTOR_PRIM_ADAPTER_H
8#define PXR_USD_IMAGING_USD_IMAGING_REPRESENTED_BY_ANCESTOR_PRIM_ADAPTER_H
9
11
13
14PXR_NAMESPACE_OPEN_SCOPE
15
25{
26public:
27
29
32 {}
33
34 // ---------------------------------------------------------------------- //
36 // ---------------------------------------------------------------------- //
37
38 TfTokenVector GetImagingSubprims(UsdPrim const& prim) override;
40
41 // ---------------------------------------------------------------------- //
43 // ---------------------------------------------------------------------- //
44
46 UsdPrim const& prim,
49 instancerContext = nullptr) override;
50
52 UsdPrim const& prim,
53 SdfPath const& cachePath,
54 HdDirtyBits* timeVaryingBits,
55 UsdImagingInstancerContext const* instancerContext = nullptr)
56 const override
57 {}
58
60 UsdPrim const& prim,
61 SdfPath const& cachePath,
62 UsdTimeCode time,
63 HdDirtyBits requestedBits,
64 UsdImagingInstancerContext const* instancerContext = nullptr)
65 const override
66 {}
67
69 UsdPrim const& prim,
70 SdfPath const& cachePath,
71 TfToken const& propertyName) override;
72
73 void MarkDirty(
74 UsdPrim const& prim,
75 SdfPath const& cachePath,
76 HdDirtyBits dirty,
77 UsdImagingIndexProxy* index) override
78 {}
79
80protected:
81 void _RemovePrim(
82 SdfPath const& cachePath,
83 UsdImagingIndexProxy* index) override
84 {}
85
86};
87
88PXR_NAMESPACE_CLOSE_SCOPE
89
90#endif // PXR_USD_IMAGING_USD_IMAGING_REPRESENTED_BY_ANCESTOR_PRIM_ADAPTER_H
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 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
Base class for all prim adapters which only want to indicate that an ancestor prim is responsible for...
PopulationMode GetPopulationMode() override
Returns the prim's behavior with regard to population and invalidation.
void UpdateForTime(UsdPrim const &prim, SdfPath const &cachePath, UsdTimeCode time, HdDirtyBits requestedBits, UsdImagingInstancerContext const *instancerContext=nullptr) const override
Populates the cache for the given prim, time and requestedBits.
void TrackVariability(UsdPrim const &prim, SdfPath const &cachePath, HdDirtyBits *timeVaryingBits, UsdImagingInstancerContext const *instancerContext=nullptr) const override
For the given prim, variability is detected and stored in timeVaryingBits.
HdDirtyBits ProcessPropertyChange(UsdPrim const &prim, SdfPath const &cachePath, TfToken const &propertyName) override
Returns a bit mask of attributes to be updated, or HdChangeTracker::AllDirty if the entire prim must ...
SdfPath Populate(UsdPrim const &prim, UsdImagingIndexProxy *index, UsdImagingInstancerContext const *instancerContext=nullptr) override
Called to populate the RenderIndex for this UsdPrim.
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
Definition: prim.h:117
Represent a time value, which may be either numeric, holding a double value, or a sentinel value UsdT...
Definition: timeCode.h:72
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