HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pxrAovLightAdapter.h
Go to the documentation of this file.
1 //
2 // Copyright 2024 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_AOV_LIGHT_ADAPTER_H
8 #define PXR_USD_IMAGING_USD_RI_PXR_IMAGING_PXR_AOV_LIGHT_ADAPTER_H
9 
10 /// \file
11 
12 #include "pxr/pxr.h"
15 
17 
18 class UsdPrim;
19 
20 /// \class UsdRiPxrImagingAovLightAdapter
21 ///
22 /// Adapter class for lights of type PxrAovLight.
23 ///
25 {
26 public:
28 
31  {}
32 
35 
36  // ---------------------------------------------------------------------- //
37  /// \name Scene Index Support
38  // ---------------------------------------------------------------------- //
39 
41  TfTokenVector GetImagingSubprims(UsdPrim const& prim) override;
42 
45  TfToken const& subprim) override;
46 
47  // ---------------------------------------------------------------------- //
48 
51  UsdPrim const& prim,
53  UsdImagingInstancerContext const* instancerContext = NULL) override;
54 
56  bool IsSupported(UsdImagingIndexProxy const* index) const override;
57 
58 protected:
59  void _RemovePrim(SdfPath const& cachePath,
60  UsdImagingIndexProxy* index) override final;
61 };
62 
64 
65 #endif // PXR_USD_IMAGING_USD_RI_PXR_IMAGING_PXR_AOV_LIGHT_ADAPTER_H
USDRIPXRIMAGING_API SdfPath Populate(UsdPrim const &prim, UsdImagingIndexProxy *index, UsdImagingInstancerContext const *instancerContext=NULL) override
USDRIPXRIMAGING_API bool IsSupported(UsdImagingIndexProxy const *index) const override
Returns true if the adapter can be populated into the target index.
USDRIPXRIMAGING_API TfToken GetImagingSubprimType(UsdPrim const &prim, TfToken const &subprim) override
Definition: token.h:70
Definition: prim.h:116
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440
Definition: path.h:273
virtual USDRIPXRIMAGING_API ~UsdRiPxrImagingAovLightAdapter()
USDRIPXRIMAGING_API TfTokenVector GetImagingSubprims(UsdPrim const &prim) override
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
void _RemovePrim(SdfPath const &cachePath, UsdImagingIndexProxy *index) overridefinal
#define USDRIPXRIMAGING_API
Definition: api.h:23
GLuint index
Definition: glcorearb.h:786
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74