Skip to content
Snippets Groups Projects
  1. Mar 31, 2017
  2. Mar 14, 2017
  3. Feb 01, 2017
  4. Jan 16, 2017
    • Andrew Maclean's avatar
    • Robert Maynard's avatar
      Convert vtk over to using VTK_OVERRIDE · 3f7a2769
      Robert Maynard authored
      3f7a2769
    • Michka Popoff's avatar
      ENH: Do not link against libpython when possible · 5668595e
      Michka Popoff authored
      This is similar to what is already done in ITK and SimpleITK.
      
      The new vtkTargetLinkLibrariesWithDynamicLookup.cmake file is slightly modified copy from
      ITK/CMake/itkTargetLinkLibrariesWithDynamicLookup.cmake
      The explanation of what this patch tries to achieve is documented in this file.
      
      A new argument is introduced, called OPTIONAL_PYTHON_LINK.
      When used, the module will be optionally be linked against libpython.
      In the module.cmake files, most vtkPython dependencies were moved to COMPILE_DEPENDS, so that libpython is not added to the target_link_libraries() call.
      
      The vtkPython is explicitely linked against the python libraries, as this is a python executable.
      
      Also, the find_package calls for the PythonLibs were made optional when possible.
      
      The XDMF3 project was not updated, this will need to be done separately if weak linking is wished for that project.
      
      Fixes: #16068
      5668595e
  5. Jan 12, 2017
  6. Jan 10, 2017
  7. Jan 05, 2017
    • Mathieu Westphal (Kitware)'s avatar
      Fix NULL socket crash · f0729750
      Mathieu Westphal (Kitware) authored
      In some cases, when server closes unexpectendly
      the client may try to send data to the server
      while it's socket has already been destroyed,
      provoking a segfault.
      This fixes it.
      f0729750
  8. Oct 03, 2016
    • David C. Lonie's avatar
      Refactor vtkDebugLeaks construction. · e5c793db
      David C. Lonie authored
      vtkDebugLeaks registers instance by class name, which worked well for
      many years. However, now that we have more templated code, this is
      becoming difficult. For instance, "template <typename T> vtkBuffer<T>"
      would be identified as "vtkBuffer<T>" when registering with
      vtkDebugLeaks, but deregistered with the compiler dependent
      typeid(vtkBuffer<T>).name() string returned from GetClassName().
      
      This patch moves vtkDebugLeaks registrations to the method
      vtkObjectBase::InitializeObjectBase(), which must be called after the
      vtkObjectBase is instantiated. This ensures that objects are
      registered using the same string as when they are destroyed. In
      general, a call to "new vtkSomeClass" must be followed by a call to
      InitializeObjectBase on the new instance. The common ::New()
      implementation macros in vtkObjectFactory will ensure that
      registration happens correctly.
      
      Two notable exceptions are vtkCommand and vtkInformationKey
      subclasses. These do not require any specific handling for
      vtkDebugLeaks registration.
      
      See discussion at:
      
      http://vtk.1045678.n5.nabble.com/Proposal-Simplify-vtkDebugLeaks-registration-td5740222.html
      e5c793db
  9. Sep 26, 2016
  10. Sep 23, 2016
    • 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:
      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
    • David DeMarle's avatar
      replace VTK's nonstandard Doxygen with standard markup · 6a7e5148
      David DeMarle authored
      generated via:
      cd $VTKSRC
      perl Utilities/Doxygen/doc_header2doxygen.pl --to ~/tmp/vtkheaders .
      cp -r ~/tmp/vtkheaders/* .
      6a7e5148
  11. Sep 12, 2016
    • 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
  12. Aug 18, 2016
    • Utkarsh Ayachit's avatar
      Added simpler Gather(vtkDataObject*) method. · d8fd4496
      Utkarsh Ayachit authored
      vtkCommunicator::GatherV() required the destination process to know what
      data types to expect. This was unnecessary. There's enough information
      in the marshalled data object received from  the sender side to deduce
      that. Adding new vtkCommunicator::Gather() and
      vtkMultiProcessController::Gather() methods that provide a simpler
      interface.
      
      Updating GenericCommunicator test to test for the new API.
      d8fd4496
  13. Aug 15, 2016
  14. Aug 09, 2016
    • Brad King's avatar
      Parallel/Core: Drop unnecessary VTK_USE_64BIT_IDS conditional blocks · c73ddec2
      Brad King authored
      Several vtkCommunicator and vtkMultiProcessController methods are
      duplicated for `vtkIdType` and `long long` when in fact only the latter
      is necessary.  All these APIs are overloaded for all basic integer
      types, so the proper one can be chosen by the compiler for use with
      callers that have a `vtkIdType`.
      c73ddec2
  15. Aug 03, 2016
  16. Jul 28, 2016
  17. Jul 26, 2016
  18. Jul 08, 2016
  19. Jul 07, 2016
    • Sean McBride's avatar
      Applied VTK_DELETE_FUNCTION to many constructors · 1853e030
      Sean McBride authored
      vtk(.*)\(const vtk\1&\);\s*//\s*Not implemented[\.]*
      to
      vtk\1(const vtk\1\&) VTK_DELETE_FUNCTION;
      
      vtk(.*)\(const vtk\1 &\);\s*//\s*Not implemented[\.]*
      to
      vtk\1(const vtk\1 \&) VTK_DELETE_FUNCTION;
      
      vtk(.*)\( const vtk\1 & \);\s*//\s*Not implemented[\.]*
      to
      vtk\1( const vtk\1 \& ) VTK_DELETE_FUNCTION;
      
      vtk(.*)\( const vtk\1& \);\s*//\s*Not implemented[\.]*
      to
      vtk\1( const vtk\1\& ) VTK_DELETE_FUNCTION;
      
      vtk(.*) \(const vtk\1&\);\s*//\s*Not implemented[\.]*
      to
      vtk\1 (const vtk\1\&) VTK_DELETE_FUNCTION;
      1853e030
    • Sean McBride's avatar
      Applied VTK_DELETE_FUNCTION for operator= · 2d0e11ef
      Sean McBride authored
      (operator\s*=.*);\s*//\s*Not\s*implemented[\.]*
      to
      \1 VTK_DELETE_FUNCTION;
      
      After that, this finds basically nothing:
      
      operator.*implemented
      
      then manually reverted changed files in VPIC and KWSys folders.
      2d0e11ef
  20. Jun 26, 2016
    • Michka Popoff's avatar
      ENH: Do not link against libpython when possible · 772cc086
      Michka Popoff authored
      This is similar to what is already done in ITK and SimpleITK.
      
      The new vtkTargetLinkLibrariesWithDynamicLookup.cmake file is slightly modified copy from ITK (things have been renamed from ITK to VTK). The explanation of what this patch tries to achieve is documented in this file.
      
      A new argument is introduced, called OPTIONAL_PYTHON_LINK. When used, the module will be optionally be linked against libpython. In the module.cmake files, most vtkPython dependencies were moved to COMPILE_DEPENDS, so that libpython is not added to the target_link_libraries() call.
      
      The vtkPython is explicitely linked against the python libraries, as this is a python executable.
      
      Also, the find_package calls for the PythonLibs were made optional when possible.
      
      This fixes the following bug: http://www.vtk.org/Bug/view.php?id=16068
      772cc086
  21. May 25, 2016
    • Kitware Robot's avatar
      Remove all BTX and ETX markers from VTK headers · 4d127b1d
      Kitware Robot authored and David Gobbi's avatar David Gobbi committed
      Perl was used to remove all the BTX and ETX markers from the code.
      The specific command that was run on all "vtk*.h" files was this:
          perl -0777 -i -pe 's/(\n* *\/\/ *[BE]TX *\n+)+/\n\n/g'
      
      This regex replaces each BTX/ETX line, plus any leading or trailing
      blank lines, with a single blank line.
      4d127b1d
  22. May 17, 2016
    • Andrew Bauer's avatar
      Adding tools for efficient file system introspection. · dc4de3a5
      Andrew Bauer authored
      Using SystemTools and Directory can be very inefficient
      when dealing with a large number of processes. These classes
      are esentially wrappers for SystemTools and Directory such
      that only process 0 does any file system introspection and
      then broadcasts that information out to other processes.
      dc4de3a5
  23. May 06, 2016
    • David C. Lonie's avatar
      Replace SafeDownCast calls on arrays with vtkArrayDownCast. · 0d71a308
      David C. Lonie authored
      SafeDownCast performs a series of virtual calls and string comparisons,
      which is quite slow, especially when used in worker functions.
      
      vtkArrayDownCast will switch between SafeDownCast and the more
      efficient FastDownCast (only available for common vtkAbstractArray
      subclasses) depending on whether or not FastDownCast is defined for
      the specific array type.
      0d71a308
  24. Mar 08, 2016
  25. Jan 29, 2016
    • Berk Geveci's avatar
      Refactored and update the way algorithms are updated. · f020ebb6
      Berk Geveci authored
      The way algorithms were updated (made to execute) with
      request meta-data (such as update extent) was very error
      prone and counter-intuitive. Added new methods to make
      updating with meta-data easier. I also deprecated a number
      of methods to set request meta-data. This will encourage
      developers to migrate to the new API which is less error-
      prone.
      f020ebb6
  26. Dec 08, 2015
    • Brad King's avatar
      Drop support for compilers without `long long` · 3b89e771
      Brad King authored
      VTK no longer supports any compilers that do not provide this type.
      Therefore all code conditional on VTK_TYPE_USE_LONG_LONG can be made
      unconditional.  Leave the macro defined to tell dependent projects that
      APIs using the type are available in case they still support versions of
      VTK that make it conditional.
      3b89e771
  27. Nov 02, 2015
  28. Oct 30, 2015
  29. Oct 27, 2015
  30. Oct 21, 2015
  31. Sep 22, 2015
    • David Gobbi's avatar
      Wrap many more classes with python. · e6f75b9a
      David Gobbi authored
      This makes the python wrappers ignore WRAP_EXCLUDE, and instead use
      the new property WRAP_EXCLUDE_PYTHON that excludes fewer classes.
      The WRAP_SPECIAL flag, which used to act as a whitelist for python,
      has been removed.
      
      Because this change causes classes to be wrapped in python by default,
      some third-party VTK packages might break until they modify their own
      CMakeLists.txt files to add WRAP_EXCLUDE_PYTHON where necessary.
      e6f75b9a
  32. Aug 20, 2015
    • 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
  33. Aug 11, 2015
  34. Jul 22, 2015
    • 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
Loading