Hi,

I tried to compile mitk with vtk v5.2 and after two little changes in the 
source code I could compile it without errors.

The changes I have made are as follow:

In mitkBaseVtkMapper3D.cpp:

Changed:
#if ( ( VTK_MAJOR_VERSION >= 5 ) && ( VTK_MINOR_VERSION>=3)  )
    GetProp()->RenderTranslucentPolygonalGeometry(renderer->GetVtkRenderer());
#else
    GetProp()->RenderTranslucentGeometry(renderer->GetVtkRenderer());
#endif

To:
#if ( ( VTK_MAJOR_VERSION >= 5 ) && ( VTK_MINOR_VERSION>=2)  )
    GetProp()->RenderTranslucentPolygonalGeometry(renderer->GetVtkRenderer());
#else
    GetProp()->RenderTranslucentGeometry(renderer->GetVtkRenderer());
#endif

In mitkGeometry2DDataVtkMapper3D:
Changed:
lookupTable = texture->GetLookupTable();

To:
lookupTable = (vtkLookupTable*) texture->GetLookupTable();


The only problem that I have now is that the 3D render window is black all the 
time.
Before I start digging into the problem, i would like to know if someone tried 
and solved this issue already?

Greets

Klaus

PS: In the directory Qmitk/... there is QVtkWidget.cpp and other files from VTK 
that seems to be useless, because they are already provided and compiled into 
vtk (I deleted them in mitk and with vtk 5.0.4 everything still works fine). Do 
I oversee something?

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to