1. 02 Jan, 2013 1 commit
  2. 31 Dec, 2012 1 commit
    • David C. Lonie's avatar
      Make MPL rendering less verbose. · 8fc892b8
      David C. Lonie authored
      Only print rendering errors and python exceptions in
      vtkMatplotlibMathTextUtilities when debugging is turned on. Also set
      vtkMatplotlibMathTextUtilities::Debug to true when the
      VTK_MATPLOTLIB_DEBUG env var is defined.
      Change-Id: Iabe1295c9c72cc820c76b8df615d2b97fb9a6a1e
  3. 30 Dec, 2012 1 commit
  4. 21 Dec, 2012 1 commit
    • David C. Lonie's avatar
      Add more environment variables to configure/debug matplotlib. · 10ff04a8
      David C. Lonie authored
      This class is aware of a number of enviroment variables that can be used to
      configure and debug python initialization (all are optional):
      - VTK_MATPLOTLIB_DEBUG: Enable verbose debugging output during initialization
        of the python environment.
      - VTK_MATPLOTLIB_PYTHONINTERP: Path to the python interpreter. This will be
        passed to Py_SetProgramName prior to calling Py_Initialize.
      - VTK_MATPLOTLIB_PYTHONHOME: See the Python documentation on the PYTHONHOME
        environment variable. This will be passed to Py_SetPythonHome prior to
        calling Py_Initialize.
      - VTK_MATPLOTLIB_PYTHONPATH: A list of additional python module paths to be
        prepended to the sys.path object after initialization. Use ';' on windows and
        ':' on apple/linux to separate multiple paths.
      Change-Id: I00613c3254750d26de350514a426fe24ce26f732
  5. 20 Dec, 2012 1 commit
  6. 19 Dec, 2012 4 commits
    • David C. Lonie's avatar
      Fix TextContextMathImage. · 98a4d792
      David C. Lonie authored
      Matplotlib seems to need \left{ to be \left\{ in some cases?
      Traceback (most recent call last):
        File "/usr/lib/python2.7/site-packages/matplotlib/textpath.py", line 137, in get_text_path
          glyph_info, glyph_map, rects = self.get_glyphs_mathtext(prop, s)
        File "/usr/lib/python2.7/site-packages/matplotlib/textpath.py", line 228, in get_glyphs_mathtext
          s, self.DPI, prop)
        File "/usr/lib/python2.7/site-packages/matplotlib/mathtext.py", line 3010, in parse
          box = self._parser.parse(s, font_output, fontsize, dpi)
        File "/usr/lib/python2.7/site-packages/matplotlib/mathtext.py", line 2344, in parse
      Expected a delimiter (at char 5), (line:1, col:6)
      ERROR: In ../Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx, line 235
      vtkMatplotlibMathTextUtilities (0x1cb8f70): Object is NULL!
      Change-Id: I30d2e5eea46dafe670f1465c0b9afabea6b6c764
    • David C. Lonie's avatar
      Fix rotated mathtext rendering. · cb04b0c2
      David C. Lonie authored
      Fixes tests like this:
      Change-Id: I57d4c1cad88e2636941293c39a3852b7acddbf25
    • David C. Lonie's avatar
      Fix failing TestRenderString test. · 85aa8ff7
      David C. Lonie authored
      Don't scale the image to a power of two for this test, since we're
      using vtkImageViewer2 instead of directly rendering a texture.
      Change-Id: Ic72b68968f88b1694eee837850b9db551f9d39b2
    • David C. Lonie's avatar
      Add missing return statement. · d70b7107
      David C. Lonie authored
      Change-Id: I5a73762fedc450f683cd2f4426a26d4545abac2a
  7. 13 Dec, 2012 2 commits
    • David C. Lonie's avatar
      Add multiline, justification, and shadows to vtkFreeTypeTools. · 6dd7b574
      David C. Lonie authored
      Also, explicitly return text dimensions from text rasterization
      functions. Older hardware requires texture image dimensions to be
      powers of 2. Since the text will only be rendered into a portion of
      the image in these cases, the text dimensions are needed to calculate
      the texture coordinates during rendering.
      Some classes were hiding the text dimensions in the image metadata, e.g.
      texture coordinates and text dimensions were stored in Spacing and Origin.
      This undocumented behavior was confusing and unintuitive.
      Now functions that rendering scaled images explicitly return the text
      Change-Id: Ic74b0dd9573d336427038985c671a8b724c92429
    • David C. Lonie's avatar
      Add GetConstrainedFontSize to FTTools and MTUtilities. · 5c14d896
      David C. Lonie authored
      Add a method to compute the font size needed to make text rendered
      by FreeTypeTools or MathTextUtilities fill a specified rectangle.
      The documentation of vtkTextMapper::GetConstrainedFontSize is
      clarified, too.
      Change-Id: I39de26b5173153eaec9e8f5f2857fe9964bad768
      s constrained -- add note about updated docs for tmapper
      Change-Id: Ib8c042285aabc719fe57825c05d85b6ab2b59c4b
  8. 07 Dec, 2012 1 commit
    • Brad King's avatar
      Replace remove() with list(REMOVE_ITEM) · 6625fcec
      Brad King authored
      The remove() command is documented as discouraged and replaced by the
      list(REMOVE_ITEM) command which has been around since CMake 2.6.0.
      Change-Id: Ibd5a95ef9dc81eb09a28a344ef009d7f1511abf6
  9. 04 Dec, 2012 1 commit
  10. 28 Nov, 2012 1 commit
  11. 27 Nov, 2012 1 commit
  12. 05 Nov, 2012 1 commit
    • David C. Lonie's avatar
      Check for matplotlib at runtime. · e1a03c70
      David C. Lonie authored
      This change allows the RenderingMatplotlib module to be built without
      finding matplotlib at configure time.
      Change-Id: Iee352157d533cdf0bd7a23fcd0807b4dd6547c89
  13. 19 Oct, 2012 1 commit
  14. 02 Oct, 2012 2 commits
    • David Thompson's avatar
      Change Matplotlib test to avoid console output. · d1d6760f
      David Thompson authored
      Change-Id: I99ba53434c670cc8e6ee271f88fe80fd18c0323e
    • David C. Lonie's avatar
      Sync with svn version of gl2ps. · 13ddc51b
      David C. Lonie authored
      Recent modifications to our bundled gl2ps library have been merged
      The modification that disabled writing a timestamp has been removed,
      as the timestamp will no longer break tests. The associated API in
      vtkGL2PSExporter (which was new) has been removed.
      Change-Id: Ic26eeabf84ad8a46bada6d9eb192455fe7c672a6
  15. 01 Oct, 2012 3 commits
    • Dave DeMarle's avatar
      Fix may be used uninitialized warnings. · 85752e97
      Dave DeMarle authored
      We get:
      /home/kitware/dashboards/VTK/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx: In member function virtual bool vtkMatplotlibMathTextUtilities::StringToPath(const char*, vtkPath*, vtkTextProperty*):
      /home/kitware/dashboards/VTK/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx:728:74: warning: origin[0] may be used uninitialized in this function [-Wmaybe-uninitialized]
      /home/kitware/dashboards/VTK/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx:728:74: warning: origin[1] may be used uninitialized in this function [-Wmaybe-uninitialized]
      /home/kitware/dashboards/VTK/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx:727:9: warning: hasOrigin may be used uninitialized in this function [-Wmaybe-uninitialized]
      From the case: pathClosePoly code path.
      I think the correct solution is to initialize the hasOrigin flag to no but I could be wrong.
      Change-Id: Ia3fbc63bb0bb2898aca173ea63801e05ae8937a5
    • Dave DeMarle's avatar
      Fix -Wnarrowing compilation warnings. · d9ab6e3f
      Dave DeMarle authored
      Change-Id: I0ed7c091a7fe50c5afde9e5c70b5aa71144917fd
      warning: narrowing conversion of 'cols' from 'long int' to 'double' inside { } is ill-formed in C++11
    • David C. Lonie's avatar
      Add new GL2PS testing system using ghostscript. · 870dd114
      David C. Lonie authored
      This commit replaces the md5sum based GL2PS tests, which were
      unreliable across GL implementations and difficult to maintain,
      with a ghost script based approach.
      Testing is performed as follows:
      1) The unit tests generate a post script file
      2) A CMake script, CMake/RasterizePostScript.cmake is called, which
         runs ghostscript to rasterize the postscript file into a png image.
      3) A PNGCompare test is called, which uses new API in vtkTesting to
         read the png file back in and perform a fuzzy image diff. PNGCompare
         lives in the Rendering/GL2PS module.
      Change-Id: I0e99b903512166741fe572ce417c1d0d480c34cd
  16. 10 Sep, 2012 1 commit
  17. 04 Sep, 2012 1 commit
    • David Thompson's avatar
      Wrap `vtkRenderingMatplotlib` for object factory. · 75d15e23
      David Thompson authored
      Without wrapping turned on, ParaView (and any other
      applications that access MathText classes via wrappers)
      will not properly include the compiler definitions that
      register the `matplotlib` overrides with `vtkObjectFactory`.
      For this reason, we must not exclude the library from
      wrapping and also provide one class for wrapping.
      Change-Id: I3ad084ce9008f63dec4ffe7d20ffc440dae6d49d
  18. 03 Sep, 2012 1 commit
  19. 31 Aug, 2012 1 commit
  20. 30 Aug, 2012 1 commit
  21. 28 Aug, 2012 1 commit
    • David C. Lonie's avatar
      Add GetBoundingBox and use rotations in MathTextUtils. · ee51878e
      David C. Lonie authored
      This patch adds a GetBoundingBox function to vtkMathTextUtilities
      and applies rotations from the supplied vtkTextProperty.
      The matplotlib MathText interface doesn't have an entry point to
      just get the bounding box, so the image is rendered by python as normal,
      and then the dimensions are returned.
      The MathText library doesn't support rendering rotated text directly,
      so a vtkImageReslice filter is used to rotate the image.
      Change-Id: I65be970af47c7f8de65f6279c922b6b001f62780
  22. 27 Aug, 2012 1 commit
    • David Thompson's avatar
      Fix annotation label placement. · 22e64084
      David Thompson authored
      The previous test did not render the scalar bar with
      an even number of labels and missed a bug in the placement
      for that case; this fixes things and modifies the test
      to include multiple scalar bars with both even and odd
      numbers of labels.
      Change-Id: I09fb46fe7cbd19ec70f12a9969d2455d1453945c
  23. 23 Aug, 2012 1 commit
    • David Thompson's avatar
      Fix warnings and move test. · afff227d
      David Thompson authored
      Moving the `IndexedLookup` test from `Interaction/Widgets` to
      `Rendering/Matplotlib` in order to avoid introducing unwanted
      module dependencies.
      Change-Id: I8a44d822f130a057c6eae03788d72fb5ac1e4365
  24. 16 Aug, 2012 1 commit
  25. 14 Aug, 2012 1 commit
  26. 07 Aug, 2012 1 commit
    • Brad King's avatar
      Do not reference VTK_(SOURCE|BINARY)_DIR from module tests · a6393ad6
      Brad King authored
      The module Testing directories may not refer to VTK_SOURCE_DIR or
      VTK_BINARY_DIR directly since they need to build under the
      Testing/External project outside of VTK.  Since commit 13e19ed9 (Define
      VTK_TEST_OUTPUT_DIR to name Testing/Temporary directory, 2012-04-10) all
      module Testing directories must use VTK_TEST_OUTPUT_DIR to reference
      Testing/Temporary.  Reference the CompareFileMD5.cmake script using a
      relative path within the VTK source tree.
      Change-Id: Ia84e16ff246c5b6b0a05ae1e7e0467a0197e241a
  27. 06 Aug, 2012 1 commit
  28. 04 Aug, 2012 1 commit
  29. 03 Aug, 2012 1 commit
  30. 01 Aug, 2012 1 commit
  31. 31 Jul, 2012 1 commit
    • David C. Lonie's avatar
      Add a vtkMatplotlib module. · c2f54b97
      David C. Lonie authored
      * Isolates python dependency away from MathText
      * Adds tests for MathText functionality.
      Change-Id: Ib0f87248e7f73ead5d1904b72e7053537907bfd1