Commit 88e00bc7 authored by Timothy M. Shead's avatar Timothy M. Shead
Browse files

STYLE: Convert non-member functions to static member functions

parent da7357e5
...@@ -38,7 +38,7 @@ bool saveImage(vtkWindowToImageFilter* Capture, const QFileInfo& File) ...@@ -38,7 +38,7 @@ bool saveImage(vtkWindowToImageFilter* Capture, const QFileInfo& File)
return result; return result;
} }
bool pqImageComparison::pqSaveScreenshot(vtkRenderWindow* RenderWindow, const QString& File) bool pqImageComparison::SaveScreenshot(vtkRenderWindow* RenderWindow, const QString& File)
{ {
vtkWindowToImageFilter* const capture = vtkWindowToImageFilter::New(); vtkWindowToImageFilter* const capture = vtkWindowToImageFilter::New();
capture->SetInput(RenderWindow); capture->SetInput(RenderWindow);
...@@ -63,7 +63,7 @@ bool pqImageComparison::pqSaveScreenshot(vtkRenderWindow* RenderWindow, const QS ...@@ -63,7 +63,7 @@ bool pqImageComparison::pqSaveScreenshot(vtkRenderWindow* RenderWindow, const QS
return success; return success;
} }
bool pqImageComparison::pqCompareImage(vtkRenderWindow* RenderWindow, const QString& ReferenceImage, double Threshold, ostream& Output, const QString& TempDirectory) bool pqImageComparison::CompareImage(vtkRenderWindow* RenderWindow, const QString& ReferenceImage, double Threshold, ostream& Output, const QString& TempDirectory)
{ {
// Verify the reference image exists // Verify the reference image exists
if(!QFileInfo(ReferenceImage).exists()) if(!QFileInfo(ReferenceImage).exists())
...@@ -143,4 +143,3 @@ bool pqImageComparison::pqCompareImage(vtkRenderWindow* RenderWindow, const QStr ...@@ -143,4 +143,3 @@ bool pqImageComparison::pqCompareImage(vtkRenderWindow* RenderWindow, const QStr
return false; return false;
} }
...@@ -21,9 +21,9 @@ class QTTESTING_EXPORT pqImageComparison ...@@ -21,9 +21,9 @@ class QTTESTING_EXPORT pqImageComparison
{ {
public: public:
/// Saves the contents of a render window to a file for later use as a reference image /// Saves the contents of a render window to a file for later use as a reference image
static bool pqSaveScreenshot(vtkRenderWindow* RenderWindow, const QString& File); static bool SaveScreenshot(vtkRenderWindow* RenderWindow, const QString& File);
/// Compares the contents of a render window to a reference image, returning true iff the two match within a given threshold /// Compares the contents of a render window to a reference image, returning true iff the two match within a given threshold
static bool pqCompareImage(vtkRenderWindow* RenderWindow, const QString& ReferenceImage, double Threshold, ostream& Output, const QString& TempDirectory); static bool CompareImage(vtkRenderWindow* RenderWindow, const QString& ReferenceImage, double Threshold, ostream& Output, const QString& TempDirectory);
}; };
#endif // !_pqImageComparison_h #endif // !_pqImageComparison_h
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment