1. 20 Mar, 2018 1 commit
    • Sean McBride's avatar
      Applied clang-tidy modernize-use-equals-default fixes · 84ec1d57
      Sean McBride authored
      This required some clean up, because the automatic changes borked a couple of files, but mostly resulted in stupid whitespacing. A few find/replace fixed things up.
      
      There are now some duplicate semis because it did changes like:
      
        ~AMRIndexIterator() override{};
      to
        ~AMRIndexIterator() override= default;;
      
      Note there was a pointless semi before, which clang-tidy didn’t expect / account for.
      
      My next commit will remove them.
      84ec1d57
  2. 05 Dec, 2017 1 commit
  3. 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
  4. 08 Mar, 2016 1 commit
  5. 01 Mar, 2015 1 commit
  6. 16 Jul, 2014 1 commit
  7. 15 Jul, 2014 1 commit
    • Marco Cecchetti's avatar
      Tentative fix for Windows build issue. · 848d2f49
      Marco Cecchetti authored
      1) error: '_snprintf_s' was not declared in this scope;
      
      2) warning: operator[] for vtkStdString is ambiguos when used with
      an integral literal index, because of the const char* conversion
      operator.
      
      Change-Id: I42b878078277b91509d8d24bbbcaf82aa08eb2a3
      848d2f49
  8. 09 Jul, 2014 1 commit
    • Marco Cecchetti's avatar
      I added a RGBAToHTMLColor and made some minor changes. · 1f2cdbfc
      Marco Cecchetti authored
      Added a vtkStdString RGBAToHTMLColor(const vtkColor4ub & rgba)
      method  which given a vtkColor4ub instance as input color returns
      a valid HTML color string in the `rgba(r, g, b, a)` format.
      
      Change-Id: I490d173c2fc2d66869cda4d0db7ae6f632607818
      1f2cdbfc
  9. 08 Jul, 2014 1 commit
    • Marco Cecchetti's avatar
      Merged vtkColorString into vtkNamedColors. · 04c2b8ce
      Marco Cecchetti authored
      Removed support for #RRGGBBAA format since is not a valid HTML
      color string format. See CSS3 color reference documentation.
      
      Added support for the #RGB short format.
      Added support for percentage values in rgb and rgba functional
      formats.
      
      vtkTestClorString.cxx source code has been merged into
      vtkTestNamedColors.cxx.
      
      Added a new method for get an HTML color string in hexadecimal
      format from an instance of vtkColor3ub.
      
      Added a new method for setting a color by name:
      void SetColor(const vtkStdString & name,
                           const vtkStdString & htmlString);
      
      No color is set if the name is empty or if `htmlString` is not a valid
      HTML color string.
      
      Change-Id: Ib9b9d2fa96a4dd5ac476b7bed2349cf4462ea9a9
      04c2b8ce
  10. 19 Mar, 2013 1 commit
    • Sean McBride's avatar
      Fixed the 'double' variant of SetColor to use 1.0 not 255 · 061dc2bc
      Sean McBride authored
      I believe there was a copy-paste here.  The alpha was being
      set to 255 (notably not written 255.0) instead of 1.0 for
      the 'double' case, where rgba values should (I believe)
      range from 0.0 to 1.0.  Fixes undefined behaviour reported
      by clang:
      
      runtime error: value 65025 is outside the range of representable values of type 'unsigned char'
      
      that happens when this 255 value was itself later multiplied
      by 255 in an attempt to change it to uint8 range.
      
      Change-Id: I85c718bcbc275a328bb6264222d4dec2c3110781
      061dc2bc
  11. 14 Nov, 2012 1 commit
  12. 19 Sep, 2012 1 commit
    • Andrew Maclean's avatar
      Refactored vtkNamedColors · c2a58c30
      Andrew Maclean authored
      Updated as per Marcus's comments. I have also added in the vtkColor3/4
      API, removed methods returning double * and unsigned char *.
      vtkNamedColorsDataStore mow uses std::map<vtkStdString, vtkColor4ub>
      
      Change-Id: Ie44f876afcf68e9fda48cd67b7feb857d369fa52
      c2a58c30
  13. 12 Sep, 2012 2 commits
  14. 09 Sep, 2012 1 commit