41#include <pcl/point_cloud.h>
42#include <pcl/PointIndices.h>
43#include <pcl/correspondence.h>
50 template <
typename Po
intT>
77 std::size_t
size ()
const;
83 operator bool ()
const
92 virtual ~Iterator () {}
94 virtual void operator ++ () = 0;
96 virtual void operator ++ (
int) = 0;
98 virtual PointT& operator* ()
const = 0;
100 virtual PointT* operator-> ()
const = 0;
102 virtual unsigned getCurrentPointIndex ()
const = 0;
104 virtual unsigned getCurrentIndex ()
const = 0;
107 virtual std::size_t size ()
const = 0;
109 virtual void reset () = 0;
111 virtual bool isValid ()
const = 0;
119 template <
typename Po
intT>
146 std::size_t
size ()
const;
152 operator bool ()
const
161 virtual ~Iterator () {}
163 virtual void operator ++ () = 0;
165 virtual void operator ++ (
int) = 0;
167 virtual const PointT& operator* ()
const = 0;
169 virtual const PointT* operator-> ()
const = 0;
171 virtual unsigned getCurrentPointIndex ()
const = 0;
173 virtual unsigned getCurrentIndex ()
const = 0;
176 virtual std::size_t size ()
const = 0;
178 virtual void reset () = 0;
180 virtual bool isValid ()
const = 0;
183 class DefaultConstIterator;
184 class ConstIteratorIdx;
190#include <pcl/impl/cloud_iterator.hpp>
Iterator class for point clouds with or without given indices.
CloudIterator(PointCloud< PointT > &cloud)
unsigned getCurrentIndex() const
unsigned getCurrentPointIndex() const
std::size_t size() const
Size of the range the iterator is going through.
PointT * operator->() const
PointT & operator*() const
Iterator class for point clouds with or without given indices.
const PointT * operator->() const
unsigned getCurrentIndex() const
ConstCloudIterator(const PointCloud< PointT > &cloud)
unsigned getCurrentPointIndex() const
const PointT & operator*() const
std::size_t size() const
Size of the range the iterator is going through.
PointCloud represents the base class in PCL for storing collections of 3D points.
std::vector< pcl::Correspondence, Eigen::aligned_allocator< pcl::Correspondence > > Correspondences
IndicesAllocator<> Indices
Type used for indices in PCL.
A point structure representing Euclidean xyz coordinates, and the RGB color.