1. 14 May, 2013 1 commit
    • Brad King's avatar
      Use vtk_add_test_cxx function · 5b018861
      Brad King authored
      Refactor */*/Testing/Cxx/CMakeLists.txt to use the vtk_add_test_cxx
      function instead of direct add_test calls.
      
      Change-Id: I73dee627fa87a399c48b409af046b116fc75a0fd
      5b018861
  2. 26 Oct, 2012 2 commits
    • David Thompson's avatar
      Unit test new `vtkVariant` information key classes. · b7fd2a71
      David Thompson authored
      ... and unit test the double and string information key
      classes while we're at it.
      
      Change-Id: I886973eda75bfe7d080e1f1446d4a6124e72c823
      b7fd2a71
    • David Thompson's avatar
      Methods to compute and return unique array values. · 1df5d6a2
      David Thompson authored
      Determining unique values is the "abstract" (or categorical)
      equivalent of determining the range of interval-valued array.
      It only makes sense for arrays with a small number of distinct
      values, and this also happens to be when it is computationally
      efficient to compute.
      
      This adds methods `GetUniqueComponentValues` and
      `UpdateDiscreteValueSet` to `vtkAbstractArray`.
      The `GetUniqueComponentValues` method populates a `vtkVariantArray`
      you pass with a list of unique values taken on by a component, or,
      clears it to an empty array if there are more than
      `vtkAbstractArray::MAX_DISCRETE_VALUES` distinct values present.
      
      The unique values are identified by sampling at most log2(n)
      tuples for large arrays, so obtaining the summary information --
      which is cached once computed -- is an inexpensive operation.
      This does mean that rare observations will go undetected.
      
      You may also obtain a list of unique *tuples* instead of unique
      component values by passing -1 for th...
      1df5d6a2
  3. 26 Sep, 2012 1 commit
  4. 22 Sep, 2012 1 commit
  5. 21 Sep, 2012 1 commit
    • David Thompson's avatar
      Fix floating-point vtkVariant comparison and test. · 3f256bd1
      David Thompson authored
      In theory, all of these variants should compare as equal:
         vtkVariant flt(0.583f);
         vtkVariant dbl(0.583);
         vtkVariant str("0.583");
      Currently, they do not because the 32-bit float is promoted
      to a 64-bit double instead of the other way around.
      This commit demotes doubles to floats when one operand is a float
      and tests the result.
      
      It also enables the `TestVariant.cxx` test, which was in the
      repository but not being built or run.
      
      Change-Id: I9f2c2cc04ff1ee6961b92f44045c54797e5fe011
      3f256bd1
  6. 20 Sep, 2012 1 commit
    • Bill Lorensen's avatar
      ENH: 100% coverage. · 3c419686
      Bill Lorensen authored
      TimePointUtility had zero coverge.
      
      This patch provides a unit test to cover 100% of the code.
      
      There are some issues in the current code witth converions of
      negative years. This should be addressed in future patches.
      
      Change-Id: I1651df55f9acbdc84d6e6374b260dabebd71b505
      3c419686
  7. 07 Jun, 2012 1 commit
    • Julien Finet's avatar
      Speedup vtkCollection::RemoveItem(vtkObject*) · 573ae504
      Julien Finet authored
      To remove an item from its object, the list was browsed twice:
      once in vtkCollection::RemoveItem(vtkObject*) to find the object index and
      once in vtkCollection::RemoveItem(int) to remove the element.
      
      Change-Id: I66775509aec36eda435b95bbbe3c94a6aa3ef586
      573ae504
  8. 10 May, 2012 1 commit
  9. 11 Apr, 2012 1 commit
    • Brad King's avatar
      Restore SystemInformation test · 75e2c636
      Brad King authored
      Fix the list of files to match modular VTK locations.  Pass the build
      tree as an argument to the test instead of configuring a header file.
      Avoid referening VTK_BINARY_DIR because that is not available in the
      Testing/External project build.
      
      Change-Id: I51a2a701725b3b8af48339ac799ca3630e208afc
      75e2c636
  10. 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
      Add modular VTK build system · 0c1471f1
      VTK Developers authored
      Add module.cmake, CMakeLists.txt, and other build system files.
      
      The modular VTK build system is not yet mature.  The monolithic build
      files had a lot of infrastructure.  The modular build files reproduce
      much of the functionality but some features will need to be restored
      later.  Document status and tasks in "TODO-Modularization.txt".
      
      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>
      0c1471f1
    • 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
  11. 12 Mar, 2012 1 commit
  12. 09 Mar, 2012 4 commits
  13. 24 Jan, 2012 1 commit
  14. 09 Dec, 2011 2 commits
  15. 01 Dec, 2011 1 commit
    • David Doria's avatar
      ENH: Added Compute*StructuredCoords functions · 05262e3e
      David Doria authored
      These functions are the inverse of ComputeCellId
      and ComputePointId. They are used to compute structured
      coordinates from a linear ids.
      
      Change-Id: Id4f68873a8816f5573eec01ac1c6ad6f577e39f4
      05262e3e
  16. 05 Apr, 2011 1 commit
  17. 25 Jan, 2011 2 commits
    • Marcus D. Hanwell's avatar
      ENH: Added test using vtkNew in class ivars. · decc9508
      Marcus D. Hanwell authored
      This tests whether vtkNew can be used with incomplete types in class
      headers, containing the vtkObject until class destruction. Had to jump
      through a few hoops as vtkSmartPointer currently requires a complete
      type on assignment.
      
      Change-Id: I77ed0ccd65f0193248b0f162059e2944a8d4244f
      decc9508
    • Marcus D. Hanwell's avatar
      ENH: Added vtkNew - scoped new VTK objects. · 1a608359
      Marcus D. Hanwell authored
      This commit adds a new templated pointer type - vtkNew. It has the
      advantage of one step initialization of VTK objects, that will be
      deleted once the vtkNew object goes out of scope. A new test was also
      added demonstrating and testing its functionality.
      
      Change-Id: I35ec37d39dafc8e1139821fbe5b6204178ae9776
      1a608359
  18. 28 Nov, 2010 1 commit
  19. 27 Nov, 2010 1 commit
  20. 26 Nov, 2010 2 commits
  21. 05 Oct, 2010 1 commit
  22. 24 Aug, 2010 1 commit
  23. 22 Aug, 2010 1 commit
  24. 18 Aug, 2010 1 commit
  25. 05 Apr, 2010 1 commit
  26. 26 Mar, 2010 1 commit
  27. 24 Mar, 2010 1 commit
  28. 10 Mar, 2010 1 commit
  29. 25 Nov, 2009 1 commit
  30. 17 Nov, 2009 1 commit
  31. 03 Nov, 2009 1 commit