1. 23 Sep, 2016 2 commits
    • Kitware Robot's avatar
      Reindent using the reindentation script. · f830ff47
      Kitware Robot authored
      This commit reindents the code with the following utility:
      Utilities/Maintenance/vtk-reindent-code.py
      
      This utility changes the positions of the braces so that they are no
      longer indented relative to the code block they reside in.
      
      The bash command line used was the following:
      
      for d in Charts Common Deprecated Domains Examples Filters GUISupport \
               Geovis IO Imaging Infovis Interaction Parallel Rendering \
               Testing Views Web Wrapping; do
        for e in cxx cxx.in txx txx.in hxx hxx.in h h.in c c.in; do
          find "${d}" -name "*.${e}" -exec \
            python Utilities/Maintenance/vtk_reindent_code.py {} +
        done
      done
      f830ff47
    • David E. DeMarle's avatar
      replace VTK's nonstandard Doxygen with standard markup · 6a7e5148
      David E. DeMarle authored
      generated via:
      cd $VTKSRC
      perl Utilities/Doxygen/doc_header2doxygen.pl --to ~/tmp/vtkheaders .
      cp -r ~/tmp/vtkheaders/* .
      6a7e5148
  2. 07 Jul, 2016 2 commits
    • Sean McBride's avatar
      Applied VTK_DELETE_FUNCTION to many constructors · 1853e030
      Sean McBride authored
      vtk(.*)\(const vtk\1&\);\s*//\s*Not implemented[\.]*
      to
      vtk\1(const vtk\1\&) VTK_DELETE_FUNCTION;
      
      vtk(.*)\(const vtk\1 &\);\s*//\s*Not implemented[\.]*
      to
      vtk\1(const vtk\1 \&) VTK_DELETE_FUNCTION;
      
      vtk(.*)\( const vtk\1 & \);\s*//\s*Not implemented[\.]*
      to
      vtk\1( const vtk\1 \& ) VTK_DELETE_FUNCTION;
      
      vtk(.*)\( const vtk\1& \);\s*//\s*Not implemented[\.]*
      to
      vtk\1( const vtk\1\& ) VTK_DELETE_FUNCTION;
      
      vtk(.*) \(const vtk\1&\);\s*//\s*Not implemented[\.]*
      to
      vtk\1 (const vtk\1\&) VTK_DELETE_FUNCTION;
      1853e030
    • Sean McBride's avatar
      Applied VTK_DELETE_FUNCTION for operator= · 2d0e11ef
      Sean McBride authored
      (operator\s*=.*);\s*//\s*Not\s*implemented[\.]*
      to
      \1 VTK_DELETE_FUNCTION;
      
      After that, this finds basically nothing:
      
      operator.*implemented
      
      then manually reverted changed files in VPIC and KWSys folders.
      2d0e11ef
  3. 08 Mar, 2016 1 commit
  4. 24 Aug, 2015 1 commit
  5. 18 Dec, 2014 1 commit
  6. 16 Sep, 2014 1 commit
  7. 30 May, 2014 1 commit
  8. 14 Feb, 2014 1 commit
    • Sean McBride's avatar
      Various Cocoa improvements and fixes · a3e9fc90
      Sean McBride authored
      Changed behaviour of vtkCocoaRenderWindowInteractor::TerminateApp().
      It used to do one of two things: 1) terminate the application completely,
      or 2) close the NSWindow and stop the event loop.  Now it never closes
      the NSWindow, never terminates the application, and always stops the
      event loop.  Start() and TerminateApp() are now pairs, which is how other
      platforms already behave.  Also refactored NSApplication runloop
      starting/stopping code into static functions that do only that.  Makes
      more sense since there is only one event loop, there doesn't need to be
      an association with any class or instance.  Thanks to Pat Marion for
      reporting this problem and creating a patch.
      
      Changed of behaviour observing for NSWindow closing.  First, moved the
      private vtkCocoaServer class from vtkCocoaRenderWindowInteractor to
      vtkCocoaRenderWindow.  Its job is to observe window closing.  Since
      vtkCocoaRenderWindow creates the NSWindow, it make more sense there.
      We were previously careful to only observe NSWindows created by VTK,
      but are now also careful to *stop* observing only those same windows,
      whereas previously there was an outside chance of stopping observation
      of all window closes, which is something a library should not do
      (who knows what else the application is doing).  Now when an observed
      NSWindow closes, we no longer stop the event loop, but merely remove
      our reference to it.
      
      Changed vtkCocoaRenderWindow::SetWindowName() to interpret its char*
      string parameter as UTF8 instead of ASCII.
      
      Fixed possible memory leaks in ~vtkCocoaRenderWindow.
      
      Replaced most invocations of 'autorelease' in favour of 'release'.
      The motivation being that VTK, as a library, might sometimes be called
      before an autorelease pool is even setup, so better to avoid autoreleased
      objects as much as possible.
      
      Fixed some whitespace and coding conventions
      (asterisk positioning, constness, etc.)
      
      Change-Id: I5a5d410012980ee9f6c637c340e98e3daa5aee74
      a3e9fc90
  9. 23 Sep, 2013 1 commit
  10. 08 Jul, 2013 1 commit
    • Burlen Loring's avatar
      OpenGL error hunt · a6fa3e37
      Burlen Loring authored
      This patch implements OpenGL error checking in VTK.
      
      OpenGL's error handling implementation error is designed such
      that internal error flags remain set with the first error that
      occurred until they are explicitly checked. With this design
      it's important to check and clear the error flags regularly
      else they become unusable as code checking for errors ends
      up reporting earlier undetected unrelated errors.
      
      This patch takes the following approach:
      
      1) at public entry points into code that uses OpenGL clear the
      error flags without reporting errors. This guards against
      reportinig unrealted errors, such as those caused by code
      outside of VTK. See vtkOpenGLClearErrorMacro
      
      2) before returning from functions that made OpenGL calls check
      for and report OpenGL errors. This detects Open GL errors in the
      function/method where they occurred facilitating debugging and it
      clears error flags so that user code doesn't detect errors caused
      by VTK. See vtkOpenGLCheckErrorMacro
      
      This patch cleans up a number of bugs that were detected by
      the new error checking and reporting.
      
      This patch also contains improvements for OpenGL pixel buffers, a
      renderbuffer object, and fast paths through framebuffer objects,
      and texture objects, and fast path for setting uniform variables,
      all of which are needed in vtkSurfaceLICPainter and
      vtkLineIntegralConvolution2D GPGPU code.
      
      Change-Id: I4ecefe9a444a74128bf73ef2ddfd5d4acea387ec
      a6fa3e37
  11. 20 Dec, 2012 1 commit
  12. 20 Nov, 2012 1 commit
    • Joachim Pouderoux's avatar
      Add bool IntializeFromCurrentContext() method to vtkRenderWindow. · 2eb0792e
      Joachim Pouderoux authored
      This new method allows to associate a vtkRenderWindow to an existing
      and currently activated OpenGLContext. The window and associated ids
      are fetched by analyzing the context properties.
      For now, the implementation has been successfully tested on
      Windows & Linux.
      This new method is used to initialize a RenderWindow from a Java SWT
      GLCanvas component.
      
      Change-Id: Ia08b7df58a964a93c265d89ebe7b1316e605ee10
      2eb0792e
  13. 13 Nov, 2012 1 commit
    • Sean McBride's avatar
      misc code review of VTK Cocoa code. · 6c4ac2be
      Sean McBride authored
      Renamed Obj-C ivars to start with underscore, per convention. Got rid of 10.5 era workaround. Updated some comments, especially wrt ARC memory management. Fixed some white space. All minor stuff.
      
      Change-Id: Ib1283176980d70ee5c25a43b754ec558fc47a7a4
      6c4ac2be
  14. 09 Apr, 2012 3 commits
    • VTK Developers's avatar
      Remove trailing whitespace from all source files · 2d323fc4
      VTK Developers authored
      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
      Include module-wide headers and export macros · 144f03ca
      VTK Developers authored
      Include the module-wide header from every header in each module.
      Reference the export/visibility macro for the module.
      
      Co-Author: Marcus D. Hanwell <marcus.hanwell@kitware.com>
      Co-Author: Chris Harris <chris.harris@kitware.com>
      144f03ca
    • 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
  15. 11 Feb, 2012 1 commit
  16. 26 Jan, 2012 1 commit
  17. 29 Jun, 2011 1 commit
    • David Gobbi's avatar
      ENH: Partially implement full screen for Snow Leopard. · 46fd48a8
      David Gobbi authored
      This patch allows full screen in Cocoa, but only if FullScreen is
      set before the window is created.  The fullscreen window does not
      automatically get focus, you must click on it before it receives
      keyboard events.
      
      Change-Id: Ia7d641b7a0a77c4d1905ab8ed2cb72fa7306d63c
      46fd48a8
  18. 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
  19. 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
  20. 14 Dec, 2009 1 commit
  21. 14 Aug, 2009 1 commit
    • Sean McBride's avatar
      BUG: 7818: changed vtkCocoaRenderWindow to match other RenderWindow... · 9d4bf1ae
      Sean McBride authored
      BUG: 7818: changed vtkCocoaRenderWindow to match other RenderWindow implementations wrt its implementation of SetWindowId, SetDisplayId, and SetRootWindow. If you previously used Set/GetWindowId now use Set/GetRootWindow (for an NSWindow); Set/GetDisplayId becomes Set/GetWindowId (for an NSView); Set/GetDisplayId now does nothing. This change makes it more consistent with other classes and simplifies switching between Qt 4.5 (Cocoa based) and older versions (Carbon based).
      9d4bf1ae
  22. 22 Jan, 2009 1 commit
  23. 02 Jan, 2009 2 commits
  24. 12 Nov, 2008 1 commit
  25. 01 May, 2008 1 commit
  26. 30 Apr, 2008 1 commit
    • Sean McBride's avatar
      BUG: made the NSOpenGLPixelFormat accessor public instead of private, added... · aa0b6b86
      Sean McBride authored
      BUG: made the NSOpenGLPixelFormat accessor public instead of private, added header to define new 10.5 64 bit compatibility types in case of older SDK, changed casts to 'float' to casts to 'CGFloat' for better 64 bit support, fixed serious memory management problem that caused crash if VTK was built as GC-supported and used in a non-GC app.
      aa0b6b86
  27. 20 Nov, 2007 1 commit
  28. 30 May, 2007 1 commit
  29. 02 Apr, 2007 1 commit
  30. 29 Mar, 2007 1 commit
  31. 08 Feb, 2007 1 commit
  32. 30 Oct, 2006 1 commit
  33. 26 Oct, 2006 1 commit
  34. 20 Oct, 2006 2 commits