-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestMeshValmet.h
More file actions
117 lines (90 loc) · 2.92 KB
/
Copy pathtestMeshValmet.h
File metadata and controls
117 lines (90 loc) · 2.92 KB
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
#ifndef TESTMESHVALMET_H
#define TESTMESHVALMET_H
// Vtk Libraries
#include <QVTKWidget.h>
#include <vtkSmartPointer.h>
#include <vtkPolyData.h>
#include <vtkPolyDataReader.h>
#include <vtkCellArray.h>
#include <vtkPoints.h>
#include <vtkIdTypeArray.h>
#include <vtkPolyDataMapper.h>
#include <vtkCamera.h>
#include <vtkRenderer.h>
#include <vtkRenderWindow.h>
#include <vtkPolyDataNormals.h>
#include <vtkActor.h>
#include <vtkProperty.h>
#include <vtkDoubleArray.h>
#include <vtkColorTransferFunction.h>
#include <vtkPointData.h>
#include <vtkFloatArray.h>
// Qt Libraries
#include <QMainWindow>
#include <QFileDialog>
#include <QObject>
#include <QProgressDialog>
// Other Libraries
#include <iostream>
#include <string>
// MeshValmet Libraries
#include "MeshValmet/mesh_run.h"
// My Libraries
#include "ui_testMeshValmetGui.h"
class testMeshValmet: public QMainWindow , public Ui::MainWindow
{
Q_OBJECT
public:
testMeshValmet( QWidget * parent = 0 , Qt::WFlags f = 0 );
void SetupWindow( vtkSmartPointer<vtkPolyData> Data );
void UpdateArgs();
vtkSmartPointer <vtkPolyData> ConvertToData( QString File );
friend void mesh_run(const args *args, model_error *model1, model_error *model2, outbuf *out, prog_reporter *progress, dist_surf_surf_stats *stats, dist_surf_surf_stats *stats_rev, double *abs_sampling_step, double *abs_sampling_dens);
vtkSmartPointer <vtkActor> drawVertexErrorT( vtkSmartPointer <vtkPolyData> Data , model_error* ModelError );
public slots:
void LoadFile();
void InitializeWindow();
void CalculateError();
void DisplayError();
private:
QVTKWidget *m_WidgetMesh;
int m_NumberLoading;
int m_ActivModel;
QString m_FileName1;
QString m_FileName2;
vtkSmartPointer <vtkPolyData> m_Data1;
vtkSmartPointer <vtkPolyData> m_Data2;
vtkSmartPointer <vtkRenderWindow> m_RenderWindow;
vtkSmartPointer <vtkRenderer> m_Renderer;
vtkSmartPointer <vtkCamera> m_Camera;
vtkSmartPointer <vtkActor> m_Actor1;
vtkSmartPointer <vtkActor> m_Actor2;
vtkSmartPointer <vtkPolyDataMapper> m_Mapper1;
vtkSmartPointer <vtkPolyDataMapper> m_Mapper2;
struct args m_Pargs;
struct model_error m_ModelError1;
struct model_error m_ModelError2;
struct outbuf *m_Out;
struct prog_reporter m_Progress;
struct dist_surf_surf_stats m_Stats;
struct dist_surf_surf_stats m_StatsRev;
double m_AbsSamplingStep;
double m_AbsSamplingDens;
double m_DiceCoefficient[1];
double m_IntUnionRatio[1];
double m_Dmax;
double m_Dmin;
double m_Downsampling;
double m_Middle;
struct look
{
float R;
float G;
float B;
};
look m_Lookuptable[256];
};
extern "C" {
void QT_prog(void *out, int p);
}
#endif