1. 26 Jul, 2017 8 commits
    • 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.
  2. 23 Sep, 2016 8 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 {} +
  3. 08 Mar, 2016 8 commits
  4. 06 Aug, 2015 8 commits
    • David Gobbi's avatar
      Python API compatibility for py3k. · d3eb4043
      David Gobbi authored
      This is a large change that adds conditional compilation to support
      both python 2 and python 3.  The header vtkPythonCompatibility.h
      does a lot of the necessary work:
      1) PyInt is redefined to PyLong for py3k
      2) PyString is redefied to PyUnicode for py3k
      3) PyBytes is redefined to PyString for python 2
  5. 16 Sep, 2014 8 commits
    • Ben Boeckel's avatar
      vtkPythonAlgorithm: print out all the error information · b0cd19ba
      Ben Boeckel authored
      Unfortunately, Python has this habit of using the name of the
      exception's class for critical information and the stringification of
      the exception itself is useless on its own (e.g., AttributeError's
      string is just the name of the attribute that is missing). To get better
      error information, use traceback.format_exception if it is available.
      Change-Id: I7fcbd9a12e505b2e3422c31dcf52055d98144a64
  6. 07 Aug, 2014 8 commits
    • Shawn Waldon's avatar
      Add a smartpointer for PyObjects · f9a208d6
      Shawn Waldon authored
      This refactors the SmartPyObject class from a local class in
      vtkMatplotlibMathTextUtilities.cxx to be externally visible.  This class
      is duplicated several places in Paraview and this refactor will allow
      code to be shared between all places that need it.  It is added to the
      vtkWrappingPythonCore module as the vtkSmartPyObject class.
      This commit also refactors the vtkPythonAlgorithm to use the new smart
      This commit is part of a change to ParaView and thus the topic name
      reflects that change and not the change to VTK.
      Change-Id: If3f0387bb7bb24f823dbe690e64a0a8bb1e0df16
  7. 10 Jun, 2014 8 commits
    • Ben Boeckel's avatar
      vtkPythonAlgorithm: support older pythons · 4b74588b
      Ben Boeckel authored
      Older Python's PyObject_GetAttrString did not take a const char*, but
      instead a char*. This disallows using static strings for the attribute
      Change-Id: I349b14f532c34fcc7c2ac6f03e24c171847bc51e
  8. 06 Jun, 2014 8 commits