}
SVTK_ViewWindow*
+ GetViewWindow( const SalomeApp_Module* theModule, const bool theCreate )
+ {
+ if (SalomeApp_Application* anApp = theModule->getApp())
+ {
+ SVTK_ViewWindow* wnd = dynamic_cast<SVTK_ViewWindow*>(anApp->desktop()->activeWindow());
+ if( wnd )
+ return wnd;
+ else
+ {
+ SUIT_ViewManager* aViewManager = anApp->getViewManager( SVTK_Viewer::Type(), theCreate );
+ return dynamic_cast<SVTK_ViewWindow*>( aViewManager->getActiveView() );
+ }
+ }
+ return NULL;
+ }
+
+ /*SVTK_ViewWindow*
GetViewWindow(const SalomeApp_Module* theModule, const bool theCreate )
{
if(SalomeApp_Application* anApp = theModule->getApp()){
}
}
return NULL;
- }
+ }*/
SVTK_ViewWindow*