From 6b94c717eb722ed12c7d7795b95493833733b9ee Mon Sep 17 00:00:00 2001 From: apo Date: Tue, 18 Apr 2006 08:42:46 +0000 Subject: [PATCH] Fix on Bug11663 There is the same 3D popup for all VTK viewers in "Mesh". (to provide a way to find an active view through the SUIT_Desktop usage) --- src/SVTK/SVTK_ViewManager.cxx | 6 ++++++ src/SVTK/SVTK_ViewManager.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/SVTK/SVTK_ViewManager.cxx b/src/SVTK/SVTK_ViewManager.cxx index 4822bf639..04dc0f3f4 100644 --- a/src/SVTK/SVTK_ViewManager.cxx +++ b/src/SVTK/SVTK_ViewManager.cxx @@ -35,6 +35,12 @@ SVTK_ViewManager::~SVTK_ViewManager() { } +//*************************************************************** +SUIT_Desktop* SVTK_ViewManager::getDesktop() +{ + return myDesktop; +} + //*************************************************************** void SVTK_ViewManager::setViewName(SUIT_ViewWindow* theView) { diff --git a/src/SVTK/SVTK_ViewManager.h b/src/SVTK/SVTK_ViewManager.h index b200ccc5b..977a286ff 100644 --- a/src/SVTK/SVTK_ViewManager.h +++ b/src/SVTK/SVTK_ViewManager.h @@ -36,6 +36,8 @@ public: //! Destroy the view manager virtual ~SVTK_ViewManager(); + SUIT_Desktop* getDesktop(); + protected: void setViewName( SUIT_ViewWindow* theView ); -- 2.39.2