On Mon, 2008-03-17 at 12:53 +0100, Steffen Oeltze wrote:
> Hi,
> 
> I am experiencing a strange problem and I am wondering if it is somehow 
> related to MITK. I have 42 vtkPolyData objects in my scene and for each 
> of these objects, I call the same function to colorize them, always 
> using the same color LUT. In this function, a vtkLookupTable is 
> generated (by a call to another class) and the generated LUT is passed 
> to MITK:
> 
> mitk::LookupTable::Pointer lutpath = mitk::LookupTable::New();
> 
> _lookUpTabs->buildLutBlueToYellow(); // build the LUT
> 
> lutPath->SetVtkLookupTable(_lookUpTabs->getLutBlueToYellow());
> 
> nodepath->SetProperty ( "LookupTable", new mitk::LookupTableProperty ( 
> lutpath.GetPointer() ) );
> 

Hi,

I found a problem in mitk::SurfaceMapper2D. The Point() method of this
mapper calls (something that set the LUT's modified flag and then)
lookuptable->Build() every for each rendering.

This piece of code seems just wrong, but I don't have a quick fix and
also the programmer who implemented this is not available (and the
intention for calling Build() is not documented).

I'll put this in our bugtracker (bug #1258) and we hopefully come up
with a solution soon. If you are faster, we'd gladly apply a patch file.

Best regards
Daniel

-- 
Dipl.-Inform. Med. Daniel Maleike          Phone: +49 6221 42 2326
Deutsches Krebsforschungszentrum           Im Neuenheimer Feld 280
Medical and Biological Informatics (E130)         69120 Heidelberg


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to