Hi all,

I try to use a defined lookup table for one special node with the
following code:

vtkLookupTable *vtkLUT = vtkLookupTable::New();
    vtkLUT->SetNumberOfTableValues( 2 );
    vtkLUT->SetRange(0.0, 1.0);
    vtkLUT->SetTableValue( 0, 1.0, 0.0, 0.0, 1);
    vtkLUT->SetTableValue( 1, 0.0, 1.0, 0.0, 1 );
    vtkLUT->SetTableValue( 2, 0.0, 0.0, 1.0, 1 );
    vtkLUT->Build();

mitk::LookupTable::Pointer mitkLookupTable = mitk::LookupTable::New();
mitkLookupTable->SetVtkLookupTable(vtkLUT);
mitk::LookupTableProperty::Pointer LookupTableProp =
mitk::LookupTableProperty::New( mitkLookupTable );

nodeIntima->SetProperty( "LookupTable", LookupTableProp );
nodeIntima->Update();

Unfortunately not the defined colors are used. There are colors...has
mitk Lookup Table defined default colors?

Maybe one can help me.

Thanks.

Regards,


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to