HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pluginLightAdapter.h
Go to the documentation of this file.
1 //
2 // Copyright 2021 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_PLUGIN_LIGHT_ADAPTER_H
8 #define PXR_USD_IMAGING_USD_IMAGING_PLUGIN_LIGHT_ADAPTER_H
9 
10 /// \file usdImaging/pluginLightAdapter.h
11 
12 #include "pxr/pxr.h"
15 
17 
18 
19 class UsdPrim;
20 
21 /// \class UsdImagingPluginLightAdapter
22 ///
23 /// Adapter class for lights of type PluginLight
24 ///
26 public:
28 
31  {}
32 
35 
36  // ---------------------------------------------------------------------- //
37  /// \name Scene Index Support
38  // ---------------------------------------------------------------------- //
39 
41  TfTokenVector GetImagingSubprims(UsdPrim const& prim) override;
42 
44  TfToken GetImagingSubprimType(UsdPrim const& prim, TfToken const& subprim)
45  override;
46 
47  // ---------------------------------------------------------------------- //
48 
50  SdfPath Populate(UsdPrim const& prim,
52  UsdImagingInstancerContext const* instancerContext = NULL) override;
53 
55  bool IsSupported(UsdImagingIndexProxy const* index) const override;
56 
57 protected:
58  void _RemovePrim(SdfPath const& cachePath,
60 
61 };
62 
63 
65 
66 #endif // PXR_USD_IMAGING_USD_IMAGING_PLUGIN_LIGHT_ADAPTER_H
#define USDIMAGING_API
Definition: api.h:23
void _RemovePrim(SdfPath const &cachePath, UsdImagingIndexProxy *index) final
Definition: token.h:70
Definition: prim.h:116
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440
Definition: path.h:273
USDIMAGING_API bool IsSupported(UsdImagingIndexProxy const *index) const override
Returns true if the adapter can be populated into the target index.
USDIMAGING_API TfToken GetImagingSubprimType(UsdPrim const &prim, TfToken const &subprim) override
USDIMAGING_API SdfPath Populate(UsdPrim const &prim, UsdImagingIndexProxy *index, UsdImagingInstancerContext const *instancerContext=NULL) 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
USDIMAGING_API TfTokenVector GetImagingSubprims(UsdPrim const &prim) override
virtual USDIMAGING_API ~UsdImagingPluginLightAdapter()
UsdImagingLightAdapter BaseAdapter