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>
54 class VISP_EXPORT vpDisplayPCL
57 vpDisplayPCL(
int posx = 0,
int posy = 0,
const std::string &window_name =
"");
58 vpDisplayPCL(
unsigned int width,
unsigned int height,
int posx = 0,
int posy = 0,
const std::string &window_name =
"");
61 void setVerbose(
bool verbose);
62 void startThread(std::mutex &mutex, pcl::PointCloud<pcl::PointXYZ>::Ptr pointcloud);
63 void startThread(std::mutex &mutex, pcl::PointCloud<pcl::PointXYZRGB>::Ptr pointcloud);
64 void setPosition(
int posx,
int posy);
65 void setWindowName(
const std::string &window_name);
69 void run(std::mutex &mutex, pcl::PointCloud<pcl::PointXYZ>::Ptr pointcloud);
70 void run_color(std::mutex &mutex, pcl::PointCloud<pcl::PointXYZRGB>::Ptr pointcloud);
77 unsigned int m_height;
80 std::string m_window_name;
81 pcl::visualization::PCLVisualizer::Ptr m_viewer;