Vessel-Tree 2D Visualisation
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
myrenderthread.h
1
#ifndef MYRENDERTHREAD_H
2
#define MYRENDERTHREAD_H
3
4
#include <QThread>
5
#include "mainwindow.h"
6
7
class
MyGLFrame
;
8
class
QSize;
9
10
class
MyRenderThread
:
public
QThread
11
{
12
Q_OBJECT
13
public
:
14
19
explicit
MyRenderThread
(
MyGLFrame
*parent = 0);
20
25
void
resizeViewport
(
const
QSize &size);
26
30
void
run
(
void
);
31
35
void
stop
(
void
);
36
43
float
getMaximumCircumference
(
MainWindow::Vessel
v);
44
53
int
paintVessels
(
MainWindow::Vessel
v,
float
maxCircumference,
int
startingLevel,
int
startingY,
int
connectiontoFather);
54
55
protected
:
59
void
GLInit
(
void
);
60
67
void
GLResize
(
int
width,
int
height,
int
sizeX);
68
72
void
paintGL
(
void
);
73
74
private
:
75
bool
doRendering, doResize;
76
int
w, h, FrameCounter;
77
MyGLFrame
*GLFrame;
78
int
scale_w;
79
int
scale_h;
80
// leveloffsets[i] holds the current level number. Deepness is set to 15.
81
int
leveloffsets[15];
82
83
struct
Color{
84
int
R;
85
int
G;
86
int
B;
87
};
88
92
QList<Color> colorList;
93
94
//create a QPainter and pass a pointer to the device.
95
//A paint device can be a QWidget, a QPixmap or a QImage
96
//QPainter painter(this);
97
};
98
99
#endif // MYRENDERTHREAD_H
myrenderthread.h
Generated on Tue Jun 11 2013 23:33:39 for Vessel-Tree 2D Visualisation by
1.8.4