| libigl v2.5.0
    | 
Widget for selecting a region of the screen. More...
#include <SelectionWidget.h>
 
  
| Public Types | |
| enum | Mode { OFF = 0 , RECTANGULAR_MARQUEE = 1 , ELLIPTICAL_MARQUEE = 2 , POLYGONAL_LASSO = 3 , LASSO = 4 , NUM_MODES = 5 } | 
| Selection modes.  More... | |
| Public Member Functions | |
| virtual void | init (Viewer *_viewer, ImGuiPlugin *_plugin) override | 
| virtual void | draw () override | 
| virtual bool | mouse_down (int button, int modifier) override | 
| virtual bool | mouse_up (int button, int modifier) override | 
| virtual bool | mouse_move (int mouse_x, int mouse_y) override | 
| virtual bool | key_pressed (unsigned int key, int modifiers) override | 
| void | clear () | 
|  Public Member Functions inherited from igl::opengl::glfw::imgui::ImGuiWidget | |
| ImGuiWidget () | |
| virtual | ~ImGuiWidget () | 
| virtual void | shutdown () | 
| virtual bool | key_down (int, int) | 
| virtual bool | key_up (int, int) | 
| Static Public Member Functions | |
| static void | circle (const Eigen::Matrix< float, 2, 2 > &M, std::vector< Eigen::RowVector2f > &L) | 
| static void | rect (const Eigen::Matrix< float, 2, 2 > &M, std::vector< Eigen::RowVector2f > &L) | 
| static Eigen::RowVector2f | xy (const Viewer *v) | 
| Public Attributes | |
| std::string | MARQUEE_KEY = "Mm" | 
| Hot key to start marquee. | |
| std::string | LASSO_KEY = "l" | 
| Hot key to start lasso. | |
| std::string | OFF_KEY = "Vv" | 
| Hot key to stop selection. | |
| enum igl::opengl::glfw::imgui::SelectionWidget::Mode | mode = RECTANGULAR_MARQUEE | 
| bool | is_down = false | 
| bool | has_moved_since_down = false | 
| bool | is_drawing = false | 
| Eigen::Matrix< float, 2, 2 > | M = Eigen::Matrix<float,2,2>::Zero() | 
| std::vector< Eigen::RowVector2f > | L | 
| std::function< void(void)> | callback | 
| std::function< void(Mode)> | callback_post_mode_change | 
|  Public Attributes inherited from igl::opengl::glfw::imgui::ImGuiWidget | |
| std::string | name | 
| Additional Inherited Members | |
|  Protected Attributes inherited from igl::opengl::glfw::imgui::ImGuiWidget | |
| Viewer * | viewer | 
| ImGuiPlugin * | plugin | 
Widget for selecting a region of the screen.
| 
 | overridevirtual | 
Reimplemented from igl::opengl::glfw::imgui::ImGuiWidget.
| 
 | overridevirtual | 
Reimplemented from igl::opengl::glfw::imgui::ImGuiWidget.
| 
 | overridevirtual | 
Reimplemented from igl::opengl::glfw::imgui::ImGuiWidget.
| 
 | overridevirtual | 
Reimplemented from igl::opengl::glfw::imgui::ImGuiWidget.
| 
 | overridevirtual | 
Reimplemented from igl::opengl::glfw::imgui::ImGuiWidget.
| 
 | overridevirtual | 
Reimplemented from igl::opengl::glfw::imgui::ImGuiWidget.
| void igl::opengl::glfw::imgui::SelectionWidget::clear | ( | ) | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| std::string igl::opengl::glfw::imgui::SelectionWidget::MARQUEE_KEY = "Mm" | 
Hot key to start marquee.
| std::string igl::opengl::glfw::imgui::SelectionWidget::LASSO_KEY = "l" | 
Hot key to start lasso.
| std::string igl::opengl::glfw::imgui::SelectionWidget::OFF_KEY = "Vv" | 
Hot key to stop selection.
| enum igl::opengl::glfw::imgui::SelectionWidget::Mode igl::opengl::glfw::imgui::SelectionWidget::mode = RECTANGULAR_MARQUEE | 
| bool igl::opengl::glfw::imgui::SelectionWidget::is_down = false | 
| bool igl::opengl::glfw::imgui::SelectionWidget::has_moved_since_down = false | 
| bool igl::opengl::glfw::imgui::SelectionWidget::is_drawing = false | 
| Eigen::Matrix<float,2,2> igl::opengl::glfw::imgui::SelectionWidget::M = Eigen::Matrix<float,2,2>::Zero() | 
| std::vector<Eigen::RowVector2f> igl::opengl::glfw::imgui::SelectionWidget::L | 
| std::function<void(void)> igl::opengl::glfw::imgui::SelectionWidget::callback | 
| std::function<void(Mode)> igl::opengl::glfw::imgui::SelectionWidget::callback_post_mode_change |