#include <point_picking_event.h>
Public Member Functions | |
void | getPoint (float &x, float &y, float &z) const |
Obtain the XYZ point coordinates of a point that the user just clicked on. | |
int | getPointIndex () const |
Obtain the ID of a point that the user just clicked on. | |
bool | getPoints (float &x1, float &y1, float &z1, float &x2, float &y2, float &z2) const |
For situations when multiple points are selected in a sequence, return the point coordinates. | |
PointPickingEvent (int idx) | |
PointPickingEvent (int idx, float x, float y, float z) | |
PointPickingEvent (int idx1, int idx2, float x1, float y1, float z1, float x2, float y2, float z2) | |
Private Attributes | |
int | idx2_ |
int | idx_ |
float | x2_ |
float | x_ |
float | y2_ |
float | y_ |
float | z2_ |
float | z_ |
/brief Class representing 3D point picking events.
Definition at line 74 of file point_picking_event.h.
pcl::visualization::PointPickingEvent::PointPickingEvent | ( | int | idx | ) | [inline] |
Definition at line 77 of file point_picking_event.h.
pcl::visualization::PointPickingEvent::PointPickingEvent | ( | int | idx, |
float | x, | ||
float | y, | ||
float | z | ||
) | [inline] |
Definition at line 78 of file point_picking_event.h.
pcl::visualization::PointPickingEvent::PointPickingEvent | ( | int | idx1, |
int | idx2, | ||
float | x1, | ||
float | y1, | ||
float | z1, | ||
float | x2, | ||
float | y2, | ||
float | z2 | ||
) | [inline] |
Definition at line 80 of file point_picking_event.h.
void pcl::visualization::PointPickingEvent::getPoint | ( | float & | x, |
float & | y, | ||
float & | z | ||
) | const [inline] |
Obtain the XYZ point coordinates of a point that the user just clicked on.
[out] | x | the x coordinate of the point that got selected by the user |
[out] | y | the y coordinate of the point that got selected by the user |
[out] | z | the z coordinate of the point that got selected by the user |
Definition at line 97 of file point_picking_event.h.
int pcl::visualization::PointPickingEvent::getPointIndex | ( | ) | const [inline] |
Obtain the ID of a point that the user just clicked on.
Definition at line 86 of file point_picking_event.h.
bool pcl::visualization::PointPickingEvent::getPoints | ( | float & | x1, |
float & | y1, | ||
float & | z1, | ||
float & | x2, | ||
float & | y2, | ||
float & | z2 | ||
) | const [inline] |
For situations when multiple points are selected in a sequence, return the point coordinates.
[out] | x1 | the x coordinate of the first point that got selected by the user |
[out] | y1 | the y coordinate of the first point that got selected by the user |
[out] | z1 | the z coordinate of the firts point that got selected by the user |
[out] | x2 | the x coordinate of the second point that got selected by the user |
[out] | y2 | the y coordinate of the second point that got selected by the user |
[out] | z2 | the z coordinate of the second point that got selected by the user |
Definition at line 112 of file point_picking_event.h.
int pcl::visualization::PointPickingEvent::idx2_ [private] |
Definition at line 122 of file point_picking_event.h.
int pcl::visualization::PointPickingEvent::idx_ [private] |
Definition at line 122 of file point_picking_event.h.
float pcl::visualization::PointPickingEvent::x2_ [private] |
Definition at line 125 of file point_picking_event.h.
float pcl::visualization::PointPickingEvent::x_ [private] |
Definition at line 124 of file point_picking_event.h.
float pcl::visualization::PointPickingEvent::y2_ [private] |
Definition at line 125 of file point_picking_event.h.
float pcl::visualization::PointPickingEvent::y_ [private] |
Definition at line 124 of file point_picking_event.h.
float pcl::visualization::PointPickingEvent::z2_ [private] |
Definition at line 125 of file point_picking_event.h.
float pcl::visualization::PointPickingEvent::z_ [private] |
Definition at line 124 of file point_picking_event.h.