1. 25 Jul, 2013 1 commit
  2. 05 Jul, 2013 1 commit
  3. 01 Jul, 2013 1 commit
  4. 28 Jun, 2013 1 commit
    • Julien Finet's avatar
      Add vtkAxisActor::UseTextActor3D · 2c559a9c
      Julien Finet authored
      vtkAxisActor::UseTextActor3D controls whether the titles and labels are
      rendered using vtkVectorText or vtkTextActor3D.
      Change-Id: Id70a670480f7d60c55e2b8c8d4f83caa8291fc6f
  5. 18 Jun, 2013 1 commit
    • David C. Lonie's avatar
      Move scalar bar GL2PS special case handler from PV to VTK. · 9f33a74f
      David C. Lonie authored
      This patch moves the special handler code for scalar bars from paraview
      into VTK. The code was originally in PV as the PVScalarBar differed
      significantly from vtkScalarBar, but now that they share more of their
      implementations VTK can handle the export.
      Change-Id: Icf37d51f46ba2569db86da1125c5c0c4f247747f
  6. 11 Jun, 2013 1 commit
  7. 04 Jun, 2013 2 commits
    • Brad King's avatar
      Convert VTKData test inputs to ExternalData content links · 3797f83d
      Brad King authored
      Add to the Testing/Data directory ExternalData content links mirroring
      the content and layout we use from the VTKData/Data directory.
      Add a CMake/vtkLegacyData.cmake module, included from CMakeLists.txt and
      Testing/External/CMakeLists.txt, to call ExternalData_Expand_Arguments
      for all data directories added from VTKData/Data.  This will bulk-fetch
      all test input data currently used by tests of any module, enabled or
      not.  We can make the DATA{} references more granular later.
      Add a VTK_TEST_DATA_DIR variable to refer to the directory we tell the
      ExternalData module to populate the real data files.  Replace references
      to VTK_DATA_ROOT in test command lines (after -D) with references to
      VTK_TEST_DATA_DIR.  Drop the VTK_DATA_ROOT CMake option and stop using
      the VTKData repository.
      Remove the TESTING_DATA option from the vtk_add_test_cxx API and remove
      the VTK_DATA_ROOT option from the vtk_add_test_mpi API since all test
      input data are now handled through ExternalData and Testing/Data content
      Change-Id: Id02490b76ea2e161b9038188264a4830485039d8
    • David Thompson's avatar
      Use the font scaling provided by vtkTextActor. · 47b6fa6e
      David Thompson authored
      This will increase the size of fonts used on displays
      with high pixel densities.
      Also, this changes the signature of vtkTextActor::GetBoundingBox()
      to take a vtkViewport. Since this is a new method for VTK6, it is
      better to fix it now; having it pass a NULL viewport pointer
      internally was causing crashes.
      Finally, vtkTextActor::SetConstrainedFontSize() should take font
      scaling into account.
      Change-Id: I3cc99f99798da96f5c8e9249538ba269216e302a
  8. 31 May, 2013 1 commit
  9. 28 May, 2013 2 commits
    • David Thompson's avatar
      Update the scalar bar build time. · 155b7f30
      David Thompson authored
      The BuildTime member is not being updated when the
      scalar bar layout is recalculated, causing layouts
      to be recomputed every time the bar is rendered.
      Change-Id: Ib5f8e69573383d2c7cf04ca9cfb18b70fbc40dcb
    • David Thompson's avatar
      Update the scalar bar build time. · 118aa20a
      David Thompson authored
      The BuildTime member is not being updated when the
      scalar bar layout is recalculated, causing layouts
      to be recomputed every time the bar is rendered.
      Change-Id: I79615dfee885cf13b64370bd53dd6bc9485980cd
  10. 17 May, 2013 2 commits
  11. 14 May, 2013 2 commits
  12. 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
    • 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>
  13. 26 Apr, 2013 1 commit
  14. 09 Apr, 2013 3 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
    • David Thompson's avatar
      Pad scalar-bar title to prevent ugly layout. · 07be3e42
      David Thompson authored
      Change-Id: I3f69aa027f2228470a31a47872a8ffd53637ced8
    • 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
  15. 08 Apr, 2013 1 commit
  16. 31 Mar, 2013 1 commit
  17. 20 Mar, 2013 1 commit
  18. 15 Mar, 2013 2 commits
    • Sean McBride's avatar
      Big find-replace of VTK_LARGE_FLOAT -> VTK_FLOAT_MAX · 04d04637
      Sean McBride authored
      vtkType.h says that VTK_LARGE_FLOAT is a
      'compatibility name'.  There were many uses of the
      old name, which I updated.  The find-replace should
      be quite safe as it's basically what the preprocessor
      does anyway.
      Change-Id: I66ecb51cd2f21ee3cdf9289d8a65d39fc4519a83
    • Sean McBride's avatar
      Big find-replace of VTK_LARGE_INTEGER -> VTK_INT_MAX · 1ff4b0ee
      Sean McBride authored
      vtkType.h says that VTK_LARGE_INTEGER is a
      'compatibility name'.  There were many uses of the
      old name, which I updated.  The find-replace should
      be quite safe as it's basically what the preprocessor
      does anyway.
      Change-Id: Ic82bfec6d706dbcd68af70f2d4a31cdd51f7b497
  19. 08 Mar, 2013 1 commit
    • Sean McBride's avatar
      Eliminated (undefined) negation of INT_MIN · 38f76b82
      Sean McBride authored
      clang ubsan warned running vtkRenderingAnnotationCxx-TestCubeAxes2DMode:
      Rendering/Annotation/vtkCubeAxesActor.cxx:1315:30: runtime error: negation of -2147483648 cannot be represented in type 'int'
      This happens when 'range' is exactly 0.0, and so log10() gives -infinity,
      which when cast to int (apparently) becomes INT_MIN which cannot
      be negated due to the asymmetry of two's compliment representation.
      Now, check log10() result with newly-created vtkMath::IsFinite API.
      If the result is not finite, return 0 from vtkCubeAxesActor::Digits(),
      which I'm not sure is the correct thing to return.
      Change-Id: I36fc832df98ccb96c1fdc951c42e7e2c6de9d4b4
  20. 05 Mar, 2013 1 commit
    • Bill Lorensen's avatar
      BUG: Number of points exceed number of scalars in test · 3e3d3db2
      Bill Lorensen authored
      TestXYPlot inserted an extra point (dependent variable) for each
      scalar (independent variable). XYPlotActor did not detect this and
      valgrind reported "Invalid read of size 8" defects.
      This patch removes the extra inserted point from the test and also
      checks for this error condition in XYPlotActor.
      Change-Id: Ic585534fdfbd665b708845b648fb30dee541475e
  21. 28 Feb, 2013 1 commit
    • Frederic TINGAUD's avatar
      Calculate the axis label positions. · 009b5ac2
      Frederic TINGAUD authored
      Instead of using hard coded values for the label and title positions on
      cubeAxesActor, calculate them.
      This development is needed to correctly display oriented labels on axes.
      I did my best to obtain a result as near as possible to the current result,
      for non oriented labels.
      Change-Id: I99d0b76b5e9228125ca0205ca8a63a641239d5f0
  22. 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
  23. 08 Feb, 2013 1 commit
    • David C. Lonie's avatar
      Add regression test for CaptionActor2D. · 30cc7461
      David C. Lonie authored and Bill Lorensen's avatar Bill Lorensen committed
      Also update the Rendering/Annotation/Testing/Cxx/CMakeLists.txt file
      to allow the new interactor override to work with the tests for this
      Change-Id: I77bdf2cd4baac80ae06faad09867d289e4c70505
  24. 01 Feb, 2013 1 commit
    • David C. Lonie's avatar
      Replace vtkFreeType(Tools|Utilities) with vtkTextRenderer. · 3b3130eb
      David C. Lonie authored
      This patch replaces most of the remaining calls to the vtkFreeType
      text rendering classes with equivalents that go through the
      vtkTextRenderer layer. Most of these were used to calculate bounding
      boxes for text actors, which would be incorrect if the text actor was
      rendering math text.
      Also removed a few unneeded headers and mentions of vtkFreeType.
      Change-Id: Iddf7d84dbf46c30774baf96d32edd07b6da77031
  25. 13 Dec, 2012 1 commit
    • David C. Lonie's avatar
      Fix failing TestCaptionActor. · ef48d154
      David C. Lonie authored
      The text drop shadow was colored the same as the text, creating a very
      difficult to read label. This patch resets the color property of the
      caption's text actor to the default vtkProperty2D color.
      Change-Id: Id00640dca2fc97ef81011feec5be4993116e3217
  26. 03 Dec, 2012 1 commit
    • Dave DeMarle's avatar
      Fix iostream conversion errors. · f076c3b0
      Dave DeMarle authored
      These show up on xlc compiler as: "The call to operator<< has no best match"
      Change-Id: If4ef9cfbb635609ab850205fcf441d6cd3ff40e2
  27. 14 Nov, 2012 1 commit
  28. 13 Nov, 2012 1 commit
  29. 30 Oct, 2012 1 commit
  30. 26 Oct, 2012 2 commits
  31. 25 Oct, 2012 1 commit