Ignore:
Timestamp:
Jun 2, 2006 9:38:14 PM (18 years ago)
Author:
mmc
Message:

Added a new "legend" command, which can be used to request the
legend strip for a transfer function.

File:
1 edited

Legend:

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

    r432 r455  
    5656}
    5757
     58void
     59PlaneRenderer::remove_plane(int index) {
     60  vector<Texture2D*>::iterator piter = plane.begin()+index;
     61  vector<TransferFunction*>::iterator tfiter = tf.begin()+index;
     62
     63  plane.erase(piter);
     64  tf.erase(tfiter);
     65
     66  n_planes--;
     67}
     68
    5869
    5970void PlaneRenderer::render(){
    60   if(n_planes == 0)
     71  if (n_planes == 0)
    6172    return;
    6273
     
    108119}
    109120
    110 void PlaneRenderer::set_active_plane(int index) { active_plane = index; }
    111 void PlaneRenderer::set_screen_size(int w, int h) { render_width = w;  render_height = h;}
     121void
     122 PlaneRenderer::set_active_plane(int index) {
     123  active_plane = index;
     124}
    112125
     126void
     127PlaneRenderer::set_screen_size(int w, int h) {
     128  render_width = w;
     129  render_height = h;
     130}
Note: See TracChangeset for help on using the changeset viewer.