Ignore:
Timestamp:
May 5, 2006, 12:04:13 PM (18 years ago)
Author:
qiaow
Message:

Added some comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/vizservers/nanovis/VolumeRenderer.cpp

    r431 r432  
    168168    float z_step = fabs(zNear-zFar)/n_slices;           
    169169    int n_actual_slices = (int)(fabs(zNear-zFar)/z_step + 1);
     170
     171    //if no cloud
     172    //n_actual_slices = 0;
     173   
    170174    actual_slices[cur_vol] = n_actual_slices;
    171175    polys[cur_vol] = new ConvexPolygon*[n_actual_slices];
     176
     177    //if no cloud
     178    //polys[cur_vol] = NULL;
    172179
    173180    float slice_z;
     
    259266
    260267    int counter = 0;
     268   
    261269    //transform slices and store them
    262270    for (int i=0; i<n_actual_slices; i++){
     
    291299        total_rendered_slices++;
    292300    }
     301   
    293302  } //iterate all volumes
    294303  //fprintf(stderr, "total slices: %d\n", total_rendered_slices);
     
    705714void VolumeRenderer::switch_volume_mode() { volume_mode = (!volume_mode); }
    706715
     716void VolumeRenderer::enable_volume(int index){
     717  volume[index]->enable();
     718}
     719
     720void VolumeRenderer::disable_volume(int index){
     721  volume[index]->disable();
     722}
Note: See TracChangeset for help on using the changeset viewer.