Commit 7b7175dd authored by Berk Geveci's avatar Berk Geveci Committed by Kitware Robot

Merge topic 'improve-parallel-rendering-tests'

450a89e0 Improved a few parallel rendering tests.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: Utkarsh Ayachit's avatarUtkarsh Ayachit <utkarsh.ayachit@kitware.com>
Merge-request: !1616
parents 8bb73545 450a89e0
Pipeline #18598 running with stage
......@@ -15,13 +15,10 @@ vtk_add_test_cxx(${vtk-module}CxxTests tests
vtk_test_cxx_executable(${vtk-module}CxxTests tests)
vtk_add_test_mpi(${vtk-module}CxxTests-MPI tests
RENDERING_DATA
TestSimplePCompositeZPass.cxx
TestSimplePCompositeZPass.cxx,TESTING_DATA
TestParallelRendering.cxx,TESTING_DATA
${extra_opengl_tests}
)
vtk_add_test_mpi(${vtk-module}CxxTests-MPI no_data_tests
TestParallelRendering.cxx
)
set(all_tests
${tests}
......
......@@ -18,7 +18,7 @@
#include "vtkMPICommunicator.h"
#include "vtkMPIController.h"
#include "vtkSynchronizedRenderWindows.h"
#include "vtkSynchronizedRenderers.h"
#include "vtkCompositedSynchronizedRenderers.h"
#include "vtkTestUtilities.h"
#include "vtkRegressionTestImage.h"
#include "vtkRenderWindowInteractor.h"
......@@ -109,7 +109,8 @@ void MyProcess::Execute()
syncWindows->SetParallelController(this->Controller);
syncWindows->SetIdentifier(1);
vtkSynchronizedRenderers* syncRenderers = vtkSynchronizedRenderers::New();
vtkCompositedSynchronizedRenderers* syncRenderers =
vtkCompositedSynchronizedRenderers::New();
syncRenderers->SetRenderer(renderer);
syncRenderers->SetParallelController(this->Controller);
//syncRenderers->SetImageReductionFactor(3);
......@@ -194,6 +195,5 @@ int TestParallelRendering(int argc, char *argv[])
contr->Finalize();
contr->Delete();
vtkMultiProcessController::SetGlobalController(0);
//return !retVal;
return 0;
return !retVal;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment