1. 19 Jun, 2018 1 commit
    • 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.
      c36289f1
  2. 21 Dec, 2017 1 commit
  3. 05 Dec, 2017 1 commit
  4. 05 Jan, 2017 1 commit
  5. 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
  6. 27 Jun, 2016 1 commit
    • 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).
      039f7961
  7. 08 Mar, 2016 1 commit
  8. 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'
      3ae7dd3a
  9. 22 Jul, 2015 1 commit
    • Bill Lorensen's avatar
      STYLE: Replace vtksys_stl and vtksys_ios:: with std:: · 924248d9
      Bill Lorensen authored
      In the early days of VTK, support for stl was not portable. vtksys_stl
      and vtksys_ios provided a portable implementation of the stl. Now, all
      of the VTK supported compilers have portable stl implementations.
      
      This patch:
        1) Replaces the vtksys_ios:: with std::.
        2) Replaces the vtksys_stl:: with std::.
        3) Removes "using" statements for stl
      924248d9
  10. 03 Dec, 2014 1 commit
  11. 23 Jun, 2014 1 commit
  12. 11 Mar, 2014 1 commit
    • 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
      2ad9f474
  13. 18 Nov, 2013 1 commit
    • 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>
      733ef2dd
  14. 28 Oct, 2013 1 commit
    • 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>
      bb20b9df
  15. 11 Jun, 2013 1 commit
    • 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
      compile.
      
      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.
      
      Conflicts:
      	Examples/IO/Cxx/CMakeLists.txt
      	Examples/ImageProcessing/Cxx/CMakeLists.txt
      	Examples/Medical/Cxx/CMakeLists.txt
      	Examples/Modelling/Cxx/CMakeLists.txt
      	Examples/VisualizationAlgorithms/Cxx/CMakeLists.txt
      	Examples/Widgets/Cxx/CMakeLists.txt
      
      Change-Id: I996065a30aab43cca630a369b39d748de728039b
      61511f37
  16. 23 May, 2013 1 commit
    • 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
      compile.
      
      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
      3c68fe1f
  17. 17 Aug, 2012 1 commit
    • 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
      1995122e
  18. 09 Apr, 2012 1 commit
    • 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>
      2d323fc4
  19. 03 Oct, 2011 1 commit
  20. 27 Dec, 2009 1 commit
  21. 15 Jun, 2009 1 commit
  22. 15 Feb, 2008 1 commit
  23. 15 Aug, 2007 1 commit
  24. 29 Mar, 2005 1 commit
  25. 17 Feb, 2005 1 commit
    • Brad King's avatar
      ENH: Setting up build of examples to always be an outside project. An in-tree... · fe7fc7e9
      Brad King authored
      ENH: Setting up build of examples to always be an outside project.  An in-tree build will produce a custom target that builds it as an outside project using ctest --build-and-test.  Once VTK is built the examples will be built.  The output paths are setup to put the examples in the VTK bin directory so DLL builds will work out of the box.
      fe7fc7e9
  26. 15 Feb, 2005 1 commit
  27. 16 Nov, 2004 1 commit
  28. 11 Dec, 2003 1 commit