Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
3e30588b
Commit
3e30588b
authored
Nov 07, 2011
by
Philippe Pébay
Browse files
Perform regression testing for scalar bars
Change-Id: Ib4f21ec661c68b37425736b6d3807ad1c8c67876
parent
9291d0c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Rendering/Testing/Cxx/TestScalarBar.cxx
View file @
3e30588b
...
...
@@ -19,6 +19,7 @@
#include "vtkPLOT3DReader.h"
#include "vtkPolyDataMapper.h"
#include "vtkProperty2D.h"
#include "vtkRegressionTestImage.h"
#include "vtkRenderer.h"
#include "vtkRenderWindow.h"
#include "vtkRenderWindowInteractor.h"
...
...
@@ -139,12 +140,17 @@ int TestScalarBar( int argc, char *argv[] )
ren1
->
SetBackground
(
.5
,
.5
,
.5
);
ren1
->
SetBackground2
(
.0
,
.0
,
.0
);
ren1
->
SetActiveCamera
(
camera
);
renWin
->
SetSize
(
700
,
500
);
// render the image
iren
->
Initialize
();
renWin
->
SetWindowName
(
"VTK - Scalar Bar options"
);
renWin
->
SetSize
(
700
,
500
);
renWin
->
Render
();
iren
->
Start
();
return
EXIT_SUCCESS
;
int
retVal
=
vtkRegressionTestImage
(
renWin
.
GetPointer
()
);
if
(
retVal
==
vtkRegressionTester
::
DO_INTERACTOR
)
{
iren
->
Start
();
}
return
!
retVal
;
}
Write
Preview
Supports
Markdown
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