mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
* Config: Using cmake targets * fixed RTABMAP_DEPRECATED build error * fixed melodic build * cleanup * Fixed qhull exported library error * Update svg depend private * removed g2o from public interface * Fixed Windows with external project * removed some required dep * Fixed nsis error (also fixed unspecified components) * updated workflow rules
42 lines
966 B
C++
42 lines
966 B
C++
/*
|
|
* CloudViewerCellPicker.h
|
|
*
|
|
* Created on: Aug 21, 2018
|
|
* Author: mathieu
|
|
*/
|
|
|
|
#ifndef GUILIB_SRC_CLOUDVIEWERCELLPICKER_H_
|
|
#define GUILIB_SRC_CLOUDVIEWERCELLPICKER_H_
|
|
|
|
#include "rtabmap/gui/rtabmap_gui_export.h" // DLL export/import defines
|
|
|
|
#include <vtkCellPicker.h>
|
|
|
|
namespace rtabmap {
|
|
|
|
class RTABMAP_GUI_EXPORT CloudViewerCellPicker : public vtkCellPicker {
|
|
public:
|
|
public:
|
|
static CloudViewerCellPicker *New ();
|
|
vtkTypeMacro(CloudViewerCellPicker, vtkCellPicker);
|
|
CloudViewerCellPicker();
|
|
virtual ~CloudViewerCellPicker();
|
|
|
|
protected:
|
|
// overrided to ignore back faces
|
|
virtual double IntersectActorWithLine(const double p1[3],
|
|
const double p2[3],
|
|
double t1, double t2,
|
|
double tol,
|
|
vtkProp3D *prop,
|
|
vtkMapper *mapper);
|
|
|
|
private:
|
|
vtkGenericCell * cell_; //used to accelerate picking
|
|
vtkIdList * pointIds_; // used to accelerate picking
|
|
};
|
|
|
|
} /* namespace rtabmap */
|
|
|
|
#endif /* GUILIB_SRC_CLOUDVIEWERCELLPICKER_H_ */
|