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/rtabmap_gui_export.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 RTABMAP_GUI_EXPORT 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_ */
rtabmap::CloudViewerInteractorStyle::viewer_
CloudViewer * viewer_
Definition: CloudViewerInteractorStyle.h:39
rtabmap::CloudViewerInteractorStyle::ResetPixelDistance
int ResetPixelDistance
Definition: CloudViewerInteractorStyle.h:44
rtabmap::CloudViewerInteractorStyle::orthoMode_
bool orthoMode_
Definition: CloudViewerInteractorStyle.h:47
rtabmap::CloudViewer
Definition: CloudViewer.h:79
rtabmap::CloudViewerInteractorStyle::setCloudViewer
void setCloudViewer(CloudViewer *cloudViewer)
Definition: CloudViewerInteractorStyle.h:38
rtabmap::CloudViewerInteractorStyle
Definition: CloudViewerInteractorStyle.h:22
rtabmap::CloudViewerInteractorStyle::NumberOfClicks
unsigned int NumberOfClicks
Definition: CloudViewerInteractorStyle.h:42
rtabmap::CloudViewerInteractorStyle::pointsHolder_
pcl::PointCloud< pcl::PointXYZRGB >::Ptr pointsHolder_
Definition: CloudViewerInteractorStyle.h:46
rtabmap
Definition: CameraARCore.cpp:35


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:08