Gazebo Rendering

API Reference

7.4.2
DistortionPass Class Referenceabstract

A render pass that applies distortion to the render target. More...

#include <DistortionPass.hh>

Public Member Functions

 DistortionPass ()
 Constructor. More...
 
virtual ~DistortionPass ()
 Destructor. More...
 
virtual math::Vector2d Center () const =0
 Get the distortion center. More...
 
virtual double K1 () const =0
 Get the radial distortion coefficient k1. More...
 
virtual double K2 () const =0
 Get the radial distortion coefficient k2. More...
 
virtual double K3 () const =0
 Get the radial distortion coefficient k3. More...
 
virtual double P1 () const =0
 Get the tangential distortion coefficient p1. More...
 
virtual double P2 () const =0
 Get the tangential distortion coefficient p2. More...
 
virtual void SetCenter (const math::Vector2d &_center)=0
 Set the distortion center. More...
 
virtual void SetK1 (double _k1)=0
 Set the radial distortion coefficient k1. More...
 
virtual void SetK2 (double _k2)=0
 Set the radial distortion coefficient k2. More...
 
virtual void SetK3 (double _k3)=0
 Set the radial distortion coefficient k3. More...
 
virtual void SetP1 (double _p1)=0
 Set the tangential distortion coefficient p1. More...
 
virtual void SetP2 (double _p2)=0
 Set the tangential distortion coefficient p2. More...
 
- Public Member Functions inherited from RenderPass
virtual ~RenderPass ()
 Destructor. More...
 
virtual bool IsEnabled () const =0
 Get whether or not the render pass is enabled. More...
 
virtual void SetEnabled (bool _enabled)=0
 Set to enable or disable the render pass. More...
 
- Public Member Functions inherited from Object
virtual ~Object ()
 Destructor. More...
 
virtual void Destroy ()=0
 Destroy any resources associated with this object. Invoking any other functions after destroying an object will result in undefined behavior. More...
 
virtual unsigned int Id () const =0
 Get the object ID. This ID will be unique across all objects inside a given scene, but necessarily true for objects across different scenes. More...
 
virtual std::string Name () const =0
 Get the object name. This name will be unique across all objects inside a given scene, but necessarily true for objects across different scenes. More...
 
virtual void PostRender ()=0
 Post process this object and any of its children after rendering. More...
 
virtual void PreRender ()=0
 Prepare this object and any of its children for rendering. This should be called for each object in a scene just before rendering, which can be achieved by a single call to Scene::PreRender. More...
 
virtual ScenePtr Scene () const =0
 Get the Scene that created this object. More...
 

Detailed Description

A render pass that applies distortion to the render target.

Constructor & Destructor Documentation

◆ DistortionPass()

Constructor.

◆ ~DistortionPass()

virtual ~DistortionPass ( )
virtual

Destructor.

Member Function Documentation

◆ Center()

virtual math::Vector2d Center ( ) const
pure virtual

Get the distortion center.

Returns
Distortion center.

Implemented in BaseDistortionPass< T >.

◆ K1()

virtual double K1 ( ) const
pure virtual

Get the radial distortion coefficient k1.

Returns
Distortion coefficient k1.

Implemented in BaseDistortionPass< T >.

◆ K2()

virtual double K2 ( ) const
pure virtual

Get the radial distortion coefficient k2.

Returns
Distortion coefficient k2.

Implemented in BaseDistortionPass< T >.

◆ K3()

virtual double K3 ( ) const
pure virtual

Get the radial distortion coefficient k3.

Returns
Distortion coefficient k3.

Implemented in BaseDistortionPass< T >.

◆ P1()

virtual double P1 ( ) const
pure virtual

Get the tangential distortion coefficient p1.

Returns
Distortion coefficient p1.

Implemented in BaseDistortionPass< T >.

◆ P2()

virtual double P2 ( ) const
pure virtual

Get the tangential distortion coefficient p2.

Returns
Distortion coefficient p2.

Implemented in BaseDistortionPass< T >.

◆ SetCenter()

virtual void SetCenter ( const math::Vector2d _center)
pure virtual

Set the distortion center.

Parameters
[in]_centerDistortion center.

Implemented in BaseDistortionPass< T >, and BaseDistortionPass< OgreRenderPass >.

◆ SetK1()

virtual void SetK1 ( double  _k1)
pure virtual

Set the radial distortion coefficient k1.

Parameters
[in]_k1Distortion coefficient k1.

Implemented in BaseDistortionPass< T >, and BaseDistortionPass< OgreRenderPass >.

◆ SetK2()

virtual void SetK2 ( double  _k2)
pure virtual

Set the radial distortion coefficient k2.

Parameters
[in]_k2Distortion coefficient k1.

Implemented in BaseDistortionPass< T >, and BaseDistortionPass< OgreRenderPass >.

◆ SetK3()

virtual void SetK3 ( double  _k3)
pure virtual

Set the radial distortion coefficient k3.

Parameters
[in]_k3Distortion coefficient k1.

Implemented in BaseDistortionPass< T >, and BaseDistortionPass< OgreRenderPass >.

◆ SetP1()

virtual void SetP1 ( double  _p1)
pure virtual

Set the tangential distortion coefficient p1.

Parameters
[in]_p1Distortion coefficient k1.

Implemented in BaseDistortionPass< T >, and BaseDistortionPass< OgreRenderPass >.

◆ SetP2()

virtual void SetP2 ( double  _p2)
pure virtual

Set the tangential distortion coefficient p2.

Parameters
[in]_p2Distortion coefficient k1.

Implemented in BaseDistortionPass< T >, and BaseDistortionPass< OgreRenderPass >.


The documentation for this class was generated from the following file: