Gazebo Rendering

API Reference

6.6.3
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 IGNITION_RENDERING_DISTORTIONPASS_HH_
18 #define IGNITION_RENDERING_DISTORTIONPASS_HH_
19 
20 #include <ignition/math/Vector2.hh>
21 #include <ignition/math/Vector3.hh>
22 
26 
27 namespace ignition
28 {
29  namespace rendering
30  {
31  inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
32  //
33  /* \class DistortionPass DistortionPass.hh \
34  * ignition/rendering/DistortionPass.hh
35  */
37  class IGNITION_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
virtual math::Vector2d Center() const =0
Get the distortion center.
virtual double K3() const =0
Get the radial distortion coefficient k3.
virtual double K1() const =0
Get the radial distortion coefficient k1.
virtual ~DistortionPass()
Destructor.
virtual void SetP2(double _p2)=0
Set the tangential distortion coefficient p2.
virtual void SetK2(double _k2)=0
Set the radial distortion coefficient k2.
A render pass that applies distortion to the render target.
Definition: gz/rendering/DistortionPass.hh:37
virtual void SetCenter(const math::Vector2d &_center)=0
Set the distortion center.
virtual double P2() const =0
Get the tangential distortion coefficient p2.
virtual void SetP1(double _p1)=0
Set the tangential distortion coefficient p1.
A render pass can be added to a camera to affect how the scene is rendered. It can be used to add pos...
Definition: gz/rendering/RenderPass.hh:34
virtual double K2() const =0
Get the radial distortion coefficient k2.
virtual double P1() const =0
Get the tangential distortion coefficient p1.
virtual void SetK3(double _k3)=0
Set the radial distortion coefficient k3.
virtual void SetK1(double _k1)=0
Set the radial distortion coefficient k1.