![]() |
COGS
Computer Graphics Structures library
|
API for selecting points from a point cloud by ray-casting. More...
Public Member Functions | |
| PointCloudSelector ()=default | |
| Default constructor. | |
| PointCloudSelector (std::shared_ptr< cogs::PointCloud > pointcloud) | |
| Prepares the selector to be used over the given point cloud. More... | |
| void | Initialize (std::shared_ptr< cogs::PointCloud > pointcloud) |
| Initializes the selector over new point cloud, forgetting the reference and selected points of old one (if any). More... | |
| size_t | CountSelected () const |
| Returns current number of selected points. | |
| int32_t | SelectPoint (const geom::Ray3 &ray) |
| Selects a point of point cloud based on the ray intersection with it. More... | |
| int32_t | DeselectPoint (const geom::Ray3 &ray) |
| Deselects a point of point cloud based on the ray intersection with it. More... | |
| void | SelectPoint (int32_t point_index) |
| Internally selects the point with given index. More... | |
| void | DeselectPoint (int32_t point_index) |
| Internally deselects the point with given index. More... | |
| void | SelectPointsAround (int32_t point_index, float selection_radius) |
| Selects the points around the target point in a specified radius, including the target point. More... | |
| void | DeselectPointsAround (int32_t point_index, float deselection_radius) |
| Deselects the points around the target point in a specified radius, including the target point. More... | |
| void | DeselectAllPoints () |
| Deselect all previously selected points. | |
| const std::set< int32_t > & | GetSelectedPoints () const |
| Returns the list of all previously selected points. More... | |
API for selecting points from a point cloud by ray-casting.
| cogs::PointCloudSelector::PointCloudSelector | ( | std::shared_ptr< cogs::PointCloud > | pointcloud | ) |
Prepares the selector to be used over the given point cloud.
| pointcloud | Selector will work with this point cloud. |
| int32_t cogs::PointCloudSelector::DeselectPoint | ( | const geom::Ray3 & | ray | ) |
Deselects a point of point cloud based on the ray intersection with it.
| ray | 3D ray in the point cloud space. |
| selection_radius | When greater then zero, also points around the intersected point are deselected up to the distance. |
| void cogs::PointCloudSelector::DeselectPoint | ( | int32_t | point_index | ) |
Internally deselects the point with given index.
| point_index | Index of the point to deselect. |
| void cogs::PointCloudSelector::DeselectPointsAround | ( | int32_t | point_index, |
| float | deselection_radius | ||
| ) |
Deselects the points around the target point in a specified radius, including the target point.
| point_index | Index of the point to deselect. |
| selection_radius | Maximal distance from target point. |
| const std::set<int32_t>& cogs::PointCloudSelector::GetSelectedPoints | ( | ) | const |
Returns the list of all previously selected points.
| void cogs::PointCloudSelector::Initialize | ( | std::shared_ptr< cogs::PointCloud > | pointcloud | ) |
Initializes the selector over new point cloud, forgetting the reference and selected points of old one (if any).
| pointcloud | Selector will work with this point cloud. |
| int32_t cogs::PointCloudSelector::SelectPoint | ( | const geom::Ray3 & | ray | ) |
Selects a point of point cloud based on the ray intersection with it.
| ray | 3D ray in the point cloud space. |
| selection_radius | When greater then zero, also points around the intersected point are selected up to the distance. |
| void cogs::PointCloudSelector::SelectPoint | ( | int32_t | point_index | ) |
Internally selects the point with given index.
| point_index | Index of the point to select. |
| void cogs::PointCloudSelector::SelectPointsAround | ( | int32_t | point_index, |
| float | selection_radius | ||
| ) |
Selects the points around the target point in a specified radius, including the target point.
| point_index | Index of the point to select. |
| selection_radius | Maximal distance from target point. |