HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sphereLightAdapter.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_SPHERE_LIGHT_ADAPTER_H
8 #define PXR_USD_IMAGING_USD_IMAGING_SPHERE_LIGHT_ADAPTER_H
9 
10 /// \file usdImaging/sphereLightAdapter.h
11 
12 #include "pxr/pxr.h"
15 
17 
18 
19 class UsdPrim;
20 
21 /// \class UsdImagingSphereLightAdapter
22 ///
23 /// Adapter class for lights of type SphereLight
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 
50 
52  SdfPath Populate(UsdPrim const& prim,
54  UsdImagingInstancerContext const* instancerContext = NULL) override;
55 
57  bool IsSupported(UsdImagingIndexProxy const* index) const override;
58 
59 protected:
60  void _RemovePrim(SdfPath const& cachePath,
61  UsdImagingIndexProxy* index) override final;
62 
63 };
64 
65 
67 
68 #endif // PXR_USD_IMAGING_USD_IMAGING_SPHERE_LIGHT_ADAPTER_H
virtual USDIMAGING_API ~UsdImagingSphereLightAdapter()
USDIMAGING_API SdfPath Populate(UsdPrim const &prim, UsdImagingIndexProxy *index, UsdImagingInstancerContext const *instancerContext=NULL) override
USDIMAGING_API TfToken GetImagingSubprimType(UsdPrim const &prim, TfToken const &subprim) override
#define USDIMAGING_API
Definition: api.h:23
UsdImagingLightAdapter BaseAdapter
Definition: token.h:70
USDIMAGING_API bool IsSupported(UsdImagingIndexProxy const *index) const override
Returns true if the adapter can be populated into the target index.
Definition: prim.h:116
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440
Definition: path.h:273
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
USDIMAGING_API TfTokenVector GetImagingSubprims(UsdPrim const &prim) override
GLuint index
Definition: glcorearb.h:786
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
void _RemovePrim(SdfPath const &cachePath, UsdImagingIndexProxy *index) overridefinal