1. 26 Jul, 2017 40 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.
      a855cab0
  2. 23 Sep, 2016 40 commits
    • 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
  3. 08 Mar, 2016 40 commits
  4. 07 Dec, 2015 40 commits
  5. 04 Sep, 2015 40 commits
    • Cory Quammen's avatar
      Changed warning macro into debug macro · 0e721888
      Cory Quammen authored
      Commit 86f7895b introduced a warning
      if the VOI of the vtkExtractGrid filter is initially outside the whole
      extent of the input data, even though the filter would eventually
      execute correctly when the VOI was updated. Turned this into a debug
      warning.
      0e721888
  6. 20 Aug, 2015 40 commits
  7. 06 Jan, 2015 40 commits
  8. 05 Jan, 2015 40 commits
  9. 11 Dec, 2014 40 commits
    • David C. Lonie's avatar
      Fix vtkPExtractStructuredGrid extent issues. · 22f54281
      David C. Lonie authored
      Update the filter so that extents are properly managed in parallel.
      
      Change-Id: Ie3a39a7a147b639851a25c1e79fbc7c7f111afc9
      22f54281
    • David C. Lonie's avatar
      Make a clear distinction between extent indices and values. · 275bb6cd
      David C. Lonie authored
      The vtkExtractStructuredGridHelper::GetMapping method was being used
      to compute both actual extent values and indices (e.g. for rectilinear
      grid coordinate arrays) in places. The method has been split into:
      
      GetMappedIndex,
      GetMappedIndexFromExtentValue,
      GetMappedExtentValue, and
      GetMappedExtentValueFromIndex,
      
      all of which map an output value to an input value.
      
      The class also caches the initialization parameters to avoid rebuilding
      the map if the parameters do not change. This is done for the parallel
      filters, which use different extents for information vs. data requests.
      
      Change-Id: Ie26a0149c93e10e11003eb6daf7ef4d958f305a7
      275bb6cd
  10. 21 May, 2014 40 commits
    • George Zagaris's avatar
      ENH: Update extract structured data filters · 296ace04
      George Zagaris authored
      This commit updates the extract/sub-sample structured data filters
      to reflect the changes of refactoring the piece and extent in VTK.
      Namely, vtkExtractGrid, vtkExtractVOI and vtkExtractRectilinearGrid,
      which operate on vtkStructuredGrid, vtkImageData, and vtkRectilinearGrid
      respectively, are updated.
      
      These datatypes, albeit different, they share common functionality. To
      avoid replicating essentially the same code in all of these three classes,
      a helper class, called vtkExtractStructuredGridHelper, is introduced. This
      new class is part of VTK's vtkCommonDataModel module since it needs to be
      used by both the vtkImagingCore and vtkFiltersExtraction module.
      
      One minor caveat, is that Imaging algorithms/tests require that the origin
      of the image to be retained and that the output extent is w.r.t.
      to the input extent, when there is no sub-sampling. For that reason,
      when there is no sub-sampling vtkExtractVOI, will yield an output extent
      that is with respect to the origin. All other filters re-number the
      output extent starting from zero. The output extent is always re-numbered
      when the data is sub-sampled.
      
      Change-Id: I26fe5a115032333db9814987a6c9dc949e51ef52
      296ace04
    • Berk Geveci's avatar
      Refactored how pieces and extents are handled. · 1a0b4e9d
      Berk Geveci authored
      Refactoring the way VTK goes between piece and structured
      extents. Before, extent translators were used when the pipeline
      moved from structured to unstructured data converting piece
      request to extent request. This caused many problems with filters
      that altered extents, mainly a lot of redundant IO due to
      repartitioning of different extents. This became extremely
      cumbersome to manage when running distributed. The new behavior
      pushes the extent translation all to way to the readers and
      only when readers are able to read a subset. This works much
      better. The only downside is that filters need to be able to
      handle data extents different than update extents. Most filters
      can do this but many imaging filters cannot. Those that are
      needed in parallel will have to be updated.
      
      As part of this work, I also removed MAXIMUM_NUMBER_OF_PIECES
      and added CAN_HANDLE_PIECE_REQUEST. MAXIMUM_NUMBER_OF_PIECES had
      reduced to being a boolean. 1 for serial sources, -1 for parallel
      sources. I removed it and added a CAN_HANDLE_PIECE_REQUEST instead.
      This key, produced by a source, tells the executive that a source is
      able to handle piece request. It is a source only key produced in
      RequestInformation and is not propagated downstream. If this key is
      not present, the executive will only execute the source for piece 0
      to produce the entire data. It is then up to the user to add a filter
      that splits the data for other piece requests. The only exception to
      this is when CAN_PRODUCE_SUB_EXTENT is present, in which case the
      executive will split using an extent translator AT THE source - not
      downstream.
      
      Conflicts:
      	Filters/FlowPaths/vtkParticleTracerBase.cxx
      
      Change-Id: I8db4040289ff87331adeecded4a738313d9b52df
      1a0b4e9d
  11. 15 Mar, 2013 40 commits
    • Sean McBride's avatar
      Big find-replace of VTK_LARGE_INTEGER -> VTK_INT_MAX · 1ff4b0ee
      Sean McBride authored
      vtkType.h says that VTK_LARGE_INTEGER is a
      'compatibility name'.  There were many uses of the
      old name, which I updated.  The find-replace should
      be quite safe as it's basically what the preprocessor
      does anyway.
      
      Change-Id: Ic82bfec6d706dbcd68af70f2d4a31cdd51f7b497
      1ff4b0ee
  12. 09 Apr, 2012 40 commits
    • 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
    • VTK Developers's avatar
      Modularize VTK tree layout · cdd4d6fd
      VTK Developers authored
      Move source files from their former monolithic VTK location to their new
      location in modular VTK without modification.  This preserves enough
      information for "git blame -M" and "git log --follow" to connect
      modularized VTK files to their original location and history.
      
      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>
      Co-Author: Nikhil Shetty <nikhil.shetty@kitware.com>
      cdd4d6fd
  13. 20 May, 2010 40 commits
    • Mark Olesen's avatar
      Remove vtk(Cxx|Type)RevisionMacro · ecbbf7f7
      Mark Olesen authored
      The CVS $Revision$ keyword replacement will no longer maintain these
      macros automatically.  They were used only to implement CollectRevisions
      and vtkObjectBase::PrintRevisions, an API that was never used.
      
      Automated as follows:
      
        pass 0:
        catch templates
        ---------------
        $ git grep 'vtk\(Cxx\|Type\)RevisionMacro' | grep '<'
      
        pass 1:
        main changes
        ---------------
        $ git grep -l '^vtkCxxRevisionMacro' | while read file; do
          echo "$file" 1>&2
          perl -i -ne 'print unless (/^vtkCxxRevisionMacro/ and /\)/)' $file
        done
        $ git grep -l -e 'vtkTypeRevisionMacro(' | while read file; do
          echo "$file" 1>&2
          perl -i -pe 's/vtkTypeRevisionMacro/vtkTypeMacro/g' $file
        done
      
        pass 2:
        verify
        ---------------
        $ git grep 'vtk\(Cxx\|Type\)RevisionMacro'
      
      Fixed multi-line vtkCxxRevisionMacro and templates by hand.
      ecbbf7f7
  14. 23 Apr, 2010 40 commits
    • Mark Olesen's avatar
      Remove vtk(Cxx|Type)RevisionMacro · 19c55e0e
      Mark Olesen authored
      The CVS $Revision$ keyword replacement will no longer maintain these
      macros automatically.  They were used only to implement CollectRevisions
      and vtkObjectBase::PrintRevisions, an API that was never used.
      
      Automated as follows:
      
        pass 0:
        catch templates
        ---------------
        $ git grep 'vtk\(Cxx\|Type\)RevisionMacro' | grep '<'
      
        pass 1:
        main changes
        ---------------
        $ git grep -l '^vtkCxxRevisionMacro' | while read file; do
          echo "$file" 1>&2
          perl -i -ne 'print unless (/^vtkCxxRevisionMacro/ and /\)/)' $file
        done
        $ git grep -l -e 'vtkTypeRevisionMacro(' | while read file; do
          echo "$file" 1>&2
          perl -i -pe 's/vtkTypeRevisionMacro/vtkTypeMacro/g' $file
        done
      
        pass 2:
        verify
        ---------------
        $ git grep 'vtk\(Cxx\|Type\)RevisionMacro'
      
      Fixed multi-line vtkCxxRevisionMacro and templates by hand.
      19c55e0e
  15. 10 Nov, 2009 40 commits
  16. 23 Feb, 2008 40 commits
  17. 13 Feb, 2008 40 commits
  18. 07 Feb, 2008 40 commits
  19. 04 Jan, 2005 40 commits
  20. 14 Nov, 2003 40 commits
  21. 16 Dec, 2002 40 commits
  22. 20 Nov, 2002 40 commits
  23. 12 Nov, 2002 40 commits
  24. 24 Oct, 2002 40 commits
  25. 03 Sep, 2002 40 commits
  26. 02 Apr, 2002 40 commits
  27. 22 Jan, 2002 40 commits
  28. 04 Jan, 2002 40 commits
    • Brad King's avatar
      ENH: Three sweeping changes. · 12947cd1
      Brad King authored
      1.) vtkTypeRevisionMacro is now used in all VTK classes in place of
          vtkTypeMacro.  It invokes the original vtkTypeMacro and then adds
          a protected CollectRevisions method for future use in serialization.
          A corresponding vtkCxxRevisionMacro has been added to every .cxx file
          to implement the CollectRevisions method for each class.  This will
          allow collection of every class revision at run time.  Any new VTK class
          should use vtkTypeRevisionMacro instead of vtkTypeMacro.  The .cxx
          implementation should then have the following line:
            vtkCxxRevisionMacro(vtkFoo, "$Revision: 1.1 $");
          CVS should insert the correct revision number when the class is commited.
      
      2.) vtkTypeMacro now also adds a typedef called "Superclass" to refer to
          the superclass of any VTK class.  All PrintSelf methods have been
          updated to call their superclass's PrintSelf like this:
            this->Superclass::PrintSelf(os,indent);
          This should reduce the number of places that refer to a superclass
          by its actual name.
      
      3.) The standard ::New() method implementation has been replaced with a
          macro.  Instead of an explicitly written implementation to try the
          object factory and then call the new operator, VTK classes should
          instead use the following macro unless they have a special New() method:
            vtkStandardNewMacro(vtkFoo);
          This will implement the New() method in the standard way.  The line
          should appear in the .cxx implementation file, not in the header.
          Using the macro will make it easier to change the standard
          implementation of the method.
      
      Also removed tabs from many files.
      12947cd1
  29. 17 Oct, 2001 40 commits
  30. 31 Aug, 2001 40 commits
  31. 23 Jul, 2001 40 commits
  32. 06 Jul, 2001 40 commits
  33. 05 Jul, 2001 40 commits
  34. 04 Jul, 2001 40 commits
  35. 28 Jun, 2001 40 commits
  36. 26 Apr, 2001 40 commits
    • Ken Martin's avatar
      Start new source tree layout · 76f478a8
      Ken Martin authored
      A new CVS repository was created on 2001-04-26 to fork VTK during
      transition to a new source tree layout.  The new repository was created
      using server-side symlinks referencing files in the original repository
      to preserve per-file history.  This commit was manufactured during
      conversion from CVS to represent the fork as a branch.
      76f478a8
  37. 12 Apr, 2001 40 commits