-
Notifications
You must be signed in to change notification settings - Fork 0
/
meshMetricGui.h
147 lines (123 loc) · 3.84 KB
/
meshMetricGui.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
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
#ifndef MESHMETRICGUI_H
#define MESHMETRICGUI_H
//Qt libraries
#include <QString>
#include <QIcon>
#include <QStringList>
#include <QLineEdit>
#include <QFileInfo>
#include <QDir>
#include <QList>
#include <QFileDialog>
#include <QColorDialog>
#include <QStandardItemModel>
#include <QMessageBox>
#include <QCheckBox>
#include <QStyle>
#include <QPalette>
// VTK libraries
#include <QVTKWidget.h>
// My libraries
#include "dataM.h"
#include "processing.h"
#include "display.h"
#include "ui_meshMetricGui.h"
// Other Libraries
#include <string>
#include <iostream>
class meshMetricGui : public QMainWindow , public Ui::MainWindow
{
Q_OBJECT
public:
meshMetricGui( QWidget * parent = 0 , Qt::WFlags f = 0 , std::string WorkDirectory = "" );
// functions for the icons
void InitIcon();
void DisplayInit();
public slots:
// functions for loadind/saving files
void OpenBrowseWindowFile();
void OpenBrowseWindowRepository();
void SaveFile();
// functions for delete files
void DeleteOneFile();
void DeleteAllFiles();
// functions for display files
void DisplayAll();
void HideAll();
// functions to change the camera
void buttonFrontClicked();
void buttonBackClicked();
void buttonRightClicked();
void buttonLeftClicked();
void buttonUpClicked();
void buttonDownClicked();
// functions to change files properties
void ChangeMeshSelected();
void UpdateDisplayedMesh( QListWidgetItem* itemClicked );
void ResetSelectedFile();
void ChangeValueOpacity();
void ChooseColor();
void ChangeTypeOfDisplay();
// functions for the smoothing
void ChangeNumberOfIteration();
void ApplySmoothing();
// functions for the down sampling
void ChangeDecimate();
void ApplyDecimate();
// function for the distance
void AvailableMesh();
void SelectMeshB();
void ChangeMinSampleFrequency();
void ChangeSamplingStep();
void ChangeSignedDistance();
void ChangeValueMin();
void ChangeValueMax();
void ChangeDisplayError();
void ApplyDistance();
void UpdateColor();
void PreviousError();
private:
// attributs for the files
int m_NumberOfMesh;
int m_MeshSelected;
std::vector <dataM::dataM> m_DataList;
QColor m_Color;
// attributs for the display
int m_CameraX;
int m_CameraY;
int m_CameraZ;
int m_NumberOfDisplay;
QVTKWidget *m_WidgetMesh;
display m_MyWindowMesh;
// attributs for the icons
std::string m_WorkDirectory;
QIcon m_VisibleIcon;
QIcon m_UnvisibleIcon;
QIcon m_OkIcon;
QIcon m_NotOkIcon;
QIcon m_PlusIcon;
QIcon m_MinusIcon;
QIcon m_DeleteIcon;
QIcon m_DisplayIcon;
QIcon m_ResetIcon;
QString m_Visible;
QString m_Unvisible;
QString m_Ok;
QString m_NotOk;
QString m_Plus;
QString m_Minus;
QString m_Delete;
QString m_Display;
QString m_Reset;
// attributs for the smoothing, down sampling , error
int m_SelectedItemA;
int m_SelectedItemB;
processing m_MyProcess;
int m_nbIteration;
double m_nbDecimate;
std::vector <bool> m_ErrorComputed;
std::vector <bool> m_Visibility;
double m_Min;
double m_Max;
};
#endif