1. 19 Jun, 2018 40 commits
    • Brad King's avatar
      cmake: declare support for CMake versions through 3.12 · c36289f1
      Brad King authored
      CMake 3.12 introduces a `...<max>` syntax in the version given to
      `cmake_minimum_required` to automatically set policies to NEW up
      to that version.  Use it to avoid listing policies explicitly.
      The syntax is compatible with older versions of CMake such that they use
      the extended version string for the `CMAKE_MINIMUM_REQUIRED_VERSION`
      variable (which we don't use) but otherwise ignore it.
  2. 18 May, 2018 40 commits
    • 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
  3. 21 Dec, 2017 40 commits
  4. 06 Dec, 2017 40 commits
  5. 05 Dec, 2017 40 commits
  6. 05 Oct, 2017 40 commits
    • Sean McBride's avatar
      Improved performance of vtkLookupTable a bit · 30acb904
      Sean McBride authored
      Did a few things to speed things up:
      - eliminated some double<->integer conversions.
      - repeated the last colour in the lut as a 4th "special" colour, eliminating need for a test in very hot function. Improved shift & scale calculations against pathological cases.
      - use memcpy() (with fixed size) instead of manual copying byte by byte. Modern compilers optimize this well, as verified with godbolt.
      Did some other cleanup while investigating my performance issues: added more const safety, fixed comments, etc.
  7. 03 Oct, 2017 40 commits
  8. 02 Oct, 2017 40 commits
  9. 14 Mar, 2017 40 commits
  10. 05 Jan, 2017 40 commits
  11. 23 Sep, 2016 40 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 {} +
  12. 13 Jul, 2016 40 commits
    • Sean McBride's avatar
      Used clang-tidy's "modernize-use-override" to add some C++11 overrides · 753dcec5
      Sean McBride authored
      It doesn't seem to have got everything, but it's a start.
      Some resulting whitespace is suboptimal, but one day
      we can fix that with clang-format. :)
      Just ran this command:
      run-clang-tidy.py -checks=-*,modernize-use-override -fix
      (I actually had to build my own clang to make clang-tidy
      output "VTK_OVERRIDE" instead of "override".)
  13. 27 Jun, 2016 40 commits
    • Haocheng LIU's avatar
      Fix bugs&typo in VTK Example folder · 039f7961
      Haocheng LIU authored
      With VTK new version, find_package cannot find VTK_RENDERING_BACKEND
      properly. The solution is to call find_package(VTK REQUIRED) first, then
      use vtk_module_config to load the needed modules. Some typos are also fixed.
      For Statistics example, the SetInput function is replaced by SetInputDta
      function(See vtkTableAlgorithm class).
  14. 13 Mar, 2016 40 commits
  15. 08 Mar, 2016 40 commits
  16. 07 Mar, 2016 40 commits
  17. 03 Dec, 2014 40 commits
  18. 23 Jun, 2014 40 commits
  19. 16 Apr, 2014 40 commits
  20. 11 Mar, 2014 40 commits
    • Brad King's avatar
      Set CMake Policies CMP0025 and CMP0042 as necessary · 2ad9f474
      Brad King authored
      CMake 3.0 introduces these policies to improve default behavior on OS X.
      Set them explicitly in VTK to avoid policy warnings.  VTK already works
      with the NEW behavior.
      Policy CMP0025 affects the project() command when the Apple Clang
      compiler is used so we need to set it in all the Examples.  Policy
      CMP0042 affects shared libraries on OS X, enabling MACOSX_RPATH by
      default.  Set it in directories where we create libraries.  Also tell
      KWSys to enable MACOSX_RPATH explicitly instead of setting the policy.
      Change-Id: I543b60ee1b8f629adb150e01ee83d99dddb66f46
  21. 18 Feb, 2014 40 commits
  22. 18 Nov, 2013 40 commits
    • Andrew Maclean's avatar
      Allow the examples to specify what modules to use. · 733ef2dd
      Andrew Maclean authored
      This approach demonstrates good programming practice by only
      linking to the needed modules.
      It also removed the need to set CMP0020 to NEW in all cases
      except those examples that link to Qt.
      The include(${VTK_USE_FILE}) has been removed from the
      top-level CMakeLists.txt file as it is unnecessary.
      The solution presented here will work with the Examples built
      as a stand-alone folder or within the VTK tree or with the
      individual examples.
      They have been tested on Linux, Windows VS2012 Express,
      Mac OS-X 10.9 using Qt5.1.1.
      Change-Id: I0572a395b2ebc6630db8c1407f410a584f668a85
      Signed-off-by: Andrew Maclean's avatarAndrew Maclean <andrew.amaclean@gmail.com>
  23. 28 Oct, 2013 40 commits
    • Andrew Maclean's avatar
      Eliminating CMP0020 warnings in the examples. · bb20b9df
      Andrew Maclean authored
      If VTK is built with Qt5 and CMake >= 2.8.11 CMP0020 warnings are generated
       in these examples. Setting CMP0020 to new eliminates these warnings.
      This warning happens because the examples link to ${VTK_LIBRARIES}
      which, inside the VTK build tree, is all libraries built including
      those that use Qt.  The policy is set as a workaround in these cases.
      A future submission will modify these and other examples to just
      use the needed libraries.
      Change-Id: Iea460773065ed55880b198eeaeec3da3b711c258
      Signed-off-by: Andrew Maclean's avatarAndrew Maclean <andrew.amaclean@gmail.com>
  24. 11 Jun, 2013 40 commits
    • Bill Lorensen's avatar
      BUG: Examples should build if BUILD_TESTING is OFF · 61511f37
      Bill Lorensen authored
      With BUILD_EXAMPLES:ON and BUILD_TESTING:OFF, the Examples should
      To configure VTK with BUILD_EXAMPLES:ON and BUILD_TESTING:OFF, from an
      empty build tree,
      cmake  -DBUILD_TESTING:BOOL=OFF -DCMAKE_BUILD_TYPE:STRING=Release vtk_src_tree
      NOTE: If you have already configured VTK with default settings, you
      must clean the build tree and rerun cmake with the above
      setting. Otherwise, bogus tests will remain.
      Change-Id: I996065a30aab43cca630a369b39d748de728039b
  25. 04 Jun, 2013 40 commits
    • Brad King's avatar
      Convert VTKData test inputs to ExternalData content links · 3797f83d
      Brad King authored
      Add to the Testing/Data directory ExternalData content links mirroring
      the content and layout we use from the VTKData/Data directory.
      Add a CMake/vtkLegacyData.cmake module, included from CMakeLists.txt and
      Testing/External/CMakeLists.txt, to call ExternalData_Expand_Arguments
      for all data directories added from VTKData/Data.  This will bulk-fetch
      all test input data currently used by tests of any module, enabled or
      not.  We can make the DATA{} references more granular later.
      Add a VTK_TEST_DATA_DIR variable to refer to the directory we tell the
      ExternalData module to populate the real data files.  Replace references
      to VTK_DATA_ROOT in test command lines (after -D) with references to
      VTK_TEST_DATA_DIR.  Drop the VTK_DATA_ROOT CMake option and stop using
      the VTKData repository.
      Remove the TESTING_DATA option from the vtk_add_test_cxx API and remove
      the VTK_DATA_ROOT option from the vtk_add_test_mpi API since all test
      input data are now handled through ExternalData and Testing/Data content
      Change-Id: Id02490b76ea2e161b9038188264a4830485039d8
  26. 23 May, 2013 40 commits
    • Bill Lorensen's avatar
      BUG: Examples should build if BUILD_TESTING is OFF · 3c68fe1f
      Bill Lorensen authored
      With BUILD_EXAMPLES:ON and BUILD_TESTING:OFF, the Examples should
      To configure VTK with BUILD_EXAMPLES:ON and BUILD_TESTING:OFF, from an
      empty build tree,
      cmake  -DBUILD_TESTING:BOOL=OFF -DCMAKE_BUILD_TYPE:STRING=Release vtk_src_tree
      NOTE: If you have already configured VTK with default settings, you
      must clean the build tree and rerun cmake with the above
      setting. Otherwise, bogus tests will remain.
      Change-Id: I2035e49c7df4ba6f3d88447ea1b768ec63b87ee7
  27. 22 May, 2013 40 commits
    • Brad King's avatar
      Teach Examples to use ExternalData · a731ca41
      Brad King authored
      Teach vtk_add_test_cxx and vtk_test_cxx_executable to work in
      Examples/*/Cxx directories when variable "vtk-example" is set and
      "vtk-module" is not set.  Convert Examples/*/Cxx/CMakeLists.txt to use
      these functions.  Populate Examples/*/Cxx/Baseline/ directories with
      ExternalData content links for example baseline images.
      Change-Id: Ic7d847a4561f5ed882b35e80c3ce98aa578ef7d3
  28. 25 Jan, 2013 40 commits
    • Utkarsh Ayachit's avatar
      Moving vtkTestingObjectFactory.cmake to ${VTK_SOURCE_DIR}/CMake. · c2eeaa2d
      Utkarsh Ayachit authored
      This makes it easier for external applications attempting to use
      vtkTestingObjectFactory since they don't require the
      vtkTestingRendering_SOURCE_DIR to set anymore (which won't even when the
      vtkTestingRendering module has been successfully imported.
      Change-Id: I14795bbe0f9d71d41da14c970ba49bdb8e11a913
  29. 17 Aug, 2012 40 commits
    • Bill Lorensen's avatar
      ENH: Migrate examples to VTK6 · 1995122e
      Bill Lorensen authored
      1) Add Find_Package(VTK COMPONENTS) for each example dir
      2) Add MAC app support
      3) Use ${VTK_LIBRARIES} for target_link_libraries
      4) Use new signature for add_test
      Each set of examples can be built within the VTK bin tree or as
      stand-alone examples.
      Change-Id: I6daa126bcc2ed44d827b50954d27f90f394ad4f2
  30. 09 Apr, 2012 40 commits
    • VTK Developers's avatar
      Remove trailing whitespace from all source files · 2d323fc4
      VTK Developers authored
      Exclude ThirdParty, Utilities/MetaIO, and Utilities/KWSys as these
      are maintained outside VTK.
      Co-Author: Marcus D. Hanwell <marcus.hanwell@kitware.com>
      Co-Author: Chris Harris <chris.harris@kitware.com>
      Co-Author: Brad King <brad.king@kitware.com>
  31. 17 Jan, 2012 40 commits
  32. 04 Oct, 2011 40 commits
  33. 03 Oct, 2011 40 commits
  34. 18 Apr, 2011 40 commits
  35. 15 Mar, 2011 40 commits
    • David Gobbi's avatar
      ENH: Add new image mappers to VTK. · 9ac8f746
      David Gobbi authored
      New class vtkImageSliceMapper will draw slices of a 3D image, while
      new class vtkImageResliceMapper will draw oblique reformatted slices.
      New class vtkImageSlice is the corresponding Prop3D for the mappers,
      and is a replacement for vtkImageActor, which is now a subclass of it.
      New class vtkImageProperty controls window/level, lookup table, etc.
      Change-Id: Id6816402404c8d18d1523dec2c36bd809a060170
  36. 28 Dec, 2009 40 commits
  37. 27 Dec, 2009 40 commits