1. 11 Jul, 2018 1 commit
    • Utkarsh Ayachit's avatar
      Refactor vtkDataSetAttributes::FieldList · f4662727
      Utkarsh Ayachit authored
      Refactoring vtkDataSetAttributes::FieldList to make the implementation
      more readable and also better handle cases where attributes are not
      named consistently across mutliple inputs.
      f4662727
  2. 19 Dec, 2017 1 commit
  3. 15 Dec, 2017 1 commit
    • luz.paz's avatar
      Uniformity and several typo fixes · 17a8bc23
      luz.paz authored
      Mostly removing superflous double whitespace on both user-facing and non-user-facing strings. Some misc. typo fixes sprinkled in as well.
      17a8bc23
  4. 04 Oct, 2017 1 commit
  5. 02 Oct, 2017 1 commit
  6. 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
  7. 11 May, 2017 1 commit
    • Berk Geveci's avatar
      Improved CopyStructuredData() to handle more cases. · 510b81b5
      Berk Geveci authored
      CopyStructuredData() only supported the use case of copying
      from a larger structured dataset to a smaller one. This was
      added to handle output initialization of imaging algorithms.
      Extended the method to support cases where the two structured
      data are of arbitrary extents as long as they overlap. This
      is useful in various situations. For example, when writing
      ghost cell data exchange code, one has to receive a small
      structured data containing the ghost data and then copy those
      values to the larger structured data. For this use case, I
      also added SetupForCopy() which sets up the mapping between
      input and output arrays without having to call CopyAllocate()
      which wipes out any existing data.
      510b81b5
  8. 20 Feb, 2017 1 commit
  9. 10 Jan, 2017 1 commit
  10. 23 Sep, 2016 4 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
    • 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
    • Dave DeMarle's avatar
      preemptively fix issues that trip of doxygen converted code · a2250027
      Dave DeMarle authored
      fix problematic ccomments that trip up doxygen generator. Mostly
      c style comments in class description but a few cases of comments
      not in expected location that leads to stripped out code and comp fails
      
      fix trailing whitespaces that will fail style check when committed
      
      Thanks Andrew Maclean for updating the url to VTK publications.
      a2250027
    • Robert Maynard's avatar
      6b3ae23c
  11. 16 Sep, 2016 1 commit
  12. 19 Aug, 2016 1 commit
  13. 15 Jul, 2016 1 commit
  14. 11 Jul, 2016 1 commit
  15. 09 Jul, 2016 1 commit
  16. 07 Jul, 2016 3 commits
    • 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
    • Karsten Tausche's avatar
      Cleanup RemoveArray implementations in vtkFieldData and vtkDataSetAttributes · 9e082eee
      Karsten Tausche authored
      * move vtkFieldData::RemoveArray to public interface as it already is in vtkDataSetAttributes
      * remove overriding vtkDataSetAttributes ::RemoveArray(const*char) that is equal to the implementation in vtkFieldData
      * move vtkFieldData::RemoveArray implementation to cxx, as it was in vtkDataSetAttributes
      9e082eee
  17. 25 May, 2016 1 commit
    • Kitware Robot's avatar
      Remove all BTX and ETX markers from VTK headers · 4d127b1d
      Kitware Robot authored
      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
  18. 08 Mar, 2016 1 commit
  19. 31 Mar, 2015 1 commit
    • Dan Lipsa's avatar
      Redesign "vtkGhostLevels" arrays and related ghost functionalties. · 4dee0274
      Dan Lipsa authored
      
      Co-authored-by: default avatarYuanxin Liu <leo.liu@kitware.com>
      Co-authored-by: Berk Geveci's avatarBerk Geveci <berk.geveci@kitware.com>
      
       -The semantics of each unsigned char in the ghost arrays changes:
        Instead of storing a numeric value representing how far a cell is
        from the boundary, it is now a bit field specified by
        vtkDataSetAttributes::CellGhostTypes and
        vtkDataSetAttributes::PointGhostTypes.  The bit field is consistent
        with VisIt specs.
      
      - Previously, filters strip all ghost cells they request from upstream
        before finalizing the output. This is no longer done.
      
      - vtkUniform grids previously supported blanking through member arrays
        vtkUniformGrid::CellVisibility and
        vtkUniformGrid::PointVisibility. These arrays are removed and the
        blanking functionality are supported through the new ghost arrays
        instead.
      
      - the "vtkGhostLevel" arrays for cell and point data are renamed to
        vtkDataSetAttributes::GhostArrayName() ("vtkGhostType").
      
      - the version for VTK Legacy files is increased to 4.0 and the version for
        VTK XML files is increased to 2.0. When reading older files we
        convert vtkGhostLevels array to vtkGhostType.
      4dee0274
  20. 18 Dec, 2014 1 commit
  21. 08 Dec, 2014 1 commit
  22. 30 Jul, 2014 1 commit
    • Cory Quammen's avatar
      KW00001404: Major overhaul of vtkAppendFilter · 69a06e4d
      Cory Quammen authored
      The previous behavior of vtkAppendFilter was to append data arrays set
      as attributes and then only secondarily append data arrays by
      name. This could lead to unexpected behavior as illustrated in the
      following scenario:
      
      - set two datasets are set as inputs to the filter
      - each dataset has a point array named "A" and another named "B"
      - in the first input, "A" is set as the scalar attribute
      - in the second input, "B" is set as the scalar attribute
      
      Previously, the output of vtkAppendFilter would append the scalar
      attribute array "A" from the first input to the scalar attribute array
      "B" from the second, storing the result in an array named "A" and
      setting that as the scalar attribute in the output dataset. If you
      reversed the order of inputs, the resulting scalar attribute array
      would be named "B" and the output array would have the contents of "B"
      followed by the contents of "A".
      
      This patch changes the behavior of the vtkAppendFilter to merge arrays
      primarily by name, which is more in line with how the rest of VTK
      works. In the scenario above, the "A" arrays from the input are
      appended together and the "B" arrays from the input are appended
      together. Because "A" is set as the scalar attribute in one input and
      "B" is set as the scalar in the other, the inputs disagree on which
      array is the scalar attribute, so in the output no scalar attribute is
      set. More broadly, if both inputs have arrays with the same name,
      number of components, and data type set as an attribute, then the
      result of appending those attribute arrays from the inputs will be set
      as the attribute in the output. If any of those conditions are not
      met, then the attribute will not be set in the output.
      
      A somewhat special case is possible where the scalar attribute in the
      inputs is set to an array with NULL name. If all inputs have their
      scalar attribute set to an array with a NULL name, then the output's
      scalar attribute will be an array that is the result of appending the
      input scalar attribute arrays into a new array with a NULL name.
      
      This patch also contributes a fairly comprehensive test for
      the vtkAppendFilter.
      
      Finally, this patch makes the vtkDataSetAttributes::SetAttribute()
      method public instead of private.
      
      Change-Id: Id3914957b65bfcce346968dc8fba6a3df0861cd8
      69a06e4d
  23. 19 Sep, 2013 1 commit
  24. 09 Apr, 2012 3 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
      Include module-wide headers and export macros · 144f03ca
      VTK Developers authored
      Include the module-wide header from every header in each module.
      Reference the export/visibility macro for the module.
      
      Co-Author: Marcus D. Hanwell <marcus.hanwell@kitware.com>
      Co-Author: Chris Harris <chris.harris@kitware.com>
      144f03ca
    • 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
  25. 07 Mar, 2012 1 commit
    • Kyle Lutz's avatar
      Fix misspellings in VTK/Filtering · 8db7e50e
      Kyle Lutz authored
      This fixes a number of misspellings in the comments of
      the source files in VTK/Filtering. The misspellings were
      found using the codespell tool.
      
      Change-Id: Iafa2887c69f4c0c1653172f474e3de4121dd86ef
      8db7e50e
  26. 05 Aug, 2010 1 commit
  27. 20 May, 2010 1 commit
    • 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
  28. 27 Apr, 2010 1 commit
    • Kenneth Moreland's avatar
      ENH: Enhance ability to render quadratic surfaces. · 175efdc2
      Kenneth Moreland authored
      These changes are designed to enhance the rendering of surfaces that come from unstructured grids that have quadratic cells.  Whereas before every quadratic face was tessellated on the control points, these changes allow you to select a subdivision level in vtkDataSetSurfacefilter used to convert the quadratic faces to approximating linear polygons.
      
      There has also been some support added for rendering correct wireframes from the extracted surface.  This includes changing the painters to support a new vtkDataSetAttributes::EDGEFLAG that hides the internal edges of the approximating polygons.
      175efdc2
  29. 23 Apr, 2010 1 commit
    • 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
  30. 06 Apr, 2010 1 commit
    • Robert Maynard's avatar
      BUG: Fixed problems with the component names implementation in the XML reading and writing · 1100ba20
      Robert Maynard authored
      BUG: Fixed warnings that the component names implementation was causing in vtkDataSetAttributes, vtkAbstractArray, and vtkPVArrayInformation
      ENH: Added support for component names to vtkAppendData and vtkTemporalStatistics
      ENH: Add CopyComponentNames method to vtkAbstractArray so that we have a nicer way to copy component names
      ENH: Added test for CopyComponentNames method to TestDataArrayComponentNames
      1100ba20
  31. 05 Apr, 2010 1 commit
  32. 01 Oct, 2009 2 commits
    • Utkarsh Ayachit's avatar
      ENH: Fixed BUG #9252 making it possible for vtkCompositeDataProbeFilter to not · 61e8259e
      Utkarsh Ayachit authored
      remove partial array but instead fill them up with NaNs (or 0) for locations
      where those arrays are not present. Default behavior remains unchanged. One has
      to turn on a flag for this new behavior to come into play (defaults to ON in
      ParaView).
      
      ENH: Added API to vtkDataSetAttributes::FieldList to build a union list of
      array. Taking union and intersection on  the same instance of FieldList is not
      supported.
      61e8259e
    • Utkarsh Ayachit's avatar
      ENH: Fixed BUG #9252 making it possible for vtkCompositeDataProbeFilter to not · 91efe887
      Utkarsh Ayachit authored
      remove partial array but instead fill them up with NaNs (or 0) for locations
      where those arrays are not present. Default behavior remains unchanged. One has
      to turn on a flag for this new behavior to come into play (defaults to ON in
      ParaView).
      
      ENH: Added API to vtkDataSetAttributes::FieldList to build a union list of
      array. Taking union and intersection on  the same instance of FieldList is not
      supported.
      91efe887