1. 13 Nov, 2017 2 commits
  2. 04 Oct, 2017 1 commit
    • 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.
  3. 18 Jul, 2017 1 commit
    • Utkarsh Ayachit's avatar
      Cleanup offscreen rendering support in VTK. · d0e7aab3
      Utkarsh Ayachit authored
      This commit cleans up offscreen rendering support in VTK. This includes
      several changes.
      1. It makes EGL support independent of onscreen GL
         support. It's now possible to enable EGL and GLX in same build of
         VTK, for example, so long as the two use shared GL-dispatch
         mechanism.  Previously, EGL could not be enabled together with GLX
         (i.e.  `VTK_USE_X` set to ON). These changes allow for that
      2. `VTK_USE_OFFSCREEN_EGL` is replaced by `VTK_OPENGL_HAS_EGL`.
          This is consistent with `VTK_OPENGL_HAS_OSMESA` flag. And also
          in similar vein to changes to `FindOpenGL.cmake` where EGL
          becomes a component of `find_package(OpenGL)`.
      3. `VTK_EGL_DEVICE_INDEX` has been replaced by
         `VTK_DEFAULT_EGL_DEVICE_INDEX` since it only affect the default
         value, and doesn't preclude users from manually specifying the
         device index.
      4. `VTK_USE_OFFSCREEN` has been replaced by
         `VTK_DEFAULT_RENDER_WINDOW_OFFSCREEN`, since similar to `3`
         this option was only intended to affect the default value.
      5. Simplified `FindEGL.cmake`. Apps don't need to link against
         `gldispatch` library and hence removed it and created an
         imported target to simplify use.
      6. For all changes to CMake variables, we put out `DEPRECATION`
         messages if old variables are used.
      7. When `VTK_USE_X` and `VTK_OPENGL_HAS_EGL` or
         `VTK_OPENGL_HAS_OSMESA` in ON, following things happen:
         i.   The object-factory simply returns the X-based (or
              onscreen) render window i.e. `vtkXOpenGLRenderWindow`.
         ii.  To create one of the offscreen render windows, one can
              manually instantiate them e.g. by explicitly
              instantiating `vtkEGLRenderWindow`.
              `vtkXOpenGLRenderWindow` has implementation to swap to
              OSMesa if `SetUseOffscreen(true)` is called.
         iii. As soon any off-screen features are enabled, `glew`
              uses the offscreen library APIs to get OpenGL function pointers
              irrespective of how the active context was initialized.
  4. 22 Dec, 2016 1 commit
  5. 16 Dec, 2016 1 commit
    • Ken Martin's avatar
      Make offscreen code always use FBO · c973a9b9
      Ken Martin authored
      Consolidate the offscreen code into common code
      in OpenGLRenderWindow. Remove it from all the
      other places except currently OSMesa on X
      Offscreen works in conjunction with onscreen
      windows. Onscreen window visibility is
      controlled using the SetMapped() method
  6. 21 Nov, 2016 1 commit
  7. 25 Oct, 2016 1 commit
  8. 28 Sep, 2016 1 commit
    • Ken Martin's avatar
      add option to render points as spheres · 9c2c3adf
      Ken Martin authored
      This topic adds an option for vtkProperty to
      request that any points rendered be draw as
      spheres.  It is used in conjunction with
      the PointSize attribute in property.
  9. 23 Sep, 2016 1 commit
    • 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:
      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 {} +
  10. 01 Jun, 2016 1 commit
  11. 23 Mar, 2016 1 commit
  12. 08 Mar, 2016 1 commit
  13. 02 Mar, 2016 1 commit
    • Andrew Bauer's avatar
      Fix for point sprites for NVIDIA EGL 358 libs. · 8660e581
      Andrew Bauer authored
      For now we just assume that there's a bug in the EGL libs
      for point sprites. When we find a version that doesn't have
      the bug we can specifically set which libs to use the
      work-around with.
  14. 01 Mar, 2016 1 commit
  15. 25 Feb, 2016 1 commit
  16. 23 Feb, 2016 1 commit
  17. 22 Feb, 2016 1 commit
  18. 17 Feb, 2016 1 commit
    • 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
  19. 20 Nov, 2015 1 commit
  20. 21 Oct, 2015 1 commit
    • Dan Lipsa's avatar
      BUG: The EGL Window was reinitialized on resize. · 3bd08317
      Dan Lipsa authored
      OpenGL windows have two initialization routines:
      WindowInitialize and Initialize. The first routine
      is a hard init: creates the opengl context and calls openglinit.
      The second routine does a WindowInitialize, if necessary, and then
      creates/resizes the off-screen window. The problem was that Initialize
      was always calling WindowInitialize.
  21. 01 Oct, 2015 1 commit
  22. 29 Sep, 2015 2 commits
    • Dan Lipsa's avatar
      BUG: Point Sprites don't work with EGL/OpenGL driver 4.5.0 NVIDIA 355.11 · ce285269
      Dan Lipsa authored
      gl_PointCoord is undefined unless glEnable(GL_POINT_SPRITE).
    • Dan Lipsa's avatar
      ENH: Add option to offscreen render through EGL. · 7619c556
      Dan Lipsa authored
      EGL (Native Platform Interface) allows you to create windows, pbuffers or pixmaps
      and use OpenGL, OpenGL ES or OpenVG to draw in them. We add two cmake options:
      - VTK_USE_OFFSCREEN_EGL build option enables using the EGL offscreen render window
        with OpenGL API (tested on '4.5.0 NVIDIA 355.11').
      - VTK_EGL_DEVICE_INDEX is used for selecting a different graphics card to render too if
        your machine has more than one cards installed.
  23. 08 Sep, 2015 1 commit
    • Dan Lipsa's avatar
      BUG: OSMESA configuration flags can cause link errors. · 3b6810ff
      Dan Lipsa authored
      This fixes:
         VTK_USE_X             on
         caused link errors in Rendering/OpenGL as some of the cxx
         files contained code ifdef using VTK_OPENGL_HAS_OSMESA instead of
      In the past, one could link against both MESA and OSMESA and use OSMESA only
      for off-screen rendering. In recent versions of MESA this is not the case anymore.
  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'
  25. 12 Jul, 2015 1 commit
  26. 15 Aug, 2014 1 commit
  27. 12 Aug, 2014 2 commits
    • Ken Martin's avatar
      in progress · 5dfe80a5
      Ken Martin authored
      Change-Id: If4c032ca7ea87db2d1c29cb0e9763e10a695780b
    • Ken Martin's avatar
      in progress · f0af35e8
      Ken Martin authored
      Change-Id: I70b2221c9dc3a758ae30f1ead7d5a1824924f24b
  28. 23 Jul, 2014 1 commit
  29. 21 Jul, 2014 1 commit
  30. 27 Jun, 2014 1 commit