Ignore:
Timestamp:
Apr 19, 2012 11:09:40 AM (10 years ago)
Author:
ldelgass
Message:

Remove unused volume axis/bbox labeling from VolumeRenderer?. This feature is
now provided by the Grid. Also remove unused volume/slice mode flags in
VolumeRenderer? since it now uses cutplane information from each Volume object
instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/VolumeRenderer.h

    r2973 r2974  
    1616#ifndef _VOLUME_RENDERER_H_
    1717#define _VOLUME_RENDERER_H_
    18 
    19 #include <GL/glew.h>
    2018
    2119#include "Mat4x4.h"
     
    3937
    4038    void diffuse(float val);
    41 
    42     /// control independently
    43     void setSliceMode(bool val)
    44     {
    45         _sliceMode = val;
    46     }
    47 
    48     void setVolumeMode(bool val)
    49     {
    50         _volumeMode = val;
    51     }
    52 
    53     /// switch_cutplane_mode
    54     void switchSliceMode()
    55     {
    56         _sliceMode = (!_sliceMode);
    57     }
    58 
    59     void switchVolumeMode()
    60     {
    61         _volumeMode = (!_volumeMode);
    62     }
    6339
    6440    void clearAnimatedVolumeInfo()
     
    10581                           double& zNear, double& zFar);
    10682
    107     bool initFont(const char *filename);
    108 
    109     /// there are two sets of font in the texture. 0, 1
    110     void glPrint(char *string, int set);
    111 
    112     /// draw label using bitmap texture
    113     void drawLabel(Volume *vol);
    114 
    115     /// Register the location of each alphabet in
    116     void buildFont();
    117 
    11883    VolumeInterpolator *_volumeInterpolator;
    119 
    120     bool _sliceMode;  ///< enable cut planes
    121     bool _volumeMode; ///< enable full volume rendering
    12284
    12385    /**
     
    146108     */
    147109    NvStdVertexShader *_stdVertexShader;
    148 
    149     GLuint _fontBase;      ///< The base of the font display list.
    150     GLuint _fontTexture;   ///< The id of the font texture
    151110};
    152111
Note: See TracChangeset for help on using the changeset viewer.