1. 21 Aug, 2015 1 commit
  2. 03 Dec, 2014 1 commit
  3. 23 Jun, 2014 1 commit
  4. 11 Mar, 2014 1 commit
    • Brad King's avatar
      Set CMake Policies CMP0025 and CMP0042 as necessary · 2ad9f474
      Brad King authored
      CMake 3.0 introduces these policies to improve default behavior on OS X.
      Set them explicitly in VTK to avoid policy warnings.  VTK already works
      with the NEW behavior.
      
      Policy CMP0025 affects the project() command when the Apple Clang
      compiler is used so we need to set it in all the Examples.  Policy
      CMP0042 affects shared libraries on OS X, enabling MACOSX_RPATH by
      default.  Set it in directories where we create libraries.  Also tell
      KWSys to enable MACOSX_RPATH explicitly instead of setting the policy.
      
      Change-Id: I543b60ee1b8f629adb150e01ee83d99dddb66f46
      2ad9f474
  5. 18 Feb, 2014 1 commit
  6. 18 Nov, 2013 1 commit
    • Andrew Maclean's avatar
      Allow the examples to specify what modules to use. · 733ef2dd
      Andrew Maclean authored
      This approach demonstrates good programming practice by only
      linking to the needed modules.
      It also removed the need to set CMP0020 to NEW in all cases
      except those examples that link to Qt.
      
      The include(${VTK_USE_FILE}) has been removed from the
      top-level CMakeLists.txt file as it is unnecessary.
      
      The solution presented here will work with the Examples built
      as a stand-alone folder or within the VTK tree or with the
      individual examples.
      
      They have been tested on Linux, Windows VS2012 Express,
      Mac OS-X 10.9 using Qt5.1.1.
      
      Change-Id: I0572a395b2ebc6630db8c1407f410a584f668a85
      Signed-off-by: Andrew Maclean's avatarAndrew Maclean <andrew.amaclean@gmail.com>
      733ef2dd
  7. 28 Oct, 2013 1 commit
    • Andrew Maclean's avatar
      Eliminating CMP0020 warnings in the examples. · bb20b9df
      Andrew Maclean authored
      If VTK is built with Qt5 and CMake >= 2.8.11 CMP0020 warnings are generated
       in these examples. Setting CMP0020 to new eliminates these warnings.
      
      This warning happens because the examples link to ${VTK_LIBRARIES}
      which, inside the VTK build tree, is all libraries built including
      those that use Qt.  The policy is set as a workaround in these cases.
      
      A future submission will modify these and other examples to just
      use the needed libraries.
      
      Change-Id: Iea460773065ed55880b198eeaeec3da3b711c258
      Signed-off-by: Andrew Maclean's avatarAndrew Maclean <andrew.amaclean@gmail.com>
      bb20b9df
  8. 17 Aug, 2012 1 commit
    • Bill Lorensen's avatar
      ENH: Migrate examples to VTK6 · 1995122e
      Bill Lorensen authored
      1) Add Find_Package(VTK COMPONENTS) for each example dir
      2) Add MAC app support
      3) Use ${VTK_LIBRARIES} for target_link_libraries
      4) Use new signature for add_test
      
      Each set of examples can be built within the VTK bin tree or as
      stand-alone examples.
      
      Change-Id: I6daa126bcc2ed44d827b50954d27f90f394ad4f2
      1995122e
  9. 09 Apr, 2012 1 commit
    • 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
  10. 29 Feb, 2012 1 commit
  11. 03 Oct, 2011 1 commit
  12. 27 Dec, 2009 1 commit
  13. 26 Nov, 2008 1 commit
  14. 19 Apr, 2006 1 commit
  15. 21 Mar, 2006 1 commit
  16. 31 Aug, 2005 3 commits
  17. 30 Aug, 2005 3 commits
    • David Cole's avatar
      ENH: Change pipeline usage pattern (under Examples and */Testing only) from... · fd3c2180
      David Cole authored
      ENH: Change pipeline usage pattern (under Examples and */Testing only) from old style a.SetInput(b.GetOutput()) to a.SetInputConnection(b.GetOutputPort())... Changes were made by automatic replacement via regular expression matching in tcl, py, cxx and java files. Files under Examples (especially tcl and py scripts) need more review since they don't automatically run on any dashboards. Additionally, some SetInput calls may still remain. Reason for making these changes: consistency, to be good examples to people trying to learn the new pipeline.
      fd3c2180
    • Sebastien Barre's avatar
      COMP: add missing Delete · d2da3be7
      Sebastien Barre authored
      d2da3be7
    • Sebastien Barre's avatar
      ENH: remove duplicate · 20b86a5c
      Sebastien Barre authored
      20b86a5c
  18. 28 Aug, 2005 1 commit
  19. 17 Feb, 2005 1 commit
    • Brad King's avatar
      ENH: Setting up build of examples to always be an outside project. An in-tree... · fe7fc7e9
      Brad King authored
      ENH: Setting up build of examples to always be an outside project.  An in-tree build will produce a custom target that builds it as an outside project using ctest --build-and-test.  Once VTK is built the examples will be built.  The output paths are setup to put the examples in the VTK bin directory so DLL builds will work out of the box.
      fe7fc7e9
  20. 15 Feb, 2005 3 commits
  21. 14 Nov, 2003 1 commit
  22. 11 Feb, 2003 1 commit
  23. 24 Dec, 2002 1 commit
  24. 27 Nov, 2002 1 commit
  25. 17 Jul, 2002 1 commit
  26. 25 Jun, 2002 1 commit
  27. 16 Apr, 2002 1 commit
  28. 22 Jan, 2002 1 commit
  29. 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
  30. 02 Nov, 2001 2 commits
  31. 31 Oct, 2001 3 commits