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. 26 Apr, 2013 1 commit
  6. 25 Apr, 2013 2 commits
  7. 24 Apr, 2013 1 commit
  8. 23 Apr, 2013 1 commit
    • Berk Geveci's avatar
      Cleaned up garbage collection. · 0e39fa5d
      Berk Geveci authored
      Removed garbage collection related Register/UnRegister/
      ReportReferences calls from classes that did not need them.
      Using garbage collection unnecessarily can lead to
      performance issues.
      Change-Id: I2eefb6a86d9e64f898247df522a6082c07cec8aa
  9. 22 Apr, 2013 2 commits
    • Joachim Pouderoux's avatar
      Change the indexing of HyperTree and remove dead code & vars. · a45a52a1
      Joachim Pouderoux authored
      HT are now indexed in such a way that there is no more
      dead index.
      HTGSource in quadric mode use the GlobalIndexStart mode to
      avoid the storage of the local to global node id per tree
      (contrary to descriptor/mask sources which use a BSF global
      indexing mode, quadric nodes are numberered on a per-tree
      Also remove some no more used functions and vars.
      Change-Id: Ie5fe5f267a22706334d883d330b8aa9bbb3926e2
    • Bill Lorensen's avatar
      ENH: Add InteractionStyle to rendering tests · f83d821a
      Bill Lorensen authored
      When tests are run with -I they must be linked with InteractionStyle.
      On the Mac, tests must be linked with MACOSX_BUNDLE to get keyboard
      Change-Id: I938c4b6a5a44ca5792f5eeaaa946cc9fb27e1110
  10. 19 Apr, 2013 1 commit
    • Joachim Pouderoux's avatar
      Change per tree BSF indexing by global BSF indexing. · c5873cf4
      Joachim Pouderoux authored
      This global breadth-first search let the user access to point
      data in the same order as in the descriptor which describes
      the tree representation in BFS.
      Moreover, each tree node (even non-leaf ones) can now have
      data attached. As previously, the dual only address the tree
      Updating source, filters and tests to take advantage of this
      new behaviour.
      Change-Id: I4998336e38cc2d5cf79ec50e51ecc877cb74077e
  11. 14 Apr, 2013 1 commit
  12. 13 Apr, 2013 1 commit
  13. 12 Apr, 2013 2 commits
    • Joachim Pouderoux's avatar
      Add depth and coordinates on each non leaf points. · 9ee5fe8d
      Joachim Pouderoux authored
      Change-Id: Ib73de685956f4ef4d2b9dfb9ce8e4561ae9df945
    • Joachim Pouderoux's avatar
      Optimize HTG for large & sparse level 0 grids. · 34d55b7f
      Joachim Pouderoux authored
      - Replace the vtkCollection which has a find access in O(N) by a std::map.
      - Add vtkHyperTreeIterator to avoid browsing every potential tree of
      level 0 grid. Only available trees are now browsed.
      - Add a TimeStamp to avoid unnecessary calls to the costly
      Those 3 changes really improve the computation time for building the HTG
      but also for computing the dual and all the filters
      (AxisCut, Geometry & ToUnstructuredGrid).
      Also add points for each cell in the tree, not only for leaf, even if
      only leaf points are used to construct the dual and thus referenced by
      some cells.
      Change-Id: Ie954fdc8860a55d0de9c23097b0662a2d2123550
  14. 10 Apr, 2013 1 commit
    • Joachim Pouderoux's avatar
      HTG modification to support only defined (has mat) level 0 cells. · 3218f2cc
      Joachim Pouderoux authored
      Change the HyperTreeGrid mechanisms to provide efficient storage of very
      large level 0 grids with only few cells defined. Instead of creating a
      full grid array, only defined cells (through MaterialMaskIndex array)
      are stored and processed.
      The source has been updated to take advantage of this new feature.
      Some optimizations and code simplification are also provided.
      Provide a new test TestHyperTreeGridTernary3DGeometryLargeMaterialBits
      to test the large grids management.
      Set 3: Fix tests, mainly fix CopyStructure.
      Change-Id: Iaab0afd7d13e66d9ab105c554a4d873ab59f1d35
  15. 09 Apr, 2013 1 commit
    • David Thompson's avatar
      Use scalar annotations on interval-mode scalar bar. · 55cb7e11
      David Thompson authored
      This commit renders user-provided notes associated with specific
      scalar values on the interval-mode scalar bar. Previously, only
      the categorical mode rendered these annotations.
      Also, provide the scalar bar with an optional swatch
      to illustrate the color assigned to NaN values.
      Add an option to color leader lines from the scalar bar to
      the annotation labels by the corresponding scalar value.
      This commit also breaks the process of rebuilding the scalar bar
      into several virtual methods so that subclasses (particularly
      ParaView's `vtkPVScalarBarActor`) can reuse more of the base class
      functionality. The process is now separated into 2 phases: layout,
      where bounding boxes for scalar bar components are placed; and
      configuration, where actors are positioned and geometry is created.
      This includes some changes to text actor to support constrained
      placement and text size queries.
      Add a test for the new scalar bar options.
      There are now many more options controlling how the scalar bar behaves.
      In particular many settings interact with the way geometry is rendered:
      the lookup table may be indexed or not (thus tick marks may not be
      rendered); the orientation may be horizontal or vertical; annotations
      may be rendered or not; the NaN annotation may be omitted; leader lines
      to annotations may be colored by the scalar they annotate or by the label
      color; and the tick marks may precede or succeed the scalar bar.
      Also, we must test how empty labels are handled and how even vs odd
      numbers of labels affect placement (since the algorithm for placement
      behaves differently in these cases).
      We cannot perform a full factorial test, but do test independent
      Finally, this commit improves the performance of prominent value
      detection for primitive-type arrays (e.g., int, double) by avoiding
      the use of vtkVariant instances to hold the working set of distinct
      values during sampling.
      Change-Id: I852f9b497d5e6ab619d9d7b763f641c44e4869cf
  16. 08 Apr, 2013 1 commit
  17. 03 Apr, 2013 2 commits
    • 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
    • Sean McBride's avatar
      Fixed -Wshift-sign-overflow warning · 6beda6f0
      Sean McBride authored
      Shifting a 1 bit into or past the sign bit is undefined behaviour.
      Instead, just use the new VTK_ID_MIN constant.
      Change-Id: If58da9863e2264c886957d214aa4086e4fb25c81
  18. 02 Apr, 2013 2 commits
    • Andrew Bauer's avatar
      Fixing the interior check tolerance for the apex of vtkPyramid. · 2704cf30
      Andrew Bauer authored
      I was using a tolerance of 0.001 near the apex of the pyramid
      relative to a distance squared for the interior check but elsewhere
      I was doing a tolerance of 0.001 for the absolute value of
      the distance so I squared the 0.001 tolerance to be consistent
      with the interior check for the other parts of the cell.
      Note that due to the degenerate nature of the pyramid cell we
      do a specialized interior check near the apex.
      Thanks to Kathleen S. Biagas for the bug report and fix.
      Change-Id: I7580fa04539b159ceac12385e2ac3d795906dc01
    • Andrew Bauer's avatar
      More documentation updates. · 1a6a08d4
      Andrew Bauer authored
      Change-Id: I6869fef6042d5249be98c3c0c3337491936276c1
  19. 01 Apr, 2013 5 commits
    • Sean McBride's avatar
      Removed unused VTK_CREATE macro · 0368f481
      Sean McBride authored
      It appears nowhere else in the file,
      but an identical macro appears in many other places,
      making me think this is leftover copy-paste.
      Found this dead code using -Wunused-macros.
      Change-Id: Ib8ac3d8c4eb756b04147f7dcd029a0e8c75c0869
    • Sean McBride's avatar
      Removed unused REGIONIDCHECK macro · 990beb64
      Sean McBride authored
      It appears nowhere else in the codebase.
      Found this dead code using -Wunused-macros.
      Change-Id: Ifbf09b46a7de7952e9961521726dda6c2c92100a
    • Sean McBride's avatar
      Removed unused macros · 4dc98125
      Sean McBride authored
      They appear nowhere else in the codebase.
      Found this dead code using -Wunused-macros.
      Change-Id: I0100e6d427cc762abc3ba734e7609998ea9759c2
    • Sean McBride's avatar
      Removed unused vtkReebGraphMin macro · e06c27b8
      Sean McBride authored
      It appears nowhere else in the codebase.
      Found this dead code using -Wunused-macros.
      Change-Id: I1cbd97cd6905b5fd8dae878ef1a099522b9153e8
    • Sean McBride's avatar
      Removed unused sameDirection macro · 272e4259
      Sean McBride authored
      It appears nowhere else in the codebase. Found this dead code using -Wunused-macros.
      Change-Id: I66bc2a2ebab4c3e69aa47b9808b57926e50163bc
  20. 31 Mar, 2013 1 commit
  21. 26 Mar, 2013 1 commit
  22. 24 Mar, 2013 1 commit
  23. 23 Mar, 2013 2 commits
    • Philippe Pébay's avatar
      Replaced the IndexingMode ivar with an TransposedRootIndexing bool · cc99b31b
      Philippe Pébay authored
      This is cleaner and makes more sense since there are only 2 modes
      of indexing root cells: either IIK or KJI. It is not considered
      that any other one would be potentially useful for anything.
      So I am either transposing the default (i.e., VTK-style, that is
      x-axis minor and z-axis major) to the x-axis major and z-axis
      minor used by some applications.
      Change-Id: Ic79f23622402c9579eefd57ea09743fb72788aa2
    • Philippe Pébay's avatar
      Fixed ShallowCopy defect · 12667426
      Philippe Pébay authored
      Change-Id: I68bfb91b87ec0708b9b11517fbfd758411a8b40a
  24. 22 Mar, 2013 3 commits
  25. 21 Mar, 2013 2 commits