Point Cloud Library (PCL)
1.7.0
|
#include <pcl/common/generate.h>
Public Types | |
typedef GeneratorT::Parameters | GeneratorParameters |
Public Member Functions | |
CloudGenerator () | |
Default constructor. More... | |
CloudGenerator (const GeneratorParameters ¶ms) | |
Consttructor with single generator to ensure all X, Y and Z values are within same range. More... | |
CloudGenerator (const GeneratorParameters &x_params, const GeneratorParameters &y_params, const GeneratorParameters &z_params) | |
Constructor with independant generators per axis. More... | |
void | setParameters (const GeneratorParameters ¶ms) |
Set parameters for x, y and z values. More... | |
void | setParametersForX (const GeneratorParameters &x_params) |
Set parameters for x values generation. More... | |
void | setParametersForY (const GeneratorParameters &y_params) |
Set parameters for y values generation. More... | |
void | setParametersForZ (const GeneratorParameters &z_params) |
Set parameters for z values generation. More... | |
const GeneratorParameters & | getParametersForX () const |
const GeneratorParameters & | getParametersForY () const |
const GeneratorParameters & | getParametersForZ () const |
PointT | get () |
int | fill (pcl::PointCloud< PointT > &cloud) |
Generates a cloud with X Y Z picked within given ranges. More... | |
int | fill (int width, int height, pcl::PointCloud< PointT > &cloud) |
Generates a cloud of specified dimensions with X Y Z picked within given ranges. More... | |
Definition at line 59 of file generate.h.
typedef GeneratorT::Parameters pcl::common::CloudGenerator< PointT, GeneratorT >::GeneratorParameters |
Definition at line 62 of file generate.h.
pcl::common::CloudGenerator< PointT, GeneratorT >::CloudGenerator | ( | ) |
Default constructor.
Definition at line 47 of file generate.hpp.
pcl::common::CloudGenerator< PointT, GeneratorT >::CloudGenerator | ( | const GeneratorParameters & | params | ) |
Consttructor with single generator to ensure all X, Y and Z values are within same range.
params | paramteres for X, Y and Z values generation. Uniqueness is ensured through seed incrementation |
Definition at line 55 of file generate.hpp.
pcl::common::CloudGenerator< PointT, GeneratorT >::CloudGenerator | ( | const GeneratorParameters & | x_params, |
const GeneratorParameters & | y_params, | ||
const GeneratorParameters & | z_params | ||
) |
Constructor with independant generators per axis.
x_params | parameters for x values generation |
y_params | parameters for y values generation |
z_params | parameters for z values generation |
Definition at line 63 of file generate.hpp.
int pcl::common::CloudGenerator< PointT, GeneratorT >::fill | ( | pcl::PointCloud< PointT > & | cloud | ) |
Generates a cloud with X Y Z picked within given ranges.
This function assumes that cloud is properly defined else it raises errors and does nothing.
[out] | cloud | cloud to generate coordinates for |
Definition at line 139 of file generate.hpp.
References pcl::PointCloud< T >::height, and pcl::PointCloud< T >::width.
int pcl::common::CloudGenerator< PointT, GeneratorT >::fill | ( | int | width, |
int | height, | ||
pcl::PointCloud< PointT > & | cloud | ||
) |
Generates a cloud of specified dimensions with X Y Z picked within given ranges.
[in] | width | width of generated cloud |
[in] | height | height of generated cloud |
[out] | cloud | output cloud |
Definition at line 146 of file generate.hpp.
References pcl::PointCloud< T >::begin(), pcl::PointCloud< T >::empty(), pcl::PointCloud< T >::end(), pcl::PointCloud< T >::height, pcl::PointCloud< T >::is_dense, pcl::PointCloud< T >::resize(), and pcl::PointCloud< T >::width.
PointT pcl::common::CloudGenerator< PointT, GeneratorT >::get | ( | ) |
Definition at line 128 of file generate.hpp.
const pcl::common::CloudGenerator< PointT, GeneratorT >::GeneratorParameters & pcl::common::CloudGenerator< PointT, GeneratorT >::getParametersForX | ( | ) | const |
Definition at line 107 of file generate.hpp.
const pcl::common::CloudGenerator< PointT, GeneratorT >::GeneratorParameters & pcl::common::CloudGenerator< PointT, GeneratorT >::getParametersForY | ( | ) | const |
Definition at line 114 of file generate.hpp.
const pcl::common::CloudGenerator< PointT, GeneratorT >::GeneratorParameters & pcl::common::CloudGenerator< PointT, GeneratorT >::getParametersForZ | ( | ) | const |
Definition at line 121 of file generate.hpp.
void pcl::common::CloudGenerator< PointT, GeneratorT >::setParameters | ( | const GeneratorParameters & | params | ) |
Set parameters for x, y and z values.
Uniqueness is ensured through seed incrementation.
params | parameteres for X, Y and Z values generation. |
Definition at line 73 of file generate.hpp.
void pcl::common::CloudGenerator< PointT, GeneratorT >::setParametersForX | ( | const GeneratorParameters & | x_params | ) |
Set parameters for x values generation.
x_params | paramters for x values generation |
Definition at line 86 of file generate.hpp.
void pcl::common::CloudGenerator< PointT, GeneratorT >::setParametersForY | ( | const GeneratorParameters & | y_params | ) |
Set parameters for y values generation.
y_params | paramters for y values generation |
Definition at line 93 of file generate.hpp.
void pcl::common::CloudGenerator< PointT, GeneratorT >::setParametersForZ | ( | const GeneratorParameters & | z_params | ) |
Set parameters for z values generation.
z_params | paramters for z values generation |
Definition at line 100 of file generate.hpp.