1. 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.
  2. 05 Jul, 2017 1 commit
  3. 27 Oct, 2016 1 commit
  4. 08 Mar, 2016 1 commit
  5. 29 Sep, 2015 1 commit
    • 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.
  6. 16 Apr, 2014 1 commit
  7. 31 May, 2013 1 commit
  8. 17 May, 2013 1 commit
  9. 14 May, 2013 1 commit
  10. 13 May, 2013 1 commit
    • Brad King's avatar
      vtkTestingMacros: Generalize add_test_(python|tcl) · 52b51415
      Brad King authored
      Teach add_test_(python|tcl) to parse explicit NO_DATA, NO_RT, NO_VALID,
      and NO_OUTPUT keyword options for tests that do not need VTK_DATA_ROOT
      or do not use a valid baseline image.  Factor add_test_python1 into
      add_test_python and distinguish them with the NO_RT keyword argument.
      Update call sites to produce identical test command lines before and
      after this change.
      Change-Id: I09f874b26aab409e55e7aa6f92412314540dbb85
  11. 27 Feb, 2013 1 commit
  12. 19 Oct, 2012 1 commit
    • Andrew Maclean's avatar
      Python tests manually converted from Tcl · 20947cd5
      Andrew Maclean authored
      These files were all manually converted from Tcl because the
      automatic conversion process failed on them.
      They have been tested in windows and there is only one known
      failure TestFreetypeTextMapperBigger.py. It seems there is a
      slight difference in text size. I don't think it is in the test
      Two python tests have been replaced:
       financialField.py - to be consistnet with financialField?.py
       TestFixedPointRayCasterNearest.py - because it is used
      as an import in some tests.
      Minor mods were done to TestNamedColorsIntegration.py and
      testing enabled.
      Change-Id: I85b65d33a5d3db8a9d166158e89cb52f21dba60a
      Signed-off-by: Andrew Maclean's avatarAndrew Maclean <andrew.amaclean@gmail.com>
  13. 15 Oct, 2012 1 commit
    • Nikhil Shetty's avatar
      Adding auto-converted python tests. · fae72d5e
      Nikhil Shetty authored
      Note: these tests were not a part of pre-modular-vtk and have been especially
      converted for vtk-modular in order to have the complete set of python tests for
      each tcl test. The likelyhood of them failing is high and more work may be
      needed to get them to work.
      Change-Id: Iac82a32eddc1da9042450ced177258a364e5b07b
  14. 11 Oct, 2012 1 commit