Point Cloud Library (PCL)  1.8.1-dev
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
pcl::MeshConstruction< PointInT > Class Template Referenceabstract

MeshConstruction represents a base surface reconstruction class. More...

#include <pcl/surface/reconstruction.h>

+ Inheritance diagram for pcl::MeshConstruction< PointInT >:

Public Types

typedef boost::shared_ptr
< MeshConstruction< PointInT > > 
Ptr
 
typedef boost::shared_ptr
< const MeshConstruction
< PointInT > > 
ConstPtr
 
- Public Types inherited from pcl::PCLSurfaceBase< PointInT >
typedef boost::shared_ptr
< PCLSurfaceBase< PointInT > > 
Ptr
 
typedef boost::shared_ptr
< const PCLSurfaceBase
< PointInT > > 
ConstPtr
 
typedef pcl::search::Search
< PointInT > 
KdTree
 
typedef pcl::search::Search
< PointInT >::Ptr 
KdTreePtr
 
- Public Types inherited from pcl::PCLBase< PointInT >
typedef pcl::PointCloud< PointInT > PointCloud
 
typedef PointCloud::Ptr PointCloudPtr
 
typedef PointCloud::ConstPtr PointCloudConstPtr
 
typedef boost::shared_ptr
< PointIndices
PointIndicesPtr
 
typedef boost::shared_ptr
< PointIndices const > 
PointIndicesConstPtr
 

Public Member Functions

 MeshConstruction ()
 Constructor. More...
 
virtual ~MeshConstruction ()
 Destructor. More...
 
virtual void reconstruct (pcl::PolygonMesh &output)
 Base method for surface reconstruction for all points given in <setInputCloud (), setIndices ()> More...
 
virtual void reconstruct (std::vector< pcl::Vertices > &polygons)
 Base method for mesh construction for all points given in <setInputCloud (), setIndices ()> More...
 
- Public Member Functions inherited from pcl::PCLSurfaceBase< PointInT >
 PCLSurfaceBase ()
 Empty constructor. More...
 
virtual ~PCLSurfaceBase ()
 Empty destructor. More...
 
void setSearchMethod (const KdTreePtr &tree)
 Provide an optional pointer to a search object. More...
 
KdTreePtr getSearchMethod ()
 Get a pointer to the search method used. More...
 
- Public Member Functions inherited from pcl::PCLBase< PointInT >
 PCLBase ()
 Empty constructor. More...
 
 PCLBase (const PCLBase &base)
 Copy constructor. More...
 
virtual ~PCLBase ()
 Destructor. More...
 
virtual void setInputCloud (const PointCloudConstPtr &cloud)
 Provide a pointer to the input dataset. More...
 
PointCloudConstPtr const getInputCloud () const
 Get a pointer to the input point cloud dataset. More...
 
virtual void setIndices (const IndicesPtr &indices)
 Provide a pointer to the vector of indices that represents the input data. More...
 
virtual void setIndices (const IndicesConstPtr &indices)
 Provide a pointer to the vector of indices that represents the input data. More...
 
virtual void setIndices (const PointIndicesConstPtr &indices)
 Provide a pointer to the vector of indices that represents the input data. More...
 
virtual void setIndices (size_t row_start, size_t col_start, size_t nb_rows, size_t nb_cols)
 Set the indices for the points laying within an interest region of the point cloud. More...
 
IndicesPtr const getIndices ()
 Get a pointer to the vector of indices used. More...
 
IndicesConstPtr const getIndices () const
 Get a pointer to the vector of indices used. More...
 
const PointInT & operator[] (size_t pos) const
 Override PointCloud operator[] to shorten code. More...
 

Protected Member Functions

virtual void performReconstruction (pcl::PolygonMesh &output)=0
 Abstract surface reconstruction method. More...
 
virtual void performReconstruction (std::vector< pcl::Vertices > &polygons)=0
 Abstract surface reconstruction method. More...
 
- Protected Member Functions inherited from pcl::PCLSurfaceBase< PointInT >
virtual std::string getClassName () const
 Abstract class get name method. More...
 
- Protected Member Functions inherited from pcl::PCLBase< PointInT >
bool initCompute ()
 This method should get called before starting the actual computation. More...
 
bool deinitCompute ()
 This method should get called after finishing the actual computation. More...
 

Protected Attributes

bool check_tree_
 A flag specifying whether or not the derived reconstruction algorithm needs the search object tree. More...
 
