CloudViewerCellPicker.h
Go to the documentation of this file.
1 /*
2  * CloudViewerCellPicker.h
3  *
4  * Created on: Aug 21, 2018
5  * Author: mathieu
6  */
7 
8 #ifndef GUILIB_SRC_CLOUDVIEWERCELLPICKER_H_
9 #define GUILIB_SRC_CLOUDVIEWERCELLPICKER_H_
10 
11 #include "rtabmap/gui/RtabmapGuiExp.h" // DLL export/import defines
12 
13 #include <vtkCellPicker.h>
14 
15 namespace rtabmap {
16 
17 class RTABMAPGUI_EXP CloudViewerCellPicker : public vtkCellPicker {
18 public:
19 public:
20  static CloudViewerCellPicker *New ();
21  vtkTypeMacro(CloudViewerCellPicker, vtkCellPicker);
23  virtual ~CloudViewerCellPicker();
24 
25 protected:
26  // overrided to ignore back faces
27  virtual double IntersectActorWithLine(const double p1[3],
28  const double p2[3],
29  double t1, double t2,
30  double tol,
31  vtkProp3D *prop,
32  vtkMapper *mapper);
33 
34 private:
35  vtkGenericCell * cell_; //used to accelerate picking
36  vtkIdList * pointIds_; // used to accelerate picking
37 };
38 
39 } /* namespace rtabmap */
40 
41 #endif /* GUILIB_SRC_CLOUDVIEWERCELLPICKER_H_ */
#define RTABMAPGUI_EXP
Definition: RtabmapGuiExp.h:38


rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Dec 14 2020 03:34:58