1. 23 Jul, 2013 1 commit
    • Utkarsh Ayachit's avatar
      Fixed regression introduced by a6fa3e37. · f7f82536
      Utkarsh Ayachit authored
      a6fa3e37 changed the logic in vtkWin32OpenGLRenderWindow::CleanUpRenderers().
      That method was used when swithcing from offscreen to onscreen. That resulted in
      the renderers not having correct references to render window after switching
      from offscreen to onscreen context causing dashboard failures on ParaView
      dashboards. This fixes that issue.
      
      Since the a6fa3e37 changed the logic in CreateOffScreenDC() by not using
      CleanUpRenderers() to reset renderers, it makes sence to change the logic in
      ResumeScreenRendering() to not use CleanUpRenderers() for resetting renderers as
      well.
      
      Change-Id: I32e58854fa8720c99212cee5d7a2652f11dc9b21
      f7f82536
  2. 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
  3. 22 Jan, 2013 1 commit
  4. 04 Dec, 2012 1 commit
  5. 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
  6. 16 Oct, 2012 1 commit
    • Frederic TINGAUD's avatar
      Correct Bug #0013522 · 068fe6e4
      Frederic TINGAUD authored
      vtkWin32OpenGLRenderWindow doesn't use multisampling when windows
       is created with a parent.
      
      Change-Id: I59b1c7ab86f82edf1bd96a9d7c8445e4c95e1188
      068fe6e4
  7. 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
  8. 07 Mar, 2012 1 commit
    • Kyle Lutz's avatar
      Fix misspellings in VTK/Rendering · 27fb8a1c
      Kyle Lutz authored
      This fixes a number of misspellings in the comments of
      the source files in VTK/Rendering. The misspellings were
      found using the codespell tool.
      
      Change-Id: Id7b9f02c583cac599568838c378140e0b6a407a7
      27fb8a1c
  9. 27 Jan, 2012 1 commit
  10. 17 Nov, 2011 1 commit
    • Jeff Baumes's avatar
      Adding multisampling support to Windows · 5dfe0f6c
      Jeff Baumes authored
      Following a 2-pass approach for using the newer
      wglChoosePixelFormat API. First we make a dummy window
      in order to have a context. Then we try to use
      wglChoosePixelFormat and delete the dummy window.
      If a suitable pixel format is not found, revert back
      to the older approach of using the GDI ChoosePixelFormat.
      
      Change-Id: Ia366445f4e7192b5045bcf430c5493b7a187ded6
      5dfe0f6c
  11. 21 Sep, 2011 1 commit
  12. 20 Jul, 2011 1 commit
    • David Gobbi's avatar
      BUG: Set renderer's RenderWindow to NULL in RemoveRenderer. · 4720d22a
      David Gobbi authored
      Without this fix, Renderer::GetRenderWindow() returns a dangling pointer
      after vtkRendererer::RemoveRenderer() is called.  This patch also modifies
      the destructors of the RenderWindow subclasses so that they all use the
      same code block to call SetRenderWindow(NULL) on all renderers, and adds
      a check to the vtkRenderWindow destructor to ensure that subclass has
      removed the dangling pointer.
      
      Change-Id: Icbf35cb2e6628b67202620d3dcf562d9f0b48e7d
      4720d22a
  13. 05 Mar, 2011 1 commit
  14. 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
  15. 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
  16. 26 Nov, 2009 1 commit
  17. 02 Jan, 2009 1 commit
  18. 19 Nov, 2008 1 commit
  19. 12 Nov, 2008 1 commit
  20. 29 Oct, 2008 1 commit
  21. 24 Oct, 2008 1 commit
  22. 21 Oct, 2008 1 commit
  23. 14 Oct, 2008 1 commit
  24. 09 Sep, 2008 3 commits
  25. 10 Jan, 2008 1 commit
  26. 21 Dec, 2007 1 commit
  27. 11 Oct, 2007 1 commit
  28. 02 Oct, 2007 1 commit
  29. 14 Sep, 2007 1 commit
  30. 03 Sep, 2007 1 commit
  31. 24 Aug, 2007 1 commit
  32. 15 Aug, 2007 1 commit
    • David Cole's avatar
      BUG: Fix bug 1953: replace strstream use with stringstream now that kwsys... · 4d9d3cb1
      David Cole authored
      BUG: Fix bug 1953: replace strstream use with stringstream now that kwsys provides stringstream on all platforms. Many thanks to Sean McBride and Mathieu Coursolle from Rogue Research for all their effort developing the patch (and patience in waiting for its commit...!). COMP: Eliminate performance warning in generated Java wrappers regarding jboolean cast to bool. ENH: Exclude Java and Python wrappers (in addition to already excluded Tcl wrappers) from coverage analysis.
      4d9d3cb1
  33. 23 Jan, 2007 1 commit
  34. 22 Jan, 2007 1 commit
  35. 21 Jan, 2007 1 commit
  36. 17 Jan, 2007 1 commit
  37. 15 Jan, 2007 1 commit