CloudViewerInteractorStyle.h
Go to the documentation of this file.
1 /*
2  * CloudViewerInteractorStyl.h
3  *
4  * Created on: Aug 21, 2018
5  * Author: mathieu
6  */
7 
8 #ifndef GUILIB_SRC_CLOUDVIEWERINTERACTORSTYLE_H_
9 #define GUILIB_SRC_CLOUDVIEWERINTERACTORSTYLE_H_
10 
11 #include "rtabmap/gui/RtabmapGuiExp.h" // DLL export/import defines
12 
13 #include <pcl/visualization/mouse_event.h>
14 #include <pcl/visualization/point_picking_event.h>
15 #include <pcl/visualization/interactor_style.h>
16 #include <pcl/point_types.h>
17 
18 namespace rtabmap {
19 
20 class CloudViewer;
21 
22 class RTABMAPGUI_EXP CloudViewerInteractorStyle: public pcl::visualization::PCLVisualizerInteractorStyle
23 {
24 public:
25  static CloudViewerInteractorStyle *New ();
26  vtkTypeMacro(CloudViewerInteractorStyle, pcl::visualization::PCLVisualizerInteractorStyle);
27 
28 public:
30  virtual void Rotate();
31  void setOrthoMode(bool enabled);
32 protected:
33  virtual void OnMouseMove();
34  virtual void OnLeftButtonDown();
35 
36 protected:
37  friend class CloudViewer;
38  void setCloudViewer(CloudViewer * cloudViewer) {viewer_ = cloudViewer;}
40 
41 private:
42  unsigned int NumberOfClicks;
43  int PreviousPosition[2];
45  float PreviousMeasure[3];
46  pcl::PointCloud<pcl::PointXYZRGB>::Ptr pointsHolder_;
47  bool orthoMode_;
48 };
49 
50 } /* namespace rtabmap */
51 
52 #endif /* GUILIB_SRC_CLOUDVIEWERINTERACTORSTYLE_H_ */
#define RTABMAPGUI_EXP
Definition: RtabmapGuiExp.h:38
pcl::PointCloud< pcl::PointXYZRGB >::Ptr pointsHolder_
void setCloudViewer(CloudViewer *cloudViewer)


rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Jan 23 2023 03:37:28