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. 08 Apr, 2013 1 commit
  3. 03 Apr, 2013 1 commit
    • Sean McBride's avatar
      Removed VS6 and VS7 workarounds · de8eae2b
      Sean McBride authored
      Assume that if _MSC_VER is defined that it is >= 1310
      (ie VS7.1).
      
      This improves the readability of the code, and slightly
      improved code coverage.
      
      Change-Id: Iffc601f4cff53c4e267835e39b2b17a3adf74494
      de8eae2b
  4. 16 Mar, 2013 1 commit
    • Sean McBride's avatar
      Removed workarounds for old gcc's · 214c83d3
      Sean McBride authored
      Removed gcc 2 workaround, as there are no other comparisons
      of __GNUC__ against the number 2 (except KWSys and 3rd party).
      Removed broken VTK_CXX_GCC_3 since __GNUC__ can't be equal to
      and less than 3 at the same time.
      
      Change-Id: Iefdbb1a417fac120ce74ed91d030e4f7dbcdfd0f
      214c83d3
  5. 13 Mar, 2013 3 commits
  6. 13 Feb, 2013 1 commit
    • Dave DeMarle's avatar
      Add tests that make it easier to take the pulse of vtk on cdash · 2bc6f2df
      Dave DeMarle authored
      One script just summarizes what is going on, so that you
      can see what tests fail the most and focus on them.
      
      The other scrapes the dashboard results for relevant results from
      testsysteminformation so that you can determine what we cover and
      what we don't.
      
      Change-Id: I142f829a5d362f66799b9bdacd2ac7d513d69b3f
      2bc6f2df
  7. 08 Feb, 2013 1 commit
  8. 25 Jan, 2013 1 commit
  9. 14 Nov, 2012 1 commit
    • David Thompson's avatar
      Exhaustive and sampled distinct-value detection. · 5c7b5731
      David Thompson authored
      This change renames "unique" value detection to "prominent"
      value detection, since we now allow both exhaustive detection
      of every unique value in an array as well as a statistical
      approximation to this which may miss rare values but for which
      we have a statistical parameterization of the confidence that
      non-rare (i.e., prominent) values will be detected.
      
      Thanks to Sesh Comandur, Janine Bennett, and Ali Pinar (Sandia
      National Labs) for the parameterization of sample size by
      uncertainty and rarity.
      
      Change-Id: Ia35dd897be18bada177184515e18bcb9298360ff
      5c7b5731
  10. 01 Nov, 2012 1 commit
    • David Thompson's avatar
      More realistic bounds on samples required... · 92995913
      David Thompson authored
      ... for determining whether an array behaves like a discrete set or not.
      We require 32*log2(N) samples instead of just log2(N). This commit
      adjusts the test so that it continues to perform random sampling of an
      array with the increased minimum number of samples required.
      
      Change-Id: Ia26c3ca0570ac718626c6897cd48bacd4c44bae5
      92995913
  11. 30 Oct, 2012 1 commit
  12. 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 the component number.
      
      Unique values are cached in the `vtkInformation` associated with the array.
      This commit also adds 2 new key types: one for storing `vtkVariant`
      objects as values, and another for storing vectors of variants.
      A variant vector is used to store unique tuples and unique component values.
      
      Change-Id: I241cf61372966bba381eb28d14bdc043a54ba197
      1df5d6a2
  13. 07 Oct, 2012 1 commit
    • Bill Lorensen's avatar
      BUG: Floating point precision issues · b2a4f837
      Bill Lorensen authored
      Testing two floating point numbers for equality (or inequality) is
      system dependent. The TestsDataArray was failing inequlity tests on some
      platforms. Multiple solution are possible:
      
      1) Use a std::numeric_limits<double>::epsilon() for comparision. But
      2) Use fixed point comparisions
      3) Ensure that the fractional numbers being compared can be
      represented exactly in IEEE floating point.
      
      This patch uses 3. Each fractional number is a multiple of
      1/16. For example, .1 is replaced by .125, .3 by .375.
      
      Change-Id: I8e172a1d0c53e3dc576eac236b4fd9b139a855bb
      b2a4f837
  14. 05 Oct, 2012 1 commit
  15. 03 Oct, 2012 1 commit
    • Bill Lorensen's avatar
      BUG: Memory leak in test · de1653f6
      Bill Lorensen authored
      vtkTimePointUtility::TimePointToISO8601() returns a char * that the
      application must delete.
      
      Change-Id: I4f662cb38afa23727f4eb7a33d59a0bf590142cb
      de1653f6
  16. 01 Oct, 2012 1 commit
    • Bill Lorensen's avatar
      ENH: Full coverage for SparseArray · 5610dee6
      Bill Lorensen authored
      Extend the unit test for SparseArray to cover all code that can be
      reached in normal usage.
      
      NOTE: Some of the const methods cannot be covered because they need to
      be applied in a class' const methods.
      
      The original code coverage was 71%. This includes all tests that
      exercised SparseArray. But this number is misleading since SparseArray
      is template code. Code that is not instantiated is not reported by
      code coverage.
      
      For example, these methods were not considered as code by coverage:
      GetUniqueCoordinates
      GetCoordinateStorage
      
      Also, none of the error conditions were covered by the tests. The unit
      test now exercises the error codes and validates the error messages.
      
      The coverage was verified using:
      ../VTK/Utilities/Maintenance/computeCodeCoverageLocallyForOneTest.sh Common/Core/ -V -R TestArrayAPISparse
      
      Change-Id: I24168f9b157541e28efdfeca7caadfad6fe7b239
      5610dee6
  17. 29 Sep, 2012 1 commit
  18. 28 Sep, 2012 1 commit
  19. 26 Sep, 2012 1 commit
  20. 22 Sep, 2012 1 commit
  21. 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
  22. 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
  23. 11 Sep, 2012 2 commits
  24. 05 Sep, 2012 1 commit
  25. 13 Aug, 2012 1 commit
  26. 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
  27. 24 May, 2012 1 commit
  28. 10 May, 2012 1 commit
  29. 12 Apr, 2012 1 commit
  30. 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
  31. 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