X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPVGUI%2FPVGUI_ProcessModuleHelper.cxx;h=7079c52a9c81447bda76531e38ae9c7c356a0564;hb=3637a467388397b03c104e17f12474cdfb02e1d9;hp=213bdab6318da6bbe296eb062971a9e6d6f211a1;hpb=74842f999451bcd96b648a9d4c750bb6def5f825;p=modules%2Fparavis.git diff --git a/src/PVGUI/PVGUI_ProcessModuleHelper.cxx b/src/PVGUI/PVGUI_ProcessModuleHelper.cxx index 213bdab6..7079c52a 100644 --- a/src/PVGUI/PVGUI_ProcessModuleHelper.cxx +++ b/src/PVGUI/PVGUI_ProcessModuleHelper.cxx @@ -4,9 +4,14 @@ // +#include "PVGUI_Module.h" #include "PVGUI_ProcessModuleHelper.h" #include "PVGUI_OutputWindowAdapter.h" +#include +#include +#include + #include #include #include @@ -49,11 +54,9 @@ void PVGUI_ProcessModuleHelper::PrintSelf(ostream& os, vtkIndent indent) bool PVGUI_ProcessModuleHelper::compareView(const QString& ReferenceImage, double Threshold, ostream& Output, const QString& TempDirectory) { - // TODO: to be implemented... - //if(MainWindow* const main_window = qobject_cast(this->GetMainWindow())) - //{ - // return main_window->compareView(ReferenceImage, Threshold, Output, TempDirectory); - //} + if ( CAM_Application* anApp = dynamic_cast( SUIT_Session::session()->activeApplication() ) ) + if ( PVGUI_Module* aPVM = dynamic_cast( anApp->module("ParaVis") ) ) + return aPVM->compareView( ReferenceImage, Threshold, Output, TempDirectory ); return false; }