PageRenderTime 44ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/RImageBook/src/thirdparty/i386/VTK/include/vtkRegressionTestImage.h

http://rimagebook.googlecode.com/
C++ Header | 40 lines | 17 code | 6 blank | 17 comment | 0 complexity | 68dcef83be0534edebdfc695a5eaa006 MD5 | raw file
  1. /*=========================================================================
  2. Program: Visualization Toolkit
  3. Module: vtkRegressionTestImage.h
  4. Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
  5. All rights reserved.
  6. See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
  7. This software is distributed WITHOUT ANY WARRANTY; without even
  8. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  9. PURPOSE. See the above copyright notice for more information.
  10. =========================================================================*/
  11. #ifndef __vtkRegressionTestImage_h
  12. #define __vtkRegressionTestImage_h
  13. // Includes and a macro necessary for saving the image produced by a cxx
  14. // example program. This capability is critical for regression testing.
  15. // This function returns 1 if test passed, 0 if test failed.
  16. #include "vtkTesting.h"
  17. class vtkRegressionTester : public vtkTesting
  18. {
  19. protected:
  20. vtkRegressionTester() {};
  21. ~vtkRegressionTester() {};
  22. private:
  23. vtkRegressionTester(const vtkRegressionTester&); // Not implemented.
  24. void operator=(const vtkRegressionTester&); // Not implemented.
  25. };
  26. #define vtkRegressionTestImage(rw) \
  27. vtkTesting::Test(argc, argv, rw, 10)
  28. #define vtkRegressionTestImageThreshold(rw, t) \
  29. vtkTesting::Test(argc, argv, rw, t)
  30. #endif // __vtkRegressionTestImage_h