1. 30 Dec, 2012 1 commit
  2. 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
      10ff04a8
  3. 19 Dec, 2012 2 commits
  4. 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
      dimensions.
      
      Change-Id: Ic74b0dd9573d336427038985c671a8b724c92429
      6dd7b574
    • 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
      5c14d896
  5. 28 Nov, 2012 1 commit
  6. 27 Nov, 2012 1 commit
  7. 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
      e1a03c70
  8. 01 Oct, 2012 2 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
      85752e97
    • Dave DeMarle's avatar
      Fix -Wnarrowing compilation warnings. · d9ab6e3f
      Dave DeMarle authored
      Change-Id: I0ed7c091a7fe50c5afde9e5c70b5aa71144917fd
      Specifically:
      warning: narrowing conversion of 'cols' from 'long int' to 'double' inside { } is ill-formed in C++11
      d9ab6e3f
  9. 10 Sep, 2012 1 commit
  10. 30 Aug, 2012 1 commit
  11. 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
      ee51878e
  12. 14 Aug, 2012 1 commit
  13. 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
      c2f54b97