forked from josiahseaman/skittle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RepeatMap.h
70 lines (59 loc) · 1.53 KB
/
RepeatMap.h
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
#ifndef FREQ_DISP
#define FREQ_DISP
//#include <GL/glut.h>
#include <QtOpenGL/QGLWidget>
#include <math.h>
#include <stdlib.h>
#include <string>
#include <vector>
#include <QGLWidget>
#include "BasicTypes.h"
#include "AbstractGraph.h"
#include "NucleotideDisplay.h"
#include "UiVariables.h"
using namespace std;
class RepeatMap : public AbstractGraph
{
Q_OBJECT
public:
RepeatMap(UiVariables* gui, GLWidget* gl);
~RepeatMap();
QScrollArea* settingsUi();
void display();
void load_3mer_canvas(vector<float> scores);
void link(NucleotideDisplay* nuc_display);
void load_canvas();
void calculateOutputPixels();
GLuint render();
void freq_map();
vector<float> convolution_3mer();
int height();
string SELECT_MouseClick(point2D pt);
int getRelativeIndexFromMouseClick(point2D pt);
vector<point> bestMatches();
void display_freq();
void calculate(vector<color>& img, int vote_size);
double correlate(vector<color>& img, int beginA, int beginB, int pixelsPerSample);
int width();
public slots:
void changeFStart(int val);
void changeGraphWidth(int val);
void toggle3merGraph(bool m);
signals:
void fStartChanged(int);
void graphWidthChanged(int);
protected:
TextureCanvas* canvas_3mer;
NucleotideDisplay* nuc;
GLuint display_object;
vector< vector<float> > freq;
int barWidth;
int spacerWidth;
int F_width;
int F_start;
int F_height;
int freq_map_count;
int calculate_count;
bool using3merGraph;
};
#endif