Point Cloud Library (PCL) 1.12.0
Loading...
Searching...
No Matches
pcl::PlanarPolygon< T > Class Template Reference

PlanarPolygon represents a planar (2D) polygon, potentially in a 3D space. More...

#include <pcl/geometry/planar_polygon.h>

+ Inheritance diagram for pcl::PlanarPolygon< T >:
+ Collaboration diagram for pcl::PlanarPolygon< T >:

Public Types

using Ptr = shared_ptr<PlanarPolygon<PointT>>
 
using ConstPtr = shared_ptr<const PlanarPolygon<PointT>>
 

Public Member Functions

 PlanarPolygon ()
 Empty constructor for PlanarPolygon.
 
 PlanarPolygon (typename pcl::PointCloud< PointT >::VectorType &contour, Eigen::Vector4f &coefficients)
 Constructor for PlanarPolygon.
 
virtual ~PlanarPolygon ()
 Destructor.
 
void setContour (const pcl::PointCloud< PointT > &contour)
 Set the internal contour.
 
pcl::PointCloud< PointT >::VectorType & getContour ()
 Getter for the contour / boundary.
 
const pcl::PointCloud< PointT >::VectorType & getContour () const
 Getter for the contour / boundary.
 
void setCoefficients (const Eigen::Vector4f &coefficients)
 Setr the internal coefficients.
 
void setCoefficients (const pcl::ModelCoefficients &coefficients)
 Set the internal coefficients.
 
Eigen::Vector4f & getCoefficients ()
 Getter for the coefficients.
 
const Eigen::Vector4f & getCoefficients () const
 Getter for the coefficients.
 

Protected Attributes

pcl::PointCloud< PointT >::VectorType contour_
 A list of points on the boundary/contour of the planar region.
 
Eigen::Vector4f coefficients_
 A list of model coefficients (a,b,c,d).
 

Detailed Description

template<typename T>
class pcl::PlanarPolygon< T >

PlanarPolygon represents a planar (2D) polygon, potentially in a 3D space.

Author
Alex Trevor

Definition at line 77 of file pcl_visualizer.h.

Member Typedef Documentation

◆ ConstPtr

template<typename T >
using pcl::PlanarPolygon< T >::ConstPtr = shared_ptr<const PlanarPolygon<PointT>>

Definition at line 55 of file planar_polygon.h.

◆ Ptr

template<typename T >
using pcl::PlanarPolygon< T >::Ptr = shared_ptr<PlanarPolygon<PointT>>

Definition at line 54 of file planar_polygon.h.

Constructor & Destructor Documentation

◆ PlanarPolygon() [1/2]

template<typename T >
pcl::PlanarPolygon< T >::PlanarPolygon ( )
inline

Empty constructor for PlanarPolygon.

Definition at line 58 of file planar_polygon.h.

◆ PlanarPolygon() [2/2]

template<typename T >
pcl::PlanarPolygon< T >::PlanarPolygon ( typename pcl::PointCloud< PointT >::VectorType & contour,
Eigen::Vector4f & coefficients )
inline

Constructor for PlanarPolygon.

Parameters
[in]contoura vector of points bounding the polygon
[in]coefficientsa vector of the plane's coefficients (a,b,c,d)

Definition at line 64 of file planar_polygon.h.

◆ ~PlanarPolygon()

template<typename T >
virtual pcl::PlanarPolygon< T >::~PlanarPolygon ( )
inlinevirtual

Destructor.

Definition at line 70 of file planar_polygon.h.

Member Function Documentation

◆ getCoefficients() [1/2]

template<typename T >
Eigen::Vector4f & pcl::PlanarPolygon< T >::getCoefficients ( )
inline

Getter for the coefficients.

Definition at line 116 of file planar_polygon.h.

References pcl::PlanarPolygon< T >::coefficients_.

Referenced by pcl::approximatePolygon().

◆ getCoefficients() [2/2]

template<typename T >
const Eigen::Vector4f & pcl::PlanarPolygon< T >::getCoefficients ( ) const
inline

Getter for the coefficients.

Definition at line 123 of file planar_polygon.h.

References pcl::PlanarPolygon< T >::coefficients_.

◆ getContour() [1/2]

template<typename T >
pcl::PointCloud< PointT >::VectorType & pcl::PlanarPolygon< T >::getContour ( )
inline

◆ getContour() [2/2]

template<typename T >
const pcl::PointCloud< PointT >::VectorType & pcl::PlanarPolygon< T >::getContour ( ) const
inline

Getter for the contour / boundary.

Definition at line 90 of file planar_polygon.h.

References pcl::PlanarPolygon< T >::contour_.

◆ setCoefficients() [1/2]

template<typename T >
void pcl::PlanarPolygon< T >::setCoefficients ( const Eigen::Vector4f & coefficients)
inline

Setr the internal coefficients.

Parameters
[in]coefficientsthe new coefficients to be set

Definition at line 99 of file planar_polygon.h.

References pcl::PlanarPolygon< T >::coefficients_.

◆ setCoefficients() [2/2]

template<typename T >
void pcl::PlanarPolygon< T >::setCoefficients ( const pcl::ModelCoefficients & coefficients)
inline

Set the internal coefficients.

Parameters
[in]coefficientsthe new coefficients to be set

Definition at line 108 of file planar_polygon.h.

References pcl::PlanarPolygon< T >::coefficients_, and pcl::ModelCoefficients::values.

◆ setContour()

template<typename T >
void pcl::PlanarPolygon< T >::setContour ( const pcl::PointCloud< PointT > & contour)
inline

Set the internal contour.

Parameters
[in]contourthe new planar polygonal contour

Definition at line 76 of file planar_polygon.h.

References pcl::PlanarPolygon< T >::contour_, and pcl::PointCloud< T >::points.

Member Data Documentation

◆ coefficients_

template<typename T >
Eigen::Vector4f pcl::PlanarPolygon< T >::coefficients_
protected

◆ contour_

template<typename T >
pcl::PointCloud<PointT>::VectorType pcl::PlanarPolygon< T >::contour_
protected

A list of points on the boundary/contour of the planar region.

Definition at line 130 of file planar_polygon.h.

Referenced by pcl::PlanarPolygon< T >::getContour(), pcl::PlanarPolygon< T >::getContour(), and pcl::PlanarPolygon< T >::setContour().


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