forked from lesterlo/cloud_annotation_tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathannotatorinteractor.h
51 lines (33 loc) · 1.37 KB
/
annotatorinteractor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef ANNOTATORINTERACTOR_H
#define ANNOTATORINTERACTOR_H
#include <pcl/visualization/interactor_style.h>
class AnnotatorInteractor: public pcl::visualization::PCLVisualizerInteractorStyle
{
public:
static AnnotatorInteractor *New ();
/** \brief Empty constructor. */
AnnotatorInteractor () : paint_signal(), pcl::visualization::PCLVisualizerInteractorStyle()
{}
/** \brief Empty destructor */
virtual ~AnnotatorInteractor () {}
// this macro defines Superclass, the isA functionality and the safe downcast method
vtkTypeMacro (AnnotatorInteractor, pcl::visualization::PCLVisualizerInteractorStyle)
boost::signals2::connection
registerPaintingCallback (boost::function<void (const double, const double, const double, const long, const bool)> cb);
boost::signals2::signal<void (const double, const double, const double, const long, const bool)> paint_signal;
void Initialize();
void OnKeyDown();
void OnKeyUp();
void OnMouseMove();
bool isPainting = false;
bool isErasing = false;
double getPainterTolerance() const;
void setPainterTolerance(double value);
double getPointPickerTolerance() const;
void setPointPickerTolerance(double value);
protected:
double pointPickerTolerance = 0.2;
double painterTolerance = 0.2;
vtkSmartPointer<vtkPointPicker> pp;
};
#endif // ANNOTATORINTERACTOR_H