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
72ce779c
Commit
72ce779c
authored
Jun 11, 2010
by
François Bertel
Browse files
ENH:Make TestTM3DLightComponents.cxx passing on old configurations.
parent
c1024e32
Changes
1
Hide whitespace changes
Inline
Side-by-side
VolumeRendering/Testing/Cxx/TestTM3DLightComponents.cxx
View file @
72ce779c
...
...
@@ -104,6 +104,7 @@ int TestTM3DLightComponents(int argc,
lights
->
AddItem
(
light
);
light
->
Delete
();
renWin
->
Render
();
// make sure we have an OpenGL context.
vtkVolumeProperty
*
volumeProperty
;
vtkVolume
*
volume
;
...
...
@@ -139,15 +140,24 @@ int TestTM3DLightComponents(int argc,
volume
->
SetProperty
(
volumeProperty
);
ren1
->
AddViewProp
(
volume
);
int
valid
=
volumeMapper
->
IsRenderSupported
(
volumeProperty
,
ren1
);
int
retVal
;
ren1
->
ResetCamera
();
renWin
->
Render
();
retVal
=
vtkTesting
::
Test
(
argc
,
argv
,
renWin
,
75
);
if
(
retVal
==
vtkRegressionTester
::
DO_INTERACTOR
)
if
(
valid
)
{
ren1
->
ResetCamera
();
renWin
->
Render
();
retVal
=
vtkTesting
::
Test
(
argc
,
argv
,
renWin
,
75
);
if
(
retVal
==
vtkRegressionTester
::
DO_INTERACTOR
)
{
iren
->
Start
();
}
}
else
{
iren
->
Start
();
retVal
=
vtkTesting
::
PASSED
;
cout
<<
"Required extensions not supported."
<<
endl
;
}
volumeMapper
->
Delete
();
...
...
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