|
Open3D (C++ API)
0.19.0
|
#include <PickPointsInteractor.h>
Public Member Functions | |
| PickPointsInteractor (rendering::Open3DScene *scene, rendering::Camera *camera) | |
| virtual | ~PickPointsInteractor () |
| void | SetPointSize (int px) |
| void | SetPickableGeometry (const std::vector< SceneWidget::PickableGeometry > &geometry) |
| void | SetNeedsRedraw () |
| void | SetOnPointsPicked (std::function< void(const std::map< std::string, std::vector< std::pair< size_t, Eigen::Vector3d > > > &, int)> f) |
| void | SetOnUIChanged (std::function< void(const std::vector< Eigen::Vector2i > &)>) |
| void | SetOnStartedPolygonPicking (std::function< void()> on_poly_pick) |
| Calls the provided function when polygon picking is initiated. | |
| void | DoPick () |
| void | ClearPick () |
| rendering::MatrixInteractorLogic & | GetMatrixInteractor () override |
| void | Mouse (const MouseEvent &e) override |
| void | Key (const KeyEvent &e) override |
| Public Member Functions inherited from open3d::visualization::gui::SceneWidget::MouseInteractor | |
| virtual | ~MouseInteractor ()=default |
| virtual bool | Tick (const TickEvent &e) |
Protected Member Functions | |
| void | OnPickImageDone (std::shared_ptr< geometry::Image > img) |
| rendering::MaterialRecord | MakeMaterial () |
| open3d::visualization::gui::PickPointsInteractor::PickPointsInteractor | ( | rendering::Open3DScene * | scene, |
| rendering::Camera * | camera ) |
|
virtual |
| void open3d::visualization::gui::PickPointsInteractor::ClearPick | ( | ) |
| void open3d::visualization::gui::PickPointsInteractor::DoPick | ( | ) |
|
overridevirtual |
|
overridevirtual |
|
protected |
|
overridevirtual |
|
protected |
| void open3d::visualization::gui::PickPointsInteractor::SetNeedsRedraw | ( | ) |
Indicates that the selection scene must be redrawn and the picking pixels retrieved again before picking.
| void open3d::visualization::gui::PickPointsInteractor::SetOnPointsPicked | ( | std::function< void(const std::map< std::string, std::vector< std::pair< size_t, Eigen::Vector3d > > > &, int)> | f | ) |
Calls the provided function when points are picked: f(indices, key_modifiers)
| void open3d::visualization::gui::PickPointsInteractor::SetOnStartedPolygonPicking | ( | std::function< void()> | on_poly_pick | ) |
Calls the provided function when polygon picking is initiated.
| void open3d::visualization::gui::PickPointsInteractor::SetOnUIChanged | ( | std::function< void(const std::vector< Eigen::Vector2i > &)> | on_ui | ) |
Calls the provided function when a "UI" needs to be drawn. This is used for polygon picking to draw the polygon in progress. will be passed
| void open3d::visualization::gui::PickPointsInteractor::SetPickableGeometry | ( | const std::vector< SceneWidget::PickableGeometry > & | geometry | ) |
Sets the points that can be picked. Limited to 16 million or less points/vertices total. Geometry pointers will not be cached.
| void open3d::visualization::gui::PickPointsInteractor::SetPointSize | ( | int | px | ) |