33 #ifndef _pqCoreTestUtility_h 34 #define _pqCoreTestUtility_h 37 #include "pqTestUtility.h" 39 #include <QStringList> 43 class pqEventTranslator;
55 typedef pqTestUtility Superclass;
65 static QString fixPath(
const QString& path);
72 static QString DataRoot();
78 static QString TestDirectory();
84 static QString BaselineDirectory();
90 static bool SaveScreenshot(
vtkRenderWindow* RenderWindow,
const QString& File);
96 static bool CompareImage(
vtkRenderWindow* renderWindow,
const QString& referenceImage,
97 double threshold, ostream& output,
const QString& tempDirectory,
98 const QSize&
size = QSize(300, 300));
105 ostream& Output,
const QString& TempDirectory);
107 static bool CompareImage(
const QString& testPNGImage,
const QString& ReferenceImage,
108 double Threshold, ostream& Output,
const QString& TempDirectory);
114 static bool CompareImage(QWidget* widget,
const QString& referenceImage,
double threshold,
115 ostream& output,
const QString& tempDirectory,
const QSize&
size = QSize(300, 300));
117 static bool CompareView(
pqView* curView,
const QString& referenceImage,
double threshold,
118 const QString& tempDirectory,
const QSize&
size = QSize());
122 static bool CompareTile(QWidget* widget,
int rank,
int tdx,
int tdy,
const QString& baseline,
123 double threshold, ostream& output,
const QString& tempDirectory);
124 static bool CompareTile(
pqView* widget,
int rank,
int tdx,
int tdy,
const QString& baseline,
125 double threshold, ostream& output,
const QString& tempDirectory);
128 QStringList TestFilenames;
131 #endif // !_pqCoreTestUtility_h
This is a PQ abstraction of a generic view module.
int Threshold(vtkDataSet *input, vtkUnstructuredGrid *output, vtkDataArray *field, double lower, double upper)
static const char * PQ_COMPAREVIEW_PROPERTY_NAME
Provides ParaView-specific functionality for regression testing.