Skip to content
Snippets Groups Projects
Commit eeccccb0 authored by Kurt Sansom's avatar Kurt Sansom
Browse files

modify vtkExtras to account for multiple versions

parent 2ae87c1f
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment