Changeset 2974 for trunk/packages/vizservers/nanovis/VolumeRenderer.h
- Timestamp:
- Apr 19, 2012 11:09:40 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/VolumeRenderer.h
r2973 r2974 16 16 #ifndef _VOLUME_RENDERER_H_ 17 17 #define _VOLUME_RENDERER_H_ 18 19 #include <GL/glew.h>20 18 21 19 #include "Mat4x4.h" … … 39 37 40 38 void diffuse(float val); 41 42 /// control independently43 void setSliceMode(bool val)44 {45 _sliceMode = val;46 }47 48 void setVolumeMode(bool val)49 {50 _volumeMode = val;51 }52 53 /// switch_cutplane_mode54 void switchSliceMode()55 {56 _sliceMode = (!_sliceMode);57 }58 59 void switchVolumeMode()60 {61 _volumeMode = (!_volumeMode);62 }63 39 64 40 void clearAnimatedVolumeInfo() … … 105 81 double& zNear, double& zFar); 106 82 107 bool initFont(const char *filename);108 109 /// there are two sets of font in the texture. 0, 1110 void glPrint(char *string, int set);111 112 /// draw label using bitmap texture113 void drawLabel(Volume *vol);114 115 /// Register the location of each alphabet in116 void buildFont();117 118 83 VolumeInterpolator *_volumeInterpolator; 119 120 bool _sliceMode; ///< enable cut planes121 bool _volumeMode; ///< enable full volume rendering122 84 123 85 /** … … 146 108 */ 147 109 NvStdVertexShader *_stdVertexShader; 148 149 GLuint _fontBase; ///< The base of the font display list.150 GLuint _fontTexture; ///< The id of the font texture151 110 }; 152 111
Note: See TracChangeset
for help on using the changeset viewer.