1. 31 Aug, 2018 1 commit
  2. 24 May, 2018 1 commit
    • Lucas Gandel's avatar
      Improve QVTKOpenGLWidget and add QVTKOpenGLWindow class based on QOpenGLWindow · 45704131
      Lucas Gandel authored
      Fixing stereo support with Qt5.
      Commit 139f787a was introducing QVTKOpenGLWidget to couple a vtkRenderWindow with a QOpenGLWidget.
      However, both QVTKOpenGLWidget and its superclass QOpenGLWidget manage a single frame buffer.
      
      QVTKOpenGLWindow derives the QOpenGLWindow class to benefit from an OpenGL context managing multiple frame buffers.
      It can be used as a QWidget by calling QWidget::createWindowContainer() on your QVTKOpenGLWindow instance.
      QVTKOpenGLWidget has been reimplemented to use thes QVTKOpenGLWindow directly has a widget.
      It is recommended to do so.
      
      The old QVTKOpenGLWidget is been moved into QVTKOpenGLSimpleWidget and should not be removed as it support being a native widget,
      wich the new implementation does not.
      
      There is a new QVTKOpenGLWidget::isValid() method to check that the widget is ready to render.
      
      It is to be noted that there is a specific implementation of
      event handling in order to work around QTBUG-61836.
      The Qt::WindowTransparentForInputFlag has no effect on Mac. Thus events
      are not being passed to the widget. We let the window grabbing all events
      and then forward them to the widget.
      We also take care for providing a method to forward back events to the
      window if events were explicitely triggered on the widget instance. This
      is the case for some paraview testing logic that should now use the provided
      testingEvent() method instead of notifying the widget with events.
      
      It is to be noted that, on OSX, the widget is always resized to its internal vtkRenderWindow
      size to ensure that the viewport is correct.
      This is necessary only on MacOS when HiDPI is supported. Enabling HiDPI
      has the side effect that Cocoa will start overriding any glViewport calls
      in application code. For reference, see QCocoaWindow::initialize().
      
      This also improve tests and examples using the QVTKOpenGLWidget
      45704131
  3. 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
          done
      d6d05b2a
  4. 26 Jan, 2018 1 commit
  5. 20 Dec, 2017 1 commit
  6. 05 Dec, 2017 3 commits
  7. 04 Dec, 2017 1 commit
  8. 29 Nov, 2017 1 commit
  9. 04 Oct, 2017 2 commits
  10. 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.
      fd04b442
  11. 26 Jul, 2017 1 commit
    • Kitware Robot's avatar
      Replace many NULL and 0 occurances with nullptr · a855cab0
      Kitware Robot authored
      This topic is the result of running clang-tidy to
      modernize our usage of NULL and 0 to nullptr. It also
      includes some manual and semi manual changes where
      clang-tidy would not be expected to work (such as in
      comments, or classes not compiled on this build)
      
      There are definitely many comments and occurances that
      this topic misses that we will need to fix over time.
      a855cab0
  12. 07 Mar, 2017 1 commit
    • Utkarsh Ayachit's avatar
      Use vtk_module_export_code_find_package() for Qt4. · df741f7c
      Utkarsh Ayachit authored
      Similar to what we're doing with Qt5, this change now adds called to
      vtk_module_export_code_find_package() for Qt4. That way, when importing
      a module using Qt4, we automatically find Qt4.
      
      Also changed to use imported targets rather than library paths when
      linking to Qt4 libraries.
      df741f7c
  13. 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
  14. 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
  15. 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
  16. 08 Mar, 2016 1 commit
  17. 10 Sep, 2015 1 commit
  18. 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
  19. 05 Aug, 2015 5 commits
  20. 09 Jul, 2015 1 commit
  21. 07 Jul, 2015 1 commit
  22. 06 Jul, 2015 1 commit
  23. 29 Apr, 2015 1 commit
  24. 11 Mar, 2015 1 commit
  25. 15 Jan, 2015 1 commit
  26. 03 Jul, 2014 1 commit
    • Ben Boeckel's avatar
      linking: wrap tll() with a module-aware function · 3cd0686a
      Ben Boeckel authored
      This will allow kits to gather all of the required libraries to link
      since the modules themselves won't "exist" to link anything when kits
      are enabled.
      
      Change-Id: Ic73220c7b97e17a5fbc0aa6c0f7a5e5a61dc6bef
      3cd0686a
  27. 16 Jun, 2014 2 commits
    • Marcus D. Hanwell's avatar
      Brought more of the OpenGL module logic over · e58ca401
      Marcus D. Hanwell authored
      Made the vtkGUISupportQt module work, moved the other QtOpenGL module
      to OpenGL backend only for now - uses vtkgl/extension manager stuff.
      Configure the header with options selected for the build.
      
      Change-Id: I7099e6c110ba080bb102e180d6d544ad3515c730
      e58ca401
    • Marcus D. Hanwell's avatar
      Added a concept of backends, added OpenGL and OpenGL2 · cf406e96
      Marcus D. Hanwell authored
      This adds a concept of a rendering backend to the module API, with
      an OpenGL and OpenGL2 backend. They are mutually exclusive and one
      or the other should be selected (or None in the case when rendering
      is not requested). This needs a little more work as the default
      backend enables rendering when the group is disabled at this point.
      
      Change-Id: I98d660e063ef58d52698e08ab06dd45601bea9cd
      cf406e96
  28. 07 May, 2014 1 commit
    • Brad King's avatar
      Export the locations of Qt5 packages on which modules depend · 23fbbebc
      Brad King authored
      Qt5 packages provide libraries to VTK in the form of imported targets.
      VTK libraries that link to them get exported with dependencies on the
      imported targets.  We must make them available to applications that link
      to these VTK libraries too.
      
      Teach each module that depends on Qt5 to export code that runs when
      an application loads the module as part of its build process.  Find
      the needed Qt5 package on behalf of the application to satisfy the
      module's dependency on it.
      
      Change-Id: Ib638ccafa084fbb06c20eb09464265501ccafc80
      23fbbebc
  29. 06 May, 2014 1 commit
  30. 19 Aug, 2013 1 commit
    • Brad King's avatar
      COMP: Cleanup CMP0022 and CMP0023 warnings · ed6c07d0
      Brad King authored
      CMake 2.8.12 introduces policies CMP0022 and CMP0023 that trigger
      warnings in some of VTK's CMake code.  Fix them as follows.  The result
      is a cleaner and more explicit link specification anyway.
      
      CMP0022 warns when we set the LINK_INTERFACE_LIBRARIES property directly
      without also setting the newly introduced INTERFACE_LINK_LIBRARIES
      property directly.  Simply drop these settings because they are achieved
      already by use of the keyword-based target_link_libraries signature.
      
      CMP0023 warns when we use both the plain and keyword signatures of the
      target_link_libraries command for a single target.  The module macros
      use the keyword signature (LINK_PUBLIC/LINK_PRIVATE), so any direct
      calls to the plain target_link_libraries signature are doing "private"
      linking.  Add the LINK_PRIVATE keyword to such calls to make this
      explicit and avoid the warning.
      
      Change-Id: I1e5bf687733e3f19462da698c0d5e3899439bf02
      ed6c07d0
  31. 18 Aug, 2013 1 commit
  32. 11 Jul, 2013 1 commit