64 #ifndef __vtkTesting_h
65 #define __vtkTesting_h
67 #include "vtkTestingRenderingModule.h"
115 static int InteractorEventLoop(
int argc,
char *argv[],
123 vtkSetClampMacro(FrontBuffer,
int, 0, 1);
124 vtkBooleanMacro(FrontBuffer,
int);
125 vtkGetMacro(FrontBuffer,
int);
131 virtual int RegressionTest(
double thresh);
132 virtual int RegressionTest(
double thresh,ostream &os);
137 virtual int RegressionTest(
vtkAlgorithm* imageSource,
double thresh);
138 virtual int RegressionTest(
vtkAlgorithm* imageSource,
double thresh, ostream& os);
159 vtkSetStringMacro(ValidImageFileName);
160 const char *GetValidImageFileName();
165 vtkGetMacro(ImageDifference,
double);
174 void AddArgument(
const char *argv);
175 void AddArguments(
int argc,
const char **argv);
183 char *GetArgument(
const char *arg);
189 void CleanArguments();
193 const char *GetDataRoot();
194 vtkSetStringMacro(DataRoot);
199 const char *GetTempDirectory();
200 vtkSetStringMacro(TempDirectory);
204 int IsValidImageSpecified();
207 int IsInteractiveModeSpecified();
210 int IsFlagSpecified(
const char *flag);
215 vtkSetMacro(BorderOffset,
int);
216 vtkGetMacro(BorderOffset,
int);
221 vtkSetMacro(Verbose,
int);
222 vtkGetMacro(Verbose,
int);
229 static char* IncrementFileName(
const char* fname,
int count);
230 static int LookForFile(
const char* newFileName);