[vtkusers] CMake use either VTK 5.x or 6.0

chasank chasank at gmail.com
Tue Jun 25 11:09:37 EDT 2013


Hi,

I suggest you to take a look at this code snippet (example taken from
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/BackgroundTexture):

#if VTK_MAJOR_VERSION <= 5
  texture->SetInputConnection(image->GetProducerPort());
#else
  texture->SetInputData(image);
#endif



--
View this message in context: http://vtk.1045678.n5.nabble.com/CMake-use-either-VTK-5-x-or-6-0-tp5721589p5721590.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list