Commit eeccccb0 by Kurt Sansom

modify vtkExtras to account for multiple versions

parent 2ae87c1f
......@@ -103,8 +103,9 @@ int main(int argc, char * argv[])
#else
mapper->SetInputData(data);
#endif
#if (VTK_MAJOR_VERSION <= 8 && VTK_MINOR_VERSION <= 1) //deprecated as of vtk 8.1
#if VTK_MAJOR_VERSION < 8 || (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION <= 1)
//deprecated as of vtk 8.1
mapper->ImmediateModeRenderingOn();
#endif
......@@ -144,7 +145,9 @@ int main(int argc, char * argv[])
vtkSmartPointer<vtkWindowToImageFilter> windowToImageFilter =
vtkSmartPointer<vtkWindowToImageFilter>::New();
windowToImageFilter->SetInput(renderWindow);
#if (VTK_MAJOR_VERSION <= 8 && VTK_MINOR_VERSION <= 1) //deprecated as of vtk 8.1
#if VTK_MAJOR_VERSION < 8 || (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION <= 1)
//deprecated as of vtk 8.1
windowToImageFilter->SetMagnification(4);
#else
windowToImageFilter->SetScale(4, 4);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment