blob: 587f1c6f364381273d4c46eaa1a63a5268fe45e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
#ifndef MAIN_WINDOW_H
#define MAIN_WINDOW_H
#include <QMainWindow>
#include "ui_main_window.h"
#include "model/Model.h"
#include "view/Viewer_instructor.h"
class Menu_k_nearest_neighbors;
class Menu_uniform_neighbors;
class Menu_edge_contraction;
class Menu_persistence;
class MainWindow : public QMainWindow,public Ui::MainWindow{
Q_OBJECT
private:
Model model_;
Viewer_instructor* viewer_instructor_;
Menu_k_nearest_neighbors* menu_k_nearest_neighbors_;
Menu_uniform_neighbors* menu_uniform_neighbors_;
Menu_edge_contraction* menu_edge_contraction_;
Menu_persistence* menu_persistence_;
public:
MainWindow(QWidget* parent = 0);
void connectActions();
/**
* compute the bounding box and calls update view
*/
void init_view() const;
void update_view() const;
protected:
void closeEvent(QCloseEvent *event);
void keyPressEvent(QKeyEvent *event){}
public:
public slots:
/**
* open a file chooser to choose an off to load
*/
void off_file_open();
void off_points_open();
/**
* open a file chooser to choose an off to save
*/
void off_file_save();
void off_points_save();
void show_graph_stats();
void show_complex_stats();
void show_complex_dimension();
void build_rips_menu();
void build_rips(double alpha);
void build_k_nearest_neighbors_menu();
void build_k_nearest_neighbors(unsigned k);
void contract_edge_menu();
void contract_edges(unsigned num_collapses);
void collapse_vertices();
void collapse_edges();
void uniform_noise();
void lloyd();
void show_homology_group();
void show_euler_characteristic();
void persistence_menu();
void compute_persistence(int p,double threshold,int max_dim,double min_pers);
void critical_points_menu();
void is_manifold_menu();
public:
signals:
void sceneChanged() const;
};
#endif
|