33 #ifndef _pqCoreTestUtility_h 34 #define _pqCoreTestUtility_h 36 #include "pqCoreModule.h" 37 #include "pqTestUtility.h" 39 #include <QStringList> 40 #include <vtkIOStream.h> 43 class pqEventTranslator;
47 class vtkRenderWindow;
55 typedef pqTestUtility Superclass;
66 static QString DataRoot();
72 static QString TestDirectory();
78 static QString BaselineDirectory();
84 static bool SaveScreenshot(vtkRenderWindow* RenderWindow,
const QString& File);
90 static bool CompareImage(vtkRenderWindow* RenderWindow,
const QString& ReferenceImage,
91 double Threshold, ostream& Output,
const QString& TempDirectory);
97 static bool CompareImage(vtkImageData* testImage,
const QString& ReferenceImage,
double Threshold,
98 ostream& Output,
const QString& TempDirectory);
100 static bool CompareImage(
const QString& testPNGImage,
const QString& ReferenceImage,
101 double Threshold, ostream& Output,
const QString& TempDirectory);
107 static bool CompareImage(QWidget* widget,
const QString& referenceImage,
double threshold,
108 ostream& output,
const QString& tempDirectory,
const QSize& size = QSize(300, 300));
110 static bool CompareView(
pqView* curView,
const QString& referenceImage,
double threshold,
111 const QString& tempDirectory,
const QSize& size = QSize());
116 QStringList TestFilenames;
119 #endif // !_pqCoreTestUtility_h This is a PQ abstraction of a generic view module.
static const char * PQ_COMPAREVIEW_PROPERTY_NAME
Provides ParaView-specific functionality for regression testing.