ParaView
Public Member Functions | Static Public Member Functions | List of all members
pqComponentsTestUtility Class Reference

pqComponentsTestUtility simply adds a pqComponents specific testing capabilities to pqCoreTestUtility. More...

#include <pqComponentsTestUtility.h>

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

Public Member Functions

 pqComponentsTestUtility (QObject *parentObj=0)
 
- Public Member Functions inherited from pqCoreTestUtility
 pqCoreTestUtility (QObject *parent=0)
 
 ~pqCoreTestUtility ()
 

Static Public Member Functions

static bool CompareView (const QString &referenceImage, double threshold, const QString &tempDirectory)
 Compares the baseline with active view for testing purposes. More...
 
- Static Public Member Functions inherited from pqCoreTestUtility
static QString DataRoot ()
 Returns the absolute path to the PARAVIEW_DATA_ROOT in canonical form (slashes forward), or empty string. More...
 
static QString TestDirectory ()
 Returns the temporary test directory in which tests can write temporary outputs, difference images etc. More...
 
static QString BaselineDirectory ()
 Returns the baseline directory in which test recorder will write baseline images. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
static bool CompareView (pqView *curView, const QString &referenceImage, double threshold, const QString &tempDirectory, const QSize &size=QSize())
 

Additional Inherited Members

- Static Public Attributes inherited from pqCoreTestUtility
static const char * PQ_COMPAREVIEW_PROPERTY_NAME
 

Detailed Description

pqComponentsTestUtility simply adds a pqComponents specific testing capabilities to pqCoreTestUtility.

Definition at line 40 of file pqComponentsTestUtility.h.

Constructor & Destructor Documentation

§ pqComponentsTestUtility()

pqComponentsTestUtility::pqComponentsTestUtility ( QObject *  parentObj = 0)

Member Function Documentation

§ CompareView()

static bool pqComponentsTestUtility::CompareView ( const QString &  referenceImage,
double  threshold,
const QString &  tempDirectory 
)
static

Compares the baseline with active view for testing purposes.

(keeping naming-case similar to pqCoreTestUtility).


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