qvolray

annotate src/volray.h @ 32:7e5a2dd9bca6

actions and shit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 14 Apr 2012 22:51:41 +0300
parents aeef3c2ae472
children
rev   line source
nuclear@12 1 #ifndef VOLRAY_H_
nuclear@12 2 #define VOLRAY_H_
nuclear@12 3
nuclear@13 4 #include "volume.h"
nuclear@13 5
nuclear@12 6 bool volray_init();
nuclear@18 7
nuclear@18 8 void volray_setvolume(Volume *vol);
nuclear@18 9 Volume *volray_getvolume();
nuclear@18 10
nuclear@29 11 enum class VolRayOpt {
nuclear@29 12 ZCURSOR,
nuclear@29 13 ZCLIP
nuclear@21 14 };
nuclear@21 15
nuclear@29 16 void volray_setvalue(VolRayOpt which, float val);
nuclear@29 17 float volray_getvalue(VolRayOpt which);
nuclear@21 18
nuclear@12 19 void volray_resize(int xsz, int ysz);
nuclear@12 20 void volray_draw();
nuclear@28 21 void volray_draw_slice();
nuclear@29 22 void volray_draw_xfer();
nuclear@12 23
nuclear@13 24 void volray_mouse(int bn, int state, int x, int y);
nuclear@13 25 void volray_motion(int x, int y);
nuclear@13 26
nuclear@29 27 int parse_args(int argc, char **argv);
nuclear@29 28
nuclear@12 29 #endif // VOLRAY_H_