1. 14 Jan, 2016 1 commit
  2. 22 Sep, 2015 1 commit
    • David Gobbi's avatar
      Wrap many more classes with python. · e6f75b9a
      David Gobbi authored
      This makes the python wrappers ignore WRAP_EXCLUDE, and instead use
      the new property WRAP_EXCLUDE_PYTHON that excludes fewer classes.
      The WRAP_SPECIAL flag, which used to act as a whitelist for python,
      has been removed.
      
      Because this change causes classes to be wrapped in python by default,
      some third-party VTK packages might break until they modify their own
      CMakeLists.txt files to add WRAP_EXCLUDE_PYTHON where necessary.
      e6f75b9a
  3. 18 Jul, 2015 1 commit
  4. 29 Jun, 2015 1 commit
    • David C. Lonie's avatar
      Defer matplotlib initialization for text rendering. · bdf3b4c2
      David C. Lonie authored
      Rather than querying for matplotlib when
      vtkMatplotlibMathTextUtilities is constructed, check only when
      the library is needed. This saves some start up time for e.g.
      ParaView when mathtext is not used.
      
      Some additional changes are required due to a change in behavior:
      vtkMatplotlibMathTextUtilities::New() used to return NULL when
      matplotlib was not found to signal that mathtext was unavailable.
      The vtkMathTextUtilities::IsAvailable() virtual method has been
      added to allow querying of the availability, now that New() can
      return a valid object when matplotlib is unavailable.
      bdf3b4c2
  5. 14 May, 2015 1 commit
  6. 09 Apr, 2015 2 commits
    • David C. Lonie's avatar
      Update baselines. · 1942a721
      David C. Lonie authored
      1942a721
    • David C. Lonie's avatar
      Remove the RenderingFreeTypeOpenGL module. · 4f7460a5
      David C. Lonie authored
      This is not supported by the new OpenGL2 backend, and doesn't support
      new text features, like MathText, FontConfig, or custom font files.
      
      It only implements vtkTextMapper, which now will use a texture-based
      implementation, similar to vtkTextActor and friends.
      4f7460a5
  7. 25 Mar, 2015 1 commit
    • David C. Lonie's avatar
      Improve appearance of small-sized mathtext. · f5ee8c17
      David C. Lonie authored
      The alpha mask returned by Matplotlib for mathtext renderings
      appears very dim when font size is small.
      
      This patch uses the same trick in MatplotlibMathTextUtilities
      as FreeTypeTools, which doesn't blend RGB values when the
      background alpha == 0. This gives a bolder appearance to the
      text, like it was before the text background color options
      were added.
      
      Also clamped the tprop opacity setters to [0., 1.] and updated
      a baseline that had small mathtext.
      f5ee8c17
  8. 16 Feb, 2015 1 commit
    • Sean McBride's avatar
      Reverse order of AND statements · 5da80674
      Sean McBride authored
      cppcheck warned because the later check involved an
      index that’s used in the earlier check.  That could
      easily be backwards if the index is not in range
      without the check happening first.
      
      Change-Id: Iaa79b07bb1eccd51db5e27252ab83d39f8e8b2f2
      5da80674
  9. 14 Jan, 2015 3 commits
  10. 18 Dec, 2014 1 commit
  11. 16 Oct, 2014 3 commits
  12. 01 Oct, 2014 1 commit
  13. 30 Sep, 2014 1 commit
    • Marcus D. Hanwell's avatar
      Expand support for the OpenGL2 backend · 666ade8a
      Marcus D. Hanwell authored
      This change makes more modules dynamically switch between the
      rendering backends if they have no OpenGL code, or introduces some
      ifdefs in the case of RenderingParallel (which may not be functional
      at this stage). Added RenderingFreeTypeOpenGL2 which will also need
      some additional work before it is properly integrated with the new
      rendering backend, but it surprisingly seems to render on the
      desktop.
      
      This commit contains everything needed to get a minimal ParaView
      build using the new rendering backend for polygonal rendering.
      
      Change-Id: If8676d41d263b046a54060965fc760b5d4bd64a1
      666ade8a
  14. 07 Aug, 2014 1 commit
    • Shawn Waldon's avatar
      Add a smartpointer for PyObjects · f9a208d6
      Shawn Waldon authored
      This refactors the SmartPyObject class from a local class in
      vtkMatplotlibMathTextUtilities.cxx to be externally visible.  This class
      is duplicated several places in Paraview and this refactor will allow
      code to be shared between all places that need it.  It is added to the
      vtkWrappingPythonCore module as the vtkSmartPyObject class.
      
      This commit also refactors the vtkPythonAlgorithm to use the new smart
      pointer.
      
      This commit is part of a change to ParaView and thus the topic name
      reflects that change and not the change to VTK.
      
      Change-Id: If3f0387bb7bb24f823dbe690e64a0a8bb1e0df16
      f9a208d6
  15. 09 Jul, 2014 1 commit
  16. 21 Jun, 2014 1 commit
    • Marcus D. Hanwell's avatar
      Now generate the object factory files in a function · cc8d1471
      Marcus D. Hanwell authored
      This moves the logic for object factory override generation to a
      central function, and removes lots of copy/paste code in our CMake.
      Also removed/retired the OpenGL2 object factory stomping variation
      as it is no longer needed and could produce unwanted side effects.
      
      Change-Id: I4a5ee2db76f73d57eded1d9a9240cefc4918cd74
      cc8d1471
  17. 20 Jun, 2014 1 commit
  18. 18 Jun, 2014 1 commit
  19. 06 May, 2014 1 commit
  20. 16 Apr, 2014 2 commits
  21. 07 Jan, 2014 1 commit
    • Bill Lorensen's avatar
      COMP: Test driver array bounds error · 2808d60d
      Bill Lorensen authored
      Some compilers report "array subscript is above array bounds" while
      compiling vtkRenderingMatplotlibCxxTests. This occurs when
      Module_vtkRenderingMatplotlib:BOOL=ON but Matplotlib is not found or
      VTK_GHOSTSCRIPT_EXECUTABLE is not defined. In this case, there are no
      tests defined, but the test driver is still built.
      
      Rather than change CMake, this patch adds an informative dummy test.
      
      Change-Id: I3f1d6ed2453d33d113f165fc9552f18d2cc4906f
      2808d60d
  22. 02 Jan, 2014 1 commit
  23. 31 Oct, 2013 1 commit
    • Scott Wittenburg's avatar
      Added some CMake macros to support discovery of Python modules. · 658b5bbb
      Scott Wittenburg authored
      Added a CMake file with two macros that support finding Python
      modules on the system in a slightly more efficient way.  One of the
      goals is that hereafter we will only need to run the external Python
      process once for each module we need to test, and we will cache the
      results so that subsequent checks can avoid the additional overhead.
      
      There were two CMakeLists.txt where we were checking for the presence
      of matplotlib, and these have been changed to demonstrate how the new
      macros will be used.  As soon as these changes are accepted into VTK,
      we would like to start using them in a similar fashion from the
      paraview web testing framework.
      
      Change-Id: I5439b10a4d8c0f8dc0b4209bbd429b104ef7c9c2
      658b5bbb
  24. 27 Jun, 2013 1 commit
  25. 14 Jun, 2013 1 commit
  26. 04 Jun, 2013 1 commit
    • 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
      links.
      
      Change-Id: Id02490b76ea2e161b9038188264a4830485039d8
      3797f83d
  27. 23 May, 2013 1 commit
    • Brad King's avatar
      Search for Ghostscript only when needed · fb82c67a
      Brad King authored
      Move the search for the Ghostscript executable added by commit 870dd114
      (Add new GL2PS testing system using ghostscript, 2012-10-01) into a
      dedicated vtkGhostscript module.  Include it from CMakeLists.txt that
      need VTK_GHOSTSCRIPT_EXECUTABLE.  This avoids keeping module-specific
      code in the top-level CMakeLists.txt file and enables the corresponding
      tests in the Testing/External build.
      
      Change-Id: I410737f16c653aaaa60799ce1471cb1798707079
      fb82c67a
  28. 17 May, 2013 2 commits
  29. 14 May, 2013 2 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
      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
  30. 13 May, 2013 1 commit
    • Utkarsh Ayachit's avatar
      Added a new module, vtkPythonInterpreter. · be75a19a
      Utkarsh Ayachit authored
      VTK now includes a Utilities module, vtkPythonInterpreter that provides a Python
      interpreter. While its use it totally optional, it helps in applications with
      embedded Python interpreter, such as ParaView.
      
      vtkMatplotlibMathTextUtilities now uses vtkPythonInterpreter to initialize
      Python. This enables applications to setup Python environment as needed witout
      directly having to hack environment variables to setup matplotlib environment.
      
      Since vtkPythonInterpreter allows applications to initialize/finalize Python
      interpreter mutliple times, fixed vtkPythonCommand to cleanup
      PyObject/PyThreadState pointers when Python interpreter is exitted.
      
      Change-Id: I80ed56fc3f64dda2766a6aa2e6e92c3aa7290993
      be75a19a
  31. 22 Apr, 2013 1 commit
    • 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
  32. 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