1. 19 Sep, 2016 2 commits
  2. 19 Aug, 2016 1 commit
    • Bill Lorensen's avatar
      ENH: Introduce vtkMTimeType · 9333d9d1
      Bill Lorensen authored
      This is a fix for:
      #14310
      
      Windows applications that run for a long time report that rendered
      objects do not change. This is because the modified time on a Windows
      system is 32 bits. This causes overflows that defeat the modified time
      mechanism. This patch defines a new type, vtkMTimeType that is 64
      unsigned integer regardless of the architecture.
      
      A mechanism to provide backward compatibility is introduced. The
      preprocessor define "VTK_HAS_MTIME_TYPE" can be used in applications
      that must build against VTK versions that use the "unsigned long" type
      for MTime's.
      
      Methodology used to find MTime occurences:
      1) Identify files as follows:
         git grep "unsigned long" | grep ime | cut -d":" -f1,1 | sort | uniq
      2) Hand edit each of those files replacing "unsigned long" with
         "vtkMTimeType" where appropriate.
      3) Temporarily change typedef for vtkMTimeType to "double" to detect
         missing conversions
      9333d9d1
  3. 06 May, 2016 1 commit
    • David C. Lonie's avatar
      Replace SafeDownCast calls on arrays with vtkArrayDownCast. · 0d71a308
      David C. Lonie authored
      SafeDownCast performs a series of virtual calls and string comparisons,
      which is quite slow, especially when used in worker functions.
      
      vtkArrayDownCast will switch between SafeDownCast and the more
      efficient FastDownCast (only available for common vtkAbstractArray
      subclasses) depending on whether or not FastDownCast is defined for
      the specific array type.
      0d71a308
  4. 12 Apr, 2016 1 commit
    • Max Smolens's avatar
      vtkTextMapper: fix rendering of empty string · 5dcad978
      Max Smolens authored
      vtkTextMapper improperly renders empty strings. Instead of rendering nothing, as
      expected for an empty string, a rectangle is rendered. The rectangle is visible
      only when the text property's background is not completely transparent.
      
      This commit fixes the problem at two levels: in vtkFreeTypeTools and in
      vtkTextMapper.
      
      vtkFreeTypeTools now checks for an empty string when rendering to an image.
      Without this check, rendering an empty string results in the small rectangle.
      
      vtkTextMapper::RenderOverlay() is updated to handle the case of an empty image.
      This also serves as a revised solution to #15787:
      http://www.vtk.org/Bug/view.php?id=15787
      
      Fixes #16071:
      http://www.vtk.org/Bug/view.php?id=16071
      5dcad978
  5. 08 Mar, 2016 1 commit
  6. 07 Jan, 2016 1 commit
    • Ken Martin's avatar
      Fix some coverity issues · 69bafcd8
      Ken Martin authored
      Fix a bunch of issues reported by coverity that seemed
      fairly stright forward and related to rendering
      69bafcd8
  7. 21 Oct, 2015 1 commit
  8. 06 Oct, 2015 1 commit
  9. 01 Jun, 2015 1 commit
  10. 14 May, 2015 1 commit
  11. 09 Apr, 2015 1 commit
    • David C. Lonie's avatar
      Update vtkTextMapper's alignment to match current conventions. · 9175559c
      David C. Lonie authored
      I missed this when I was updating the text actors to better support
      rotations + alignments. Basically, now we anchor the texture's image
      extent index <0, 0, 0> to the mapper/actor's position to get "proper"
      alignment.
      
      Also add a bit to ensure that this is exported properly by GL2PS and
      prevent errors from converting NULL to std::string.
      
      These features are tested by a test added in a later patch, in this
      branch, as the other TextMapper implementation is still used by default
      at this point.
      9175559c
  12. 22 Jan, 2015 2 commits
    • Ken Martin's avatar
      Fix a compiler warning · 427694b7
      Ken Martin authored
      Change-Id: Id9428264d4ce0d660141912ca82d027f0510c2e5
      427694b7
    • Ken Martin's avatar
      Use MCDCMatrix in shaders · 2577188a
      Ken Martin authored
      A few changes here. The motivation is to support using the MCDCMatrix
      in the vertex shader where possible. This has the advantage of
      performing the MCVC x VCDC multiplication in double precision
      on the CPU as opposed to float precision on the shader. This fixes
      a couple test failures.
      
      Along with that change cleanup a bit how we determine what uniforms
      to set. There were some uniforms being set when they did not exist
      in the program. Provided a more general approach for passing that
      type of information between the code that builds the shader program
      and the code that sets the uniforms.
      
      Add a substitute helper function that does the same job as replace
      but returns a bool if a replacement was made. Also operates on
      the source string by reference.
      
      make a more generic way for texture units to be passed to a mapper.
      
      Cleaned up some long lines to be shorter.
      
      Change-Id: I7f8cbc4892e57cd4c3bed11d497940d1f2a7c63b
      2577188a
  13. 29 Oct, 2013 1 commit
  14. 27 Sep, 2013 2 commits
  15. 26 Sep, 2013 1 commit
  16. 24 Sep, 2013 1 commit
    • David C. Lonie's avatar
      Implement vtkTextMapper using vtkTextRenderer. · 8707ec0c
      David C. Lonie authored
      This patch consolidates the existing vtkTextMapper implementation
      into the vtkOpenGLFreeTypeTextMapper class (aside from a few bits
      of public API), and makes vtkTextMapper a concrete implementation
      that uses the vtkTextRenderer interface. This allows newer
      functionality, such as unicode and MathText, to be used from
      vtkTextMappers.
      
      Existing code will not benefit from the change as long as the
      vtkRenderingFreeTypeOpenGL library is linked -- in such cases
      the old implementation will be constructed by the object factory
      and used.
      
      To use the newer implementation, do not link the above library, or
      remove the override it provides using the pattern shown at the start
      of the new TestFreeTypeTextMapper tests.
      
      Change-Id: I5ce46d76acf135521b95a749cca6f11e02005801
      8707ec0c
  17. 01 Aug, 2013 1 commit
    • Sean McBride's avatar
      Conservative elimination of !null checks before 'delete' · 8812203b
      Sean McBride authored
      C++ guarantees that delete 0 and delete [] 0 do nothing.
      Older buggy compilers that didn't honour this are no longer
      supported by VTK.  Conservatively removed many "if (!ptr)"
      checks before using delete in /Common.
      
      Change-Id: I451f353ba57487432904487d61107cf7bb818b8e
      8812203b
  18. 10 May, 2012 1 commit
    • Marcus D. Hanwell's avatar
      Port RenderingCore classes to use new new macros · 2627d9ed
      Marcus D. Hanwell authored
      This will need to be done for all classes using the old CreateInstance
      methods on the custom kit factories that remain outside. Removed the
      vtkImagingFactory class as it is no longer required.
      
      Change-Id: I3a510fc213d63ae923f1f6c1e459f0f48f796b6b
      2627d9ed
  19. 29 Apr, 2012 1 commit
    • Marcus D. Hanwell's avatar
      Moving the text mapper and property to core · ed1b9443
      Marcus D. Hanwell authored
      The vtkTextMapper and vtkTextProperty are not FreeType specific, and
      introduce no additional dependencies on core. It may be desirable in the
      future to implement alternative text rendering strategies that are
      independent of FreeType and these classes would be the base.
      
      Change-Id: Ice1fab84e231b445af50a4299d736a8924674d00
      ed1b9443
  20. 28 Apr, 2012 1 commit
  21. 09 Apr, 2012 2 commits
    • VTK Developers's avatar
      Remove trailing whitespace from all source files · 2d323fc4
      VTK Developers authored and Brad King's avatar Brad King committed
      Exclude ThirdParty, Utilities/MetaIO, and Utilities/KWSys as these
      are maintained outside VTK.
      
      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>
      2d323fc4
    • VTK Developers's avatar
      Modularize VTK tree layout · cdd4d6fd
      VTK Developers authored and Brad King's avatar Brad King committed
      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
  22. 20 May, 2010 1 commit
    • Mark Olesen's avatar
      Remove vtk(Cxx|Type)RevisionMacro · ecbbf7f7
      Mark Olesen authored and Brad King's avatar Brad King committed
      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
  23. 23 Apr, 2010 1 commit
    • Mark Olesen's avatar
      Remove vtk(Cxx|Type)RevisionMacro · 19c55e0e
      Mark Olesen authored and Brad King's avatar Brad King committed
      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
  24. 23 Feb, 2008 1 commit
  25. 07 Feb, 2008 1 commit
  26. 03 Jul, 2006 1 commit
  27. 24 Nov, 2003 1 commit
  28. 14 Nov, 2003 1 commit
  29. 22 Aug, 2003 1 commit
  30. 17 Jan, 2003 1 commit
  31. 13 Nov, 2002 1 commit
  32. 11 Nov, 2002 1 commit
  33. 15 Aug, 2002 1 commit
  34. 01 Aug, 2002 1 commit
  35. 23 Jul, 2002 1 commit
  36. 01 Jul, 2002 1 commit