1. 11 Jun, 2016 2 commits
  2. 10 Jun, 2016 1 commit
  3. 08 Jun, 2016 2 commits
  4. 07 Jun, 2016 1 commit
    • David Gobbi's avatar
      Use VTK_NEWINSTANCE hint for factory methods · b342b394
      David Gobbi authored
      The wrapper-generators used to have a hard-coded list of methods that
      returned new vtkObject instances, so that the wrappers could properly
      manage the reference counts.  This patch replaces the hard-coded list
      with a hint macro that can be used anywhere.
  5. 06 Jun, 2016 4 commits
  6. 27 May, 2016 1 commit
    • David Gobbi's avatar
      Add preprocessor macros for each wrapper language. · 755ea6bc
      David Gobbi authored
      These new macros can be used to detect when the headers are being
      parsed by one of the wrapper tools, rather than by the C++ compiler:
      Also, the old __WRAP__ macro should no longer be used, it has been
      replaced with __VTK_WRAP__.
  7. 19 May, 2016 1 commit
    • Sean McBride's avatar
      Manual search & destroy of (B|E)TX · 55878a23
      Sean McBride authored
      First automatically removed lines with only BTX/ETX
      from .h files with the following regexes:
      ^ *// *BTX\r
      ^ *// *ETX\r
      and replaced occurances with nothing. Committed that, then manually
      removed various remaining cases of BTX/ETX, and related comments, and parsing stuff,
      then trashed the first commit.
  8. 13 Mar, 2016 1 commit
    • David Gobbi's avatar
      Allow variables to be initialized with constructor args. · 21f04e40
      David Gobbi authored
      In vtkParse.y, there was no rule for variable initialization via
      constructor args, for example "someclass variablename(arglist)".
      Unfortunately, this syntax looks similar to function declaration
      "someclass functionname(parameterlist)" and leads to ambiguity
      because the parser cannot always distinguish between "arglist"
      (a list of values) and "parameterlist" (a list of types).
      The reason the parser has difficulty with this is that it lacks
      the ability to tell which identifiers refer to types, and which
      refer to values.  For now the parser demands that "arglist" begins
      with a literal, since a literal is always a value.
  9. 08 Mar, 2016 1 commit
  10. 03 Mar, 2016 1 commit
    • David C. Lonie's avatar
      Refactor data array APIs. · 893fb6ed
      David C. Lonie authored
      vtkDataArray subclasses now use
      ComponentValue --> TypedComponent
      TupleValue --> TypedValue
      for their type-specific methods.
      # Conflicts:
      #	Rendering/Annotation/vtkScalarBarActor.cxx
  11. 02 Mar, 2016 1 commit
  12. 25 Feb, 2016 1 commit
  13. 22 Feb, 2016 1 commit
  14. 17 Feb, 2016 1 commit
    • David Gobbi's avatar
      15995: Implement C++ templates as Python modules. · 67eb4fc5
      David Gobbi authored
      The help() function was not working on wrapped class templates, so the
      PyVTKTemplate type has been re-imagined as a module that contains the
      instantiations of the template, since the help() function works with
      module docstrings. PyVTKTemplate still supports the mapping protocol
      as before, which allows lookup of the instantiated templates via the
      template arguments.
  15. 11 Feb, 2016 1 commit
  16. 09 Feb, 2016 1 commit
  17. 31 Jan, 2016 1 commit
  18. 28 Jan, 2016 1 commit
    • David Gobbi's avatar
      Fix wrapping pointer parameters with default value 0. · fcd2ac5a
      David Gobbi authored
      When the python wrappers were wrapping a pointer parameter with a default
      value of null, e.g. func(int *x=0), then if no parameter was passed then
      the underlying C++ function would receive an uninitialized array rather
      a null pointer.
      In addition, the SaveArray() and ArrayHasChanged() methods that the python
      wrappers use when wrapping non-const pointers and arrays would overflow
      when the array size was zero.
  19. 25 Jan, 2016 1 commit
    • David Gobbi's avatar
      Add a vtkImagePointIterator class. · f7fb4c66
      David Gobbi authored
      Given an image, the vtkImagePointIterator will iterate through the
      image point-by-point and efficiently provide the current position in
      both (x,y,z) data coordinates and (i,j,k) structured coordinates. If
      a stencil is provided, then it is possible to check whether the current
      point is in the stencil.
      The superclass, vtkImagePointDataIterator, iterates through the data
      span-by-span for efficiency.  For each span, it provides the point id
      for the beginning of the span, and the length of the span.  This makes
      it useful for iterating through the point attributes when the actual
      point coordinates are not important.
  20. 22 Jan, 2016 1 commit
  21. 14 Jan, 2016 1 commit
    • David Gobbi's avatar
      Make wrappers guess type of NULL as nullptr_t. · 2941cb4c
      David Gobbi authored
      When the wrappers encounter NULL in a header file, specifically in the case
      of "#define something NULL", it now treated as a value of type nullptr_t,
      similar to nullptr itself.  This ensures that NULL will not be wrapped as
      int, even if it is defined to be 0.
  22. 04 Jan, 2016 1 commit
    • Sean McBride's avatar
      Fixed a bunch of clang-tidy misc-macro-parentheses warnings · a595ab8e
      Sean McBride authored
      This tool warns where macros should be using parens.
      Fixed many issues it pointed out by either:
       - adding parens (which it can do automatically)
       - removed unused (or rarely used) macros
       - replacing macros with functions, notably vtkMath stuff
  23. 21 Dec, 2015 3 commits
    • David Gobbi's avatar
      Remove some doxygen commands when formatting comments. · 1064b4ee
      David Gobbi authored
      The @brief doxygen command is out of place in the python docstrings, and
      can be removed.  Several other commands, like @param, are left in because
      they are informative and the purpose of the comment is lost if they are
    • 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.
    • David Gobbi's avatar
      Read all doxygen comments from headers. · 53a763d4
      David Gobbi authored
      With this change, all doxygen comments are read from the headers, including
      trailing comments (//!<) and comments that do not appear immediately before
      the item they apply too (e.g. comments with \class).  Comment groups are not
      not handled.
  24. 20 Dec, 2015 1 commit
    • David Gobbi's avatar
      Add preliminary doxygen comment handling for wrappers. · 0b77535e
      David Gobbi authored
      This change allows the wrappers to recognize and use some doxygen comments,
      in the same way that they can recognize VTK's "// Description:" comments.
      Currently, doxygen comments are only passed through to python docstrings for
      methods, not for classes.
  25. 18 Dec, 2015 1 commit
  26. 14 Dec, 2015 1 commit
  27. 08 Dec, 2015 2 commits
    • Brad King's avatar
      Drop support for compilers without `long long` · 3b89e771
      Brad King authored
      VTK no longer supports any compilers that do not provide this type.
      Therefore all code conditional on VTK_TYPE_USE_LONG_LONG can be made
      unconditional.  Leave the macro defined to tell dependent projects that
      APIs using the type are available in case they still support versions of
      VTK that make it conditional.
    • Brad King's avatar
      Drop support for compilers with `__int64` as the only 64-bit int · 36bb09a7
      Brad King authored
      VTK no longer supports any compilers that have `__int64` but not a
      `long` or `long long` that is 64-bit.  Therefore all code that is
      conditional on VTK_TYPE_USE___INT64 is never used and can be dropped.
  28. 01 Dec, 2015 1 commit
    • David Gobbi's avatar
      Fix bug for parsing backslash in string literal. · db20eb75
      David Gobbi authored
      The string and char literals had a mistake that caused a mis-parse if
      a backslash appeared before the terminating quote.  The new patterns
      fix the bug, and also allow for multi-line string literals.
  29. 10 Nov, 2015 1 commit
  30. 05 Nov, 2015 3 commits