-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathAnnotationDisplay.h
53 lines (42 loc) · 1.18 KB
/
AnnotationDisplay.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
#ifndef TRACK_DISP
#define TRACK_DISP
//#include <GL/glut.h>
#include <QtOpenGL/QGLWidget>
#include <math.h>
#include <stdlib.h>
#include <string>
#include <vector>
#include "BasicTypes.h"
#include "AbstractGraph.h"
#include "UiVariables.h"
using namespace std;
class AnnotationDisplay : public AbstractGraph
{
Q_OBJECT
public:
AnnotationDisplay(UiVariables* gui, GLWidget* gl, string gtfFileName);
~AnnotationDisplay();
void calculateOutputPixels();
void display();
GLuint render();
void displayLayout(vector<vector<track_entry> > layout);
vector<vector<track_entry> > calculateTrackLayout(const vector<track_entry>& track);
void newTrack(vector<track_entry> track);
string SELECT_MouseClick(point2D pt);
int width();
void setFileName(string gtfFileName);
string getFileName();
int current_display_size();
int getNextAnnotationPosition();
int getPrevAnnotationPosition();
public slots:
void addEntry(track_entry entry);
signals:
private:
GLWidget* glWidget;
int max_width;
vector<track_entry> gtfTrack;
string fileName;
void stackEntry(vector<track_entry>& activeEntries, track_entry item);
};
#endif