1. 08 Feb, 2016 1 commit
  2. 19 Nov, 2015 1 commit
  3. 24 Aug, 2015 1 commit
  4. 11 Mar, 2015 1 commit
  5. 29 Jan, 2015 1 commit
    • Roger Bramon's avatar
      Fix QVTKWidget problem on Windows with Aero off and Qt5 · 7b31f501
      Roger Bramon authored
      In Qt 5.0, QWidget::winEvent has been replaced to QWidget::nativeEvent.
      Therefore, the problem solved in 0a0b43ed can still be reproduced when linking VTK against Qt5.
      
      This commit fixes the problem also when linking against Qt5.
      
      Change-Id: I0b94e76f6f80dc2afccbe5b263770c27ddba60c2
      7b31f501
  6. 22 Oct, 2014 1 commit
  7. 09 Oct, 2014 1 commit
  8. 26 Aug, 2014 1 commit
    • Julien Jomier's avatar
      ENH: Added back support for TDx · 98e7223e
      Julien Jomier authored
      Change-Id: Iaa2fade0b48a89e6841d2cf78007b2100d84a713
      ENH: Added missing files to support TDx implementation
      ENH: Removed warning message when no focus on the interaction
      COMP: Qt5 does not define Q_WS_WIN and should use Q_OS_WIN instead.
      98e7223e
  9. 16 Jun, 2014 1 commit
    • Marcus D. Hanwell's avatar
      Brought more of the OpenGL module logic over · e58ca401
      Marcus D. Hanwell authored
      Made the vtkGUISupportQt module work, moved the other QtOpenGL module
      to OpenGL backend only for now - uses vtkgl/extension manager stuff.
      Configure the header with options selected for the build.
      
      Change-Id: I7099e6c110ba080bb102e180d6d544ad3515c730
      e58ca401
  10. 27 May, 2013 1 commit
    • Jean-Christophe Fillion-Robin's avatar
      COMP 12945: Allow VTK to build against Qt5 · 384636ec
      Jean-Christophe Fillion-Robin authored
      Since VTK build system has been updated to make use of CMake macros
      specific to Qt5, the support has to explicitly enabled configuring VTK
      with -DVTK_QT_VERSION:STRING="5"
      
      Additionally, in case Qt5 is not installed in a standard location,
      a custom prefix for "find_package" should be passed.
      For example:
        -DCMAKE_PREFIX_PATH:STRING=/home/jchris/Qt5.0.2/5.0.2/gcc_64/
      
      
      Finally, this commit also resolves the build errors reported below.
      
      Fix missing header build error by including Qt headers directly without
      specifying the intermediate directory.
      
      * Fix build error changing QString::toAscii into  QString::toLatin
      The method "toAscii" has been deprecated and is not available in
      default Qt5 distribution.
      See http://qt-project.org/doc/qt-5.0/qtcore/qstring.html#toAscii
      
      * Fix build error changing Qt::WFlags into Qt::WindowFlags
      See http://qt-project.org/doc/qt-5.0/qtcore/qt-obsolete.html
      
      * Fix build error changing QAbstractItemModel::reset() into
      combo QAbstractItemModel::beginResetModel()/QAbstractItemModel::endResetModel()
      The method "reset" has been deprecated and is not available in
      default Qt5 distribution.
      See http://qt-project.org/doc/qt-5.0/qtcore/qabstractitemmodel-compat.html#reset
      
      * Fix build error by including "vtkObjectBase.h":
      /home/jchris/Projects/Qt5.0.2/5.0.2/gcc_64/include/QtCore/qmetatype.h:464: error: invalid application of ‘sizeof’ to incomplete type ‘QStaticAssertFailure<false>’
      
      * Fix "no matching function for call to ‘QPixmap::grabWidget(QWidget*)’" by using
      "QWidget::grab"
      See http://qt-project.org/doc/qt-5.0/qtwidgets/qwidget.html#grab
      
      * Fix missing QHttpHeader/QHttpRequestHeader headers by removing them.
      They have been removed from Qt5 and were not used in the code.
      
      * Fix error: ‘qInstallMsgHandler’ was not declared in this scope
      by using "qInstallMessageHandler"
      See http://qt-project.org/doc/qt-5.0/qtdoc/sourcebreaks.html
      
      * Fix Q4VTKWidgetPlugin.cxx:147: error: invalid application of
      ‘sizeof’ to incomplete type ‘QStaticAssertFailure<false>’ by
      using "Q_PLUGIN_METADATA" macro instead of Q_EXPORT_PLUGIN
      or Q_EXPORT_PLUGIN2.
      See http://qt-project.org/wiki/Transition_from_Qt_4.x_to_Qt5#7ec1b8f08d7f31ebcb53188f0bd15ed5
      
      Change-Id: Ie7123e5990e3a8afb4d7d2efa0fda5bd7b98c1e3
      384636ec
  11. 06 Feb, 2013 1 commit
    • Clinton Stimpson's avatar
      Fix regression when using Windows XP with QVTKWidget. · ce1e7cdb
      Clinton Stimpson authored
      When another app window is passing over a QVTKWidget, there was some
      uncessary flicker on Windows XP.  The flicker was caused by an
      extra InvalidateRect() call that we actually need for Vista and newer.
      
      Change-Id: I37df2b4b66c06779c8e949d6993d53c41d2c8355
      ce1e7cdb
  12. 04 Dec, 2012 1 commit
    • Kyle Lutz's avatar
      Prevent capturing selection buffer for the cached image · 0e50e394
      Kyle Lutz authored
      This fixes a bug in the cached-image functionality of the QVTKWidget
      class. When performing a selection occasionaly the selection buffer
      will be captured and stored as the cached image. This leads to strange
      rendering when switching away from the render view.
      
      To fix this we now check if the render window has any active selector
      objects before saving the buffer to the cached image.
      
      This fixes ParaView bug #13689.
      
      Change-Id: Ie6b29f30270a67c5f14958e25b5e56c4594413a9
      0e50e394
  13. 25 Sep, 2012 1 commit
  14. 20 Sep, 2012 1 commit
    • Utkarsh Ayachit's avatar
      Callback was not removed when object was destroyed. · 0db6e8bf
      Utkarsh Ayachit authored
      QVTKWidget added a callback to the RenderEvent but never removed it.
      Consequently, if the QVTKWidget was destroyed before the vtkRenderWindow,
      got a segfault due to dangling pointer. Fixed that.
      
      Also cleaned up the callback code to use the newer/safer/cleaner API to add
      callbacks for class methods instead of static functions.
      
      Change-Id: I2980f17aea8710802b3f51592479ee269eebdfad
      0db6e8bf
  15. 01 Jun, 2012 1 commit
  16. 09 Apr, 2012 2 commits
    • VTK Developers's avatar
      Remove trailing whitespace from all source files · 2d323fc4
      VTK Developers authored and Brad King's avatar Brad King committed
      Exclude ThirdParty, Utilities/MetaIO, and Utilities/KWSys as these
      are maintained outside VTK.
      
      Co-Author: Marcus D. Hanwell <marcus.hanwell@kitware.com>
      Co-Author: Chris Harris <chris.harris@kitware.com>
      Co-Author: Brad King <brad.king@kitware.com>
      2d323fc4
    • VTK Developers's avatar
      Add modular VTK build system · 0c1471f1
      VTK Developers authored and Brad King's avatar Brad King committed
      Add module.cmake, CMakeLists.txt, and other build system files.
      
      The modular VTK build system is not yet mature.  The monolithic build
      files had a lot of infrastructure.  The modular build files reproduce
      much of the functionality but some features will need to be restored
      later.  Document status and tasks in "TODO-Modularization.txt".
      
      Co-Author: Marcus D. Hanwell <marcus.hanwell@kitware.com>
      Co-Author: Chris Harris <chris.harris@kitware.com>
      Co-Author: Brad King <brad.king@kitware.com>
      Co-Author: Nikhil Shetty <nikhil.shetty@kitware.com>
      0c1471f1
  17. 13 Mar, 2012 1 commit
  18. 13 Dec, 2011 1 commit
  19. 08 Nov, 2011 1 commit
  20. 06 Oct, 2011 1 commit
    • Julien Finet's avatar
      Revert "Fix QVTKWidget refresh on resize problem on Windows" · 964bb684
      Julien Finet authored
      This reverts commit 8a679e20.
      On Windows, Qt::WA_PaintOnScreen is actually supported when providing a
      paintEngine. This is what QGLWidget does, even on Windows.
      The problem we faced with "Fix QVTKWidget refresh on resize problem on
      Windows" was that when using the cache image, the qt backingstore was
      flushing (on window activated event) an old buffer of the qvtkwidget instead
      of the cached image.
      964bb684
  21. 30 Sep, 2011 1 commit
    • Julien Finet's avatar
      Fix QVTKWidget refresh on resize problem on Windows · 8a679e20
      Julien Finet authored
      When resizing a toplevel QVTKWidget, only the newly exposed part is refreshed, not the entire viewport.
      
      Qt::WA_PaintOnScreen is only supported on X11:
      http://doc.qt.nokia.com/4.7/qt.html#WidgetAttribute-enum
      
      For all purpose widgets, it is ok to leave the flag Qt::WA_PaintOnScreen for other platforms, because the flag is ignored.
      See QWidget::setAttribute(), there is a special to ignore the flag on Windows.
      However, QVTKWidget uses a custom QPaintEngine, so the hack done in QWidget::paintEngine() on Windows is not applied and
      doesn't ignore the flag then:
      Here is an extract from qwidget_win.cpp (in QWidget::paintEngine)
          // We set this bit which is checked in setAttribute for
          // Qt::WA_PaintOnScreen. We do this to allow these two scenarios:
          //
          // 1. Users accidentally set Qt::WA_PaintOnScreen on X and port to
          // windows which would mean suddenly their widgets stop working.
          //
          // 2. Users set paint on screen and subclass paintEngine() to
          // return 0, in which case we have a "hole" in the backingstore
          // allowing use of GDI or DirectX directly.
          //
          // 1 is WRONG, but to minimize silent failures, we have set this
          // bit to ignore the setAttribute call. 2. needs to be
          // supported because its our only means of embeddeding native
          // graphics stuff.
          const_cast<QWidgetPrivate *>(d_func())->noPaintOnScreen = 1;
      
      Please note that QVTKWidget2 (QGLWidget) sets the flag Qt::WA_PaintOnScreen all platforms.
      However, various hacks in Qt GUI (qwidget.cpp, qwidget_win.cpp, qbackingstore.cpp...) make QGLWidget works fine on Windows.
      
      Change-Id: Ia5d8256152885932ab500a761d619f673f43956f
      8a679e20
  22. 08 Sep, 2011 1 commit
  23. 07 May, 2011 1 commit
    • Utkarsh Ayachit's avatar
      QVTKWidget was capturing image from the buffer at wrong time. · bed61730
      Utkarsh Ayachit authored
      SwapBuffer behaves differently on different platforms. On some it seems to paste
      contents of back buffer to front while on others it literally swaps them. The
      QVTKWidget needed to capture back buffer contents while caching to avoid issues
      with overlapped windows. So it needed an event from vtkRenderWindow that was
      fired after render was done but before swapping of the buffers. So changed
      vtkRenderWindow to fire such an event and QVTKWidget to capture the buffer on
      that event.
      bed61730
  24. 29 Apr, 2011 1 commit
  25. 27 Aug, 2010 1 commit
  26. 04 Aug, 2010 1 commit
  27. 28 May, 2010 1 commit
  28. 25 May, 2010 2 commits
  29. 17 May, 2010 2 commits
  30. 12 Jan, 2010 1 commit
  31. 09 Dec, 2009 1 commit
  32. 16 Nov, 2009 1 commit
    • Marcus Hanwell's avatar
      ENH: Require Qt 4.5.0 or later as announced on the VTK mailing lists. · d12070ba
      Marcus Hanwell authored
      Changes to the build system to require Qt 4.5.0 or later when building the
      optional Qt components. This means that due to the license change of Qt in
      4.5.0 anyone can commit changes to the Qt VTK classes. It also allowed for
      the simplification of the build system and removal of some old code.
      d12070ba
  33. 10 Sep, 2009 3 commits
  34. 14 Aug, 2009 1 commit
  35. 23 Jun, 2009 1 commit
    • Clinton Stimpson's avatar
      · cbf731fd
      Clinton Stimpson authored
      BUG:  Qt 4.5 changed notification to update an OpenGL view to workaround HI
            Toolbox limiation.  Need to pick up the new event type or the OpenGL view
            won't follow the HIView very well.
      cbf731fd