An update will be applied December 9th, between 12PM and 1:00PM EST (UTC -5:00). The site may be slow during that time.

  1. 17 May, 2013 1 commit
  2. 14 May, 2013 4 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
      52b51415
  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>
      3810c5a6
  5. 26 Apr, 2013 1 commit
  6. 25 Apr, 2013 2 commits
  7. 24 Apr, 2013 1 commit
  8. 23 Apr, 2013 2 commits
    • David Gobbi's avatar
      Clamp integer scalars in InterpolateTuple(). · 8c73f97f
      David Gobbi authored
      The InterpolateTuple() function was seeing an integer overflow
      when used from vtkButterflySubdivisionFilter, and probably had
      undetected overflow issues elsewhere.  Adding a clamp to the
      interpolation code for integer types protects against overflow.
      
      Change-Id: Ibd6ab7f79d514dbb9ea2d055cc299273b7490f7b
      8c73f97f
    • 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
      0e39fa5d
  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
      basis).
      
      Also remove some no more used functions and vars.
      
      Change-Id: Ie5fe5f267a22706334d883d330b8aa9bbb3926e2
      a45a52a1
    • 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
      focus.
      
      Change-Id: I938c4b6a5a44ca5792f5eeaaa946cc9fb27e1110
      f83d821a
  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
      leaves.
      Updating source, filters and tests to take advantage of this
      new behaviour.
      
      Change-Id: I4998336e38cc2d5cf79ec50e51ecc877cb74077e
      c5873cf4
  11. 15 Apr, 2013 1 commit
  12. 14 Apr, 2013 1 commit
  13. 13 Apr, 2013 2 commits
  14. 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
      9ee5fe8d
    • 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
      UpdateHyperTreesLeafIdOffsets.
      
      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
      34d55b7f
  15. 11 Apr, 2013 1 commit
    • David Gobbi's avatar
      Deprecate the obsolete vtkFastNumericConversion class. · 3bbd7d2e
      David Gobbi authored
      This class was designed as a work-around for some serious performance
      problems with the i387 floating-point unit in the x86 family of CPUs.
      It is largely irrelevant for modern x86 CPUs which typically use sse
      for floating-point computations.  Even though it might give a small
      performance boost, it gives an imprecise result.
      
      Change-Id: I65109d827c38bd6dd0ea6ace191885685b6674e3
      3bbd7d2e
  16. 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
      3218f2cc
  17. 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
      configurations.
      
      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
      55cb7e11
  18. 08 Apr, 2013 1 commit
  19. 03 Apr, 2013 4 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
      de8eae2b
    • 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
      6beda6f0
    • Berk Geveci's avatar
      Fixed ReleaseData functionality in algorithms. · 6c965828
      Berk Geveci authored
      It turns out that ReleaseData has been broken for a while, in
      that it didn't release data. No test looked at this so nothing
      failed. Fixed. I also added a test. As Bill Lorensen always
      says "if it is not tested, it is broken"
      
      Change-Id: Iae817886d5dca88752df6c6f5496bb229b6ea43f
      6c965828
    • Berk Geveci's avatar
      Changed the default executive to be vtkCompositeDataPipeline. · 2ef97890
      Berk Geveci authored
      This will enable processing of composite datasets without
      having to override the default pipeline manually.
      
      Change-Id: I1b62bca740b4d67f58818bd2b2ebf9a5ad785867
      2ef97890
  20. 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
      2704cf30
    • Andrew Bauer's avatar
      More documentation updates. · 1a6a08d4
      Andrew Bauer authored
      Change-Id: I6869fef6042d5249be98c3c0c3337491936276c1
      1a6a08d4
  21. 01 Apr, 2013 8 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
      0368f481
    • 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
      990beb64
    • 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
      4dc98125
    • 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
      e06c27b8
    • Sean McBride's avatar
      Removed unused VTKQUATERNIONINTERPOLATOR_TOLERNCE macro · 1e20797f
      Sean McBride authored
      It appears nowhere else in the codebase. Found this dead code using -Wunused-macros.
      
      Change-Id: I9e6f4ddbf2f1f00fc6c7ed5ca96bf1fed76038f1
      1e20797f
    • 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
      272e4259
    • Sean McBride's avatar
      Removed superfluous semi-colon · 62a6872b
      Sean McBride authored
      Fixes -Wextra-semi warning that was repeated often since
      this is a public header.
      
      Change-Id: I5f21d0e15a1fcac655a019057ced8f03399c17ef
      62a6872b
    • Sean McBride's avatar
      Fixed 64-to-32 truncation warning · 38777cfb
      Sean McBride authored
      Implicit cast was truncating long to int; just use long.
      Also change from float to double to reduce chance of overflow.
      
      Change-Id: I8f15e29f52e14ab746996f319e35ff1cadda2102
      38777cfb