00001 /*========================================================================= 00002 00003 Copyright (c) 1998-2003 Kitware Inc. 469 Clifton Corporate Parkway, 00004 Clifton Park, NY, 12065, USA. 00005 All rights reserved. 00006 00007 Redistribution and use in source and binary forms, with or without 00008 modification, are permitted provided that the following conditions are met: 00009 00010 * Redistributions of source code must retain the above copyright notice, 00011 this list of conditions and the following disclaimer. 00012 00013 * Redistributions in binary form must reproduce the above copyright notice, 00014 this list of conditions and the following disclaimer in the documentation 00015 and/or other materials provided with the distribution. 00016 00017 * Neither the name of Kitware nor the names of any contributors may be used 00018 to endorse or promote products derived from this software without specific 00019 prior written permission. 00020 00021 * Modified source versions must be plainly marked as such, and must not be 00022 misrepresented as being the original software. 00023 00024 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' 00025 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00026 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00027 ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR 00028 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00029 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00030 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00031 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00032 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00033 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00034 00035 =========================================================================*/ 00042 #ifndef __vtkKWTesting_h 00043 #define __vtkKWTesting_h 00044 00045 #include "vtkObject.h" 00046 00047 class vtkTesting; 00048 class vtkKWView; 00049 class vtkImageAppend; 00050 00051 class VTK_EXPORT vtkKWTesting : public vtkObject 00052 { 00053 public: 00054 static vtkKWTesting* New(); 00055 vtkTypeRevisionMacro(vtkKWTesting,vtkObject); 00056 void PrintSelf(ostream& os, vtkIndent indent); 00057 00059 00060 virtual void SetRenderView(vtkKWView* view); 00061 vtkGetObjectMacro(RenderView, vtkKWView); 00063 00065 00066 vtkSetStringMacro(ComparisonImage); 00068 00070 virtual void AddArgument(const char* arg); 00071 00073 virtual int RegressionTest(float thresh); 00074 00077 virtual void AppendTestImage(vtkKWView *RenderView); 00078 00079 protected: 00080 vtkKWTesting(); 00081 ~vtkKWTesting(); 00082 00083 vtkTesting* Testing; 00084 vtkKWView* RenderView; 00085 char* ComparisonImage; 00086 00087 vtkImageAppend *AppendFilter; 00088 00089 private: 00090 vtkKWTesting(const vtkKWTesting&); // Not implemented 00091 void operator=(const vtkKWTesting&); // Not implemented 00092 }; 00093 00094 00095 #endif 00096 00097 00098 00099