HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
rectLightAdapter.h
Go to the documentation of this file.
1 //
2 // Copyright 2017 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_RECT_LIGHT_ADAPTER_H
8 #define PXR_USD_IMAGING_USD_IMAGING_RECT_LIGHT_ADAPTER_H
9 
10 /// \file usdImaging/rectLightAdapter.h
11 
12 #include "pxr/pxr.h"
15 
17 
18 
19 class UsdPrim;
20 
21 /// \class UsdImagingRectLightAdapter
22 ///
23 /// Adapter class for lights of type RectLight
24 ///
26 public:
28 
31  {}
32 
35 
36 
37  // ---------------------------------------------------------------------- //
38  /// \name Scene Index Support
39  // ---------------------------------------------------------------------- //
40 
42  TfTokenVector GetImagingSubprims(UsdPrim const& prim) override;
43 
45  TfToken GetImagingSubprimType(UsdPrim const& prim, TfToken const& subprim)
46  override;
47 
48  // ---------------------------------------------------------------------- //
49 
51  SdfPath Populate(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 
63 
65 
66 #endif // PXR_USD_IMAGING_USD_IMAGING_RECT_LIGHT_ADAPTER_H
#define USDIMAGING_API
Definition: api.h:23
USDIMAGING_API TfTokenVector GetImagingSubprims(UsdPrim const &prim) override
UsdImagingLightAdapter BaseAdapter
virtual USDIMAGING_API ~UsdImagingRectLightAdapter()
Definition: token.h:70
Definition: prim.h:116
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440
Definition: path.h:273
void _RemovePrim(SdfPath const &cachePath, UsdImagingIndexProxy *index) overridefinal
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 TfToken GetImagingSubprimType(UsdPrim const &prim, TfToken const &subprim) override
USDIMAGING_API bool IsSupported(UsdImagingIndexProxy const *index) const override
Returns true if the adapter can be populated into the target index.