1. 23 Jul, 2015 3 commits
  2. 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
    • 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
    • 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
    • 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