-
Notifications
You must be signed in to change notification settings - Fork 2
/
controlpanel.h
70 lines (48 loc) · 1.35 KB
/
controlpanel.h
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
/**
*class MyMesh header file
*@author LigangChen
*@version 0.1 2007/02/04
*/
#ifndef CONTROLPANEL_H
#define CONTROLPANEL_H
#include <QtGui/QWidget>
//#include <bitset>
#include "global.h"
#include "ui_ControlPanel.h"
//using namespace std;
using namespace Qt;
class ControlPanel : public QWidget
{
Q_OBJECT
public:
ControlPanel(QWidget *parent = 0);
~ControlPanel();
public:
void init();
private slots:
// mesh viewer
void on_viewportCombo_activated(const QString&);
void on_meshViewerButtonGroup_buttonClicked(QAbstractButton*);
// detect features
void on_applyPushButton_clicked();
void on_featureViewButtonGroup_buttonClicked(QAbstractButton*);
// remesh
void on_ba3FilePushButton_clicked();
void on_denseAndTopoTransExecutePushButton_clicked();
// smoothing
void on_smoothingExecutePushButton_clicked();
signals:
void viewportSetted(QString);
void objectShowButtonClicked(bitset<OSI_NumObjectShowItems>);
void featureViewButtonClicked(bitset<FV_NumFeatureViewItems>);
void viewChanged();
void outputMessage(QString);
private:
Ui::ControlPanel ui;
QButtonGroup* meshViewerButtonGroup;
bitset<OSI_NumObjectShowItems> objectShowFlags;
QButtonGroup* featureViewButtonGroup; // include "Properties"
bitset<FV_NumFeatureViewItems> featureViewFlags; // does not include "Properties"
// static int smooth_time_;
};
#endif