-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathOVASControl.h
More file actions
107 lines (86 loc) · 2.01 KB
/
OVASControl.h
File metadata and controls
107 lines (86 loc) · 2.01 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
/*
* File: OVASControl.h
* Author: zoizoi
*
* Created on 06 February 2011, 19:52
*/
#ifndef OVASCONTROL_H
#define OVASCONTROL_H
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <vector>
#include <sstream>
#include "vtkEssentials.h"
#include <string>
#include <sstream>
class GeoSequence;
class GeoSphere;
class Volume4D;
class Analyser3D;
class Feature;
class AreaFeature;
class StepToParamConverter;
class ViewEvaluator;
class PathVisualiser;
using namespace std;
class OVASControl {
public:
OVASControl() {
currentStep = currentView = 0;
rwiSet=false;
};
OVASControl(const OVASControl& orig);
virtual ~OVASControl();
void setFile(string _filename) {
filename = new string(_filename);
}
void setGeoSequence(GeoSequence* pointer) {
geoSequence = pointer;
}
void setGeoSphere(GeoSphere* pointer) {
geoSphere = pointer;
}
void setVolume4D(Volume4D* pointer) {
volume4D = pointer;
}
void setStepToParamConverter(StepToParamConverter* pointer) {
stepToParamConverter = pointer;
}
void setViewEvaluator(ViewEvaluator* pointer) {
viewEvaluator = pointer;
}
int xDim, yDim, zDim, numSteps;
vtkSmartPointer<vtkActor> volActor;
GeoSequence* geoSequence;
string* filename;
string* volDataFileName;
Volume4D* volume4D;
Analyser3D* a3d;
vector<Feature*>* features;
ViewEvaluator* viewEvaluator;
StepToParamConverter* stepToParamConverter;
GeoSphere* geoSphere;
PathVisualiser* pathVisualiser;
string* resultsPath;
float isoStep;
int currentStep;
int currentView;
float currentIso;
float isoRange;
float isoRangeThreshold;
int* path;
int* bestViews;
AreaFeature* areaFeature;
vtkSmartPointer<vtkRenderWindowInteractor> rwi;
bool rwiSet;
private:
};
template <class T>
inline std::string to_string (const T& t)
{
std::stringstream ss;
ss << t;
return ss.str();
}
#endif /* OVASCONTROL_H */