1. 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
  2. 19 Aug, 2016 1 commit
    • Bill Lorensen's avatar
      ENH: Introduce vtkMTimeType · 9333d9d1
      Bill Lorensen authored
      This is a fix for:
      #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
  3. 08 Mar, 2016 1 commit
  4. 29 Jan, 2016 1 commit
    • Berk Geveci's avatar
      Refactored and update the way algorithms are updated. · f020ebb6
      Berk Geveci authored
      The way algorithms were updated (made to execute) with
      request meta-data (such as update extent) was very error
      prone and counter-intuitive. Added new methods to make
      updating with meta-data easier. I also deprecated a number
      of methods to set request meta-data. This will encourage
      developers to migrate to the new API which is less error-
      prone.
      f020ebb6
  5. 28 Jan, 2016 1 commit
  6. 23 Dec, 2015 1 commit
    • Cory Quammen's avatar
      Fixed output point arrays problem with vtkContourFilter · 99541b93
      Cory Quammen authored
      The ComputeScalars option adds the array from which the contour was
      computed to the output. vtkContourFilter used to contour by the active
      scalar array in the point data, but now contours by the point data
      array set with vtkAlgorithm::SetInputArrayToProcess(). However, some
      aspects of copying the data are still controlled by which array is
      designated as active. The result is that when the active scalar array
      is not the same as the one named with SetInputArrayToProcess(), the
      active point data array will not be added to the output if the
      ComputeScalars option is off, and the contouring array will be added
      incorrectly.
      
      This problem manifested only when the input data set type was
      vtkUnstructuredGrid or vtkPolyData. Other data types are handled by
      helper classes where arrays are handled correctly. This patch fixes
      the problem by setting the active scalar array in the input data to
      match the input array to process. An existing test for unstructured
      grid input was modified to test the expected behavior and a new test
      for vtkPolyData was added.
      99541b93
  7. 28 Sep, 2015 1 commit
  8. 25 Sep, 2015 1 commit
  9. 04 May, 2015 1 commit
  10. 15 Jan, 2014 1 commit
    • Berk Geveci's avatar
      Removed priority based streaming and fast path. · 575ebda2
      Berk Geveci authored
      Removed priority based streaming and fast path codes in
      preparation for future refactoring. These were polluting core
      classes despite having a small user base. In the future, they
      may be refactored into the appropriate subclasses and "plugins".
      
      Change-Id: I54562546688c6de468b0068e9b6c65e49c5ec269
      575ebda2
  11. 02 Jan, 2014 1 commit
    • David C. Lonie's avatar
      Tie vtkUnstructuredGridBase into the dataset type system. · e9f66ba0
      David C. Lonie authored
      The vtkUnstructuredGridBase class was introduced to allow the
      vtkMappedUnstructuredGrid to be added for no-copy in-situ datasets.
      Until now it has been somewhat hacked in as a variation of
      vtkUnstructuredGrid. This patch makes the base class a first-class
      citizen of Datasetland, with its own symbolic constant, algorithm-base,
      etc.
      
      * Add a VTK_UNSTRUCTURED_GRID_BASE define
      * Update vtkDataObjectTypes to match
      * Update vtkUnstructuredGridBase::GetDataObjectType()
      * Update a handful of filters that accept this class as input
      * Add a vtkUnstructuredGridBaseAlgorithm interface
      
      Change-Id: Ib5d3256d6d6c3f281dc123891b16b483e26e29dc
      e9f66ba0
  12. 08 Nov, 2013 1 commit
  13. 02 Oct, 2013 1 commit
  14. 20 Sep, 2013 1 commit
    • David C. Lonie's avatar
      Use ComputeNormals in vtkContourFilter. · 3b6cb421
      David C. Lonie authored
      The existing implementation ignored this setting. Changed the
      default ComputeNormals setting to preserve old behavior unless
      explicitly set by the user.
      
      Change-Id: Ie599c4853881fa201509de5d835202b43967b474
      3b6cb421
  15. 19 Sep, 2013 1 commit
    • David C. Lonie's avatar
      Improve contouring locator performance. · 78748c5b
      David C. Lonie authored
      Use the number of input points as the estimated number of
      points when setting up the point locator for the contour
      filters, rather than the cell-based estimate used previously.
      
      On a wavelet data set with 1M points and 1M hex cells, the
      locator ended up holding 1.5M points -- far exceeding the
      estimated 62K points. This caused bucket sizes to grow to
      ~120 points per bucket in cases, while the locator only expects
      around 3 points per bucket. This resulted in a ~10% speedup
      of the filter updates.
      
      Change-Id: I3fde70306b046d9f3c79a3fbc4cfbd5c3a230028
      78748c5b
  16. 10 Jul, 2013 1 commit
    • Giuseppe D'Angelo's avatar
      BUG 13603: make vtkContourFilter properly push progress notifications · ecaddd46
      Giuseppe D'Angelo authored
      vtkContourFilter uses several specialized subfilters depending
      on the input data type to perform the contouring. However, the
      progress from these subfilters wasn't pushed through the
      vtkContourFilter object. This patch installs an observer on
      the subfilter and properly updates vtkContourFilter's progress.
      
      The work for this patch has been sponsored by BP.
      
      Change-Id: I849b442318b0a59a64099add2fa6ccd74967725a
      ecaddd46
  17. 03 Dec, 2012 1 commit
    • Yuanxin Liu's avatar
      vtkContourFilter: Add polygon output option · fad6fab7
      Yuanxin Liu authored
      An option vtkContourFilter::GenerateTriangles is added. This is on by
      default--preseving the previous behavior. If turned off, polygons
      instead of triangles will be produced.
      
      This can be considered a continuation of what was done for vtkCutter in
      commit 8fb71b7f.  Please see that commit for details of the
      algorithm.
      
      Change-Id: If8bded0e48ad67bd37af65b35a8b9115e708538a
      fad6fab7
  18. 16 Aug, 2012 1 commit
  19. 12 Jun, 2012 1 commit
    • Kyle Lutz's avatar
      Fix misspelling for SetOutputPointsPrecision() · b1441223
      Kyle Lutz authored
      This fixes a spelling error in the SetOutputPointsPrecision() method
      signature. Also fixes a small misspelling in the documentation for
      the Set/GetOutputPointsPrecision() methods.
      
      This fixes VTK bug #13237.
      
      Change-Id: If53e52067654262c2e8feb2d94a07009b4b7a57b
      b1441223
  20. 14 May, 2012 1 commit
    • Kyle Lutz's avatar
      Add API to allow users to set desired output point precision · 49d1f124
      Kyle Lutz authored
      This adds new API to a few of the vtkAlgorithm sub-classes which
      allows the user to decide what level of floating-point precision
      they want for the vtkPoint's object in the output data set. By
      default these algorithms will output points with a precision equal
      to that of the input data set. Alternatively the user may instruct
      the algorithm to always use single-precision or double-precision.
      
      Change-Id: I1c6b8ca854ff8da1bae5415e2d4c33fbfbaf1153
      49d1f124
  21. 13 Apr, 2012 1 commit
    • Berk Geveci's avatar
      Fixed and added to the vtkAlgorithm's update extent API. · 70008198
      Berk Geveci authored
      Fixed: SetUpdateExtent() and its ilk were setting the update
      extent on the input. Fixed it to be on the output. This is
      more consistent with the executive API. Also updated other
      code accordingly.
      
      Change-Id: Iac92df21b8fa8dbeb58e4e27c5ffc796fadc4eaa
      Added: API to get update extent from the output.
      70008198
  22. 09 Apr, 2012 2 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
  23. 19 Sep, 2011 2 commits
    • Berk Geveci's avatar
      Replace SetInput etc. with SetInputData etc. · 4ea36770
      Berk Geveci authored
      Since the behaviour of SetInput changed - it no
      longer connects the pipeline but sets up the data
      object as the input -, it was decided to rename
      it to SetInputData. This includes similar methods
      such as AddInputData. This commit makes on
      sweeping change that compiles.
      4ea36770
    • Berk Geveci's avatar
      Started removing data object's dependency on the pipeline. · 791b167f
      Berk Geveci authored
      It was decided to remove any dependencies that data objects
      have on the pipeline logic. When modularization is complete,
      this will allow us to build a small "data model" library
      that does not depend on the "execution model". It also
      cleans up a lot of the interdepencies between data objects
      and pipeline code. To achieve this, we need to remove all
      functionality that depend on executives and pipeline logic
      from vtkDataObject and subclasses. This includes any meta-data
      such as whole extent as well as methods to setup pipeline
      connectivity such as SetInput (to be removed from algorithms).
      791b167f
  24. 10 Feb, 2011 2 commits
  25. 08 Feb, 2011 1 commit
  26. 07 Feb, 2011 1 commit
    • Dave DeMarle's avatar
      Make prioritization handle more than one array. · 06a0f094
      Dave DeMarle authored
      I now attach the name of each array to the range information for it. I then
      use the name of the current ArrayToProcess instead of the old-school active
      Scalars to find the right range in the Contour and Threshold filters.
      
      Change-Id: Ib0437992464f4f665178ff60986e87e5633e35d0
      06a0f094
  27. 10 Jan, 2011 1 commit
  28. 28 Jun, 2010 1 commit
  29. 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
  30. 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
  31. 24 Sep, 2009 1 commit
    • Dave Demarle's avatar
      ENH: Add concept of Resolution to the pipeline. · 4dbfb416
      Dave Demarle authored
      You can now request data at a particular resolution. Do so by having the
      sink call SetUpdateResolution(0.0->1.0) in the same way that it calls
      SetUpdateExtent to ask for a particular piece. Similar to the way time
      works, this new request goes up the pipeline to the source which can respect
      the request or not, and returns an answer in the form of a DATA_RESOLUTION
      key in its produced DataObject.
      4dbfb416
  32. 04 Aug, 2009 1 commit
    • Zhanping Liu's avatar
      ENH: Add vtkIncrementalPointLocator, · b9f6e671
      Zhanping Liu authored
      vtkIncrementalOctreePointLocator,
      vtkIncrementalOctreeNode,
      and TestIncrementalOctreePointLocator.
      Updated are vtkCell-derived classes and those VTK
      classes with Setlocator().
      b9f6e671
  33. 02 Nov, 2008 1 commit
    • Dave Demarle's avatar
      ENH: Adding support for streaming and priority determination in. These changes... · 5bd95cb9
      Dave Demarle authored
      ENH: Adding support for streaming and priority determination in. These changes to VTK improve the way that sources can provide meta-information about pieces of the data. It also changes VTK so that the request_update_extent_information_pass propagates the meta-information down the pipeline over only those filters that do not modify the corresponding information. The pass also gives filters a chance to compute a priority from the meta-information, which the sink can then use to reorder or skip pieces that do not matter.
      5bd95cb9
  34. 31 Oct, 2008 2 commits
    • Dave Demarle's avatar
      COMP: revert change · 7d0a21d6
      Dave Demarle authored
      7d0a21d6
    • Dave Demarle's avatar
      ENH: Adding support for streaming and priority determination in. These changes... · ba3cc4ee
      Dave Demarle authored
      ENH: Adding support for streaming and priority determination in. These changes to VTK improve the way that sources can provide meta-information about pieces of the data. It also changes VTK so that the request_update_extent_information_pass propagates the meta-information down the pipeline over only those filters that do not modify the corresponding information. The pass also gives filters a chance to compute a priority from the meta-information, which the sink can then use to reorder or skip pieces that do not matter.
      ba3cc4ee
  35. 09 Jul, 2008 1 commit
    • Dave Demarle's avatar
      ENH: Expand support for per piece priority determination. See... · a69b617b
      Dave Demarle authored
      ENH: Expand support for per piece priority determination. See TestPriorityStreaming for an example. This commit makes it easier to ask for priority, via a new method in the StreamingExecutive and Algorithm, and adds priority determination to the clip and cut filters. Thanks Nehal Desai and Jim Ahrens.
      a69b617b
  36. 23 Feb, 2008 1 commit