00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkTestingInteractor.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 copyrgight notice for more information. 00013 00014 =========================================================================*/ 00015 #ifndef __vtkTestingInteractor_h 00016 #define __vtkTestingInteractor_h 00017 00035 #include "vtkRenderWindowInteractor.h" 00036 #include "vtkTesting.h" // Required for Test Driver 00037 00038 //BTX 00039 #include <string> // STL Header; Required for string 00040 //ETX 00041 00042 // .NAME vtkTestingInteractor - A RenderWindowInteractor for testing 00043 // .SECTION Description 00044 // Provides a Start() method that passes arguments to a test for 00045 // regression testing and returns. This permits programs that 00046 // run as tests to exit gracefully during the test run without needing 00047 // interaction. 00048 class VTK_RENDERING_EXPORT vtkTestingInteractor : public vtkRenderWindowInteractor 00049 { 00050 public: 00051 static vtkTestingInteractor* New(); 00052 vtkTypeMacro(vtkTestingInteractor,vtkRenderWindowInteractor); 00053 virtual void Start(); 00054 00055 static int TestReturnStatus; // Return status of the test 00056 static std::string ValidBaseline; // Name of the Baseline image 00057 static std::string TempDirectory; // Location of Testing/Temporary 00058 static std::string DataDirectory; // Location of VTKData 00059 00060 protected: 00061 vtkTestingInteractor() {} 00062 00063 private: 00064 vtkTestingInteractor(const vtkTestingInteractor&); // Not implemented 00065 void operator=(const vtkTestingInteractor&); // Not implemented 00066 00067 }; 00068 00069 #endif