Point Cloud Library (PCL)
1.7.1
|
The field-based specialization of the comparison object. More...
#include <pcl/filters/conditional_removal.h>
Public Types | |
typedef boost::shared_ptr < FieldComparison< PointT > > | Ptr |
typedef boost::shared_ptr < const FieldComparison < PointT > > | ConstPtr |
![]() | |
typedef boost::shared_ptr < ComparisonBase< PointT > > | Ptr |
typedef boost::shared_ptr < const ComparisonBase< PointT > > | ConstPtr |
Public Member Functions | |
FieldComparison (std::string field_name, ComparisonOps::CompareOp op, double compare_val) | |
Construct a FieldComparison. More... | |
FieldComparison (const FieldComparison &src) | |
Copy constructor. More... | |
FieldComparison & | operator= (const FieldComparison &src) |
Copy operator. More... | |
virtual | ~FieldComparison () |
Destructor. More... | |
virtual bool | evaluate (const PointT &point) const |
Determine the result of this comparison. More... | |
![]() | |
ComparisonBase () | |
Constructor. More... | |
virtual | ~ComparisonBase () |
Destructor. More... | |
bool | isCapable () const |
Return if the comparison is capable. More... | |
Protected Attributes | |
double | compare_val_ |
All types (that we care about) can be represented as a double. More... | |
PointDataAtOffset< PointT > * | point_data_ |
The point data to compare. More... | |
![]() | |
bool | capable_ |
True if capable. More... | |
std::string | field_name_ |
Field name to compare data on. More... | |
uint32_t | offset_ |
The data offset. More... | |
ComparisonOps::CompareOp | op_ |
The comparison operator type. More... | |
The field-based specialization of the comparison object.
Definition at line 128 of file conditional_removal.h.
typedef boost::shared_ptr< const FieldComparison<PointT> > pcl::FieldComparison< PointT >::ConstPtr |
Definition at line 136 of file conditional_removal.h.
typedef boost::shared_ptr< FieldComparison<PointT> > pcl::FieldComparison< PointT >::Ptr |
Definition at line 135 of file conditional_removal.h.
pcl::FieldComparison< PointT >::FieldComparison | ( | std::string | field_name, |
ComparisonOps::CompareOp | op, | ||
double | compare_val | ||
) |
Construct a FieldComparison.
field_name | the name of the field that contains the data we want to compare |
op | the operator to use when making the comparison |
compare_val | the constant value to compare the field value too |
Definition at line 48 of file conditional_removal.hpp.
References pcl::ComparisonBase< PointT >::capable_, pcl::ComparisonBase< PointT >::field_name_, pcl::getFields(), pcl::ComparisonBase< PointT >::op_, and pcl::FieldComparison< PointT >::point_data_.
|
inline |
Copy constructor.
[in] | src | the field comparison object to copy into this |
Definition at line 149 of file conditional_removal.h.
|
virtual |
Destructor.
Definition at line 93 of file conditional_removal.hpp.
|
virtual |
Determine the result of this comparison.
point | the point to evaluate |
Implements pcl::ComparisonBase< PointT >.
Definition at line 104 of file conditional_removal.hpp.
References pcl::ComparisonOps::EQ, pcl::ComparisonOps::GE, pcl::ComparisonOps::GT, pcl::ComparisonOps::LE, and pcl::ComparisonOps::LT.
|
inline |
Copy operator.
[in] | src | the field comparison object to copy into this |
Definition at line 159 of file conditional_removal.h.
References pcl::FieldComparison< PointT >::compare_val_, and pcl::FieldComparison< PointT >::point_data_.
|
protected |
All types (that we care about) can be represented as a double.
Definition at line 178 of file conditional_removal.h.
Referenced by pcl::FieldComparison< PointT >::operator=().
|
protected |
The point data to compare.
Definition at line 181 of file conditional_removal.h.
Referenced by pcl::FieldComparison< PointT >::FieldComparison(), and pcl::FieldComparison< PointT >::operator=().