ParaView
Public Member Functions | Static Public Member Functions
pqCoreTestUtility Class Reference

Provides ParaView-specific functionality for regression testing. More...

#include <pqCoreTestUtility.h>

Inheritance diagram for pqCoreTestUtility:
Inheritance graph
[legend]
Collaboration diagram for pqCoreTestUtility:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 pqCoreTestUtility (QObject *parent=0)
 ~pqCoreTestUtility ()

Static Public Member Functions

static QString DataRoot ()
 Returns the absolute path to the PARAVIEW_DATA_ROOT in canonical form (slashes forward), or empty string.
static QString TestDirectory ()
 Returns the temporary test directory in which tests can write temporary outputs, difference images etc.
static bool SaveScreenshot (vtkRenderWindow *RenderWindow, const QString &File)
 Saves the contents of a render window to a file for later use as a reference image.
static bool CompareImage (vtkRenderWindow *RenderWindow, const QString &ReferenceImage, double Threshold, ostream &Output, const QString &TempDirectory)
 Compares the contents of a render window to a reference image, returning true iff the two match within a given threshold.
static bool CompareImage (vtkImageData *testImage, const QString &ReferenceImage, double Threshold, ostream &Output, const QString &TempDirectory)
 Compares the test image to a reference image, returning true iff the two match within a given threshold.
static bool CompareImage (const QString &testPNGImage, const QString &ReferenceImage, double Threshold, ostream &Output, const QString &TempDirectory)
static bool CompareImage (QWidget *widget, const QString &referenceImage, double threshold, ostream &output, const QString &tempDirectory, const QSize &size=QSize(300, 300))
 Compares the contents of any arbitrary QWidget to a reference image, returning true iff the two match within a given threshold.
static bool CompareView (pqView *curView, const QString &referenceImage, double threshold, const QString &tempDirectory, const QSize &size=QSize())

Detailed Description

Provides ParaView-specific functionality for regression testing.

Definition at line 50 of file pqCoreTestUtility.h.


Constructor & Destructor Documentation

pqCoreTestUtility::pqCoreTestUtility ( QObject *  parent = 0)
pqCoreTestUtility::~pqCoreTestUtility ( )

Member Function Documentation

static QString pqCoreTestUtility::DataRoot ( ) [static]

Returns the absolute path to the PARAVIEW_DATA_ROOT in canonical form (slashes forward), or empty string.

static QString pqCoreTestUtility::TestDirectory ( ) [static]

Returns the temporary test directory in which tests can write temporary outputs, difference images etc.

static bool pqCoreTestUtility::SaveScreenshot ( vtkRenderWindow RenderWindow,
const QString &  File 
) [static]

Saves the contents of a render window to a file for later use as a reference image.

static bool pqCoreTestUtility::CompareImage ( vtkRenderWindow RenderWindow,
const QString &  ReferenceImage,
double  Threshold,
ostream &  Output,
const QString &  TempDirectory 
) [static]

Compares the contents of a render window to a reference image, returning true iff the two match within a given threshold.

static bool pqCoreTestUtility::CompareImage ( vtkImageData testImage,
const QString &  ReferenceImage,
double  Threshold,
ostream &  Output,
const QString &  TempDirectory 
) [static]

Compares the test image to a reference image, returning true iff the two match within a given threshold.

static bool pqCoreTestUtility::CompareImage ( const QString &  testPNGImage,
const QString &  ReferenceImage,
double  Threshold,
ostream &  Output,
const QString &  TempDirectory 
) [static]
static bool pqCoreTestUtility::CompareImage ( QWidget *  widget,
const QString &  referenceImage,
double  threshold,
ostream &  output,
const QString &  tempDirectory,
const QSize &  size = QSize(300, 300) 
) [static]

Compares the contents of any arbitrary QWidget to a reference image, returning true iff the two match within a given threshold.

static bool pqCoreTestUtility::CompareView ( pqView curView,
const QString &  referenceImage,
double  threshold,
const QString &  tempDirectory,
const QSize &  size = QSize() 
) [static]

The documentation for this class was generated from the following file: