VTK
dox/Testing/Rendering/vtkRegressionTestImage.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkRegressionTestImage.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00015 #ifndef __vtkRegressionTestImage_h
00016 #define __vtkRegressionTestImage_h
00017 
00018 // Includes and a macro necessary for saving the image produced by a cxx
00019 // example program. This capability is critical for regression testing.
00020 // This function returns 1 if test passed, 0 if test failed.
00021 
00022 #include "vtkTesting.h"
00023 
00024 class vtkRegressionTester : public vtkTesting
00025 {
00026 protected:
00027   vtkRegressionTester() {};
00028   ~vtkRegressionTester() {};
00029 private:
00030   vtkRegressionTester(const vtkRegressionTester&);  // Not implemented.
00031   void operator=(const vtkRegressionTester&);  // Not implemented.
00032 };
00033 
00034 #define vtkRegressionTestImage(rw) \
00035 vtkTesting::Test(argc, argv, rw, 10)
00036 
00037 #define vtkRegressionTestImageThreshold(rw, t) \
00038 vtkTesting::Test(argc, argv, rw, t)
00039 
00040 #endif // __vtkRegressionTestImage_h
00041 // VTK-HeaderTest-Exclude: vtkRegressionTestImage.h