1. 17 May, 2013 1 commit
  2. 14 May, 2013 3 commits
  3. 13 May, 2013 1 commit
    • Brad King's avatar
      vtkTestingMacros: Generalize add_test_(python|tcl) · 52b51415
      Brad King authored
      Teach add_test_(python|tcl) to parse explicit NO_DATA, NO_RT, NO_VALID,
      and NO_OUTPUT keyword options for tests that do not need VTK_DATA_ROOT
      or do not use a valid baseline image.  Factor add_test_python1 into
      add_test_python and distinguish them with the NO_RT keyword argument.
      Update call sites to produce identical test command lines before and
      after this change.
      Change-Id: I09f874b26aab409e55e7aa6f92412314540dbb85
  4. 28 Apr, 2013 1 commit
    • Andrew Maclean's avatar
      These Python tests have been refactored. · 3810c5a6
      Andrew Maclean authored
      This has been done by removing the "tcl-isms" and making
       the code more readable. In some cases redundant code
       has been removed (often a result of copy/paste operations).
       The code has also been checked to ensure each line is 80
       characters or less.
      The code can now be run using vtkpython or by using the
       appropriate Python environment.
      Originally these were TCL scripts that were converted using
        vtkTclTestToPy.py and they they needed to be run through the
        rtImageTest.py driver which defines a few needed
        functions/variables for their operation. To this end
        backdrop.py has been added where it is needed.
      Change-Id: I50d6505628c140ea4551f74f7f3e85df907567e1
      Signed-off-by: Andrew Maclean's avatarAndrew Maclean <andrew.amaclean@gmail.com>
  5. 25 Apr, 2013 1 commit
    • Sean McBride's avatar
      Fixed out-of-range colour component value · c3ab58e4
      Sean McBride authored
      The value "6" was probably meant to be "0.6",
      as it seems HSV ranges should be 0 to 1.
      Fixes undefined cast of large double to uint8
      found by clang's ubsan.
      Change-Id: I18120efe1638e2c175e8ba439941b7023f906a65
  6. 15 Feb, 2013 1 commit
    • Bill Lorensen's avatar
      ENH: Tcl tests should not fail if VTK_DATA_ROOT is missing. · c5ab6fda
      Bill Lorensen authored
      A test should run without VTK_DATA_ROOT unless it needs input data
      from VTK_DATA_ROOT. Tests that have image baselines should still run
      unless they need input data.
      rtImage.tcl is modified to skip baseline comparisons if VTK_DATA_ROOT
      is not defined.
      CMakeLists.txt files are converted to use add_test_tcl macro for
      CMakeLists.txt files are changed to isolate tests that need input
      This was tested as follows:
      1) configured a build with VTK_DATA_ROOT undefine
         ctest -R Tcl-
         154 tests passed
      2) configured a build with VTK_DATA_ROOT defined
         ctest -R Tcl-
         390 tests passed
      This means that 390-154 = 236 tcl tests require input data
      Change-Id: I9067a3e3e2a710ddf353f0181cc7b22a85b5ef10
  7. 01 Feb, 2013 1 commit
  8. 19 Nov, 2012 1 commit
    • Kyle Lutz's avatar
      Fix bug in vtkDataObject::GetAssociationTypeFromString() · fbbeaabe
      Kyle Lutz authored
      This fixes an indexing bug in the GetAssociationTypeFromString()
      method of the vtkDataObject class. Also adds a test to ensure
      that the method returns the correct values.
      Change-Id: Id340b624fa9525ceddd40be629e29aa13a0af343
  9. 23 Oct, 2012 1 commit
  10. 19 Oct, 2012 4 commits
  11. 15 Oct, 2012 1 commit
    • Nikhil Shetty's avatar
      Adding auto-converted python tests. · fae72d5e
      Nikhil Shetty authored
      Note: these tests were not a part of pre-modular-vtk and have been especially
      converted for vtk-modular in order to have the complete set of python tests for
      each tcl test. The likelyhood of them failing is high and more work may be
      needed to get them to work.
      Change-Id: Iac82a32eddc1da9042450ced177258a364e5b07b
  12. 11 Oct, 2012 1 commit
  13. 01 Oct, 2012 1 commit
  14. 29 Sep, 2012 1 commit
  15. 28 Sep, 2012 1 commit
    • Bill Lorensen's avatar
      ENH: Reinstate vtkPolyhedron testing · 5073735e
      Bill Lorensen authored
      After the modularization, the Polyhedron tests were not activated.
      The tests add test dependencies on TestingRendering, IOLegacy, IOXML
      and RenderingCore.
      In a subsequent patch, these tests will be moved to the rendering
      Change-Id: Icdd3bea0531675c23044e35ce74daef0dd01acdc
  16. 27 Sep, 2012 2 commits
  17. 26 Sep, 2012 1 commit
  18. 21 Sep, 2012 1 commit
    • Marcus D. Hanwell's avatar
      Move the vtkColor tests into their own test · 1991137e
      Marcus D. Hanwell authored
      The vtkColor types are in their own header, move the tests out and add
      some more tests of vtkColor. Added a new constructor that can construct
      vtkColor[3,4]ub colors from a hexadecimal representation.
      Change-Id: If1126b91501c258c2701acb60910e9c8cd127a27
  19. 11 Sep, 2012 1 commit
    • Yuanxin Liu's avatar
      vtkCompositeDataIterator: Move some methods to child class · 153fb3d3
      Yuanxin Liu authored
      The two parameters in vtkCompositeDataIterator, TraverseSubTree and
      VisitOnlyLeaves, only make sense in the child class
      vtkDataObjectTreeIterator, so they are moved there.
      For callers, if it just calls VisitOnlyLeavesOn() then we just yank
      the call since this is the default behavior anyways; otherwise, we
      down cast the iterator to vtkDataObjectIterator in order to call these
      Change-Id: Idbf44426bd1e281219309a824f603bd796b711b1
  20. 03 Sep, 2012 1 commit
  21. 31 Aug, 2012 1 commit
    • Yuanxin Liu's avatar
      Change the behavior of vtkDataObjecTree::CopyStructure · d3a763d6
      Yuanxin Liu authored
      When the source iterator is not vtkDataObjecTreeIterator, create a tree
      of two levels. The first level is single node of MultiPieceDataSet and
      all actual data sets live on the second level. The change is mainly to
      make sure that GUI on ParaView do not get overwhelmed by large number
      of data sets.
      - SetDataSet and GetDataSet are also changed to be consistent.
      - The single MultiPieceDataSet node is named "All Blocks" so it
        doesn't look confusing on the GUI.
      - A test is created that checks the new behavior.
      Change-Id: Ic926242fcfbaa1548b610e3e7e648b354dc8583c
  22. 24 Aug, 2012 1 commit
    • Yuanxin Liu's avatar
      AMR classes: major data structure changes · 8fc6cf25
      Yuanxin Liu authored
      The main motivation for the changes is to improve the efficiency
      of AMR data structures by replacing the data set containers and meta
      data representation with new data structures.
      First, the meta data associated with the AMR data is moved from
      vtkInformation to a new class vtkAMRInformation so that they do not
      have to be deep copied. Related changes also include:
      - Before, when the LOAD_REQUESTED_BLOCKS() key is not set, the reader
        would recompute AMR meta data based on the requested blocks.  This
        is no longer done: meta data always represents what is on file.
        The reason is to avoid the sensitive meta data computation that
        depends on connectivitiy of the requested blocks.
      - Processor ranks are no longer stored in the meta data. Filters
        can easily generate them by using
      - There used to be two types of 1D indices used to reference blocks in
        an AMR: vtkOverlappingAMR::GetFlatIndex and
        vtkOverlappingAMR::GetCompositeIndex. Now only the latter is used.
        The "other" 1D index is file type specific so now only the readers
        reference them (vtkAMRInformation::GetAMRBlockSourceIndex())
      - To make it easy to traversal the bounding boxes in the meta data. A
        new key vtkObject::BOUNDING_BOX() has been added that works with
        vtkOverlappingAMRDataIterator. See its use in vtkCompositeCutter for
        an example.
      - In a multiprocess setting, vtkAMRSliceFilter for each process computes
        the complete meta data to avoid communication
      - Many functions in vtkAMRUtilities are removed because they provide
        support for computing meta data from data sets. In the new design,
        meta information is always created before data sets are constructed.
      Second, VtkUniformGridAMR now use a more compact representation of the grid
      blocks than the tree implementation done previously. To facilicate
      this, vtkCompositeDataSet now becomes a fully abstract class and all
      concrete implementation gest pushed to the class vtkDataObjectTree.
      In the new implementation, the non-null blocks are stored in an stl
      vector. So traversing them (using vtkUniformGridAMRDataIterator) is
      - The AMRBox has been reduced to store only the lower and upper
        corners.  Information such as origin and spacing are moved to the
        container class vtkAMRInformation, since they are often common to
        all boxes or boxes on the same level.
      - File reoganization: - AMR File readers are moved from Filters/AMR to
        IO/AMR - AMR algorithms (vtk*AMR*Algorithm) are moved from
        Filters/General to Common/ExecutionModel
      Finally, tkAMRVolumeWrapper is moved from filters to rendering.
      The dependency on vtkAMRResampler and vtkParallelCore makes it
      difficult for it go to Rendering/Volume so a new module
      Rendering/VolumeAMR is created.
      Change-Id: Id73d214e6a5ac4d4a08fde5d979365f46edfa390
  23. 21 Aug, 2012 1 commit
  24. 20 Aug, 2012 1 commit
  25. 13 Aug, 2012 1 commit
  26. 31 Jul, 2012 1 commit
  27. 27 Jul, 2012 1 commit
    • Robert Maynard's avatar
      Add single, double, and data array functor dispatch classes. · 5548d14b
      Robert Maynard authored
      The dispatcher provides the ability to do multiple dispatching based
      on a runtime polymorphism. This allows mapping to compile time
      The double dispatcher allows you to call a functor
      based on the types of two objects allowing you to call specialized
      The data array dispatch is a replacement for the vtkTemplateMacro
      offering an object based way that is far easier to read and use.
      Change-Id: If281ddc1ac803c0ed234e33c9cc0bf4c090fca71
  28. 29 May, 2012 1 commit
    • Chris Harris's avatar
      Add test to validate vtkDataObjectTypes · bd2f778b
      Chris Harris authored
      Add Validate() method to vtkDataObjectTypes that instantiates each
      data object type and check that the GetDataObjectType() method returns
      the correct type. The validate method can then be used as part of a
      test case to ensure type errors are not introduced.
      Change-Id: Ie9679a17de35006dde242af0126ec6cdfeaec54c
  29. 17 Apr, 2012 2 commits
  30. 10 Apr, 2012 1 commit
    • Brad King's avatar
      Define VTK_TEST_OUTPUT_DIR to name Testing/Temporary directory · 13e19ed9
      Brad King authored
      Replace all references to ${VTK_BINARY_DIR}/Testing/Temporary with
      ${VTK_TEST_OUTPUT_DIR} and set the variable accordingly.  The latter is
      shorter and will also be useful to build module tests as an external
      application that does not have VTK_BINARY_DIR available.
      Change-Id: I5159077c10dd2eab23365e9ac917bc6cbd806589
  31. 09 Apr, 2012 3 commits
    • VTK Developers's avatar
      Remove trailing whitespace from all source files · 2d323fc4
      VTK Developers authored and Brad King's avatar Brad King committed
      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>
    • VTK Developers's avatar
      Add modular VTK build system · 0c1471f1
      VTK Developers authored and Brad King's avatar Brad King committed
      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>
    • VTK Developers's avatar
      Modularize VTK tree layout · cdd4d6fd
      VTK Developers authored and Brad King's avatar Brad King committed
      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>