1. 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
  2. 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
  3. 08 Mar, 2016 1 commit
  4. 08 Nov, 2013 1 commit
  5. 31 Oct, 2013 1 commit
  6. 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
  7. 13 Dec, 2011 1 commit
  8. 20 May, 2010 1 commit
    • Mark Olesen's avatar
      Remove vtk(Cxx|Type)RevisionMacro · ecbbf7f7
      Mark Olesen authored
      The CVS $Revision$ keyword replacement will no longer maintain these
      macros automatically.  They were used only to implement CollectRevisions
      and vtkObjectBase::PrintRevisions, an API that was never used.
      
      Automated as follows:
      
        pass 0:
        catch templates
        ---------------
        $ git grep 'vtk\(Cxx\|Type\)RevisionMacro' | grep '<'
      
        pass 1:
        main changes
        ---------------
        $ git grep -l '^vtkCxxRevisionMacro' | while read file; do
          echo "$file" 1>&2
          perl -i -ne 'print unless (/^vtkCxxRevisionMacro/ and /\)/)' $file
        done
        $ git grep -l -e 'vtkTypeRevisionMacro(' | while read file; do
          echo "$file" 1>&2
          perl -i -pe 's/vtkTypeRevisionMacro/vtkTypeMacro/g' $file
        done
      
        pass 2:
        verify
        ---------------
        $ git grep 'vtk\(Cxx\|Type\)RevisionMacro'
      
      Fixed multi-line vtkCxxRevisionMacro and templates by hand.
      ecbbf7f7
  9. 23 Apr, 2010 1 commit
    • Mark Olesen's avatar
      Remove vtk(Cxx|Type)RevisionMacro · 19c55e0e
      Mark Olesen authored
      The CVS $Revision$ keyword replacement will no longer maintain these
      macros automatically.  They were used only to implement CollectRevisions
      and vtkObjectBase::PrintRevisions, an API that was never used.
      
      Automated as follows:
      
        pass 0:
        catch templates
        ---------------
        $ git grep 'vtk\(Cxx\|Type\)RevisionMacro' | grep '<'
      
        pass 1:
        main changes
        ---------------
        $ git grep -l '^vtkCxxRevisionMacro' | while read file; do
          echo "$file" 1>&2
          perl -i -ne 'print unless (/^vtkCxxRevisionMacro/ and /\)/)' $file
        done
        $ git grep -l -e 'vtkTypeRevisionMacro(' | while read file; do
          echo "$file" 1>&2
          perl -i -pe 's/vtkTypeRevisionMacro/vtkTypeMacro/g' $file
        done
      
        pass 2:
        verify
        ---------------
        $ git grep 'vtk\(Cxx\|Type\)RevisionMacro'
      
      Fixed multi-line vtkCxxRevisionMacro and templates by hand.
      19c55e0e
  10. 24 Apr, 2009 2 commits
    • Jeff Baumes's avatar
      1213d801
    • Jeff Baumes's avatar
      ENH: Adding new rendered representation classes · 9bcda1c1
      Jeff Baumes authored
       - Adding new rendered graph, hierarchy, surface, tree area representations.
         These classes consolidate code that were in several different views.
      
       - Adding vtkHierarchicalGraphPipeline, which renders bundled graph edges
         on top of a tree. This is a convenience class used by
         vtkRenderedHierarchyRepresentation and vtkRenderedTreeAreaRepresentation.
      
       - Fixing up OverView geo views and hierarchy view.
      
       - Removing buggy hack in vtkScalarsToColors that caused problems with
         correctly rendering color arrays.
      
       - Added opacity to annotations.
      
       - vtkGraph now creates edge points on demand instead of throwing errors,
         and correctly deep copies edge points on force ownership call.
      
       - Updating geovis tests to use new graph representation API.
      
       - Moved vtkGeoEdgeStrategy to Infovis so it can be accessed in the graph
         representation.
      
       - Moved vtkGeoMath to Infovis since it is used by vtkGeoEdgeStrategy.
      
       - Removed vtkGeoGraphRepresentation and vtkGeoGraphRepresentation2D, which
         are now superceded by vtkRenderedGraphRepresentation.
      
       - Removed reference loop in vtkGeoLineRepresentation's ConvertSelection
         by removing the PROP property from the selection.
      
       - Updating vtkGeoView and vtkGeoView2D to new view architecture.
      
       - Added option to Glyph3D to output cell data along with point data
         on the output glyphs.
      
       - vtkGraphToPolyData now correctly uses the vertex endpoint positions
         as the start and end of the polyline for each edge.
      
       - vtkSelectionLink's SetSelection used to always trigger the algorithm to
         be modified. This is no longer true if the same selection is set multiple
         times.
      
       - Changed vtkSplineFilter to handle consecutive points at the same position
         instead of outputting errors.
      
       - Changed vtkCosmicTreeLayoutStrategy so the output arrays are called
         "TreeRadius" and "TreeScaleFactor" instead of appending those strings
         to the input size array name.
      
       - Changing treemap layout strategies to appropriately fill the points
         of the tree that are used for bundled edges.
      
       - Added ZRange to vtkGraphLayout, if you want vertices to have
         distinct Z values on an otherwise 2D layout. This avoids Z-buffer issues
         when rendering vertices as glyphs.
      
       - Added Transform property to vtkGraphLayout. This optional transform will
         be applied to locations output from the layout strategy. This is used
         in geo views.
      
       - Fixed vtkStackedTreeLayoutStrategy to not always place the root position
         for the bundled edges at (0,0,0).
      
       - Added progress events to vtkTreeRingToPolyData.
      
       - Allow non-equal array types when PassArray is on, using GetVarantValue
         and InsertVariantValue.
      
       - Adding option RenderOnMouseMove to vtkInteractorStyleRubberBand2D.
         This allows views to update hover balloons.
      
       - Fixing bug in vtkLabelHierarchy's iterator where if the lastPlaced array
         contained indices outside the current label set range, it would crash.
      
       - Adding support for an "ID" array which indicates the type of label
         being processed. This is used to use different font types with different
         sets of labels using the same label placer to place them all.
      
       - Adding support for multiple font properties to vtkLabelSizeCalculator,
         vtkLabeledDataMapper, vtkDynamic2DLabelPlacer.
      
       - Adding helper functions to vtkViewTheme to tell you whether a current
         lookup table matches its internal settings, or if it needs to be
         rebuilt. This minimizes pipeline updates.
      
       - Adding explicit ResetCamera() calls to view tests, because views no
         longer do this automatically.
      
       - Fixing vtkDataRepresentation so it does not re-do a shallow copy of inputs
         into the internal pipeline unless they have actually changed.
      
       - Revamping vtkGraphLayoutView to use vtkRenderedGraphRepresentation.
      
       - Revamping vtkHierarchicalGraphView to use
         vtkRenderedHierarchyRepresentation.
      
       - Revamping vtkTreeAreaView to use vtkRenderedTreeAreaRepresentation.
      
       - Updating vtkView to only take a collection of vtkRepresentations, instead
         of supporting multiple ports/connections. We can do this because
         representations now have this option of multiple inputs.
      
       - vtkView has an option ReuseSingleRepresentation, where it will use the
         same representation after removing/adding input connections. This is
         used in e.g. vtkGraphLayouView so that properties assigned to the view
         persist even when the input connection is reset.
      
       - Fixing vtkTreeLayoutView to the newer view architecture, even though
         it should be deprecated in the near term.
      
       - Adding vtkGeoSphereTransform, a simple transform that goes from
         lat-long-alt and rect coords. This is what the 3D geo view has as its
         transform.
      
       - Adding vtkAppendPoints, which simply appends all the points and associated
         data from multiple input datasets. This is used to append all label points
         into one data object.
      
       - Adding vtkApplyColors, which applies colors from lut/annotation/selection
         in one place for a dataset. This is used by the new rendered
         representations.
      
       - Adding vtkAssignCoordinatesLayoutStrategy which uses vtkAssignCoordinates
         inside the layout. This makes the geo "layout" paradigm of lat/long arrays
         consistent with other graph layout strategies, so they can all use
         vtkRenderedGraphRepresentation.
      
       - Adding vtkDistanceToCamera, computes the distance of each input point
         to the camera. This can be used to scale glyphs dynamically so they
         appear the same size on the screen.
      
       - Adding graph-based versions of vtkGraphHierarchicalBundle and
         vtkSplineFilter called vtkGraphHierarchicalBundleEdges and
         vtkSplineGraphEdges, which perform the same task as the originals, but
         output a graph with appropriate edge points, instead of polydata.
         This allows these filters to execute before vtkGraphToPolyData.
      
       - The new vtkGraphToGlyphs filter takes a vtkGraph and outputs polydata
         for the glyphs. The glyphs are dynamically sized based on the position
         from the camera in order tp create glyphs with constant screen size.
      
       - vtkGraphToPoints converts a graph to a set of points.
      9bcda1c1