-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFeature.h
More file actions
78 lines (58 loc) · 1.62 KB
/
Feature.h
File metadata and controls
78 lines (58 loc) · 1.62 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
/*
* File: Feature.h
* Author: zoizoi
*
* Created on 23 January 2011, 18:28
*/
#ifndef FEATURE_H
#define FEATURE_H
#include <vector>
#include "OVASControl.h"
#include "vtkEssentials.h"
#include "FrameBuffer.h"
#include "GeoPoint.h"
#include "GeoSphere.h"
#include "arraytools.h"
//enum FeatureType {Area, Topology, TemporalChange, Curvature};
using namespace std;
class Feature {
public:
Feature();
Feature(float weight,OVASControl*,string name);
Feature(const Feature& orig);
virtual ~Feature();
virtual void initFeature(){};
// void addActor(vtkSmartPointer<vtkActor> actor){
// //actors.push_back(actor);
// }
virtual void readyRenderer(vtkSmartPointer<vtkRenderer> _renderer);
virtual void climbDown();
virtual void scoreFeature(GeoPoint* view);
int countColour(float r, float g, float b, FrameBuffer* data);
int countColour(FrameBuffer* data){
countColour(colourR,colourG,colourB,data);
}
void setWeight(float w){
weight=w;
}
float* getEvaluatedStepData(int step);
void saveScoreToFile();
void loadScoreFromFile();
int a;
int** intScoreData;
std::vector< vtkSmartPointer<vtkActor> >* actors;
string featureName;
private:
// FeatureType type;
//vtkActor* actors;
protected:
vtkSmartPointer<vtkCamera> camera;
vtkSmartPointer<vtkRenderer> renderer;
vtkSmartPointer<vtkRenderWindow> renderWindow;
float weight;
FrameBuffer* framebuffer;
OVASControl* oc;
float** scoreData;
float colourR,colourB,colourG;
};
#endif /* FEATURE_H */