HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
10 /// \file usdImaging/representedByAncestorPrimAdapter.h
11 
13 
15 
16 /// \class UsdImagingRepresentedByAncestorPrimAdapter
17 ///
18 /// Base class for all prim adapters which only want to indicate that an
19 /// ancestor prim is responsible for them.
20 ///
21 /// Because Hydra 1.0 prim adapter methods are still present, their pure
22 /// virtuals must be implemented here (even if they will won't be called).
23 ///
25 {
26 public:
27 
29 
32  {}
33 
34  // ---------------------------------------------------------------------- //
35  /// \name Scene Index Support
36  // ---------------------------------------------------------------------- //
37 
38  TfTokenVector GetImagingSubprims(UsdPrim const& prim) override;
40 
41  // ---------------------------------------------------------------------- //
42  /// \name Overrides for Pure Virtual Legacy Methods
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,
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 
80 protected:
82  SdfPath const& cachePath,
83  UsdImagingIndexProxy* index) override
84  {}
85 
86 };
87 
89 
90 #endif // PXR_USD_IMAGING_USD_IMAGING_REPRESENTED_BY_ANCESTOR_PRIM_ADAPTER_H
void TrackVariability(UsdPrim const &prim, SdfPath const &cachePath, HdDirtyBits *timeVaryingBits, UsdImagingInstancerContext const *instancerContext=nullptr) const override
SdfPath Populate(UsdPrim const &prim, UsdImagingIndexProxy *index, UsdImagingInstancerContext const *instancerContext=nullptr) override
void UpdateForTime(UsdPrim const &prim, SdfPath const &cachePath, UsdTimeCode time, HdDirtyBits requestedBits, UsdImagingInstancerContext const *instancerContext=nullptr) const override
GT_API const UT_StringHolder time
uint32_t HdDirtyBits
Definition: types.h:143
void MarkDirty(UsdPrim const &prim, SdfPath const &cachePath, HdDirtyBits dirty, UsdImagingIndexProxy *index) override
PopulationMode GetPopulationMode() override
HdDirtyBits ProcessPropertyChange(UsdPrim const &prim, SdfPath const &cachePath, TfToken const &propertyName) override
Definition: token.h:70
Definition: prim.h:116
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440
Definition: path.h:273
TfTokenVector GetImagingSubprims(UsdPrim const &prim) override
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
GLuint index
Definition: glcorearb.h:786
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
void _RemovePrim(SdfPath const &cachePath, UsdImagingIndexProxy *index) override
Returns whether custom shading of prims is enabled.