]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fixed bug GVIEW11209 : Camera dump does not work
authorouv <ouv@opencascade.com>
Wed, 11 Jan 2006 10:09:36 +0000 (10:09 +0000)
committerouv <ouv@opencascade.com>
Wed, 11 Jan 2006 10:09:36 +0000 (10:09 +0000)
src/VVTK/VVTK_MainWindow.cxx
src/VVTK/VVTK_MainWindow.h
src/VVTK/VVTK_ViewWindow.cxx

index 6eb73563d9f0f8a0e8034e9acbd0e0ac3985370f..c3fddbc7685086b7fbe5f32d8159bb7f729f23ea 100644 (file)
@@ -52,8 +52,9 @@
 VVTK_MainWindow
 ::VVTK_MainWindow(QWidget* theParent, 
                  const char* theName,
-                 SUIT_ResourceMgr* theResourceMgr):
-  SVTK_MainWindow(theParent,theName,theResourceMgr),
+                 SUIT_ResourceMgr* theResourceMgr,
+                 SUIT_ViewWindow* theViewWindow):
+  SVTK_MainWindow(theParent,theName,theResourceMgr,theViewWindow),
   myInteractorStyle(VVTK_InteractorStyle::New()),
   myControllerIncrement(VVTK_ControllerIncrement::New()),
   myControllerOnKeyDown(VVTK_ControllerOnKeyDown::New())
@@ -215,13 +216,13 @@ VVTK_MainWindow
   }
 }
 
-
 //----------------------------------------------------------------------------
 VVTK_MainWindow1
 ::VVTK_MainWindow1(QSplitter* theParent, 
                  const char* theName,
-                 SUIT_ResourceMgr* theResourceMgr):
-  VVTK_MainWindow(theParent,theName,theResourceMgr),
+                 SUIT_ResourceMgr* theResourceMgr,
+                 SUIT_ViewWindow* theViewWindow):
+  VVTK_MainWindow(theParent,theName,theResourceMgr,theViewWindow),
   myStyleSwitchAction(NULL),
   mySplitter(theParent),
   myPickingDlg(NULL)
@@ -327,17 +328,18 @@ VVTK_MainWindow1
 ::~VVTK_MainWindow1()
 {}
 
-
 //----------------------------------------------------------------------------
 VVTK_MainWindow2*
 VVTK_MainWindow1
 ::CreateMainWindow2(QWidget* theParent, 
                    const char* theName,
-                   SUIT_ResourceMgr* theResourceMgr)
+                   SUIT_ResourceMgr* theResourceMgr,
+                   SUIT_ViewWindow* theViewWindow)
 {
   myMainWindow2 = new VVTK_MainWindow2(theParent,
                                       theName,
                                       theResourceMgr,
+                                      theViewWindow,
                                       myStyleSwitchAction);
   return myMainWindow2;
 }
@@ -474,8 +476,9 @@ VVTK_MainWindow2
 ::VVTK_MainWindow2(QWidget* theParent, 
                   const char* theName,
                   SUIT_ResourceMgr* theResourceMgr,
+                  SUIT_ViewWindow* theViewWindow,
                   QtxAction* theStyleSwitchAction):
-  VVTK_MainWindow(theParent,theName,theResourceMgr),
+  VVTK_MainWindow(theParent,theName,theResourceMgr,theViewWindow),
   myStyleSwitchAction(theStyleSwitchAction)
 {}
 
index 20a2f7198409348f05f89507fa039d1c9cae9f53..7541c0b54d3d3f9443c51fab2456899b481821db 100644 (file)
@@ -34,7 +34,8 @@ public:
   //! Construct instance of the class
   VVTK_MainWindow(QWidget* theParent, 
                  const char* theName,
-                 SUIT_ResourceMgr* theResourceMgr);
+                 SUIT_ResourceMgr* theResourceMgr,
+                 SUIT_ViewWindow* theViewWindow);
 
   //! Reimplement SVTK_MainWindow::Initialize
   virtual
@@ -96,7 +97,8 @@ public:
   //! Construct instance of the class
   VVTK_MainWindow1(QSplitter* theParent, 
                   const char* theName,
-                  SUIT_ResourceMgr* theResourceMgr);
+                  SUIT_ResourceMgr* theResourceMgr,
+                  SUIT_ViewWindow* theViewWindow);
 
   //! Reimplement VVTK_MainWindow::Initialize
   virtual
@@ -116,7 +118,8 @@ public:
   VVTK_MainWindow2*
   CreateMainWindow2(QWidget* theParent, 
                    const char* theName,
-                   SUIT_ResourceMgr* theResourceMgr);
+                   SUIT_ResourceMgr* theResourceMgr,
+                   SUIT_ViewWindow* theViewWindow);
 
   VISU_WidgetCtrl*  GetWidgetCtrl();
 
@@ -188,6 +191,7 @@ class VVTK_EXPORT VVTK_MainWindow2: public VVTK_MainWindow
   VVTK_MainWindow2(QWidget* theParent, 
                   const char* theName,
                   SUIT_ResourceMgr* theResourceMgr,
+                  SUIT_ViewWindow* theViewWindow,
                   QtxAction* theStyleSwitchAction);
 public:
   //! Destroy instance of the class
index 0230fbfce5989424fa7737d26207c79fb469417a..e9a66aded1e2c63c3eb512524ac4d42ed0aaa621 100755 (executable)
@@ -71,7 +71,8 @@ void VVTK_ViewWindow::Initialize(SVTK_ViewModelBase* theModel)
     {
       myMainWindow1 = new VVTK_MainWindow1(aSplitter,
                                           "VVTK_MainWindow",
-                                          aResourceMgr);
+                                          aResourceMgr,
+                                          this);
 
       anInsideCursorSettings = myMainWindow1->GetInsideCursorSettings();
       anOutsideCursorSettings = myMainWindow1->GetOutsideCursorSettings();
@@ -111,7 +112,8 @@ void VVTK_ViewWindow::Initialize(SVTK_ViewModelBase* theModel)
     {
       myMainWindow2 = myMainWindow1->CreateMainWindow2(aSplitter,
                                                       "VVTK_SegmantationWindow",
-                                                      aResourceMgr);
+                                                      aResourceMgr,
+                                                      this);
       SVTK_RenderWindowInteractor* anIteractor = 
        new SVTK_RenderWindowInteractor(myMainWindow2,"SVTK_RenderWindowInteractor1");