Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Nektar
Nektar
Commits
eeccccb0
Commit
eeccccb0
authored
Mar 05, 2018
by
Kurt Sansom
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify vtkExtras to account for multiple versions
parent
2ae87c1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
utilities/Extras/VtkToPng.cpp
utilities/Extras/VtkToPng.cpp
+6
-3
No files found.
utilities/Extras/VtkToPng.cpp
View file @
eeccccb0
...
...
@@ -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
);
...
...
Dave Moxey
@dmoxey
mentioned in commit
4514a678
·
Mar 08, 2018
mentioned in commit
4514a678
mentioned in commit 4514a6786c7f0d778e7fe2fd266b07f6e1f716b6
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment