]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix problem with VTK viewer and qt 4.5 on Windows
authorvsr <vsr@opencascade.com>
Tue, 8 Sep 2009 13:00:12 +0000 (13:00 +0000)
committervsr <vsr@opencascade.com>
Tue, 8 Sep 2009 13:00:12 +0000 (13:00 +0000)
src/SVTK/SVTK_RenderWindowInteractor.cxx
src/SVTK/SVTK_RenderWindowInteractor.h
src/VTKViewer/VTKViewer_RenderWindow.cxx
src/VTKViewer/VTKViewer_RenderWindow.h

index 5493554750fb3faf98e0680230fe2deaa7ed679a..01cc85cecba910728e1cb7f8aec26ac6be7f727a 100644 (file)
@@ -58,7 +58,7 @@
 
 using namespace std;
 
-static bool GENERATE_SUIT_EVENTS = false;
+static bool GENERATE_SUIT_EVENTS = true;
 static bool FOCUS_UNDER_MOUSE = false;
 
 
@@ -147,6 +147,14 @@ QVTK_RenderWindowInteractor
   GetDevice()->InvokeEvent(theEvent,theCallData);
 }
 
+/*!
+  Get paint engine for the scene
+*/
+QPaintEngine* QVTK_RenderWindowInteractor::paintEngine() const
+{
+  return 0;
+}
+
 /*!
   Need for initial contents display on Win32
 */
index 53aabeb2e1c211afcbf8d878ba665df037c9f54b..5f014cf13a567361aa4f73ab19791f8e4676c0bd 100644 (file)
@@ -88,6 +88,9 @@ class SVTK_EXPORT QVTK_RenderWindowInteractor: public QWidget
   void
   InvokeEvent(unsigned long theEvent, void* theCallData);
 
+  //! Get paint engine for the scene
+  virtual QPaintEngine* paintEngine() const;
+
  public slots:
    //! Need for initial contents display on Win32
   virtual void show();
index be3abf8d11393b20b0b10af2a4eccf7d4fa86bdb..e3039a3a4eeff294a27ff19d86264b1b1c2f42b2 100755 (executable)
@@ -91,6 +91,12 @@ void VTKViewer_RenderWindow::resizeEvent(QResizeEvent* theEvent)
   }
 }
 
+/*! Get paint engine for the scene */
+QPaintEngine* VTKViewer_RenderWindow::paintEngine() const
+{
+  return 0;
+}
+
 /*!Emit mouse move event.*/
 void VTKViewer_RenderWindow::mouseMoveEvent(QMouseEvent* event) 
 {
index 13cbb3ea395ce100828cf1b9bccf2c1e5d5f2a4b..4bc7297b2714429a32c4dfdd6090e37f714f7a67 100755 (executable)
@@ -45,6 +45,8 @@ public:
   /*!Get render window pointer.*/
   vtkRenderWindow* getRenderWindow() { return myRW; }
 
+  virtual QPaintEngine* paintEngine() const;
+
  protected:
   virtual void mouseMoveEvent( QMouseEvent* );
   virtual void mousePressEvent( QMouseEvent* );