return Handle(V3d_View)();
}
+//**********************************************
+QWidget* NewGeom_SalomeViewer::activeViewPort() const
+{
+ QWidget* aViewPort;
+ if (mySelector) {
+ OCCViewer_Viewer* aViewer = mySelector->viewer();
+ SUIT_ViewManager* aMgr = aViewer->getViewManager();
+ OCCViewer_ViewWindow* aWnd = static_cast<OCCViewer_ViewWindow*>(aMgr->getActiveView());
+ aViewPort = aWnd->getViewPort();
+ }
+ return aViewPort;
+}
+
//**********************************************
void NewGeom_SalomeViewer::setSelector(NewGeom_OCCSelector* theSel)
{
//! Returns Vsd_View object from currently active view window
virtual Handle(V3d_View) activeView() const;
+ //! Returns viewer view port
+ virtual QWidget* activeViewPort() const;
+
//! Enable or disable selection in the viewer
virtual void enableSelection(bool isEnabled);
QWidget* XGUI_ViewerProxy::activeViewPort() const
{
#ifdef HAVE_SALOME
- return myWorkshop->salomeConnector()->viewer()->activeView();
+ return myWorkshop->salomeConnector()->viewer()->activeViewPort();
#else
AppElements_Viewer* aViewer = myWorkshop->mainWindow()->viewer();
return (aViewer->activeViewWindow()) ?