volmetrics
diff src/view3d.h @ 36:1df14c5ffa71
conversion to Qt
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 06 Feb 2015 22:39:51 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/view3d.h Fri Feb 06 22:39:51 2015 +0200 1.3 @@ -0,0 +1,28 @@ 1.4 +#ifndef VIEW3D_H_ 1.5 +#define VIEW3D_H_ 1.6 + 1.7 +#include "glview.h" 1.8 +#include "volume.h" 1.9 + 1.10 +class View3D { 1.11 +private: 1.12 + Volume *vol; 1.13 + float thres_low, thres_high; 1.14 + GLView *glview; 1.15 + 1.16 +public: 1.17 + View3D(); 1.18 + ~View3D(); 1.19 + 1.20 + bool init(GLView *glview); 1.21 + void destroy(); 1.22 + 1.23 + void display(); 1.24 + void reshape(int x, int y); 1.25 + 1.26 + void set_volume(Volume *vol); 1.27 + void set_thresholds(float low, float high); 1.28 +}; 1.29 + 1.30 +#endif // VIEW3D_H_ 1.31 +