1. 18 Nov, 2019 1 commit
    • Kitware Robot's avatar
      clang-format: reformat using clang-format-8 · ac76fe16
      Kitware Robot authored
      Run the `clang-format.bash` script to update all our C and C++ code to a
      new style defined by `.clang-format`.  Use `clang-format` version 8.0.
      
      * If you reached this commit for a line in `git blame`, re-run the blame
        operation starting at the parent of this commit to see older history
        for the content.
      
      * See the parent commit for instructions to rebase a change across this
        style transition commit.
      ac76fe16
  2. 13 Nov, 2019 1 commit
  3. 12 Nov, 2019 1 commit
  4. 08 Jul, 2019 1 commit
    • Will Schroeder's avatar
      Reworking cell links classes for performance and consistent API · 88efc809
      Will Schroeder authored
      vtkStaticCellLinks has been rewritten using std::atomic and vtkSMPTools for
      an ~10x speed improvement. Some clean up and improvements to the API, including
      classes that use cell links were also made. An additional construct is the
      notion of a dataset being "editable". That is, after a dataset is constructed,
      it is assumed non-editable if no further modifications to the geometry and topology
      are made. This allows the use of static locators and cell links classes. If editable,
      then the old vtkCellLinks and vtkPointLocators are used, and certain editing methods
      in the dataset API are allowed.
      88efc809
  5. 13 Jan, 2019 1 commit
  6. 04 Dec, 2018 1 commit
  7. 29 Oct, 2018 1 commit
    • Jakub Benda's avatar
      Read OpenFOAM cases with regular expressions in boundary conditions. · 58ab7806
      Jakub Benda authored
      OpenFOAM cases contain a list of boundary conditions for every field and boundary patch.
      The files with boundary conditions may employ regular expressions to apply for multiple boundary patches simultaneously.
      This modification allows the vtkOpenFOAMReader to find boundary information even in that case.
      The vtksys::RegularExpression is used to match the boundary patch name. The last match in the list is the final one
      (this is compatible with OpenFOAM behaviour).
      58ab7806
  8. 03 Oct, 2018 1 commit
  9. 26 Jul, 2018 1 commit
    • Sean McBride's avatar
      Fixed misc issues found by cppcheck 1.84 · 38f25cd2
      Sean McBride authored
      Also update suppressions.
      
      This fixed issues were:
      
      identicalInnerCondition,Wrapping/Tools/vtkWrapHierarchy.c:457,warning,Identical inner 'if' condition is always true.
      
      missingOverride,IO/ADIOS/FunctionPointers.h:114,style,The function 'operator()' overrides a function in a base class but is not marked with a 'override' specifier.
      
      uninitMemberVar,IO/Image/vtkMRCReader.cxx:133,warning,Member variable 'vtkInternal::header' is not initialized in the constructor.
      
      uninitMemberVarPrivate,IO/Xdmf3/vtkXdmf3LightDataHandler.cxx:70,warning,Member variable 'vtkXdmf3LightDataHandler::CellArrays' is not initialized in the constructor.
      uninitMemberVarPrivate,IO/Xdmf3/vtkXdmf3LightDataHandler.cxx:70,warning,Member variable 'vtkXdmf3LightDataHandler::FieldArrays' is not initialized in the constructor.
      uninitMemberVarPrivate,IO/Xdmf3/vtkXdmf3LightDataHandler.cxx:70,warning,Member variable 'vtkXdmf3LightDataHandler::GridsCache' is not initialized in the constructor.
      uninitMemberVarPrivate,IO/Xdmf3/vtkXdmf3LightDataHandler.cxx:70,warning,Member variable 'vtkXdmf3LightDataHandler::MaxDepth' is not initialized in the constructor.
      uninitMemberVarPrivate,IO/Xdmf3/vtkXdmf3LightDataHandler.cxx:70,warning,Member variable 'vtkXdmf3LightDataHandler::NumProcs' is not initialized in the constructor.
      uninitMemberVarPrivate,IO/Xdmf3/vtkXdmf3LightDataHandler.cxx:70,warning,Member variable 'vtkXdmf3LightDataHandler::PointArrays' is not initialized in the constructor.
      uninitMemberVarPrivate,IO/Xdmf3/vtkXdmf3LightDataHandler.cxx:70,warning,Member variable 'vtkXdmf3LightDataHandler::Rank' is not initialized in the constructor.
      uninitMemberVarPrivate,IO/Xdmf3/vtkXdmf3LightDataHandler.cxx:70,warning,Member variable 'vtkXdmf3LightDataHandler::SetsCache' is not initialized in the constructor.
      uninitMemberVarPrivate,IO/Xdmf3/vtkXdmf3LightDataHandler.cxx:70,warning,Member variable 'vtkXdmf3LightDataHandler::SILBuilder' is not initialized in the constructor.
      
      uninitMemberVarPrivate,IO/Geometry/vtkOpenFOAMReader.cxx:4424,warning,Member variable 'vtkOpenFOAMReaderPrivate::NumTotalAdditionalCells' is not initialized in the constructor.
      uninitMemberVarPrivate,IO/Geometry/vtkOpenFOAMReader.cxx:4424,warning,Member variable 'vtkOpenFOAMReaderPrivate::Parent' is not initialized in the constructor.
      38f25cd2
  10. 11 Jul, 2018 1 commit
  11. 04 May, 2018 1 commit
  12. 20 Mar, 2018 2 commits
  13. 04 Oct, 2017 1 commit
  14. 02 Oct, 2017 1 commit
  15. 25 Sep, 2017 1 commit
    • Jakub Benda's avatar
      Some initializations of LabelType in vtkFoamEntryValue. · b9aa4bde
      Jakub Benda authored
      At various places throughout vtkOpenFOAMReader.cxx an object of type vtkFoamEntryValue is created, without setting its LabelType attribute.
      This leads to problems in functions that need this information. Only reproducible in a Debug build). This commit fixes the situation.
      b9aa4bde
  16. 26 Jul, 2017 1 commit
    • 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.
      a855cab0
  17. 30 May, 2017 2 commits
  18. 27 Apr, 2017 4 commits
  19. 14 Mar, 2017 1 commit
  20. 19 Jan, 2017 7 commits
  21. 16 Jan, 2017 1 commit
  22. 08 Dec, 2016 1 commit
  23. 06 Dec, 2016 2 commits
  24. 11 Nov, 2016 1 commit
  25. 04 Nov, 2016 1 commit
  26. 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
  27. 19 Aug, 2016 1 commit
    • Bill Lorensen's avatar
      ENH: Introduce vtkMTimeType · 9333d9d1
      Bill Lorensen authored
      This is a fix for:
      vtk/vtk#14310
      
      Windows applications that run for a long time report that rendered
      objects do not change. This is because the modified time on a Windows
      system is 32 bits. This causes overflows that defeat the modified time
      mechanism. This patch defines a new type, vtkMTimeType that is 64
      unsigned integer regardless of the architecture.
      
      A mechanism to provide backward compatibility is introduced. The
      preprocessor define "VTK_HAS_MTIME_TYPE" can be used in applications
      that must build against VTK versions that use the "unsigned long" type
      for MTime's.
      
      Methodology used to find MTime occurences:
      1) Identify files as follows:
         git grep "unsigned long" | grep ime | cut -d":" -f1,1 | sort | uniq
      2) Hand edit each of those files replacing "unsigned long" with
         "vtkMTimeType" where appropriate.
      3) Temporarily change typedef for vtkMTimeType to "double" to detect
         missing conversions
      9333d9d1
  28. 04 Aug, 2016 1 commit