Gazebo Rendering

API Reference

7.4.2
gz/rendering/DistortionPass.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2021 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 #ifndef GZ_RENDERING_DISTORTIONPASS_HH_
18 #define GZ_RENDERING_DISTORTIONPASS_HH_
19 
20 #include <gz/math/Vector2.hh>
21 #include <gz/math/Vector3.hh>
22 
23 #include "gz/rendering/config.hh"
24 #include "gz/rendering/Export.hh"
26 
27 namespace gz
28 {
29  namespace rendering
30  {
31  inline namespace GZ_RENDERING_VERSION_NAMESPACE {
32  //
33  /* \class DistortionPass DistortionPass.hh \
34  * gz/rendering/DistortionPass.hh
35  */
37  class GZ_RENDERING_VISIBLE DistortionPass
38  : public virtual RenderPass
39  {
41  public: DistortionPass();
42 
44  public: virtual ~DistortionPass();
45 
48  public: virtual double K1() const = 0;
49 
52  public: virtual double K2() const = 0;
53 
56  public: virtual double K3() const = 0;
57 
60  public: virtual double P1() const = 0;
61 
64  public: virtual double P2() const = 0;
65 
68  public: virtual math::Vector2d Center() const = 0;
69 
72  public: virtual void SetK1(double _k1) = 0;
73 
76  public: virtual void SetK2(double _k2) = 0;
77 
80  public: virtual void SetK3(double _k3) = 0;
81 
84  public: virtual void SetP1(double _p1) = 0;
85 
88  public: virtual void SetP2(double _p2) = 0;
89 
92  public: virtual void SetCenter(const math::Vector2d &_center) = 0;
93  };
94  }
95  }
96 }
97 #endif