1. 17 May, 2013 1 commit
  2. 14 May, 2013 7 commits
    • Brad King's avatar
      Use ExternalData to reference test baselines · 42baebf3
      Brad King authored
      Teach vtk_add_test_* to use ExternalData_add_test to add tests and use
      DATA{} syntax to reference test baseline images.  Also update direct
      add_test calls in several modules.
      
      Change-Id: I1ddcec1c109ea9ca7840be9b6ccf015393039cba
      42baebf3
    • Brad King's avatar
      Mark non-baseline tests with NO_VALID option · 050fd10e
      Brad King authored
      Tell calls to vtk_add_test_(cxx|python|tcl) explicitly when there is no
      valid baseline image to avoid passing -V unnecessarily.
      
      Change-Id: Ibe5aecdfa076446ddda0b95e814483eb6622af73
      050fd10e
    • Brad King's avatar
      Use vtk_add_test_(python|tcl) where possible · 02f0a6d2
      Brad King authored
      Convert some direct add_test calls to use the helper functions instead.
      
      Change-Id: I4f6b92e24804885c6b1449b21ae8efffd22ffdbf
      02f0a6d2
    • 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
    • Brad King's avatar
      vtkTestingMacros: Remove vtk_tests macro · ef7f0191
      Brad King authored
      Use vtk_add_test_cxx and vtk_test_cxx_executable to replace calls to
      vtk_tests.  Then remove vtk_tests and parse_optional_arguments.
      
      Change-Id: I73dee627fa87a399c48b409af046b116fc75a0fd
      ef7f0191
    • Brad King's avatar
      vtkTestingMacros: Simplify vtk_add_test_mpi signature · 954ca17c
      Brad King authored
      Use keyword options VTK_DATA_ROOT and VTK_LARGE_DATA_ROOT to indicate
      the source of data for the MPI test, if any.
      
      Change-Id: I170b4dcb88984df5ec0bba46fa6587e0aeea63f3
      954ca17c
    • Brad King's avatar
      vtkTestingMacros: Rename add_test_(mpi|python|tcl) with vtk_ prefix · e58d8029
      Brad King authored
      Use shell code:
      
       git grep -Elz '\<add_test_(mpi|python|tcl)' |
       xargs -0 sed -ri 's/\<add_test_(mpi|python|tcl)/vtk_add_test_\1/g'
      
      Change-Id: I6d076e2483209a83231fb1c96053f0389a3fcdf2
      e58d8029
  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. 02 May, 2013 1 commit
    • Kyle Lutz's avatar
      Refactoring code to set color/opacity/visibility for blocks. · 52fd8ad8
      Kyle Lutz authored and Utkarsh Ayachit's avatar Utkarsh Ayachit committed
      This commit refactors some of the code added in recent weeks to add ability for
      users to set display paramaters for blocks within a composite dataset. This
      commit additionally adds support for changing block opacity.
      
      Blocks colors/opacities can also be overridden when using scalar coloring.
      The only issue is when depth-peeling gets used. In that case, point-data coloring
      with texture (i.e. using interpolate scalars before mapping) results in color
      bleeds. We need to dig into the depth peeling code to address that issue.
      
      Change-Id: I2c86912b45bc0516dc4dc726df9448e0569c8312
      52fd8ad8
  5. 30 Apr, 2013 1 commit
    • Yumin Yuan's avatar
      Attempts to fix random failure of TestPolygonSelection on amber8. · 947a3261
      Yumin Yuan authored
      The original test has many MouseMove events, and each event will trigger redrawing of polygon on screen,
      which takes a fairly long time to run on amber8 due to software-rendering with Mesa. This commit modified
      the playback events so that only a few events are included and the test result image stays the same. The pixel drawing part of the test is also turned off for the test.
      
      Change-Id: I848a550ad4a3e0fd662fb97df96e381587585318
      947a3261
  6. 28 Apr, 2013 2 commits
    • David Thompson's avatar
      Fix for subclasses overriding EditAnnotations. · cc42420f
      David Thompson authored
      The accounting done assumed that all annotations were
      contained in the lookup table, but this is not true when
      subclasses provide more. This was revealed by the
      ParaView version of the scalar bar actor, which adds
      min and max values as annotations on the continuous
      scalar bar.
      
      Change-Id: I6186f22ee9f29be889fc83522e67968688759922
      cc42420f
    • 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
  7. 27 Apr, 2013 1 commit
  8. 26 Apr, 2013 2 commits
    • David Thompson's avatar
      Fix a leak revealed by ParaView; use SmartPointer. · 84c42607
      David Thompson authored
      This also eliminates a warning about anonymous namespaces on Linux.
      
      Change-Id: Ic0b0477925313f34abcfe7d3def80218aa649176
      84c42607
    • Kathleen Biagas's avatar
      Improve text shadows. · ce1b4aff
      Kathleen Biagas authored
      Blend pixels between character and shadow to prevent gaps where background
      color shows between the text and its shadow.
      
      TestScalarBar.png will show the improvement.
      
      Change-Id: I642100a68cae7152d557081d264867d11e79f56a
      ce1b4aff
  9. 24 Apr, 2013 2 commits
  10. 22 Apr, 2013 3 commits
    • Sean McBride's avatar
      Removed dead code found by compiler warning · 8ff3310f
      Sean McBride authored
      After fixing one warning about private globals
      not being marked static (by marking them static)
      another warning appeared saying that they are in fact
      not used at all.  Just removed them.
      
      Change-Id: Iead6576f9106ab3207f0b9452f7a6951379d8f3d
      8ff3310f
    • Marcus D. Hanwell's avatar
      Fix bug on Mac OS X PPC platform · ab5a0856
      Marcus D. Hanwell authored
      For some reason the OpenGL line type (stipple etc) was causing point
      sprites not to render. Resetting back to a solid line fixes the issue
      and is reasonable to do (restore expected state). Thanks to Sean
      McBride for providing access to the failing machine.
      
      Change-Id: Ia31ae087e4d830175a194643c4056fd4cc68208a
      ab5a0856
    • 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
  11. 18 Apr, 2013 1 commit
    • David C. Lonie's avatar
      Remove the MathTextActor classes. · d978780f
      David C. Lonie authored
      * Converted tests to use regular TextActors.
      * Fixed the MathText path generator to rotate paths if needed.
      * Update the GL2PS text export code to check for mathtext
        strings, since mathtext/freetype are both handled by the same
        actor.
      * Made vtkTextRenderer::DetectBackend public so we can peek at
        the backend from the export code.
      
      Change-Id: I52ba3c1e916c70dd80b67d59b611db1becb0846c
      d978780f
  12. 17 Apr, 2013 2 commits
  13. 16 Apr, 2013 2 commits
  14. 14 Apr, 2013 1 commit
    • Berk Geveci's avatar
      Revert "Prevent division by 0 by bailing early" · feaf55f2
      Berk Geveci authored
      This reverts commit 5bb0f14f. For some reason, this
      commit causes some dashboard failures on Mac OS X 10.8:
      crash when setting the cursor. It is not clear why but
      we are temporarily reverting this commit to verify that
      this fixes the problem.
      
      Change-Id: I027af718fa0e441aa6d688a29978dcd2d9576710
      feaf55f2
  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
    • Kyle Lutz's avatar
      Use RenderMaterial() instead of SendMaterialProperties() · e3f5e52d
      Kyle Lutz authored
      This changes the vtkCompositePainter class to use RenderMaterial()
      instead of SendMaterialProperties() for setting the solid color on
      individual blocks. The SendMaterialProperties() call did not correctly
      scale the material properties.
      
      Change-Id: Ia17ccbd75e677770e3ebf2cdb30bda224c62f3dd
      e3f5e52d
  17. 09 Apr, 2013 4 commits
    • David Thompson's avatar
      More adjustable scalar bar widget. · 3893b0be
      David Thompson authored
      Now the padding around text and the border can be adjusted.
      Also the relative amount of space taken up by the title and
      tick labels can be changed as can the thickness of the scalar bar.
      
      Change-Id: Ic66514a80feb0d2c81fd9daa67f743b9a619b529
      3893b0be
    • David Thompson's avatar
      Pad scalar-bar title to prevent ugly layout. · 07be3e42
      David Thompson authored
      Change-Id: I3f69aa027f2228470a31a47872a8ffd53637ced8
      07be3e42
    • David Thompson's avatar
      Allow empty string rendering to succeed. · 8a7aaf67
      David Thompson authored
      An empty string should not be considered an error condition.
      
      Change-Id: Ia19c3b6a459897b54901920eac1fa2f3826e6fba
      8a7aaf67
    • 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 2 commits
  19. 05 Apr, 2013 1 commit
  20. 03 Apr, 2013 4 commits