1. 29 Oct, 2016 2 commits
    • Ken Martin's avatar
      try fix for offscreen rendering on Windows · 275da290
      Ken Martin authored
      The context was getting cleaned too often maybe.
      This fix reverts one line from commit
      https://gitlab.kitware.com/vtk/vtk/commit/
      3a8e4497
      
      This commit fixes issue
      
      vtk/vtk#16876
      
      and adds a test for that condition as well as
      a few other cases that should work but could
      cause problems.
      
      This change could introduce other issues limited
      to windows as the code is fairly complex and
      the use cases vary widely. At some point the whole
      process of creating windows and handling offscreen
      drawing needs to be reworked. It is a mishmash of 20
      years of code and overdue for a real workover for all
      platforms. But this topic is intended to fix this one
      case until we have time to really look at it and rework
      it.
      
      Currently the new test is only active for OpenGL2 and
      Windows. OpenGL1 and other platforms has issues with
      it that need to be fixed in the future. But for now this
      change fixes the reported Windows issues and adds a
      test to maintain that fix.
      275da290
    • Ken Martin's avatar
      better handling of how to get an OpenGL context win32 · c3e87b66
      Ken Martin authored
      Fix some long standing issues with multisamples
      and stereo capable window requests on Win32.
      c3e87b66
  2. 24 Oct, 2016 1 commit
    • Ken Martin's avatar
      try fix for offscreen rendering on Windows · 52d32544
      Ken Martin authored
      The context was getting cleaned too often maybe.
      This fix reverts one line from commit
      https://gitlab.kitware.com/vtk/vtk/commit/
      3a8e4497
      
      This commit fixes issue
      
      #16876
      
      and adds a test for that condition as well as
      a few other cases that should work but could
      cause problems.
      
      This change could introduce other issues limited
      to windows as the code is fairly complex and
      the use cases vary widely. At some point the whole
      process of creating windows and handling offscreen
      drawing needs to be reworked. It is a mishmash of 20
      years of code and overdue for a real workover for all
      platforms. But this topic is intended to fix this one
      case until we have time to really look at it and rework
      it.
      
      Currently the new test is only active for OpenGL2 and
      Windows. OpenGL1 and other platforms has issues with
      it that need to be fixed in the future. But for now this
      change fixes the reported Windows issues and adds a
      test to maintain that fix.
      52d32544
  3. 20 Oct, 2016 1 commit
  4. 11 Oct, 2016 1 commit
  5. 23 Sep, 2016 1 commit
    • Kitware Robot's avatar
      Reindent using the reindentation script. · f830ff47
      Kitware Robot authored
      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
  6. 16 Sep, 2016 1 commit
    • Ken Martin's avatar
      work on better resource management for OpenGL · d0e64da3
      Ken Martin authored
      new approach to ReleaseGraphicsResources where objects
      that use opengl resources can register themselves
      with their current window/context so that when either they
      delete or the context is deleted the resources will be
      cleared correctly.
      d0e64da3
  7. 30 Aug, 2016 1 commit
  8. 08 Mar, 2016 1 commit
  9. 07 Mar, 2016 1 commit
  10. 27 Feb, 2016 1 commit
  11. 23 Feb, 2016 1 commit
  12. 19 Feb, 2016 1 commit
  13. 17 Feb, 2016 2 commits
    • Ken Martin's avatar
      remove glFlush calls · e473e02b
      Ken Martin authored
      These calls should not be needed but pollute the code
      and the profiling results and potentially slow down execution
      e473e02b
    • Ken Martin's avatar
      improve opengl context version handling · 8d0daf13
      Ken Martin authored
      add a GetOpenGLVersion method to OpenGLRenderWindow
      
      modify Win32OpenGLRenderWindow to try to get a
      more recent context than 3.2 if available.
      8d0daf13
  14. 28 Jan, 2016 1 commit
  15. 21 Jan, 2016 1 commit
    • Joachim Pouderoux's avatar
      Fix the AdjustWindowRectForBorders function so correct window size is computed · d392ec33
      Joachim Pouderoux authored
      This function used to presume a window style used to compute the whole window
      size needed for a requested client frame size. The obtained client size of the
      window what finally not the one requested - thus the frame buffer was not of
      the size obtained by calling GetSize(), leading to problem when capturing
      image from the back buffer for instance.
      
      The current window style is now directly obtained using the related Win32 API
      function with the window hanle, ensuring a correct window rect computation.
      d392ec33
  16. 06 Jan, 2016 1 commit
  17. 26 Dec, 2015 1 commit
  18. 17 Dec, 2015 1 commit
  19. 23 Nov, 2015 1 commit
  20. 20 Nov, 2015 2 commits
  21. 16 Nov, 2015 1 commit
  22. 20 Oct, 2015 1 commit
  23. 13 Sep, 2015 2 commits
  24. 20 Aug, 2015 1 commit
    • 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
  25. 17 Aug, 2015 1 commit
  26. 04 Aug, 2015 1 commit
  27. 28 Jul, 2015 1 commit
  28. 23 Jul, 2015 3 commits
  29. 22 Jul, 2015 1 commit
    • Bill Lorensen's avatar
      STYLE: Replace vtksys_stl and vtksys_ios:: with std:: · 924248d9
      Bill Lorensen authored
      In the early days of VTK, support for stl was not portable. vtksys_stl
      and vtksys_ios provided a portable implementation of the stl. Now, all
      of the VTK supported compilers have portable stl implementations.
      
      This patch:
        1) Replaces the vtksys_ios:: with std::.
        2) Replaces the vtksys_stl:: with std::.
        3) Removes "using" statements for stl
      924248d9
  30. 20 Jul, 2015 1 commit
  31. 26 May, 2015 1 commit
  32. 20 May, 2015 1 commit
  33. 14 May, 2015 1 commit
    • David C. Lonie's avatar
      Add vtkWindow::DetectDPI. · c8d65517
      David C. Lonie authored
      Auto-detecting the screen DPI (which the win32 backend does)
      interferes with testing after we make 2D text rendering
      DPI-aware. Since only one backend supported automatic DPI
      detection, I moved this out into a user method so that folks
      who depend on this behavior can still have it, but we can
      test consistently.
      c8d65517
  34. 07 May, 2015 1 commit