41 #include <pcl/pcl_macros.h>
47 namespace visualization
54 : cloud_indices_ (std::move(cloud_indices))
57 PCL_DEPRECATED(1,16,
"This constructor is deprecated!")
68 if (cloud_indices_.empty())
71 for (
const auto& i : cloud_indices_)
72 indices.insert(indices.cend (), i.second.cbegin (), i.second.cend ());
80 inline std::vector<std::string>
83 std::vector<std::string> names;
84 for (
const auto& i : cloud_indices_)
85 names.push_back (i.first);
96 const auto cloud = cloud_indices_.find (name);
97 if(cloud == cloud_indices_.cend ())
100 return cloud->second;
104 std::map<std::string, pcl::Indices> cloud_indices_;
Indices getPointsIndices(const std::string &name) const
For situations where a whole area is selected, return the points indices for a given point cloud...
bool getPointsIndices(pcl::Indices &indices) const
For situations where a whole area is selected, return the points indices.
IndicesAllocator<> Indices
Type used for indices in PCL.
/brief Class representing 3D area picking events.
std::vector< std::string > getCloudNames() const
For situations where a whole area is selected, return the names of the selected point clouds...
AreaPickingEvent(std::map< std::string, pcl::Indices > cloud_indices)