Menu_edge_contraction.h
1 /* This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT.
2  * See file LICENSE or go to https://gudhi.inria.fr/licensing/ for full license details.
3  * Author(s): David Salinas
4  *
5  * Copyright (C) 2014 Inria
6  *
7  * Modification(s):
8  * - YYYY/MM Author: Description of the modification
9  */
10 
11 #ifndef GUI_MENU_EDGE_CONTRACTION_H_
12 #define GUI_MENU_EDGE_CONTRACTION_H_
13 
14 #include "gui/MainWindow.h"
15 #include "ui_MenuEdgeContraction.h"
16 
17 #include "model/Model.h"
18 
19 class Menu_edge_contraction : public QDialog, public Ui::MenuEdgeContraction {
20  Q_OBJECT
21 
22  private:
23  MainWindow* parent_;
24  const Model& model_;
25 
26  void update_slider_value();
27 
28  public:
29  Menu_edge_contraction(MainWindow* parent, const Model& model);
30 
31  void connectActions(MainWindow* parent);
32 
33  private:
34  unsigned num_vertices();
35  unsigned num_collapses();
36 
37  public slots:
38  void slider_value_changed(int new_slider_value);
39  void update_gui_numbers();
40  void update_gui_numbers(int gui_numbers);
41 
42  void send_contract_edges();
43 
44  signals:
45  void contract_edges(unsigned num_collapses);
46 };
47 
48 #endif // GUI_MENU_EDGE_CONTRACTION_H_
GUDHIdev  Version 3.5.0  - C++ library for Topological Data Analysis (TDA) and Higher Dimensional Geometry Understanding.  - Copyright : MIT Generated on Fri Jan 14 2022 18:28:42 for GUDHIdev by Doxygen 1.9.1