1. 08 Nov, 2017 1 commit
  2. 31 Oct, 2017 1 commit
    • Sean McBride's avatar
      General review and cleanup of vtkLookupTable and friends · 63366102
      Sean McBride authored
      - made vtkScalarsToColors::SetRange(double[2]) virtual, since the other SetRange() is.  Likewise vtkLookupTable::SetTableRange(double[2]).
      - changed most uses of dangerous GetTableValue() (that returns inner buffer) in favour of version that copies the values out.
      - use fixed-size memcpy in a few places for a potential speedup
      - improved some comments
      - added a few consts, especially with buffers
      - removed const on plain old ints
      - moved a nan check earlier, saving work when true
      - moved some variable declarations closer to initialization
      - removed some unneeded semi colons
      - removed some useless casts, added others for clarity
      63366102
  3. 26 Jul, 2017 1 commit
    • Kitware Robot's avatar
      Replace many NULL and 0 occurances with nullptr · a855cab0
      Kitware Robot authored
      This topic is the result of running clang-tidy to
      modernize our usage of NULL and 0 to nullptr. It also
      includes some manual and semi manual changes where
      clang-tidy would not be expected to work (such as in
      comments, or classes not compiled on this build)
      
      There are definitely many comments and occurances that
      this topic misses that we will need to fix over time.
      a855cab0
  4. 23 Sep, 2016 1 commit
    • Kitware Robot's avatar
      Reindent using the reindentation script. · f830ff47
      Kitware Robot authored
      This commit reindents the code with the following utility:
      Utilities/Maintenance/vtk-reindent-code.py
      
      This utility changes the positions of the braces so that they are no
      longer indented relative to the code block they reside in.
      
      The bash command line used was the following:
      
      for d in Charts Common Deprecated Domains Examples Filters GUISupport \
               Geovis IO Imaging Infovis Interaction Parallel Rendering \
               Testing Views Web Wrapping; do
        for e in cxx cxx.in txx txx.in hxx hxx.in h h.in c c.in; do
          find "${d}" -name "*.${e}" -exec \
            python Utilities/Maintenance/vtk_reindent_code.py {} +
        done
      done
      f830ff47
  5. 19 Aug, 2016 1 commit
    • Bill Lorensen's avatar
      ENH: Introduce vtkMTimeType · 9333d9d1
      Bill Lorensen authored
      This is a fix for:
      vtk/vtk#14310
      
      Windows applications that run for a long time report that rendered
      objects do not change. This is because the modified time on a Windows
      system is 32 bits. This causes overflows that defeat the modified time
      mechanism. This patch defines a new type, vtkMTimeType that is 64
      unsigned integer regardless of the architecture.
      
      A mechanism to provide backward compatibility is introduced. The
      preprocessor define "VTK_HAS_MTIME_TYPE" can be used in applications
      that must build against VTK versions that use the "unsigned long" type
      for MTime's.
      
      Methodology used to find MTime occurences:
      1) Identify files as follows:
         git grep "unsigned long" | grep ime | cut -d":" -f1,1 | sort | uniq
      2) Hand edit each of those files replacing "unsigned long" with
         "vtkMTimeType" where appropriate.
      3) Temporarily change typedef for vtkMTimeType to "double" to detect
         missing conversions
      9333d9d1
  6. 08 Mar, 2016 1 commit
  7. 18 Sep, 2013 1 commit
    • Utkarsh Ayachit's avatar
      BUG #14283. Fix change events fired by vtkControlPointsItem. · a6b0b0df
      Utkarsh Ayachit authored
      This commit consolidates the logic between all vtkControlPointsItem subclasses
      to consistently notify rest of the world that the control points were modified.
      Previously, commit 1509669d tried to do the same with
      vtkControlPointsItem::PointsModifiedEvent, however vtkCompositeControlPointsItem
      wasn't firing those consistently resulting in the BUG #14283.
      
      While attempting to fix that, I noticed that vtkControlPointsItem has
      StartChanges()/EndChanges() methods that could be used for a similar purpose:
      notify the world that control points are being changed. Hence, remved the
      PointsModifiedEvent, instead fixing the code to consistently use
      StartChanges()/EndChanges() calls.
      
      Fixed StartChanges/EndChanges to fire the event on the vtkControlPointsItem
      (along with tranfer function, as it was previously) and added logic to avoid
      duplicable firing of events due nested calls to StartChanges/EndChanges.
      
      Change-Id: I144e775cbdfbc9c1334cfc2b02609b37dda8cae7
      a6b0b0df
  8. 26 Jul, 2013 1 commit
  9. 25 Jul, 2013 1 commit
    • Utkarsh Ayachit's avatar
      Cleaning up transfer function widgets. · 1509669d
      Utkarsh Ayachit authored
      Cleaning up issues with the context-items related to tranfer function editor.
      
      + Added support for log-mapped color-transfer function. We ensure that when
        using log-scale, the color transfer function widget also enter log-space.
      
      + vtkPiecewiseControlPointsItem had a bug resulting it deleting of end points
        even when told otherwise. Fixed that.
      
      + Added new event vtkControlPointsItem::PointsModifiedEvent which if fired when
        control points are changed making it easier for application to do something
        when the points are changed.
      
      + Improved the usability by adding ability to label control points.
      
      Change-Id: If02bc1139f6ccb3d7c2198b07d10491f902bafda
      1509669d
  10. 09 Apr, 2012 1 commit
    • 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
  11. 12 Mar, 2012 1 commit
  12. 17 Nov, 2011 2 commits
  13. 27 Oct, 2011 1 commit
  14. 17 Oct, 2011 2 commits
  15. 23 Sep, 2011 2 commits
  16. 06 Jul, 2011 1 commit
  17. 19 May, 2011 2 commits
    • Julien Finet's avatar
      Support transfer functions with a range wider than [0, 1] · 9b3eec6b
      Julien Finet authored
      Change-Id: Iaf5dabad85bd7cdfb2c2a7021c751cf7298855cc
      9b3eec6b
    • Julien Finet's avatar
      Add point edition in vtkControlPointsItems · 8e5b3e79
      Julien Finet authored
      -You can edit control points in 2 fashions:
       If vtkControlPointsItem::StrokeMode is true, you can "draw" points while
      the left mouse button is down, it will add control points under the mouse
      cursor.
       If vtkControlPointsItem::StrokeMode is false, you can drag&drop existing
      points. SwitchPointsMode control the behavior to follow when a point
      crosses another.
      In both modes, if you click the left button mouse not on a point, a point is
      created under the mouse cursor.
      -Add vtkCompositeControlPointsItem to mix ct function and opacity function.
      It creates points for Color Transfer and Opacity
      functions.Both functions will share the same control points.
      -Add vtkControlPointsItem::EditPoint to control midpoint and sharpness
      -Support null transfer functions in the ScalarsToColors items
      8e5b3e79
  18. 09 May, 2011 1 commit
  19. 02 May, 2011 1 commit
    • Julien Finet's avatar
      Add point edition in vtkControlPointsItems · 1d697d31
      Julien Finet authored
      -You can edit control points in 2 fashions:
       If vtkControlPointsItem::StrokeMode is true, you can "draw" points while
      the left mouse button is down, it will add control points under the mouse
      cursor.
       If vtkControlPointsItem::StrokeMode is false, you can drag&drop existing
      points. SwitchPointsMode control the behavior to follow when a point
      crosses another.
      In both modes, if you click the left button mouse not on a point, a point is
      created under the mouse cursor.
      -Add vtkCompositeControlPointsItem to mix ct function and opacity function.
      It creates points for Color Transfer and Opacity
      functions.Both functions will share the same control points.
      -Add vtkControlPointsItem::EditPoint to control midpoint and sharpness
      -Support null transfer functions in the ScalarsToColors items
      1d697d31