- // TODO: to be implemented...
- //if(MainWindow* const main_window = qobject_cast<MainWindow*>(this->GetMainWindow()))
- //{
- // return main_window->compareView(ReferenceImage, Threshold, Output, TempDirectory);
- //}
+ if ( CAM_Application* anApp = dynamic_cast<CAM_Application*>( SUIT_Session::session()->activeApplication() ) )
+ if ( PVGUI_Module* aPVM = dynamic_cast<PVGUI_Module*>( anApp->module("ParaVis") ) )
+ return aPVM->compareView( ReferenceImage, Threshold, Output, TempDirectory );