diff --git a/Core/Code/Testing/mitkSurfaceGLMapper2DOpacityTest.cpp b/Core/Code/Testing/mitkSurfaceGLMapper2DOpacityTest.cpp index 0f0fc2230b..ad02205ac0 100644 --- a/Core/Code/Testing/mitkSurfaceGLMapper2DOpacityTest.cpp +++ b/Core/Code/Testing/mitkSurfaceGLMapper2DOpacityTest.cpp @@ -1,51 +1,51 @@ /*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See LICENSE.txt or http://www.mitk.org for details. ===================================================================*/ //MITK #include "mitkTestingMacros.h" #include "mitkRenderingTestHelper.h" #include //VTK #include int mitkSurfaceGLMapper2DOpacityTest(int argc, char* argv[]) { // load all arguments into a datastorage, take last argument as reference rendering // setup a renderwindow of fixed size X*Y // render the datastorage // compare rendering to reference image MITK_TEST_BEGIN("mitkSurfaceGLMapper2DOpacityTest") mitk::RenderingTestHelper renderingHelper(640, 480, argc, argv); //Set the opacity for all images renderingHelper.GetDataStorage()->GetNode(mitk::NodePredicateDataType::New("Surface"))->SetProperty("opacity", mitk::FloatProperty::New(0.5f)); //### Usage of CompareRenderWindowAgainstReference: See docu of mitkRrenderingTestHelper MITK_TEST_CONDITION( renderingHelper.CompareRenderWindowAgainstReference(argc, argv) == true, "CompareRenderWindowAgainstReference test result positive?" ); //#################### //Use this to generate a reference screenshot or save the file. //(Only in your local version of the test!) - if(true) + if(false) { renderingHelper.SaveReferenceScreenShot("/home/kilgus/Pictures/RenderingTestData/output.png"); } //#################### MITK_TEST_END(); }