Skip to content
Snippets Groups Projects
  1. Apr 06, 2017
  2. Mar 31, 2017
  3. Mar 30, 2017
  4. Mar 29, 2017
    • Utkarsh Ayachit's avatar
      Better handle off-screen renders in QVTKOpenGLWidget. · aa59cdbd
      Utkarsh Ayachit authored
      If vtkRenderWindow was told to do renders on back buffer only
      (i.e. offscreen renders), the connected QVTKOpenGLWidget could still end
      up inadvertently display the rendered content onscreen if QOpenGLWidget
      tried to compose the frame buffer together with the rest of the UI.
      
      This was causing issues like paraview/paraview#17256.
      
      Fixed by making QVTKOpenGLWidget flag such offscreen renders and ensure
      that real render gets called before Qt decides to compose the frame
      buffer.
      aa59cdbd
  5. Mar 22, 2017
  6. Mar 14, 2017
    • David Gobbi's avatar
      Fix QVTKInteractorAdaptor mouse wheel events · b6bed668
      David Gobbi authored
      There were two problems that needed to be fixed for the wheel events.
      The first problem had to do with changing direction: since the
      AccumulatedDelta kept the residual after the threshold was passed,
      the first wheel click in the opposite direction was sometimes ignored.
      Not keeping any residual fixes this, though it makes scrolling on a Mac
      trackpad a bit less smooth.  The second problem is that the delta()
      method is deprecated for Qt5, and angleDelta() should be used instead.
      b6bed668
  7. Mar 07, 2017
    • Ben Boeckel's avatar
      QtSQL: publicly link to Qt · f3e0ae56
      Ben Boeckel authored
      QtSQL headers are included in public headers of this module, so
      dependent libraries need to link to Qt as well.
      f3e0ae56
    • Utkarsh Ayachit's avatar
      Use vtk_module_export_code_find_package() for Qt4. · df741f7c
      Utkarsh Ayachit authored and Ben Boeckel's avatar Ben Boeckel committed
      Similar to what we're doing with Qt5, this change now adds called to
      vtk_module_export_code_find_package() for Qt4. That way, when importing
      a module using Qt4, we automatically find Qt4.
      
      Also changed to use imported targets rather than library paths when
      linking to Qt4 libraries.
      df741f7c
  8. Feb 26, 2017
  9. Feb 22, 2017
    • Utkarsh Ayachit's avatar
      Fix translucent QVTKOpenGLWidget. · d916a694
      Utkarsh Ayachit authored
      QVTKOpenGLWidget would render see-through, when using Mesa
      (paraview/paraview#17159). The symptom was seen on OsX when
      the default format requests alpha buffers (which is now the default
      for standard Render Window). While this may be exposing some odd
      side effect in Qt 5, explicitly making the renderer use alpha=1.0
      when filling the background overcomes this issue.
      
      Anyways, there was no API to vtkViewport to explicitly set the
      background alpha, only background color (RGB) was exposed. Exposed that
      (with default unchanged). QVTKOpenGLWidget uses the new API to tell
      all non-transparent renderer to render with alpha=1.0.
      d916a694
  10. Feb 21, 2017
    • Utkarsh Ayachit's avatar
      Better support multisamples with Qt 5. · 3aed88c0
      Utkarsh Ayachit authored
      QVTKOpenGLWidget was not determining correctly if the FBO was using
      multi-samples. Fixed that.
      
      Special handling is needed since QOpenGLWidget changes QSurfaceFormat to
      always have samples=0, since the OpenGL context is not a multisample
      context. We have to query the render-buffer to know if its using
      multisampling.
      3aed88c0
  11. Feb 10, 2017
    • Utkarsh Ayachit's avatar
      Ensure correct FBO is used after resize QVTKOpenGLWidget. · 9f0841e6
      Utkarsh Ayachit authored
      QVTKOpenGLWidget now ensures that vtkOpenGLRenderWindow is reinitialized
      to obtain the current default framebuffer object id after resize. We
      were not handling the case were the default frame buffer was recreated
      but the active OpenGL context wasn't recreated (which happens in
      resize).
      9f0841e6
  12. Jan 31, 2017
  13. Jan 29, 2017
    • Marcus D. Hanwell's avatar
      Take account of device pixel ratios · 916dad14
      Marcus D. Hanwell authored
      This enables retinal Mac to work, there is a little extra work to
      account for the pixel ratio not triggering a full resize event as is
      expected, and a question of whether we need to invoke a configure event.
      916dad14
  14. Jan 24, 2017
    • Utkarsh Ayachit's avatar
      Handle mouseDoubleClickEvent in QVTKOpenGLWidget. · 53c7d3f1
      Utkarsh Ayachit authored
      This is continuation of 8e61675a. We missed the
      `mouseDoubleClickEvent` event. We needed to handle that.
      
      We were calling `QVTKInteractorAdapter::ProcessEvent` twice: once in
      `QVTKOpenGLWidget::event` and another time in `QVTKOpenGLWidget::mouse..`
      handlers. Fixed that,
      53c7d3f1
  15. Jan 18, 2017
    • Marcus D. Hanwell's avatar
      Left drag was drag the window on KDE without this · 8e61675a
      Marcus D. Hanwell authored
      I observed on left-click and drag that the entire window would get
      dragged on Linux when using the KDE/Plasma desktop without this change.
      Once applied then the left (and other mouse buttons) all behave as
      expected. Simply returning early from the switch statement was not
      effective in my testing - hence the additional overrides.
      
      This may be necessary for the other events too, in order to ensure the
      ordering is as expected in teh Qt signal-slot system, but I have not
      done extensive testing with key presses etc.
      8e61675a
  16. Jan 16, 2017
  17. Jan 12, 2017
  18. Jan 11, 2017
    • Utkarsh Ayachit's avatar
      Deactivate cache texture. · 3e942892
      Utkarsh Ayachit authored
      QVTKOpenGLWidget's cache texture if left active could have side effects
      in other code (e.g. `vtkDualDepthPeelingPass`). Overcome those by
      unbinding the texture after we're done with it -- which is a good
      practice anyways.
      3e942892
  19. Jan 10, 2017
  20. Sep 23, 2016
    • Kitware Robot's avatar
      Reindent using the reindentation script. · f830ff47
      Kitware Robot authored and David Gobbi's avatar David Gobbi committed
      This commit reindents the code with the following utility:
      Utilities/Maintenance/vtk-reindent-code.py
      
      This utility changes the positions of the braces so that they are no
      longer indented relative to the code block they reside in.
      
      The bash command line used was the following:
      
      for d in Charts Common Deprecated Domains Examples Filters GUISupport \
               Geovis IO Imaging Infovis Interaction Parallel Rendering \
               Testing Views Web Wrapping; do
        for e in cxx cxx.in txx txx.in hxx hxx.in h h.in c c.in; do
          find "${d}" -name "*.${e}" -exec \
            python Utilities/Maintenance/vtk_reindent_code.py {} +
        done
      done
      f830ff47
    • David DeMarle's avatar
      replace VTK's nonstandard Doxygen with standard markup · 6a7e5148
      David DeMarle authored
      generated via:
      cd $VTKSRC
      perl Utilities/Doxygen/doc_header2doxygen.pl --to ~/tmp/vtkheaders .
      cp -r ~/tmp/vtkheaders/* .
      6a7e5148
  21. Sep 12, 2016
    • Haocheng LIU's avatar
      Rewrite all public&private dependency in module.cmake file · 6e113ad4
      Haocheng LIU authored
      The current dependency relationship in vtk is unclear and misleading.
      This MR tries to rewrite them based on header files inclusion of headers
      and source files in each module. Corner cases are considered and
      modules are sorted in alphabetical order to facilitate future reference.
      See details in my gitlab python based script project. In future we can continue
      using this script to clean the VTK Dependency easily from
      time to time.
      6e113ad4
  22. Aug 19, 2016
    • Bill Lorensen's avatar
      ENH: Introduce vtkMTimeType · 9333d9d1
      Bill Lorensen authored
      This is a fix for:
      #14310
      
      Windows applications that run for a long time report that rendered
      objects do not change. This is because the modified time on a Windows
      system is 32 bits. This causes overflows that defeat the modified time
      mechanism. This patch defines a new type, vtkMTimeType that is 64
      unsigned integer regardless of the architecture.
      
      A mechanism to provide backward compatibility is introduced. The
      preprocessor define "VTK_HAS_MTIME_TYPE" can be used in applications
      that must build against VTK versions that use the "unsigned long" type
      for MTime's.
      
      Methodology used to find MTime occurences:
      1) Identify files as follows:
         git grep "unsigned long" | grep ime | cut -d":" -f1,1 | sort | uniq
      2) Hand edit each of those files replacing "unsigned long" with
         "vtkMTimeType" where appropriate.
      3) Temporarily change typedef for vtkMTimeType to "double" to detect
         missing conversions
      9333d9d1
  23. Jul 27, 2016
    • Utkarsh Ayachit's avatar
      Cleanup QT5. · e1fe01a6
      Utkarsh Ayachit authored
      In module configuration files generated for Qt-based modules, we now
      export find_package() calls that find specific components from Qt5 i.e.
      `find_package(Qt5 COMPONENTS Widgets)` instead of
      `find_package(Qt5Widgets)`.
      e1fe01a6
  24. Jul 07, 2016
    • Sean McBride's avatar
      Applied VTK_DELETE_FUNCTION to last few places · 29e423b8
      Sean McBride authored
      Find/replace of:
      
      ;[ ]*//\s*Not implemented[\.]*
      to
       VTK_DELETE_FUNCTION;
      
      To catch a few remaining ones missed by previous greps.
      
      Manually reverted changed files in VPIC and KWSys folders, and a couple other of places.
      29e423b8
    • Sean McBride's avatar
      Applied VTK_DELETE_FUNCTION to many constructors · 1853e030
      Sean McBride authored
      vtk(.*)\(const vtk\1&\);\s*//\s*Not implemented[\.]*
      to
      vtk\1(const vtk\1\&) VTK_DELETE_FUNCTION;
      
      vtk(.*)\(const vtk\1 &\);\s*//\s*Not implemented[\.]*
      to
      vtk\1(const vtk\1 \&) VTK_DELETE_FUNCTION;
      
      vtk(.*)\( const vtk\1 & \);\s*//\s*Not implemented[\.]*
      to
      vtk\1( const vtk\1 \& ) VTK_DELETE_FUNCTION;
      
      vtk(.*)\( const vtk\1& \);\s*//\s*Not implemented[\.]*
      to
      vtk\1( const vtk\1\& ) VTK_DELETE_FUNCTION;
      
      vtk(.*) \(const vtk\1&\);\s*//\s*Not implemented[\.]*
      to
      vtk\1 (const vtk\1\&) VTK_DELETE_FUNCTION;
      1853e030
    • Sean McBride's avatar
      Applied VTK_DELETE_FUNCTION for operator= · 2d0e11ef
      Sean McBride authored
      (operator\s*=.*);\s*//\s*Not\s*implemented[\.]*
      to
      \1 VTK_DELETE_FUNCTION;
      
      After that, this finds basically nothing:
      
      operator.*implemented
      
      then manually reverted changed files in VPIC and KWSys folders.
      2d0e11ef
    • Sean McBride's avatar
      include vtkConfigure.h in files that will need it · 37e1de8d
      Sean McBride authored
      These files will eventually need vtkConfigure.h
      for eventual VTK_DELETE_FUNCTION usage.
      37e1de8d
  25. Jul 06, 2016
    • Cory Quammen's avatar
      Set the Alt key state in vtkRenderWindowInteractor · cb280002
      Cory Quammen authored
      Control and shift key state was set in vtkRenderWindowInteractor
      from QVTKInteractorAdapter, but the state of the alt key was not.
      This patch addresses that oversight.
      
      Hat tip to Mengda Wu <wumengda@gmail.com> for providing a patch
      on the VTK users mailing list that describes the needed fix.
      cb280002
  26. Jun 09, 2016
    • Utkarsh Ayachit's avatar
      QVTKWidget: add ability to defer render in paintEvent · 1d247c8d
      Utkarsh Ayachit authored
      Calling iren->Render() in paint event is fraught with problems
      especially for applications that want to show progress when rendering is
      happening. Added a mode to QVTKWidget to allow deferring render requests
      in paintEvent so they happen on idle. This avoids recursive paint call
      errors due to updating progress bars to show progress of the render.
      1d247c8d
  27. May 24, 2016
    • Utkarsh Ayachit's avatar
      Fix Q_WS_* usage for Qt5. · 203ef853
      Utkarsh Ayachit authored
      Qt5 doesn't define Q_WS_*, instead we need to use Q_OS_* flags. This
      updates the code to check for Q_OS_LINUX in addition to Q_WS_X11 flags.
      203ef853
  28. May 06, 2016
    • David C. Lonie's avatar
      Replace SafeDownCast calls on arrays with vtkArrayDownCast. · 0d71a308
      David C. Lonie authored
      SafeDownCast performs a series of virtual calls and string comparisons,
      which is quite slow, especially when used in worker functions.
      
      vtkArrayDownCast will switch between SafeDownCast and the more
      efficient FastDownCast (only available for common vtkAbstractArray
      subclasses) depending on whether or not FastDownCast is defined for
      the specific array type.
      0d71a308
  29. Mar 21, 2016
    • David Gobbi's avatar
      Smooth the trackpad scrolling interaction for Qt. · f76edcee
      David Gobbi authored
      When Qt is used with a trackpad (rather than with a wheel mouse) the
      MouseWheel events did not correspond to the actual amount by which the
      finger had moved (or, at least, this was the case on OS X).
      
      By accumulating the delta values and only invoking a ScrollWheel event
      when the accumulated delta passes a certain threshold, the OS X trackpad
      interaction can be fixed.
      f76edcee
  30. Mar 08, 2016
  31. Mar 03, 2016
    • David C. Lonie's avatar
      Refactor data array APIs. · 893fb6ed
      David C. Lonie authored
      vtkDataArray subclasses now use
      
      ComponentValue --> TypedComponent
      TupleValue --> TypedValue
      
      for their type-specific methods.
      
      # Conflicts:
      #	Rendering/Annotation/vtkScalarBarActor.cxx
      893fb6ed
  32. Feb 19, 2016
Loading