47 namespace visualization
54 : cloud_indices_ (std::move(cloud_indices))
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 names.reserve(cloud_indices_.size());
86 for (
const auto& i : cloud_indices_)
87 names.push_back (i.first);
98 const auto cloud = cloud_indices_.find (name);
99 if(cloud == cloud_indices_.cend ())
102 return cloud->second;
106 std::map<std::string, pcl::Indices> cloud_indices_;
/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.
bool getPointsIndices(pcl::Indices &indices) const
For situations where a whole area is selected, return the points indices.
AreaPickingEvent(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.
IndicesAllocator<> Indices
Type used for indices in PCL.
Defines all the PCL and non-PCL macros used.
#define PCL_DEPRECATED(Major, Minor, Message)
macro for compatibility across compilers and help remove old deprecated items for the Major....