[vtkusers] Medical3.cxx needs to be fixed : vtkLookupTable::Build() still missing

Michael Dussere dussere at labri.fr
Thu May 26 06:12:50 EDT 2005


Hi,

could someone add the 'vtkLookupTable::Build()' calls in the example 
Medical3.cxx.

Michael



   // Now we are creating three orthogonal planes passing through the
   // volume. Each plane uses a different texture map and therefore has
   // diferent coloration.

   // Start by creatin a black/white lookup table.
   vtkLookupTable *bwLut = vtkLookupTable::New();
     bwLut->SetTableRange (0, 2000);
     bwLut->SetSaturationRange (0, 0);
     bwLut->SetHueRange (0, 0);
     bwLut->SetValueRange (0, 1);
     bwLut->Build (); // effective built

   // Now create a lookup table that consists of the full hue circle
   // (from HSV).
   vtkLookupTable *hueLut = vtkLookupTable::New();
     hueLut->SetTableRange (0, 2000);
     hueLut->SetHueRange (0, 1);
     hueLut->SetSaturationRange (1, 1);
     hueLut->SetValueRange (1, 1);
     hueLut->Build (); // effective built

   // Finally, create a lookup table with a single hue but having a range
   // in the saturation of the hue.
   vtkLookupTable *satLut = vtkLookupTable::New();
     satLut->SetTableRange (0, 2000);
     satLut->SetHueRange (.6, .6);
     satLut->SetSaturationRange (0, 1);
     satLut->SetValueRange (1, 1);
     satLut->Build (); // effective built



More information about the vtkusers mailing list