HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
lightFilterAdapter.h
Go to the documentation of this file.
1 //
2 // Copyright 2017 Pixar
3 //
4 // Licensed under the Apache License, Version 2.0 (the "Apache License")
5 // with the following modification; you may not use this file except in
6 // compliance with the Apache License and the following modification to it:
7 // Section 6. Trademarks. is deleted and replaced with:
8 //
9 // 6. Trademarks. This License does not grant permission to use the trade
10 // names, trademarks, service marks, or product names of the Licensor
11 // and its affiliates, except as required to comply with Section 4(c) of
12 // the License and to reproduce the content of the NOTICE file.
13 //
14 // You may obtain a copy of the Apache License at
15 //
16 // http://www.apache.org/licenses/LICENSE-2.0
17 //
18 // Unless required by applicable law or agreed to in writing, software
19 // distributed under the Apache License with the above modification is
20 // distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21 // KIND, either express or implied. See the Apache License for the specific
22 // language governing permissions and limitations under the Apache License.
23 //
24 #ifndef PXR_USD_IMAGING_USD_IMAGING_LIGHT_FILTER_ADAPTER_H
25 #define PXR_USD_IMAGING_USD_IMAGING_LIGHT_FILTER_ADAPTER_H
26 
27 /// \file usdImaging/lightFilterAdapter.h
28 
29 #include "pxr/pxr.h"
32 
34 
35 
36 class UsdPrim;
37 
38 /// \class UsdImagingLightFilterAdapter
39 ///
40 /// Base class for all light filters.
41 ///
43 public:
45 
46 
49  {}
50 
53 
54  // ---------------------------------------------------------------------- //
55  /// \name Parallel Setup and Resolve
56  // ---------------------------------------------------------------------- //
57 
58  /// Thread Safe.
60  void TrackVariability(UsdPrim const& prim,
61  SdfPath const& cachePath,
62  HdDirtyBits* timeVaryingBits,
64  instancerContext = NULL) const override;
65 
66 
67  /// Thread Safe.
69  void UpdateForTime(UsdPrim const& prim,
70  SdfPath const& cachePath,
72  HdDirtyBits requestedBits,
74  instancerContext = NULL) const override;
75 
76  // ---------------------------------------------------------------------- //
77  /// \name Change Processing
78  // ---------------------------------------------------------------------- //
79 
80  /// Returns a bit mask of attributes to be udpated, or
81  /// HdChangeTracker::AllDirty if the entire prim must be resynchronized.
84  SdfPath const& cachePath,
85  TfToken const& propertyName) override;
86 
88  void MarkDirty(UsdPrim const& prim,
89  SdfPath const& cachePath,
90  HdDirtyBits dirty,
91  UsdImagingIndexProxy* index) override;
92 
94  void MarkTransformDirty(UsdPrim const& prim,
95  SdfPath const& cachePath,
96  UsdImagingIndexProxy* index) override;
97 
99  void MarkVisibilityDirty(UsdPrim const& prim,
100  SdfPath const& cachePath,
101  UsdImagingIndexProxy* index) override;
102 };
103 
104 
106 
107 #endif // PXR_USD_IMAGING_USD_IMAGING_LIGHT_FILTER_ADAPTER_H
USDIMAGING_API void TrackVariability(UsdPrim const &prim, SdfPath const &cachePath, HdDirtyBits *timeVaryingBits, UsdImagingInstancerContext const *instancerContext=NULL) const override
Thread Safe.
#define USDIMAGING_API
Definition: api.h:40
GT_API const UT_StringHolder time
GLuint index
Definition: glew.h:1814
uint32_t HdDirtyBits
Definition: types.h:127
USDIMAGING_API void MarkTransformDirty(UsdPrim const &prim, SdfPath const &cachePath, UsdImagingIndexProxy *index) override
USDIMAGING_API void UpdateForTime(UsdPrim const &prim, SdfPath const &cachePath, UsdTimeCode time, HdDirtyBits requestedBits, UsdImagingInstancerContext const *instancerContext=NULL) const override
Thread Safe.
Definition: token.h:87
Definition: prim.h:132
Definition: path.h:288
USDIMAGING_API void MarkVisibilityDirty(UsdPrim const &prim, SdfPath const &cachePath, UsdImagingIndexProxy *index) override
UsdImagingPrimAdapter BaseAdapter
USDIMAGING_API void MarkDirty(UsdPrim const &prim, SdfPath const &cachePath, HdDirtyBits dirty, UsdImagingIndexProxy *index) override
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1346
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:91
virtual USDIMAGING_API ~UsdImagingLightFilterAdapter()
USDIMAGING_API HdDirtyBits ProcessPropertyChange(UsdPrim const &prim, SdfPath const &cachePath, TfToken const &propertyName) override