#ifndef MYNTEYE_TUTORIALS_PCVIEWER_H_ // NOLINT #define MYNTEYE_TUTORIALS_PCVIEWER_H_ #pragma once #include #include #include class PCViewer { public: PCViewer(); ~PCViewer(); void Draw(const cv::Mat &xyz); void Draw(pcl::PointCloud::ConstPtr pc); bool WasDrew() const; bool WasStopped() const; private: void ConvertMatToPointCloud( const cv::Mat &xyz, pcl::PointCloud::Ptr pc); std::shared_ptr viewer_; }; #endif // MYNTEYE_TUTORIALS_PCVIEWER_H_ NOLINT