-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdataM.h
More file actions
119 lines (100 loc) · 3.29 KB
/
Copy pathdataM.h
File metadata and controls
119 lines (100 loc) · 3.29 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
118
119
#ifndef DATAM_H
#define DATAM_H
/* CLASS WHERE ALL THE DATA NEEDED FOR ONE FILE ARE STOCKED --> NO PROCESSING DONE HERE
* -> NAME
* -> POLYDATA ( NORMAL + ERROR )
* -> MAPPER
* -> ACTOR
* -> FILE PROPERTIES
* -> SMOOTHING FILTER
* -> SMOOTHING PARAMETERS
* -> DOWNSAMPLING FILTER
* -> DOWNSAMPLING PARAMETERS
* -> ERROR COMPUTER ( COMMING SOON... )
* -> ERROR PARAMETERS
*/
// VTK libraries
#include <vtkSmartPointer.h>
#include <vtkPolyData.h>
#include <vtkPolyDataReader.h>
#include <vtkPolyDataMapper.h>
#include <vtkActor.h>
#include <vtkSmoothPolyDataFilter.h>
#include <vtkDecimatePro.h>
#include <vtkColorTransferFunction.h>
#include <vtkProperty.h>
#include <vtkTriangleFilter.h>
#include <vtkAbstractArray.h>
#include <vtkCleanPolyData.h>
// QT libraries
#include <QMessageBox>
// OTHER libraries
#include <string>
#include <iostream>
#include <vector>
class dataM
{
public:
dataM( std::string Name = "" );
void initialization();
void updateActorProperties();
int updateTypeOfDisplay();
int changeMapperInput();
void changeActivScalar();
// Set the basic data
void setName( std::string Name );
void setPolyData(vtkSmartPointer<vtkPolyData> OldData );
// Get the basic data
std::string getName();
vtkSmartPointer <vtkPolyDataMapper> getMapper();
vtkSmartPointer <vtkActor> getActor();
vtkSmartPointer<vtkPolyData> getPolyData();
// Set the File properties
void setOpacity( double Opacity );
void setColor( double Red , double Green , double Blue );
void setType( int Type );
// Get the file properties
double getOpacity();
double getRed();
double getBlue();
double getGreen();
int getType();
// Set the error parameters
void setMinSamplingFrequency(int MinSamplingFrequency );
void setSamplingStep( double SamplingStep );
void setSignedDistance( bool SignedDistance );
void setDisplayError( bool DisplayError );
void setLut( vtkSmartPointer <vtkColorTransferFunction> Lut );
void setMin( double Dmin );
void setMax( double Dmax );
// Get the error parameters
int getMinSamplingFrequency();
double getSamplingStep();
bool getSignedDistance();
bool getDisplayError();
vtkSmartPointer <vtkColorTransferFunction> getLut();
double getMin();
double getMax();
private:
std::string m_Name;
vtkSmartPointer <vtkPolyDataMapper> m_Mapper;
vtkSmartPointer <vtkActor> m_Actor;
vtkSmartPointer <vtkPolyData> m_PolyData;
double m_Opacity;
double m_Red;
double m_Blue;
double m_Green;
int m_Type;
//int m_NumberOfIterationSmooth;
//vtkSmartPointer <vtkSmoothPolyDataFilter> m_Smoother;
//double m_Decimate;
//vtkSmartPointer <vtkDecimatePro> m_Decimer;
bool m_DisplayError;
int m_MinSamplingFrequency;
double m_SamplingStep;
bool m_SignedDistance;
vtkSmartPointer <vtkColorTransferFunction> m_Lut;
double m_Dmin;
double m_Dmax;
};
#endif