Open3D (C++ API)  0.19.0
Loading...
Searching...
No Matches
open3d::visualization::gui::PickPointsInteractor Class Reference

#include <PickPointsInteractor.h>

Inheritance diagram for open3d::visualization::gui::PickPointsInteractor:
open3d::visualization::gui::SceneWidget::MouseInteractor

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::MatrixInteractorLogicGetMatrixInteractor () 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 ()

Constructor & Destructor Documentation

◆ PickPointsInteractor()

open3d::visualization::gui::PickPointsInteractor::PickPointsInteractor ( rendering::Open3DScene * scene,
rendering::Camera * camera )

◆ ~PickPointsInteractor()

open3d::visualization::gui::PickPointsInteractor::~PickPointsInteractor ( )
virtual

Member Function Documentation

◆ ClearPick()

void open3d::visualization::gui::PickPointsInteractor::ClearPick ( )

◆ DoPick()

void open3d::visualization::gui::PickPointsInteractor::DoPick ( )

◆ GetMatrixInteractor()

rendering::MatrixInteractorLogic & open3d::visualization::gui::PickPointsInteractor::GetMatrixInteractor ( )
overridevirtual

◆ Key()

void open3d::visualization::gui::PickPointsInteractor::Key ( const KeyEvent & e)
overridevirtual

◆ MakeMaterial()

rendering::MaterialRecord open3d::visualization::gui::PickPointsInteractor::MakeMaterial ( )
protected

◆ Mouse()

void open3d::visualization::gui::PickPointsInteractor::Mouse ( const MouseEvent & e)
overridevirtual

◆ OnPickImageDone()

void open3d::visualization::gui::PickPointsInteractor::OnPickImageDone ( std::shared_ptr< geometry::Image > img)
protected

◆ SetNeedsRedraw()

void open3d::visualization::gui::PickPointsInteractor::SetNeedsRedraw ( )

Indicates that the selection scene must be redrawn and the picking pixels retrieved again before picking.

◆ SetOnPointsPicked()

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)

◆ SetOnStartedPolygonPicking()

void open3d::visualization::gui::PickPointsInteractor::SetOnStartedPolygonPicking ( std::function< void()> on_poly_pick)

Calls the provided function when polygon picking is initiated.

◆ SetOnUIChanged()

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

◆ SetPickableGeometry()

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.

◆ SetPointSize()

void open3d::visualization::gui::PickPointsInteractor::SetPointSize ( int px)

The documentation for this class was generated from the following files: