[vtkusers] Medical3.cxx needs to be fixed : vtkLookupTable::Build() still missing
Mathieu Malaterre
mathieu.malaterre at kitware.com
Thu May 26 09:52:30 EDT 2005
Michael,
Thanks for report: this is fixed in CVS:
$ cvs ci -m"BUG: Call Build on the lookup table, also need to call
Render explicitely before the ResetCamera to prevent segfault..."
Medical3.cxx
/cvsroot/ParaView/ParaView/VTK/Examples/Medical/Cxx/Medical3.cxx,v <--
Medical3.cxx
new revision: 1.6; previous revision: 1.5
Mathieu
Michael Dussere wrote:
> 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
> _______________________________________________
> This is the private VTK discussion list. Please keep messages on-topic.
> Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list