]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PAL8598: Provide an access to "Dump View" functionality from the context popup menu...
authorvsr <vsr@opencascade.com>
Fri, 15 Apr 2005 05:59:12 +0000 (05:59 +0000)
committervsr <vsr@opencascade.com>
Fri, 15 Apr 2005 05:59:12 +0000 (05:59 +0000)
src/VTKViewer/VTKViewer_RenderWindow.cxx
src/VTKViewer/VTKViewer_RenderWindow.h
src/VTKViewer/VTKViewer_ViewFrame.cxx

index 08dbc0edaaec4ce8c7245239b1cdfdbbd93428fc..bd97dd2020f204df191deeb7ea05a3e965410167 100644 (file)
@@ -176,6 +176,8 @@ void VTKViewer_RenderWindow::onCreatePopup()
     int id;
     myIDs.append ( id = myPopup->insertItem (tr ("MEN_VP3D_CHANGEBGR")) );     
     QAD_ASSERT ( myPopup->connectItem ( id, this, SLOT(onChangeBackgroundColor())) );
+    myIDs.append ( id = myPopup->insertItem (tr ("MEN_VP3D_DUMPVIEW")) );      
+    QAD_ASSERT ( myPopup->connectItem ( id, this, SIGNAL(DumpView())) );
 //    }
   }
 }
index 34fd61ff0aa51c79713a66da154eb13f897de19f..e19e67966dc72dea8099e72e25d6c5be93633325 100644 (file)
@@ -77,6 +77,7 @@ public QWidget, /*virtual public vtkRenderWindow, */
   void ButtonPressed(const QMouseEvent *event) ;
   void ButtonReleased(const QMouseEvent *event) ;
   void KeyPressed(QKeyEvent *event) ;
+  void DumpView();
 
  protected:
   vtkRenderWindow* myRW;
index 067cc6aee5640bf9f8d1166ac8ef0e4af10de2f0..783b60bae2b44c8973c3683935457ff8dfce6365 100644 (file)
@@ -90,6 +90,7 @@ VTKViewer_ViewFrame::VTKViewer_ViewFrame(QWidget* parent, const char* name)
 void VTKViewer_ViewFrame::InitialSetup() {
   m_RW = new VTKViewer_RenderWindow(this, "RenderWindow");
   m_RW->getRenderWindow()->AddRenderer(m_Renderer);
+  connect(m_RW, SIGNAL(DumpView()), this, SLOT(onProcessViewDump()));
 
   m_Renderer->GetActiveCamera()->ParallelProjectionOn();
   m_Renderer->LightFollowCameraOn();