-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathasxp.h
106 lines (57 loc) · 1.64 KB
/
asxp.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#ifndef __asxp_h
#define __asxp_h
#include <QBrush>
#include <QFont>
#include <QPen>
#include <QString>
#include "screenwidget.h"
#include "streamline.h"
class QPainter;
class QPaintEvent;
class QLabel;
class Streamplot;
class PaintHelper
{
public:
PaintHelper();
~PaintHelper();
public:
void getImageInfo(int x, int y, double & a, double & b, double & c, double & d );
// the paint routines (with part routines factored out)
void paint_compute_colmats(double a, double b, int xmax, int ymax);
void paint_fullplot12(QPainter* painter);
void paint_display_crossfield(int xmax, int ymax, QPainter* painter);
void paint_from_colmat(QPainter* painter, int xmax, int ymax, double divider);
void paint_silhouette_line(QPainter* painter, int xmax, int ymax);
void paint(QPainter *painter, QPaintEvent *event, bool mouse_akt,
int mousex, int mousey, double scale_im);
void compute_colmat(double a, double b, int xmax, int ymax);
void compute_colmat_gpu(double a, double b, int xmax, int ymax);
void init_colmat();
public:
QBrush background;
QBrush circleBrush;
QFont textFont;
QPen circlePen;
QPen textPen;
double euler_phi;
double euler_theta;
double euler_psi;
double zsobel_thresh;
double nsobel_thresh;
int shade_type;
bool displayFlowLines;
bool displayCrossField;
int streamLineColor;
double dsep;
int *colmat_r;
int *colmat_g;
int *colmat_b;
bool colmat_valid;
QLabel* displayLabel;
private:
int* pdata;
//[gl_win_size * gl_win_size];
};
extern int phong_exponent;
#endif // __asxp_h