The field-based specialization of the comparison object. More...
#include <pcl/filters/conditional_removal.h>
Public Types |
|
using | Ptr = shared_ptr< FieldComparison< PointT > > |
using | ConstPtr = shared_ptr< const FieldComparison< PointT > > |
Public Types inherited from pcl::ComparisonBase< PointT > | |
using | Ptr = shared_ptr< ComparisonBase< PointT > > |
using | ConstPtr = shared_ptr< const ComparisonBase< PointT > > |
Public Member Functions |
|
FieldComparison (const 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... |
|
~FieldComparison () | |
Destructor. More... |
|
bool | evaluate (const PointT &point) const override |
Determine the result of this comparison. More... |
|
Public Member Functions inherited from pcl::ComparisonBase< PointT > | |
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... |
|
Protected Attributes inherited from pcl::ComparisonBase< PointT > | |
bool | capable_ |
True if capable. More... |
|
std::string | field_name_ |
Field name to compare data on. More... |
|
std::uint32_t | offset_ |
The data offset. More... |
|
ComparisonOps::CompareOp | op_ |
The comparison operator type. More... |
|
Detailed Description
template<typename PointT>
class pcl::FieldComparison< PointT >
The field-based specialization of the comparison object.
Definition at line 129 of file conditional_removal.h.
Member Typedef Documentation
ConstPtr
using pcl::FieldComparison< PointT >::ConstPtr = shared_ptr<const FieldComparison<PointT> > |
Definition at line 137 of file conditional_removal.h.
Ptr
using pcl::FieldComparison< PointT >::Ptr = shared_ptr<FieldComparison<PointT> > |
Definition at line 136 of file conditional_removal.h.
Constructor & Destructor Documentation
FieldComparison() [1/2]
pcl::FieldComparison< PointT >::FieldComparison | ( | const std::string & | field_name, |
ComparisonOps::CompareOp | op, | ||
double | compare_val | ||
) |
Construct a FieldComparison.
- Parameters
-
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 49 of file conditional_removal.hpp.
References pcl::ComparisonBase< PointT >::capable_, pcl::ComparisonBase< PointT >::field_name_, pcl::ComparisonBase< PointT >::op_, and pcl::FieldComparison< PointT >::point_data_.
FieldComparison() [2/2]
|
inline |
Copy constructor.
- Parameters
-
[in] src the field comparison object to copy into this
Definition at line 150 of file conditional_removal.h.
~FieldComparison()
pcl::FieldComparison< PointT >::~FieldComparison |
Destructor.
Definition at line 91 of file conditional_removal.hpp.
Member Function Documentation
evaluate()
|
overridevirtual |
Determine the result of this comparison.
- Parameters
-
point the point to evaluate
- Returns
- the result of this comparison.
Implements pcl::ComparisonBase< PointT >.
Definition at line 98 of file conditional_removal.hpp.
References pcl::ComparisonOps::EQ, pcl::ComparisonOps::GE, pcl::ComparisonOps::GT, pcl::ComparisonOps::LE, and pcl::ComparisonOps::LT.
operator=()
|
inline |
Copy operator.
- Parameters
-
[in] src the field comparison object to copy into this
Definition at line 160 of file conditional_removal.h.
References pcl::FieldComparison< PointT >::compare_val_, and pcl::FieldComparison< PointT >::point_data_.
Member Data Documentation
compare_val_
|
protected |
All types (that we care about) can be represented as a double.
Definition at line 179 of file conditional_removal.h.
Referenced by pcl::FieldComparison< PointT >::operator=().
point_data_
|
protected |
The point data to compare.
Definition at line 182 of file conditional_removal.h.
Referenced by pcl::FieldComparison< PointT >::FieldComparison(), and pcl::FieldComparison< PointT >::operator=().
The documentation for this class was generated from the following files:
- pcl/filters/conditional_removal.h
- pcl/filters/impl/conditional_removal.hpp
© 2009–2012, Willow Garage, Inc.
© 2012–, Open Perception, Inc.
Licensed under the BSD License.
https://pointclouds.org/documentation/classpcl_1_1_field_comparison.html