glviewvol
diff src/renderer.h @ 5:5417c25cb238
moving to a simpler transfer function
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 29 Dec 2014 15:59:55 +0200 |
parents | 04330eb80b36 |
children | f22be47a3572 |
line diff
1.1 --- a/src/renderer.h Mon Dec 29 05:41:36 2014 +0200 1.2 +++ b/src/renderer.h Mon Dec 29 15:59:55 2014 +0200 1.3 @@ -14,6 +14,7 @@ 1.4 float clip_plane[MAX_CLIP_PLANES][4]; // nx,ny,nz,dist 1.5 1.6 Curve xfer[3]; // rgb transfer function 1.7 + float xfer_low, xfer_high; // simple transfer function bounds 1.8 1.9 public: 1.10 Renderer(); 1.11 @@ -28,6 +29,9 @@ 1.12 virtual Curve &transfer_curve(int color); 1.13 virtual const Curve &transfer_curve(int color) const; 1.14 1.15 + virtual void set_simple_transfer(float low, float high); 1.16 + virtual void get_simple_transfer(float *low, float *high) const; 1.17 + 1.18 virtual void set_clipping_plane(int idx, float nx, float ny, float nz, float dist); 1.19 virtual void disable_clipping_plane(int idx); 1.20