- Protected Attributes inherited from pcl::PCLSurfaceBase< PointInT >
KdTreePtr tree_
 A pointer to the spatial search object. More...
 
- Protected Attributes inherited from pcl::PCLBase< PointInT >
PointCloudConstPtr input_
 The input point cloud dataset. More...
 
IndicesPtr indices_
 A pointer to the vector of point indices to use. More...
 
bool use_indices_
 Set to true if point indices are used. More...
 
bool fake_indices_
 If no set of indices are given, we construct a set of fake indices that mimic the input PointCloud. More...
 

Detailed Description

template<typename PointInT>
class pcl::MeshConstruction< PointInT >

MeshConstruction represents a base surface reconstruction class.

All mesh constructing methods that take in a point cloud and generate a surface that uses the original data as vertices should inherit from this class.

Note
Reconstruction methods that generate a new surface or create new vertices in locations different than the input data should inherit from SurfaceReconstruction.
Author
Radu B. Rusu, Michael Dixon, Alexandru E. Ichim

Definition at line 188 of file reconstruction.h.

Member Typedef Documentation

template<typename PointInT >
typedef boost::shared_ptr<const MeshConstruction<PointInT> > pcl::MeshConstruction< PointInT >::ConstPtr

Definition at line 192 of file reconstruction.h.

template<typename PointInT >
typedef boost::shared_ptr<MeshConstruction<PointInT> > pcl::MeshConstruction< PointInT >::Ptr

Definition at line 191 of file reconstruction.h.

Constructor & Destructor Documentation

template<typename PointInT >
pcl::MeshConstruction< PointInT >::MeshConstruction ( )
inline

Constructor.

Definition at line 202 of file reconstruction.h.

template<typename PointInT >
virtual pcl::MeshConstruction< PointInT >::~MeshConstruction ( )
inlinevirtual

Destructor.

Definition at line 205 of file reconstruction.h.

Member Function Documentation

template<typename PointInT >
virtual void pcl::MeshConstruction< PointInT >::performReconstruction ( pcl::PolygonMesh output)
protectedpure virtual

Abstract surface reconstruction method.

Parameters
[out]outputthe output polygonal mesh

Implemented in pcl::OrganizedFastMesh< PointInT >, pcl::ConvexHull< PointInT >, and pcl::ConcaveHull< PointInT >.

template<typename PointInT >
virtual void pcl::MeshConstruction< PointInT >::performReconstruction ( std::vector< pcl::Vertices > &  polygons)
protectedpure virtual

Abstract surface reconstruction method.

Parameters
[out]polygonsthe resultant polygons, as a set of vertices. The Vertices structure contains an array of point indices.

Implemented in pcl::OrganizedFastMesh< PointInT >, pcl::ConvexHull< PointInT >, and pcl::ConcaveHull< PointInT >.

template<typename PointInT >
void pcl::MeshConstruction< PointInT >::reconstruct ( pcl::PolygonMesh output)
virtual

Base method for surface reconstruction for all points given in <setInputCloud (), setIndices ()>

Parameters
[out]outputthe resultant reconstructed surface model
Note
This method copies the input point cloud data from PointCloud<T> to PCLPointCloud2, and is implemented here for backwards compatibility only!

NOTE: passing in boost shared pointer with * as const& should be OK here

Implements pcl::PCLSurfaceBase< PointInT >.

Definition at line 126 of file reconstruction.hpp.

References pcl::PolygonMesh::cloud, pcl::PCLPointCloud2::data, pcl::PolygonMesh::header, pcl::PCLPointCloud2::height, pcl::PolygonMesh::polygons, pcl::toPCLPointCloud2(), and pcl::PCLPointCloud2::width.

template<typename PointInT >
void pcl::MeshConstruction< PointInT >::reconstruct ( std::vector< pcl::Vertices > &  polygons)
virtual

Base method for mesh construction for all points given in <setInputCloud (), setIndices ()>

Parameters
[out]polygonsthe resultant polygons, as a set of vertices. The Vertices structure contains an array of point indices.

Definition at line 166 of file reconstruction.hpp.

Member Data Documentation

template<typename PointInT >
bool pcl::MeshConstruction< PointInT >::check_tree_
protected

A flag specifying whether or not the derived reconstruction algorithm needs the search object tree.

Definition at line 230 of file reconstruction.h.

Referenced by pcl::OrganizedFastMesh< PointInT >::OrganizedFastMesh().


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