1. 29 Oct, 2013 1 commit
  2. 04 Jun, 2013 1 commit
    • 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
      47b6fa6e
  3. 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
  4. 09 Apr, 2013 1 commit
    • 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
      configurations.
      
      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
      55cb7e11
  5. 25 Mar, 2013 1 commit
  6. 22 Mar, 2013 1 commit
    • Kathleen Biagas's avatar
      Fix vtkTextActor to prevent truncation of text. · 566abbe1
      Kathleen Biagas authored
      Add Fudge factor to the texture coordinates to prevent the top
      row of pixes from being truncated on some systems.
      
      Added actor to TestMathTextFreeTypeTextRenderer and
      TestMathTextFreeTypeTextRendererNoMath that demonstrates issue.
      
      Change-Id: Ib55c39583be3dfe946128d9d8ab6536ec32f07c0
      566abbe1
  7. 25 Jan, 2013 1 commit
  8. 13 Dec, 2012 1 commit
    • David C. Lonie's avatar
      Port vtkTextActor to use vtkTextRenderer. · d17c39aa
      David C. Lonie authored
      The MathTextActor is updated too, since it used the FTUtilities class
      cached by TextActor. I plan to remove the MathTextActor classes completely,
      since their functionality is redundant once TextActors are using
      TextRenderer.
      
      Change-Id: I098a02ac5e55c1ce31423c1268fb4db2e2b5bb1f
      d17c39aa
  9. 24 Sep, 2012 1 commit
  10. 05 Sep, 2012 1 commit
  11. 29 Aug, 2012 1 commit
    • Berk Geveci's avatar
      Updated and cleaned up dependencies. · 19078f64
      Berk Geveci authored
      Previous change cause many complication errors because Rendering
      no longer automatically brings in IO modules. Manually added IO
      dependencies where it makes senses and removed the IO dependency
      otherwise.
      
      Change-Id: I4412112d9644e18a32e4285b1f34b161b06e1184
      19078f64
  12. 28 Aug, 2012 1 commit
    • David C. Lonie's avatar
      Clean up vtkTextActor and reuse more of it in vtkMathTextActor. · f5269a91
      David C. Lonie authored
      vtkTextActor changes:
      * Replace this->vtkActor2D:: with this->Superclass::
      * Abstract image renderering and bounding box calculation to protected
        virtuals
      * Copy Input string during shallow copy.
      * Implement GetBounds()
      * Add Input to PrintSelf output
      
      vtkMathTextActor changes:
      * Add a FallbackText member that will be rendered by FreeTypeUtilities
        if MathText support is unavailable.
      * Removed a large amount of code that was copied/reimplemented from
        vtkTextActor.
      * Implement new virtuals from vtkTextActor that render MathText if
        possible, otherwise render fallback text.
      
      Change-Id: Ibb7aa51ec46e7778b9535dd62a00d7ef9395cd8c
      f5269a91
  13. 21 Aug, 2012 1 commit
  14. 31 Jul, 2012 1 commit
    • David C. Lonie's avatar
      Update vtkGL2PSExporter, add Rendering/GL2PS module · 82e58fc1
      David C. Lonie authored
      * Fixed bitmap rasterization.
      * Added ability to exclude specific 3D props from the rasterization
        process, if enabled.
      * Improved support for text rendering.
      * Added method to vtkRenderWindow to collect all visible
        vtkActor2D objects that are vtk[Math]TextActors or use a
        vtkTextMapper.
      * Add support for Context2D drawings
      * Add CMake/CompareFileMD5.cmake script to compare postscript files
      * Remove old GL2PSExporter python test
      * Modify gl2ps sources to disable writing timestamps (prevents
        useful MD5 hashing for regression tests)
      * A static string is used as the image title by default.
      * Add vtkGL2PSUtilities, a collection of static functions that
        interact with GL2PS to render vtk objects.
      * Add a gl2psGetFileFormat() function to the bundled gl2ps library.
      
      Change-Id: Ia6fafc8e4d0a49bd9fdbecf32f43925a0aab7050
      82e58fc1
  15. 18 Jun, 2012 1 commit
    • David C. Lonie's avatar
      BUG 0012898. Fix texture coordinates for vtkTextActor. · db5ad99a
      David C. Lonie authored
      This patch undoes the fix for bug 12898. The texture coordinate
      fix was coincidental, the real issue was an improperly calculated
      bounding box, which was fixed in 5fff9333. This patch also fixes
      issues with rotated text and other cases where bbox_text[0] < 0.0.
      
      This patch has been tested against Paraview and the issue with
      clipped text has indeed been fixed by 5fff9333.
      
      Change-Id: If0496e90a4ddce6329cbde300792e23096d25455
      db5ad99a
  16. 09 Apr, 2012 1 commit
    • VTK Developers's avatar
      Modularize VTK tree layout · cdd4d6fd
      VTK Developers authored
      Move source files from their former monolithic VTK location to their new
      location in modular VTK without modification.  This preserves enough
      information for "git blame -M" and "git log --follow" to connect
      modularized VTK files to their original location and history.
      
      Co-Author: Marcus D. Hanwell <marcus.hanwell@kitware.com>
      Co-Author: Chris Harris <chris.harris@kitware.com>
      Co-Author: Brad King <brad.king@kitware.com>
      Co-Author: Nikhil Shetty <nikhil.shetty@kitware.com>
      cdd4d6fd
  17. 06 Mar, 2012 1 commit
  18. 19 Sep, 2011 1 commit
    • Berk Geveci's avatar
      Replace SetInput etc. with SetInputData etc. · 4ea36770
      Berk Geveci authored
      Since the behaviour of SetInput changed - it no
      longer connects the pipeline but sets up the data
      object as the input -, it was decided to rename
      it to SetInputData. This includes similar methods
      such as AddInputData. This commit makes on
      sweeping change that compiles.
      4ea36770
  19. 23 Jan, 2011 1 commit
  20. 20 Jan, 2011 1 commit
  21. 18 Jan, 2011 1 commit
  22. 06 Jan, 2011 1 commit
  23. 20 May, 2010 1 commit
    • Mark Olesen's avatar
      Remove vtk(Cxx|Type)RevisionMacro · ecbbf7f7
      Mark Olesen authored
      The CVS $Revision$ keyword replacement will no longer maintain these
      macros automatically.  They were used only to implement CollectRevisions
      and vtkObjectBase::PrintRevisions, an API that was never used.
      
      Automated as follows:
      
        pass 0:
        catch templates
        ---------------
        $ git grep 'vtk\(Cxx\|Type\)RevisionMacro' | grep '<'
      
        pass 1:
        main changes
        ---------------
        $ git grep -l '^vtkCxxRevisionMacro' | while read file; do
          echo "$file" 1>&2
          perl -i -ne 'print unless (/^vtkCxxRevisionMacro/ and /\)/)' $file
        done
        $ git grep -l -e 'vtkTypeRevisionMacro(' | while read file; do
          echo "$file" 1>&2
          perl -i -pe 's/vtkTypeRevisionMacro/vtkTypeMacro/g' $file
        done
      
        pass 2:
        verify
        ---------------
        $ git grep 'vtk\(Cxx\|Type\)RevisionMacro'
      
      Fixed multi-line vtkCxxRevisionMacro and templates by hand.
      ecbbf7f7
  24. 23 Apr, 2010 1 commit
    • Mark Olesen's avatar
      Remove vtk(Cxx|Type)RevisionMacro · 19c55e0e
      Mark Olesen authored
      The CVS $Revision$ keyword replacement will no longer maintain these
      macros automatically.  They were used only to implement CollectRevisions
      and vtkObjectBase::PrintRevisions, an API that was never used.
      
      Automated as follows:
      
        pass 0:
        catch templates
        ---------------
        $ git grep 'vtk\(Cxx\|Type\)RevisionMacro' | grep '<'
      
        pass 1:
        main changes
        ---------------
        $ git grep -l '^vtkCxxRevisionMacro' | while read file; do
          echo "$file" 1>&2
          perl -i -ne 'print unless (/^vtkCxxRevisionMacro/ and /\)/)' $file
        done
        $ git grep -l -e 'vtkTypeRevisionMacro(' | while read file; do
          echo "$file" 1>&2
          perl -i -pe 's/vtkTypeRevisionMacro/vtkTypeMacro/g' $file
        done
      
        pass 2:
        verify
        ---------------
        $ git grep 'vtk\(Cxx\|Type\)RevisionMacro'
      
      Fixed multi-line vtkCxxRevisionMacro and templates by hand.
      19c55e0e
  25. 13 Nov, 2008 1 commit
  26. 22 Aug, 2008 1 commit
  27. 19 May, 2008 2 commits
  28. 16 Jun, 2008 1 commit
  29. 23 Feb, 2008 1 commit
  30. 09 Jul, 2007 1 commit
  31. 27 Jun, 2007 1 commit
  32. 10 May, 2007 2 commits
  33. 05 Mar, 2007 1 commit
  34. 10 Feb, 2007 1 commit
  35. 02 Nov, 2006 1 commit
  36. 23 May, 2006 1 commit
  37. 19 May, 2006 1 commit
  38. 30 Mar, 2006 1 commit