-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathViewPathClusterFinder.h
More file actions
66 lines (59 loc) · 1.52 KB
/
ViewPathClusterFinder.h
File metadata and controls
66 lines (59 loc) · 1.52 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
/*
* File: ViewPathClusterFinder.h
* Author: zoizoi
*
* Created on 18 June 2011, 10:15
*/
#ifndef VIEWPATHCLUSTERFINDER_H
#define VIEWPATHCLUSTERFINDER_H
#include <vtkSmartPointer.h>
#include <vtkProperty.h>
#include <vtkPointData.h>
#include <vtkPolyData.h>
#include <vtkXMLPolyDataWriter.h>
#include <vtkIntArray.h>
#include <vtkMultiBlockDataSet.h>
#include <vtkPoints.h>
#include <vtkTable.h>
#include <vtkDoubleArray.h>
#include <vtkKMeansStatistics.h>
#include <vtkPolyDataMapper.h>
#include <vtkActor.h>
#include <vtkRenderWindow.h>
#include <vtkRenderer.h>
#include <vtkRenderWindowInteractor.h>
#include <vtkVertexGlyphFilter.h>
#include <vtkInteractorStyleTrackballCamera.h>
#include <vector>
#include <sstream>
#include "OVASControl.h"
using namespace std;
class ViewPathClusterFinder {
public:
ViewPathClusterFinder(int plen, OVASControl* oc);
ViewPathClusterFinder(const ViewPathClusterFinder& orig);
void testCluserDetection();
virtual ~ViewPathClusterFinder();
void addPath (int* path);
void outputPathsToFile();
void loadPathsFromFile();
int getNumPaths(){
return viewPaths->size();
}
int getNumSteps(){
return pathLength;
}
int getPathViewIndex(int path, int step){
return viewPaths->at(path)[step];
}
vector<int*>* getPathClusterMeans();
int* getPathClusters(){
return pathClusters;
}
int* pathClusters;
OVASControl* oc;
private:
vector<int*>* viewPaths;
int pathLength;
};
#endif /* VIEWPATHCLUSTERFINDER_H */