34 #ifndef _vpDisplayPCL_h_
35 #define _vpDisplayPCL_h_
37 #include <visp3/core/vpConfig.h>
39 #if defined(VISP_HAVE_PCL) && defined(VISP_HAVE_PCL_VISUALIZATION) && defined(VISP_HAVE_THREADS)
45 #include <pcl/visualization/cloud_viewer.h>
46 #include <pcl/visualization/pcl_visualizer.h>
58 vpDisplayPCL(
int posx = 0,
int posy = 0,
const std::string &window_name =
"");
59 vpDisplayPCL(
unsigned int width,
unsigned int height,
int posx = 0,
int posy = 0,
const std::string &window_name =
"");
62 void setVerbose(
bool verbose);
63 void startThread(std::mutex &mutex, pcl::PointCloud<pcl::PointXYZ>::Ptr pointcloud);
64 void startThread(std::mutex &mutex, pcl::PointCloud<pcl::PointXYZRGB>::Ptr pointcloud);
65 void setPosition(
int posx,
int posy);
66 void setWindowName(
const std::string &window_name);
70 void run(std::mutex &mutex, pcl::PointCloud<pcl::PointXYZ>::Ptr pointcloud);
71 void run_color(std::mutex &mutex, pcl::PointCloud<pcl::PointXYZRGB>::Ptr pointcloud);
78 unsigned int m_height;
81 std::string m_window_name;
82 pcl::visualization::PCLVisualizer::Ptr m_viewer;