Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Modules
Visualization
Commits
0fb443f7
Commit
0fb443f7
authored
Nov 08, 2018
by
Mark OLESEN
Browse files
COMP: fix conditional for VTK legacy rendering.
- was deprecated for removal with VTK 8.1.0 definitely removed in VTK 8.2.0
parent
5527b00b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/runTimePostProcessing/runTimePostProcessing.C
View file @
0fb443f7
...
...
@@ -158,8 +158,11 @@ bool Foam::functionObjects::runTimePostProcessing::write()
auto
renderWindow
=
vtkSmartPointer
<
vtkRenderWindow
>::
New
();
renderWindow
->
OffScreenRenderingOn
();
renderWindow
->
SetSize
(
output_
.
width_
,
output_
.
height_
);
#if (VTK_MAJOR_VERSION < 9)
renderWindow
->
SetAAFrames
(
10
);
// Legacy rendering
// Legacy rendering - was deprecated for 8.1.0
#if (VTK_MAJOR_VERSION < 8) || \
((VTK_MAJOR_VERSION == 8) && (VTK_MINOR_VERSION < 2))
renderWindow
->
SetAAFrames
(
10
);
#endif
renderWindow
->
SetAlphaBitPlanes
(
true
);
renderWindow
->
SetMultiSamples
(
0
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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