Skip to content
Snippets Groups Projects
  1. Apr 06, 2017
  2. Mar 29, 2017
    • David Gobbi's avatar
      Fix vtkWrapTcl assert on isprint for Visual Studio. · fdb935f3
      David Gobbi authored
      If an out-of-range value is sent to isprint(), then programs generated
      by Visual Studio 2010 and later will assert.  I suspect that it does this
      because the alternative would be to guess the encoding and potentially
      give an incorrect answer, which could compromise the security of the
      executable.
      fdb935f3
  3. Mar 17, 2017
  4. Mar 14, 2017
  5. Mar 08, 2017
  6. Jan 23, 2017
    • David Gobbi's avatar
      16849: Wrap classes that have no copy constructor. · 4b6765d3
      David Gobbi authored
      Previously, if a class in VTK had no copy constructor it would not be
      wrapped (unless it was derived from vtkObjectBase, which always has the
      copy constructor disabled).
      
      Examples of classes that are now wrapped are vtkFloatingPointException
      (which only has static methods and is never actually instantiated) and
      RAII classes like vtkSimpleMutexLock that lack copy constructors for
      obvious reasons.
      4b6765d3
  7. Jan 19, 2017
  8. Jan 18, 2017
  9. Jan 17, 2017
  10. Jan 16, 2017
    • 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
  11. Jan 14, 2017
    • Sean McBride's avatar
      Fixed various cppcheck warnings, suppressed others · 930c68bd
      Sean McBride authored
      - Avoid cppcheck false positive (due to pointer aliasing confusion). Reworked the code so g doesn’t alias gTmp, so that cppcheck doesn’t think that gTmp is used unititialized.
      - added seemingly missing break
      - removed store to local variable from a macro
      - fixed other warnings.
      930c68bd
  12. Jan 10, 2017
    • Sean McBride's avatar
      Fixed many trivial cppcheck 1.77 warnings · ea372f58
      Sean McBride authored
      These are all new warnings vs the previous version, 1.76.1
      
      No real bugs found/fixed here.
      
      Most are either overwriting a never-read variable value,
      usually only at intialiazation, or a useless comparison.
      
      In a couple of places, threw in a const or did other minor reworking.
      ea372f58
  13. Jan 05, 2017
  14. Jan 03, 2017
  15. Dec 09, 2016
  16. Dec 05, 2016
    • Sean McBride's avatar
      Change Borland hacks to be for old compliers only · bcee8f31
      Sean McBride authored
      VTK has several Borland-specific workarounds, but I’m
      fairly sure they are all for ancient compilers.
      So this changes makes them all apply to older-than-newest
      versions only.
      This will make it easier to remove them entirely one day,
      as currently it’s impossible to know if they are needed for all, old, or new versions.
      bcee8f31
    • David Gobbi's avatar
      Avoid expanding macro _WCHAR_T_DEFINED · 140ba599
      David Gobbi authored
      Apparently expansion of this macro (which is sometimes defined on Win32)
      is undefined and causes a compile error.
      140ba599
    • David Gobbi's avatar
      Add many more predefined wrapper macros · 0f81b721
      David Gobbi authored
      This is mainly for kwiml, which was added to VTK 7.1.  For type sizes,
      endianness, etc. kwiml checks compiler macros instead of using cmake
      to generate config headers via try-compile.  Hence, the wrappers must
      define all the macros that the native compiler defines.
      0f81b721
  17. Dec 04, 2016
  18. Dec 01, 2016
    • David Gobbi's avatar
      Expand typedefs for the Tcl and Java wrappers · 858c6ed5
      David Gobbi authored
      Even though typedefs have been handled by the Python wrappers ever since
      VTK 6.0, this feature was never enabled for the Java and Tcl wrappers.
      This problem was noticed when the vtkMTimeType typedef was introduced,
      since it caused MTime methods to disappear from the Java/Tcl wrappers.
      858c6ed5
  19. Nov 18, 2016
  20. Nov 11, 2016
    • David Gobbi's avatar
      Avoid dereferencing NULL calldata pointer · ebdf604b
      David Gobbi authored and Chuck Atkins's avatar Chuck Atkins committed
      This adds a check to vtkPythonCommand so that it doesn't attempt to
      use the calldata pointer if the pointer is NULL.
      ebdf604b
    • David Gobbi's avatar
      Don't pass subject for Python DeleteEvent · 650a1db6
      David Gobbi authored and Chuck Atkins's avatar Chuck Atkins committed
      When Python observed a VTK DeleteEvent, it called GetObjectFromPointer()
      to try to get (or make) a Python object for the vtkObject that invoked
      the event.  Obviously if a vtkObject is being deleted, we do not want to
      create a new Python object that references it.
      650a1db6
  21. Nov 03, 2016
  22. Nov 02, 2016
    • David Gobbi's avatar
      Don't pass subject for Python DeleteEvent · f06e3ccf
      David Gobbi authored
      When Python observed a VTK DeleteEvent, it called GetObjectFromPointer()
      to try to get (or make) a Python object for the vtkObject that invoked
      the event.  Obviously if a vtkObject is being deleted, we do not want to
      create a new Python object that references it.
      f06e3ccf
  23. Sep 26, 2016
  24. Sep 23, 2016
  25. Sep 19, 2016
    • David Gobbi's avatar
      Fix a few doxygen specials for the wrappers · 3755a5c9
      David Gobbi authored
      The 'brief' special was only being handled at the beginning of a line,
      and the 'warning' and 'sa' specials were not handled at all.  The wrappers
      already understand a large number of doxygen specials, but not all of them.
      3755a5c9
  26. Sep 17, 2016
  27. Sep 16, 2016
    • Haocheng LIU's avatar
      Fix Wrapping/Tcl => Rendering/Tk dependency direction · fc47ee55
      Haocheng LIU authored
      Our module dependency update sweep accidentally recorded this
      dependency in the wrong direction.  Fix the dependency so that
      the `vtk` executable can use components from the `vtkRenderingTk`
      module, such as `vtkTkImageViewerWidget`.
      
      This fixes a `vtkRenderingTkTcl-cursor3D` test failure.
      fc47ee55
  28. 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
  29. Sep 01, 2016
Loading