39 #include <pcl/visualization/pcl_visualizer.h>
46 namespace visualization
55 using Ptr = shared_ptr<CloudViewer>;
56 using ConstPtr = shared_ptr<const CloudViewer>;
138 inline boost::signals2::connection
150 template<
typename T>
inline boost::signals2::connection
161 inline boost::signals2::connection
173 template<
typename T>
inline boost::signals2::connection
185 inline boost::signals2::connection
197 template<
typename T>
inline boost::signals2::connection
205 struct CloudViewer_impl;
206 std::unique_ptr<CloudViewer_impl> impl_;
208 boost::signals2::connection
211 boost::signals2::connection
214 boost::signals2::connection
shared_ptr< const PointCloud< pcl::PointXYZRGB > > ConstPtr
Simple point cloud visualization class.
shared_ptr< const CloudViewer > ConstPtr
~CloudViewer()
Will quit the window, and release all resources held by the viewer.
void showCloud(const ColorACloud::ConstPtr &cloud, const std::string &cloudname="cloud")
Show a cloud, with an optional key for multiple clouds.
void showCloud(const GrayCloud::ConstPtr &cloud, const std::string &cloudname="cloud")
Show a cloud, with an optional key for multiple clouds.
boost::signals2::connection registerKeyboardCallback(void(T::*callback)(const pcl::visualization::KeyboardEvent &, void *), T &instance, void *cookie=nullptr)
Register a callback function for keyboard events.
void runOnVisualizationThread(VizCallable x, const std::string &key="callable")
Run a callbable object on the UI thread.
void showCloud(const MonochromeCloud::ConstPtr &cloud, const std::string &cloudname="cloud")
Show a cloud, with an optional key for multiple clouds.
boost::signals2::connection registerPointPickingCallback(void(*callback)(const pcl::visualization::PointPickingEvent &, void *), void *cookie=nullptr)
Register a callback function for point picking events.
CloudViewer(const std::string &window_name)
Construct a cloud viewer, with a window name.
void removeVisualizationCallable(const std::string &key="callable")
Remove a previously added callable object, NOP if it doesn't exist.
bool wasStopped(int millis_to_wait=1)
Check if the gui was quit, you should quit also.
boost::signals2::connection registerPointPickingCallback(void(T::*callback)(const pcl::visualization::PointPickingEvent &, void *), T &instance, void *cookie=nullptr)
Register a callback function for point picking events.
void showCloud(const ColorCloud::ConstPtr &cloud, const std::string &cloudname="cloud")
Show a cloud, with an optional key for multiple clouds.
boost::signals2::connection registerKeyboardCallback(void(*callback)(const pcl::visualization::KeyboardEvent &, void *), void *cookie=nullptr)
Register a callback function for keyboard events.
boost::signals2::connection registerMouseCallback(void(*callback)(const pcl::visualization::MouseEvent &, void *), void *cookie=nullptr)
Register a callback function for mouse events.
shared_ptr< CloudViewer > Ptr
boost::signals2::connection registerMouseCallback(void(T::*callback)(const pcl::visualization::MouseEvent &, void *), T &instance, void *cookie=nullptr)
Register a callback function for mouse events.
void runOnVisualizationThreadOnce(VizCallable x)
Run a callbable object on the UI thread.
std::function< void(pcl::visualization::PCLVisualizer &)> VizCallable
Visualization callable function, may be used for running things on the UI thread.
/brief Class representing key hit/release events
PCL Visualizer main class.
/brief Class representing 3D point picking events.