Point Cloud Library (PCL)
1.14.1-dev
|
PlanarPolygon represents a planar (2D) polygon, potentially in a 3D space. More...
#include <pcl/geometry/planar_polygon.h>
Public Types | |
using | Ptr = shared_ptr< PlanarPolygon< PointT > > |
using | ConstPtr = shared_ptr< const PlanarPolygon< PointT > > |
Public Member Functions | |
PlanarPolygon () | |
Empty constructor for PlanarPolygon. More... | |
PlanarPolygon (typename pcl::PointCloud< PointT >::VectorType &contour, Eigen::Vector4f &coefficients) | |
Constructor for PlanarPolygon. More... | |
virtual | ~PlanarPolygon ()=default |
Destructor. More... | |
void | setContour (const pcl::PointCloud< PointT > &contour) |
Set the internal contour. More... | |
pcl::PointCloud< PointT >::VectorType & | getContour () |
Getter for the contour / boundary. More... | |
const pcl::PointCloud< PointT >::VectorType & | getContour () const |
Getter for the contour / boundary. More... | |
void | setCoefficients (const Eigen::Vector4f &coefficients) |
Setr the internal coefficients. More... | |
void | setCoefficients (const pcl::ModelCoefficients &coefficients) |
Set the internal coefficients. More... | |
Eigen::Vector4f & | getCoefficients () |
Getter for the coefficients. More... | |
const Eigen::Vector4f & | getCoefficients () const |
Getter for the coefficients. More... | |
Protected Attributes | |
pcl::PointCloud< PointT >::VectorType | contour_ |
A list of points on the boundary/contour of the planar region. More... | |
Eigen::Vector4f | coefficients_ |
A list of model coefficients (a,b,c,d). More... | |
PlanarPolygon represents a planar (2D) polygon, potentially in a 3D space.
Definition at line 52 of file planar_polygon.h.
using pcl::PlanarPolygon< PointT >::ConstPtr = shared_ptr<const PlanarPolygon<PointT> > |
Definition at line 55 of file planar_polygon.h.
using pcl::PlanarPolygon< PointT >::Ptr = shared_ptr<PlanarPolygon<PointT> > |
Definition at line 54 of file planar_polygon.h.
|
inline |
Empty constructor for PlanarPolygon.
Definition at line 58 of file planar_polygon.h.
|
inline |
Constructor for PlanarPolygon.
[in] | contour | a vector of points bounding the polygon |
[in] | coefficients | a vector of the plane's coefficients (a,b,c,d) |
Definition at line 64 of file planar_polygon.h.
|
virtualdefault |
Destructor.
|
inline |
Getter for the coefficients.
Definition at line 116 of file planar_polygon.h.
References pcl::PlanarPolygon< PointT >::coefficients_.
Referenced by pcl::approximatePolygon().
|
inline |
Getter for the coefficients.
Definition at line 123 of file planar_polygon.h.
References pcl::PlanarPolygon< PointT >::coefficients_.
|
inline |
Getter for the contour / boundary.
Definition at line 83 of file planar_polygon.h.
References pcl::PlanarPolygon< PointT >::contour_.
Referenced by pcl::visualization::ImageViewer::addPlanarPolygon(), pcl::approximatePolygon(), and pcl::visualization::createPolygon().
|
inline |
Getter for the contour / boundary.
Definition at line 90 of file planar_polygon.h.
References pcl::PlanarPolygon< PointT >::contour_.
|
inline |
Setr the internal coefficients.
[in] | coefficients | the new coefficients to be set |
Definition at line 99 of file planar_polygon.h.
References pcl::PlanarPolygon< PointT >::coefficients_.
|
inline |
Set the internal coefficients.
[in] | coefficients | the new coefficients to be set |
Definition at line 108 of file planar_polygon.h.
References pcl::PlanarPolygon< PointT >::coefficients_, and pcl::ModelCoefficients::values.
|
inline |
Set the internal contour.
[in] | contour | the new planar polygonal contour |
Definition at line 76 of file planar_polygon.h.
References pcl::PlanarPolygon< PointT >::contour_, and pcl::PointCloud< PointT >::points.
|
protected |
A list of model coefficients (a,b,c,d).
Definition at line 133 of file planar_polygon.h.
Referenced by pcl::PlanarPolygon< PointT >::getCoefficients(), pcl::PlanarRegion< PointT >::PlanarRegion(), and pcl::PlanarPolygon< PointT >::setCoefficients().
|
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< PointT >::getContour(), pcl::PlanarRegion< PointT >::PlanarRegion(), and pcl::PlanarPolygon< PointT >::setContour().