39 #ifndef PCL_VISUALIZATION_POINT_PICKING_EVENT_H_
40 #define PCL_VISUALIZATION_POINT_PICKING_EVENT_H_
42 #include <pcl/pcl_macros.h>
45 #include <vtkCommand.h>
46 class vtkRenderWindowInteractor;
50 namespace visualization
66 Execute (vtkObject *caller,
unsigned long eventid,
void*);
69 performSinglePick (vtkRenderWindowInteractor *iren);
72 performSinglePick (vtkRenderWindowInteractor *iren,
float &x,
float &y,
float &z);
75 performAreaPick (vtkRenderWindowInteractor *iren, std::vector<int> &indices);
87 PointPickingEvent (
int idx) : idx_ (idx), idx2_ (-1), x_ (), y_ (), z_ (), x2_ (), y2_ (), z2_ () {}
88 PointPickingEvent (
int idx,
float x,
float y,
float z) : idx_ (idx), idx2_ (-1), x_ (x), y_ (y), z_ (z), x2_ (), y2_ (), z2_ () {}
90 PointPickingEvent (
int idx1,
int idx2,
float x1,
float y1,
float z1,
float x2,
float y2,
float z2) :
91 idx_ (idx1), idx2_ (idx2), x_ (x1), y_ (y1), z_ (z1), x2_ (x2), y2_ (y2), z2_ (z2)
115 x = x_; y = y_; z = z_;
128 getPoints (
float &x1,
float &y1,
float &z1,
float &x2,
float &y2,
float &z2)
const
132 x1 = x_; y1 = y_; z1 = z_;
133 x2 = x2_; y2 = y2_; z2 = z2_;