1. 18 Dec, 2019 1 commit
    • Lucas Gandel's avatar
      Add boolean to synchronize camera and lights · b97850d9
      Lucas Gandel authored
      Add options to control both the copy of GL camera matrices and GL lights
      to the active VTK camera.
      Those parameters might already be set by the external application
      managing the context and should not always be overwritten.
  2. 27 Nov, 2019 1 commit
    • Ken Martin's avatar
      Update VTK to always use a framebuffer for rendering · b75bc715
      Ken Martin authored
      Modify VTK so that the render process always uses a
      framebuffer. The basic approach is that render() calls
      - Start (pushes the current bindings + binds fb)
      - DoStereoRender
        - StereoUpdate()
        - StereoMidpoint() (blits for crystal eyes)
        - StereoComplete()
      - End (pops the bindings)
      - CopyResultingFrame
        - stereo pixel processing
        - Frame() (blits the resulting frame)
      The depth buffer will be 32 bit fixed unless a
      stencil buffer is requested. Then it will be
      24 depth + 8 stencil. If multisamples is requested
      VTK will try to create a framebuffer with multisamples.
      Only one color buffer is created. For stereo rendering
      the StereoMidpoint must be used to read or blit the left
      eye prior to starting rendering of the right eye.
      If you want color or depth values from an external
      codebase to be used in the rendering process you must
      write them into the framebuffer prior to calling Render()
      in VTK. See vtkExternalOpenGLRenderWindow for an example
      of this.
      Probably still some optimization that will happen in a
      further topic once this settles as there are some old
      methods that no longer really are needed.
  3. 18 Nov, 2019 1 commit
    • Kitware Robot's avatar
      clang-format: reformat using clang-format-8 · ac76fe16
      Kitware Robot authored
      Run the `clang-format.bash` script to update all our C and C++ code to a
      new style defined by `.clang-format`.  Use `clang-format` version 8.0.
      * If you reached this commit for a line in `git blame`, re-run the blame
        operation starting at the parent of this commit to see older history
        for the content.
      * See the parent commit for instructions to rebase a change across this
        style transition commit.
  4. 13 Nov, 2019 1 commit
  5. 21 Oct, 2019 1 commit
  6. 07 Oct, 2019 1 commit
    • Ken Martin's avatar
      Track framebuffer state in OpenGLState class · 837e899d
      Ken Martin authored
      Keep track of framebuffer state in OpenGL
      This includes both vtk framebuffers as well as
      other use of framebuffers. Supports pushing and popping
      the draw and read framebuffers. Also some bug fixes
      and changes to account for the fact that buffer state
      is actually stored with framebuffer objects.
  7. 29 Aug, 2019 1 commit
  8. 09 Aug, 2019 1 commit
  9. 13 Feb, 2019 1 commit
  10. 08 Feb, 2019 1 commit
  11. 07 Feb, 2019 1 commit
    • Utkarsh Ayachit's avatar
      fix TestGLUTRenderWindow. · 92287cf4
      Utkarsh Ayachit authored
      there were issues with the test
      1. `handleResize` would get called before `display` that resulted in the
         window size set in handleResize being lost and the window being recreated
         in display.
      2. since the test didn't setup `glViewport`, we needed to make sure
         vtkExternalOpenGLRenderWindow didn't attempt to resize itself using
         the viewport by turning off AutomaticWindowPositionAndResize.
  12. 10 Jan, 2019 1 commit
  13. 09 Jan, 2019 1 commit
  14. 08 Jan, 2019 2 commits
  15. 28 Nov, 2018 1 commit
  16. 17 Oct, 2018 1 commit
  17. 18 May, 2018 1 commit
    • Kitware Robot's avatar
      ExternalData: Convert content links from MD5 to SHA512 · d6d05b2a
      Kitware Robot authored
      Populate a script with `map_<md5>=<sha512>` variable settings and
      then run the following to convert the content link files:
          git ls-files -- '*.md5' | while read f; do
            md5="$(cat "$f")"
            sha512="$(eval echo \${map_$md5})"
            rm "$f"
            echo $sha512 > ${f%.md5}.sha512
  18. 18 Apr, 2018 1 commit
    • Ken Martin's avatar
      clean up the state API and fix Qt widget · 29670593
      Ken Martin authored
      Make it so that the state API does not require glew.h
      as this causes issues with Qt which has it's own gl
      functions and glew #defines clobber them.
      Clean up the API for querying opengl state to use the standard
      opengl get method signatures.
      Fix an issue with the new Qt widget where it was not setting
      vtk opengl state.
  19. 25 Feb, 2018 1 commit
    • Ken Martin's avatar
      Introduce opengl state management · 1e6e44cb
      Ken Martin authored
      This commit adds a vtkOpenGLState class that is used
      to save, restore and cache opengl state. In this commit
      the caching is disabled to ease rollout. Likewise only
      a few methods are being cached which can be expanded
      on later as desired.
  20. 19 Jan, 2018 1 commit
    • Ben Boeckel's avatar
      TestGLUTRenderWindow: handle deprecation of GLUT · 62714a26
      Ben Boeckel authored
      Apple deprecated GLUT.framework in 10.9 and removed it in 10.10. Since
      we don't actually care about this and just want to test it, silence the
      deprecation warnings and if 10.10 is our minimum required version, just
      skip the test completely.
  21. 20 Dec, 2017 1 commit
  22. 05 Dec, 2017 3 commits
  23. 04 Oct, 2017 2 commits
    • Ken Martin's avatar
      manually convert more NULL to nullptr · de3c93a3
      Ken Martin authored
      This topic catches another batch of NULL conversions that
      clang did not handle for various reasons. It also includes
      a number of changes to comments and strings where NULL was
      used. It also catches some recent code changes where NULL
      was used instead of nullptr.
    • Kitware Robot's avatar
      Replace VTK_DELETE_FUNCTION with =delete. · 1ac2c008
      Kitware Robot authored
      Now that VTK requires a C++11 compiler we can ditch using custom typedefs to
      wrap =delete;
  24. 02 Oct, 2017 1 commit
  25. 29 Sep, 2017 1 commit
    • Andrew Bauer's avatar
      Improvements for vtkNew for stl containers and comparison operations · fd04b442
      Andrew Bauer authored
      Adding in functionality to allow inserting vtkNew objects into
      stl containers of vtkSmartPointer objects as well as comparisons
      between vtkNew objects and raw pointers. Also removing Get() and
      GetPointer() calls from vtkNew objects since in most instances we
      can just pass in the vtkNew<> object instead of having to use the
      Get() or GetPointer() methods to get the raw pointer.
  26. 30 Aug, 2017 1 commit
    • Aron Helser's avatar
      Lights: clear transform when switching types. Fix typos. · f53a4c07
      Aron Helser authored
      A camera light uses the transform to match the camera's position,
      then applies an offset. The transform matrix must be cleared when
      switching to head/scene light for them to position correctly.
      Always clear the transform matrix when switching types.
      Fix a duplicate include and make coneAngle consistent between
      ospray and opengl.
  27. 10 May, 2017 1 commit
  28. 24 Jan, 2017 2 commits
  29. 10 Jan, 2017 1 commit
    • Sean McBride's avatar
      Fixed many trivial cppcheck 1.77 warnings · ea372f58
      Sean McBride authored
      These are all new warnings vs the previous version, 1.76.1
      No real bugs found/fixed here.
      Most are either overwriting a never-read variable value,
      usually only at intialiazation, or a useless comparison.
      In a couple of places, threw in a const or did other minor reworking.
  30. 15 Dec, 2016 1 commit
  31. 08 Dec, 2016 1 commit
    • Ken Martin's avatar
      Some openvr related bug and performance fixes · 0203dc6d
      Ken Martin authored
      There was a vsync issue that could cause significant performance
      issues and jitter in the VR display that was fixed.
      A sync point in the SaveGLState code was moved into
      External/vtkExternalOpenGLRenderWindow as that is the class
      that needs it.  A couple other minor performance improvements.
  32. 28 Oct, 2016 1 commit
  33. 23 Sep, 2016 2 commits
    • Kitware Robot's avatar
      Reindent using the reindentation script. · f830ff47
      Kitware Robot authored
      This commit reindents the code with the following utility:
      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 {} +
    • David E. DeMarle's avatar
      replace VTK's nonstandard Doxygen with standard markup · 6a7e5148
      David E. DeMarle authored
      generated via:
      cd $VTKSRC
      perl Utilities/Doxygen/doc_header2doxygen.pl --to ~/tmp/vtkheaders .
      cp -r ~/tmp/vtkheaders/* .
  34. 19 Sep, 2016 1 commit