1. 08 Jun, 2016 1 commit
  2. 08 Mar, 2016 1 commit
  3. 21 Dec, 2015 1 commit
    • David Gobbi's avatar
      Apply doxygen class docs to python wrapping. · 9df72c1f
      David Gobbi authored
      Previously, the class docstrings were generated from the .SECTION commands
      in the file documentation.  Now, the doxygen class documentation will be
      used if they are present and the .SECTION commands are absent.
      9df72c1f
  4. 26 Sep, 2015 1 commit
  5. 22 Sep, 2015 1 commit
    • David Gobbi's avatar
      Wrap many more classes with python. · e6f75b9a
      David Gobbi authored
      This makes the python wrappers ignore WRAP_EXCLUDE, and instead use
      the new property WRAP_EXCLUDE_PYTHON that excludes fewer classes.
      The WRAP_SPECIAL flag, which used to act as a whitelist for python,
      has been removed.
      
      Because this change causes classes to be wrapped in python by default,
      some third-party VTK packages might break until they modify their own
      CMakeLists.txt files to add WRAP_EXCLUDE_PYTHON where necessary.
      e6f75b9a
  6. 06 Aug, 2015 1 commit
  7. 28 Jul, 2015 1 commit
  8. 27 Jul, 2015 1 commit
  9. 26 Jul, 2015 3 commits
    • David Gobbi's avatar
      Simplify PyVTKClass struct by removing vtk_mangle. · d0d6e833
      David Gobbi authored
      The vtk_mangle member was exactly the same as the python name for
      the class, so it can be retrieved from the PyTypeObject.  I also
      renamed the vtk_cppname member to vtk_name and renamed its attrib
      to __vtkname__.  This attrib is what the VTK GetClassName() method
      returns.
      d0d6e833
    • David Gobbi's avatar
      Make python enum type objects static. · 41c65801
      David Gobbi authored
      This was the last generated type object that was exported.  Now that
      it is static, the wrapper-specific import/export macros are no longer
      needed.
      41c65801
    • David Gobbi's avatar
      Add the module to the tp_name member of every type. · 74de9b8c
      David Gobbi authored
      This is done according to the documentation for PyTypeObject. It
      allows python to correctly generate the __module__ attribute for
      extension types, which is needed by some python packaging systems.
      74de9b8c
  10. 23 Jul, 2015 4 commits
  11. 01 Dec, 2014 4 commits
    • David Gobbi's avatar
      Wrap constants more efficiently. · d5cb2382
      David Gobbi authored
      Sometimes header files contain a large number of constants, and
      the wrappers were generating a function call for each and every
      one in order to convert them into python values.  This new code
      stores the constants in static data structures when possible.
      
      Change-Id: Id59c8448be154647ff349b43d958871b0f18af69
      d5cb2382
    • David Gobbi's avatar
      Move VTK_BUILD_SHARED_LIBS check to generated code. · a5948d9f
      David Gobbi authored
      Any use of vtkConfigure.h from within the wrapper tool code can
      lead to incorrect configuration when cross compiling.  This change
      moves the VTK_BUILD_SHARED_LIBS check from the wrapper tool code
      into the generated code.
      
      Change-Id: Ie80075bf107aa7635767488ed9f87b0aa3590c72
      a5948d9f
    • David Gobbi's avatar
      Add an enum type to the python wrappers. · ba693ade
      David Gobbi authored
      Any enum types that are encountered will automatically be wrapped
      as integral types.  This is true for enum types defined in the global
      namespace, and enum types defined within a wrapped class.  Other
      namespaces are not yet supported, because the python wrappers do not
      yet wrap C++ namespaces.
      
      When a class method has an enum parameter, and if the enum is a member
      of the class, then that method will perform type checking on the enum.
      Class methods that require enums that are not members of the class will
      not be wrapped (in future versions of the wrappers, they might).
      
      Change-Id: If38391de8a1a66eb255ddf83a72916af6d81dc78
      ba693ade
    • David Gobbi's avatar
      Refactor vtkWrapPython into smaller source files. · a73ab651
      David Gobbi authored
      Because several thousands lines of code is too much for one file.
      
      Change-Id: Ib3af0f2153fddc3f593fd90913bb3408944062f6
      a73ab651