1. 18 Dec, 2014 1 commit
  2. 08 Oct, 2014 1 commit
    • David Gobbi's avatar
      Reduce code duplication for Start() method. · 5dbbc8e9
      David Gobbi authored
      All the interactor subclasses had duplicated code in their Start()
      methods, so I moved the common code into the superclass, and made a
      new protected method called StartEventLoop() that contains all of
      the OS-specific code.
      
      Change-Id: Ib710fad013aa9400d21241cf285c23b4a6cdad9f
      5dbbc8e9
  3. 07 Oct, 2014 1 commit
    • David Gobbi's avatar
      Remove InstallMessageProc flag from OS X interactors. · abad5e11
      David Gobbi authored
      This flag has never been used by these interactors, it is only there
      as the result of a lazy copy-and-paste when these classes were created
      using the vtkWin32RenderWindowInteractor as boilerplate code.
      
      Change-Id: I29893d60697302198b1429f69e2af77f53881e01
      abad5e11
  4. 12 Sep, 2014 1 commit
    • David Gobbi's avatar
      Interpret OS X Command key as Ctrl instead of Alt. · e27035d8
      David Gobbi authored
      After this change, VTK apps that map the Ctrl modifier to actions
      will be more intuitive on OS X, since OS X users use the Command
      key the same way that Windows and Linux users use the Ctrl key.
      
      Change-Id: Iee77d7ba2541276ddf164c708bf18be2601eed05
      e27035d8
  5. 10 Sep, 2014 1 commit
  6. 30 May, 2014 1 commit
  7. 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
  8. 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
  9. 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
  10. 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
  11. 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
  12. 12 Jan, 2010 1 commit
  13. 02 Apr, 2007 1 commit
  14. 29 Mar, 2007 1 commit
  15. 08 Feb, 2007 1 commit
  16. 30 Oct, 2006 1 commit
  17. 30 Mar, 2006 1 commit
    • David Cole's avatar
      ENH: Implement the Carbon and Cocoa platform specific versions of... · 778ea03d
      David Cole authored
      ENH: Implement the Carbon and Cocoa platform specific versions of InternalCreateTimer and InternalDestroyTimer. Change parent class comparisons involving platformTimerId to use strictly zero/non-zero comparisons as platform specific timer ids may be pointers... 0 is 'the invalid timerId' for both platformTimerId and vtkTimerId. Change GetDuration to return unsigned long since all the duration parameters are unsigned long.
      778ea03d
  18. 07 Aug, 2005 1 commit
  19. 27 Sep, 2004 1 commit
  20. 20 Sep, 2004 1 commit
  21. 19 Aug, 2004 1 commit
  22. 14 Nov, 2003 1 commit
  23. 22 Aug, 2002 1 commit
  24. 16 May, 2002 1 commit
  25. 22 Jan, 2002 1 commit
  26. 04 Jan, 2002 1 commit
    • Brad King's avatar
      ENH: Three sweeping changes. · 12947cd1
      Brad King authored
      1.) vtkTypeRevisionMacro is now used in all VTK classes in place of
          vtkTypeMacro.  It invokes the original vtkTypeMacro and then adds
          a protected CollectRevisions method for future use in serialization.
          A corresponding vtkCxxRevisionMacro has been added to every .cxx file
          to implement the CollectRevisions method for each class.  This will
          allow collection of every class revision at run time.  Any new VTK class
          should use vtkTypeRevisionMacro instead of vtkTypeMacro.  The .cxx
          implementation should then have the following line:
            vtkCxxRevisionMacro(vtkFoo, "$Revision: 1.1 $");
          CVS should insert the correct revision number when the class is commited.
      
      2.) vtkTypeMacro now also adds a typedef called "Superclass" to refer to
          the superclass of any VTK class.  All PrintSelf methods have been
          updated to call their superclass's PrintSelf like this:
            this->Superclass::PrintSelf(os,indent);
          This should reduce the number of places that refer to a superclass
          by its actual name.
      
      3.) The standard ::New() method implementation has been replaced with a
          macro.  Instead of an explicitly written implementation to try the
          object factory and then call the new operator, VTK classes should
          instead use the following macro unless they have a special New() method:
            vtkStandardNewMacro(vtkFoo);
          This will implement the New() method in the standard way.  The line
          should appear in the .cxx implementation file, not in the header.
          Using the macro will make it easier to change the standard
          implementation of the method.
      
      Also removed tabs from many files.
      12947cd1
  27. 11 Oct, 2001 2 commits
  28. 03 Oct, 2001 1 commit
  29. 10 Aug, 2001 1 commit
  30. 26 Apr, 2001 1 commit
    • Ken Martin's avatar
      Start new source tree layout · 76f478a8
      Ken Martin authored
      A new CVS repository was created on 2001-04-26 to fork VTK during
      transition to a new source tree layout.  The new repository was created
      using server-side symlinks referencing files in the original repository
      to preserve per-file history.  This commit was manufactured during
      conversion from CVS to represent the fork as a branch.
      76f478a8
  31. 10 Dec, 2000 1 commit
  32. 12 Nov, 2000 1 commit
  33. 05 Oct, 2000 1 commit
  34. 06 Sep, 2000 1 commit
    • David Gobbi's avatar
      ENH: New vtkRenderWindowInteractor methods: · cf9fceb2
      David Gobbi authored
           HideCursor()/ShowCursor()  -- hide or show the mouse cursor
      ENH: New vtkInteractorStyle methods:
           OnKeyPress()/OnKeyRelease() -- these provide an ascii char as well
                                          as a Tk-style keysym string
      cf9fceb2
  35. 01 Sep, 2000 1 commit
  36. 17 Jul, 2000 1 commit
  37. 28 Apr, 2000 1 commit