1. 12 Sep, 2016 1 commit
    • 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
  2. 19 Aug, 2016 1 commit
    • 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
  3. 27 Jul, 2016 1 commit
    • 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
  4. 07 Jul, 2016 4 commits
    • 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
  5. 06 Jul, 2016 1 commit
    • 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
  6. 09 Jun, 2016 1 commit
    • 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
  7. 24 May, 2016 1 commit
    • 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
  8. 06 May, 2016 1 commit
    • 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
  9. 21 Mar, 2016 1 commit
    • 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
  10. 08 Mar, 2016 1 commit
  11. 03 Mar, 2016 1 commit
    • 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
  12. 19 Feb, 2016 1 commit
  13. 08 Feb, 2016 1 commit
  14. 22 Jan, 2016 1 commit
  15. 19 Nov, 2015 1 commit
  16. 04 Nov, 2015 1 commit
  17. 03 Nov, 2015 1 commit
  18. 23 Oct, 2015 1 commit
  19. 22 Oct, 2015 1 commit
  20. 21 Oct, 2015 4 commits
  21. 18 Sep, 2015 1 commit
  22. 10 Sep, 2015 1 commit
  23. 04 Sep, 2015 1 commit
  24. 31 Aug, 2015 1 commit
    • Dan Lipsa's avatar
      COMP: Add logic to selectively use OpenGL or OSMesa. · f09903e4
      Dan Lipsa authored
      Use vtkOpenGL.cmake to decide to use (LINK_PRIVATE) OpenGL or Offscreen Mesa.
      OpenGL is now LINK_PRIVATE, so additional libraries and tests need to include OpenGL.
      Include the following in your CMakeLists.txt:
      
      include(vtkOpenGL)
      vtk_opengl_link(${module})
      
      for every ${module} that uses OpenGL. This takes care of include directories and
      linking of proper libraries.
      f09903e4
  25. 24 Aug, 2015 1 commit
  26. 20 Aug, 2015 2 commits
    • Brad King's avatar
      ENH: Remove use of include <vtksys/ios/*> and vtksys_ios::* · 3ae7dd3a
      Brad King authored
      We no longer need this compatibility layer for the compilers we support.
      Use the following commands to switch to standard header and namespace:
      
       git grep -l vtksys/ios/ | xargs sed -i 's|vtksys/ios/||'
       git grep -l vtksys_ios | xargs sed -i 's|vtksys_ios|std|g'
      3ae7dd3a
    • Brad King's avatar
      ENH: Remove use of include <vtksys/stl/*> and vtksys_stl::* · eaf0f6ac
      Brad King authored
      We no longer need this compatibility layer for the compilers we support.
      Use the following commands to switch to standard header and namespace:
      
       git grep -l vtksys/stl/ | xargs sed -i 's|vtksys/stl/||'
       git grep -l vtksys_stl | xargs sed -i 's|vtksys_stl|std|g'
      eaf0f6ac
  27. 12 Aug, 2015 1 commit
  28. 05 Aug, 2015 5 commits
  29. 29 Jul, 2015 1 commit