5 #ifndef pqCoreTestUtility_h 6 #define pqCoreTestUtility_h 9 #include "pqTestUtility.h" 11 #include <QStringList> 15 class pqEventTranslator;
27 typedef pqTestUtility Superclass;
37 static QString fixPath(
const QString& path);
43 static QString DataRoot();
49 static QString TestDirectory();
55 static QString BaselineDirectory();
61 static bool SaveScreenshot(
vtkRenderWindow* RenderWindow,
const QString& File);
67 static bool CompareImage(
vtkRenderWindow* renderWindow,
const QString& referenceImage,
68 double threshold, ostream& output,
const QString& tempDirectory,
69 const QSize&
size = QSize(300, 300));
76 ostream& Output,
const QString& TempDirectory);
78 static bool CompareImage(
const QString& testPNGImage,
const QString& ReferenceImage,
79 double Threshold, ostream& Output,
const QString& TempDirectory);
85 static bool CompareImage(QWidget* widget,
const QString& referenceImage,
double threshold,
86 ostream& output,
const QString& tempDirectory,
const QSize&
size = QSize(300, 300));
88 static bool CompareView(
pqView* curView,
const QString& referenceImage,
double threshold,
89 const QString& tempDirectory,
const QSize&
size = QSize());
93 static bool CompareTile(QWidget* widget,
int rank,
int tdx,
int tdy,
const QString& baseline,
94 double threshold, ostream& output,
const QString& tempDirectory);
95 static bool CompareTile(
pqView* widget,
int rank,
int tdx,
int tdy,
const QString& baseline,
96 double threshold, ostream& output,
const QString& tempDirectory);
101 static QString cleanPath(
const QString&);
115 void setDashboardMode(
bool value)
override;
121 void updatePlayers()
override;
127 void updateTranslators()
override;
130 QStringList TestFilenames;
133 #endif // !pqCoreTestUtility_h bool supportsDashboardMode() override
Reimplemented to inform this test utility supports dashboard mode always returns true.
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.