CloudViewerCellPicker.h
Go to the documentation of this file.
00001 /*
00002  * CloudViewerCellPicker.h
00003  *
00004  *  Created on: Aug 21, 2018
00005  *      Author: mathieu
00006  */
00007 
00008 #ifndef GUILIB_SRC_CLOUDVIEWERCELLPICKER_H_
00009 #define GUILIB_SRC_CLOUDVIEWERCELLPICKER_H_
00010 
00011 #include "rtabmap/gui/RtabmapGuiExp.h" // DLL export/import defines
00012 
00013 #include <vtkCellPicker.h>
00014 
00015 namespace rtabmap {
00016 
00017 class RTABMAPGUI_EXP CloudViewerCellPicker : public vtkCellPicker {
00018 public:
00019 public:
00020     static CloudViewerCellPicker *New ();
00021     vtkTypeMacro(CloudViewerCellPicker, vtkCellPicker);
00022         CloudViewerCellPicker();
00023         virtual ~CloudViewerCellPicker();
00024 
00025 protected:
00026         // overrided to ignore back faces
00027     virtual double IntersectActorWithLine(const double p1[3],
00028                 const double p2[3],
00029                         double t1, double t2,
00030                         double tol,
00031                         vtkProp3D *prop,
00032                         vtkMapper *mapper);
00033 
00034 private:
00035         vtkGenericCell * cell_; //used to accelerate picking
00036         vtkIdList * pointIds_; // used to accelerate picking
00037 };
00038 
00039 } /* namespace rtabmap */
00040 
00041 #endif /* GUILIB_SRC_CLOUDVIEWERCELLPICKER_H_ */


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jun 6 2019 21:59:19