cloud_viewer.hpp 765 B

123456789101112131415161718192021222324252627282930
  1. ///////////////////////////////////////////////
  2. /// A simple opengl cloud viewer
  3. /// Copyright(C)2016-2018 Percipio All Rights Reserved
  4. ///////////////////////////////////////////////
  5. #ifndef CLOUD_VIWER_HPP__
  6. #define CLOUD_VIWER_HPP__
  7. #include <TYApi.h>
  8. #include <vector>
  9. class GLPointCloudViewer{
  10. public:
  11. static int GlInit(const char* name = "CloudViewer", int w = 800, int h = 600);
  12. static int EnterMainLoop();
  13. static int LeaveMainLoop();
  14. static int Update(int point_num, const TY_VECT_3F* points, const uint8_t* color);
  15. static int ResetViewTranslate();
  16. static int RegisterKeyCallback(bool(*callback)(int));
  17. static int Deinit();//destroy all & exit
  18. private:
  19. GLPointCloudViewer(){}
  20. };
  21. #endif