MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / addPointCloud

Method addPointCloud

visualization/src/pcl_visualizer.cpp:4211–4231  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

4209
4210//////////////////////////////////////////////////////////////////////////////////////////////
4211bool
4212pcl::visualization::PCLVisualizer::addPointCloud (
4213 const pcl::PCLPointCloud2::ConstPtr &,
4214 const GeometryHandlerConstPtr &geometry_handler,
4215 const ColorHandlerConstPtr &color_handler,
4216 const Eigen::Vector4f& sensor_origin,
4217 const Eigen::Quaternion<float>& sensor_orientation,
4218 const std::string &id, int viewport)
4219{
4220 // Check to see if this entry already exists (has it been already added to the visualizer?)
4221 auto am_it = cloud_actor_map_->find (id);
4222 if (am_it != cloud_actor_map_->end ())
4223 {
4224 // Here we're just pushing the handlers onto the queue. If needed, something fancier could
4225 // be done such as checking if a specific handler already exists, etc.
4226 am_it->second.geometry_handlers.push_back (geometry_handler);
4227 am_it->second.color_handlers.push_back (color_handler);
4228 return (true);
4229 }
4230 return (fromHandlersToScreen (geometry_handler, color_handler, id, viewport, sensor_origin, sensor_orientation));
4231}
4232
4233//////////////////////////////////////////////////////////////////////////////////////////////
4234bool

Callers 15

runFunction · 0.45
runMethod · 0.45
mainFunction · 0.45
runMethod · 0.45
mainFunction · 0.45
runFunction · 0.45
runFunction · 0.45
runMethod · 0.45
runFunction · 0.45
updateMethod · 0.45
mainFunction · 0.45
runMethod · 0.45

Calls 3

findMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by 15

mainFunction · 0.36
mainFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36