HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
shadowMatrixComputation.h
Go to the documentation of this file.
1 //
2 // Copyright 2016 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_IMAGING_HDX_SHADOW_MATRIX_COMPUTATION_H
8 #define PXR_IMAGING_HDX_SHADOW_MATRIX_COMPUTATION_H
9 
10 #include "pxr/pxr.h"
11 #include "pxr/imaging/hdx/api.h"
14 #include "pxr/base/gf/matrix4d.h"
15 
17 
18 class CameraUtilFraming;
19 
20 // Interface class for computing the shadow matrix
21 // for a given viewport.
23 {
24 public:
25  // For legacy clients using viewport, will be removed eventually.
26  virtual std::vector<GfMatrix4d> Compute(const GfVec4f &viewport, CameraUtilConformWindowPolicy policy) = 0;
27 
28  // For modern clients using camera framing API.
29  virtual std::vector<GfMatrix4d> Compute(const CameraUtilFraming &framing, CameraUtilConformWindowPolicy policy) = 0;
30 
31 protected:
32  HdxShadowMatrixComputation() = default;
33  virtual ~HdxShadowMatrixComputation() = default;
34 
35 private:
37  HdxShadowMatrixComputation &operator =(const HdxShadowMatrixComputation &) = delete;
38 };
39 
40 
42 
43 #endif // PXR_IMAGING_HDX_SHADOW_MATRIX_COMPUTATION_H
virtual ~HdxShadowMatrixComputation()=default
hboost::math::policies::policy< hboost::math::policies::domain_error< hboost::math::policies::ignore_error >, hboost::math::policies::pole_error< hboost::math::policies::ignore_error >, hboost::math::policies::overflow_error< hboost::math::policies::ignore_error >, hboost::math::policies::underflow_error< hboost::math::policies::ignore_error >, hboost::math::policies::denorm_error< hboost::math::policies::ignore_error >, hboost::math::policies::rounding_error< hboost::math::policies::ignore_error >, hboost::math::policies::evaluation_error< hboost::math::policies::ignore_error >, hboost::math::policies::indeterminate_result_error< hboost::math::policies::ignore_error > > policy
Definition: SYS_MathCbrt.h:35
HdxShadowMatrixComputation()=default
virtual std::vector< GfMatrix4d > Compute(const GfVec4f &viewport, CameraUtilConformWindowPolicy policy)=0
Definition: vec4f.h:45
CameraUtilConformWindowPolicy
Definition: conformWindow.h:27
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74