1. 26 Oct, 2015 1 commit
    • Cory Quammen's avatar
      BUG 15797: Fix text property ID computation · 1d91f9ba
      Cory Quammen authored
      Only a few settings defined by the vtkTextProperty were used to
      compute the text property ID in MapTextPropertyToId(). This can cause
      incorrect rendering when settings that weren't considered, such as the
      shadow setting, were changed.
      
      Added a more general hashing function, HashBuffer(), to accommodate
      all the vtkTextProperty settings, and use this to compute the
      vtkTextProperty hash. HashString() is no longer used, but remains for
      backwards compatibility.
      
      Added a test to ensure that changing a setting results in the
      computation of a different ID.
      1d91f9ba
  2. 21 Oct, 2015 1 commit
    • Max Smolens's avatar
      Fix vtkCaptionActor2D not scaling text · fdaf3b02
      Max Smolens authored
      The text in vtkCaptionActor2D should scale to fill the rectangle defined
      by its positions. The scaling works as expected only if the actor's
      CaptionTextProperty is modified; using the default CaptionTextProperty
      shows the bug.
      
      This commit makes the text scale even when using the default caption
      text property.
      
      Fixes #15412
      fdaf3b02
  3. 12 Oct, 2015 1 commit
  4. 23 Sep, 2015 2 commits
    • David Gobbi's avatar
      Schwarz counter idiom for vtkFreeTypeTools · b7da2abd
      David Gobbi authored
      This change ensures that the singleton will not be freed until
      every module that included vtkFreeTypeTools.h has been finalized.
      b7da2abd
    • David Gobbi's avatar
      Fix classes that broke the "rule of three" · aceabf30
      David Gobbi authored
      The expanded python wrapping identified a few classes that broke
      the rule of three: they defined a custom destructor (indicating that
      they performed some kind of resource management), but did not define
      a custom copy constructor or a custom assignment constructor.  Some
      builds were generating a warning because of the missing methods.
      aceabf30
  5. 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
  6. 16 Sep, 2015 2 commits
  7. 11 Sep, 2015 1 commit
  8. 10 Sep, 2015 1 commit
  9. 01 Sep, 2015 1 commit
  10. 28 Aug, 2015 1 commit
  11. 25 Aug, 2015 1 commit
  12. 04 Aug, 2015 2 commits
  13. 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
  14. 17 Jun, 2015 1 commit
  15. 01 Jun, 2015 1 commit
  16. 14 May, 2015 2 commits
  17. 30 Apr, 2015 1 commit
  18. 09 Apr, 2015 3 commits
  19. 06 Apr, 2015 1 commit
  20. 02 Apr, 2015 1 commit
    • Sean McBride's avatar
      Fix -Wimplicit-fallthrough warnings; introduce VTK_FALLTHROUGH · 3cc4d9fc
      Sean McBride authored
      Fixed all clang -Wimplicit-fallthrough warnings:
      - Some fixed by adding missing breaks
      - Other fixed by adding VTK_FALLTHROUGH statement
      
      Under (modern) clang with C++11:
       #define VTK_FALLTHROUGH [[clang::fallthrough]]
      
      Otherwise:
       #define VTK_FALLTHROUGH ((void)0)
      
      VTK_FALLTHROUGH serves two purposes:
       - under clang, suppresses -Wimplicit-fallthrough warnings
       - makes code more self-documenting
      3cc4d9fc
  21. 01 Apr, 2015 1 commit
  22. 30 Mar, 2015 2 commits
  23. 28 Mar, 2015 1 commit
    • Sean McBride's avatar
      Fixed illegal left shift of negative number · ea9ebe87
      Sean McBride authored
      vtkFreeTypeTools.cxx:634:71: runtime error: left shift of negative value -450
      
      The code previously assumed that vtkTextProperty's
      GetOrientation() returns an angle between 0 and 360.
      ea9ebe87
  24. 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
  25. 23 Mar, 2015 1 commit
    • David C. Lonie's avatar
      Add a debug-only yellow dot at the text alignment point. · 1d9e3edb
      David C. Lonie authored
      In addition to painting the texture background a transparent
      grey, vtkFreeTypeTools::SetDebugTextures(true) will now make
      the alignment texel yellow.
      
      To use:
      
      #include <vtkFreeTypeTools.h>
      
      vtkFreeTypeTools::GetInstance()->DebugTexturesOn();
      1d9e3edb
  26. 16 Mar, 2015 1 commit
  27. 11 Mar, 2015 1 commit
  28. 01 Mar, 2015 1 commit
    • Andrew Maclean's avatar
      Visual Studio 2013 requires the <algorithm> header. · 75cd8a33
      Andrew Maclean authored
      This is required for std::max() and std::min().
      
      I think (but don't quote me on this) that the older MSVC
      compilers used to automatically include a MSVC specific
      header called xutility where these were defined.
      With respect to other comilers e.g. gcc, it is possible
      that one of the other includes is adding the algorithm header in.
      
      Change-Id: Ib4aba45f001edacea645eaf2bffaeb17e592cecf
      Signed-off-by: Andrew Maclean's avatarAndrew Maclean <andrew.amaclean@gmail.com>
      75cd8a33
  29. 24 Feb, 2015 1 commit
    • Andrew Maclean's avatar
      Visual Studio 2013 requires the <algorithm> header. · 70d35108
      Andrew Maclean authored
      This is required for std::max() and std::min().
      
      I think (but don't quote me on this) that the older MSVC
      compilers used to automatically include a MSVC specific
      header called xutility where these were defined.
      With respect to other comilers e.g. gcc, it is possible
      that one of the other includes is adding the algorithm header in.
      
      Change-Id: I9a11e00bed8887f421cbde317e3f2ead29e8f39a
      Signed-off-by: Andrew Maclean's avatarAndrew Maclean <andrew.amaclean@gmail.com>
      70d35108
  30. 18 Feb, 2015 1 commit
  31. 06 Feb, 2015 2 commits
    • David C. Lonie's avatar
      Fix conic point identification in the path renderer. · 00bb0197
      David C. Lonie authored
      The numeric value of FT_CURVE_TAG_CONIC is 0, so the translation
      to local ControlType failed when testing
      
        if (fttag & FT_CURVE_TAG_CONIC) { ... }
      
      Replaced the translation with a more robust approach.
      
      This wasn't readily apparent using the fonts embedded in VTK, as those
      fonts consist entirely of linear and cubic curves.
      
      Also fixed this functiont to use the pen_[xy] variables, which account
      for kerning.
      
      Change-Id: Ibcd7d28365ecad22d62073dc8bbf89405478f791
      00bb0197
    • David C. Lonie's avatar
      Enable freetype tests when matplotlib is not found. · a36b64f8
      David C. Lonie authored
      Only a subset of the freetype tests also need mathtext, but all tests
      were disabled when MPL wasn't found.
      
      Change-Id: If19bb0249db5f9f0e256ead1357381aa85115006
      a36b64f8
  32. 14 Jan, 2015 1 commit