HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
distantLightAdapter.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_DISTANT_LIGHT_ADAPTER_H
8 #define PXR_USD_IMAGING_USD_IMAGING_DISTANT_LIGHT_ADAPTER_H
9 
10 /// \file usdImaging/distantLightAdapter.h
11 
12 #include "pxr/pxr.h"
15 
17 
18 
19 class UsdPrim;
20 
21 /// \class UsdImagingDistantLightAdapter
22 ///
23 /// Adapter class for lights of type DistantLight
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 
51  UsdPrim const& prim,
53  UsdImagingInstancerContext const* instancerContext = NULL) override;
54 
56  bool IsSupported(UsdImagingIndexProxy const* index) const override;
57 
58 protected:
59  virtual void _RemovePrim(SdfPath const& cachePath,
61 };
62 
63 
65 
66 #endif // PXR_USD_IMAGING_USD_IMAGING_DISTANT_LIGHT_ADAPTER_H
#define USDIMAGING_API
Definition: api.h:23
virtual void _RemovePrim(SdfPath const &cachePath, UsdImagingIndexProxy *index) final
Returns whether custom shading of prims is enabled.
virtual USDIMAGING_API ~UsdImagingDistantLightAdapter()
USDIMAGING_API TfTokenVector GetImagingSubprims(UsdPrim const &prim) override
UsdImagingLightAdapter BaseAdapter
Definition: token.h:70
USDIMAGING_API TfToken GetImagingSubprimType(UsdPrim const &prim, TfToken const &subprim) override
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.
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 SdfPath Populate(UsdPrim const &prim, UsdImagingIndexProxy *index, UsdImagingInstancerContext const *instancerContext=NULL) override