Commit 849ef992 authored by Sean McBride's avatar Sean McBride

Rename #includes to C++ style

Find/replace of:

with C++ counterparts.  Changed only vtk*.cxx files.
Didn’t touch .h or .c or any 3rd party.
parent 4f434639
Pipeline #5583 passed with stage
......@@ -4,7 +4,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <cassert>
#include <stdio.h>
#include <cstdio>
int main( int, char **argv )
{
......
#include <stdio.h>
#include <cstdio>
#include <cstdlib>
#if !defined(_WIN32) || defined(__CYGWIN__)
# include <sys/types.h>
......
#include <stdio.h>
#include <cstdio>
#include <cstdlib>
int main()
......
......@@ -24,7 +24,7 @@
#include "vtkPoints2D.h"
#include <cassert>
#include <math.h>
#include <cmath>
//-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkColorTransferFunctionItem);
......
......@@ -15,7 +15,7 @@
#include "vtkParametricEllipsoid.h"
#include "vtkObjectFactory.h"
#include "vtkMath.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkParametricEllipsoid);
......
......@@ -15,7 +15,7 @@
#include "vtkParametricSuperEllipsoid.h"
#include "vtkObjectFactory.h"
#include "vtkMath.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkParametricSuperEllipsoid);
......
......@@ -15,7 +15,7 @@
#include "vtkParametricSuperToroid.h"
#include "vtkObjectFactory.h"
#include "vtkMath.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkParametricSuperToroid);
......
......@@ -19,8 +19,8 @@
#include "vtkObjectFactory.h"
#include <cassert>
#include <stdlib.h>
#include <math.h>
#include <cstdlib>
#include <cmath>
vtkStandardNewMacro(vtkCollection);
......
......@@ -23,7 +23,7 @@
#include "vtksys/Directory.hxx"
#include <ctype.h>
#include <cctype>
vtkObjectFactoryCollection* vtkObjectFactory::RegisteredFactories = 0;
......
......@@ -17,8 +17,8 @@
#include "vtkSetGet.h"
#include "vtkObject.h"
#include <string.h>
#include <ctype.h>
#include <cstring>
#include <cctype>
//----------------------------------------------------------------
vtkOldStyleCallbackCommand::vtkOldStyleCallbackCommand()
......
......@@ -24,7 +24,7 @@
#include <map>
#include <math.h>
#include <cmath>
// A helper map for quick lookups of annotated values.
class vtkScalarsToColors::vtkInternalAnnotatedValueMap :
......
......@@ -16,7 +16,7 @@
#include "vtkMath.h"
#include "vtkPlane.h"
#include <cassert>
#include <math.h>
#include <cmath>
// ---------------------------------------------------------------------------
namespace
......
......@@ -21,7 +21,7 @@
#include "vtkPolyData.h"
#include "vtkBox.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkCellLocator);
......
......@@ -28,7 +28,7 @@
#include "vtkSmartPointer.h"
#include "vtkStructuredData.h"
#include <math.h>
#include <cmath>
//----------------------------------------------------------------------------
......
......@@ -17,7 +17,7 @@
#include "vtkImplicitFunctionCollection.h"
#include "vtkObjectFactory.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkImplicitBoolean);
......
......@@ -18,7 +18,7 @@
#include "vtkImplicitFunctionCollection.h"
#include "vtkObjectFactory.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkImplicitSum);
......
......@@ -14,7 +14,7 @@
=========================================================================*/
#include "vtkPerlinNoise.h"
#include "vtkObjectFactory.h"
#include <math.h>
#include <cmath>
#include <cassert>
vtkStandardNewMacro(vtkPerlinNoise);
......
......@@ -19,7 +19,7 @@
#include "vtkPlane.h"
#include "vtkPoints.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkPlanes);
vtkCxxSetObjectMacro(vtkPlanes,Points,vtkPoints);
......
......@@ -15,7 +15,7 @@
#include "vtkStructuredPoints.h"
#include "vtkObjectFactory.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkStructuredPoints);
......
......@@ -22,7 +22,7 @@
#include "vtkSuperquadric.h"
#include "vtkObjectFactory.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkSuperquadric);
......
......@@ -16,7 +16,7 @@
#include "vtkObjectFactory.h"
#include <ctype.h>
#include <cctype>
#include <sstream>
using std::ostringstream;
using std::istringstream;
......
......@@ -24,7 +24,7 @@
#include "vtkStreamingDemandDrivenPipeline.h"
#include "vtkStructuredPoints.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkImageToStructuredPoints);
......
......@@ -17,7 +17,7 @@
#include "vtkObjectFactory.h"
#include <cstdlib>
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkMatrix3x3);
......
......@@ -17,7 +17,7 @@
#include "vtkObjectFactory.h"
#include <cstdlib>
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkMatrix4x4);
......
......@@ -14,8 +14,8 @@
=========================================================================*/
#include "vtkErrorCode.h"
#include <string.h>
#include <ctype.h>
#include <cstring>
#include <cctype>
#include <errno.h>
// this list should only contain the initial, contiguous
......
......@@ -15,7 +15,7 @@
#include "vtkFunctionParser.h"
#include "vtkObjectFactory.h"
#include <ctype.h>
#include <cctype>
vtkStandardNewMacro(vtkFunctionParser);
......
......@@ -77,12 +77,12 @@ void vtkDirectory::PrintSelf(ostream& os, vtkIndent indent)
#if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__MINGW32__)
#include "vtkWindows.h"
#include <io.h>
#include <ctype.h>
#include <cctype>
#include <direct.h>
#include <fcntl.h>
#include <stdio.h>
#include <cstdio>
#include <cstdlib>
#include <string.h>
#include <cstring>
#include <sys/types.h>
int vtkDirectory::Open(const char* name)
......
......@@ -42,8 +42,8 @@
#include <unistd.h>
#include <sys/time.h>
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <cstring>
#include <cstdio>
#endif
#endif
......
......@@ -23,7 +23,7 @@
#include "vtkInformationVector.h"
#include "vtkObjectFactory.h"
#include "vtkPointData.h"
#include <ctype.h>
#include <cctype>
#include <cassert>
......
......@@ -30,7 +30,7 @@
#include "vtkTriangle.h"
#include "vtkIncrementalPointLocator.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkClipPolyData);
vtkCxxSetObjectMacro(vtkClipPolyData,ClipFunction,vtkImplicitFunction);
......
......@@ -31,7 +31,7 @@
#include "vtkStreamingDemandDrivenPipeline.h"
#include "vtkAppendPolyData.h"
#include <math.h>
#include <cmath>
#include "vtkObjectFactory.h"
#include "vtkCompositeDataIterator.h"
#include "vtkSmartPointer.h"
......
......@@ -45,7 +45,7 @@
#include "vtkIncrementalPointLocator.h"
#include "vtkContourHelper.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkContourFilter);
vtkCxxSetObjectMacro(vtkContourFilter,ScalarTree,vtkScalarTree);
......
......@@ -37,7 +37,7 @@
#include "vtkPointLocator.h"
#include "vtkIncrementalPointLocator.h"
#include "vtkContourHelper.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkContourGrid);
......
......@@ -49,7 +49,7 @@
#include "vtkContourHelper.h"
#include <algorithm>
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkCutter);
vtkCxxSetObjectMacro(vtkCutter,CutFunction,vtkImplicitFunction);
......
......@@ -25,7 +25,7 @@
#include "vtkStreamingDemandDrivenPipeline.h"
#include "vtkSMPTools.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkFlyingEdges2D);
......
......@@ -28,7 +28,7 @@
#include "vtkMarchingCubesTriangleCases.h"
#include "vtkSMPTools.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkFlyingEdges3D);
......
......@@ -29,7 +29,7 @@
#include "vtkPlane.h"
#include "vtkSMPTools.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkFlyingEdgesPlaneCutter);
vtkCxxSetObjectMacro(vtkFlyingEdgesPlaneCutter,Plane,vtkPlane);
......
......@@ -39,7 +39,7 @@
#include "vtkUnsignedShortArray.h"
#include "vtkPolygonBuilder.h"
#include "vtkSmartPointer.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkGridSynchronizedTemplates3D);
......
......@@ -35,7 +35,7 @@
#include "vtkUnsignedShortArray.h"
#include "vtkIncrementalPointLocator.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkMarchingSquares);
......
......@@ -21,7 +21,7 @@
#include "vtkInformationVector.h"
#include "vtkObjectFactory.h"
#include "vtkPointData.h"
#include <ctype.h>
#include <cctype>
vtkStandardNewMacro(vtkMaskFields);
......
......@@ -24,7 +24,7 @@
#include "vtkInformationVector.h"
#include "vtkObjectFactory.h"
#include "vtkPointData.h"
#include <ctype.h>
#include <cctype>
vtkStandardNewMacro(vtkRearrangeFields);
......
......@@ -40,7 +40,7 @@
#include "vtkPolygonBuilder.h"
#include "vtkSmartPointer.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkRectilinearSynchronizedTemplates);
......
......@@ -34,7 +34,7 @@
#include "vtkUnsignedLongArray.h"
#include "vtkUnsignedShortArray.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkSynchronizedTemplates2D);
......
......@@ -39,7 +39,7 @@
#include "vtkUnsignedLongArray.h"
#include "vtkUnsignedShortArray.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkSynchronizedTemplates3D);
......
......@@ -40,7 +40,7 @@
#include "vtkIdListCollection.h"
#include "vtkSmartPointer.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkSynchronizedTemplatesCutter3D);
vtkCxxSetObjectMacro(vtkSynchronizedTemplatesCutter3D,CutFunction,vtkImplicitFunction);
......
......@@ -23,7 +23,7 @@
#include "vtkPointData.h"
#include "vtkSMPTools.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkVectorNorm);
......
......@@ -35,7 +35,7 @@
#include "vtkIdList.h"
#include "vtkIncrementalPointLocator.h"
#include <math.h>
#include <cmath>
#include <vector>
vtkStandardNewMacro(vtkBoxClipDataSet);
......
......@@ -25,7 +25,7 @@
#include "vtkPointData.h"
#include "vtkTensor.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkCellDerivatives);
......
......@@ -38,7 +38,7 @@
#include "vtkIncrementalPointLocator.h"
#include "vtkPolyhedron.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkClipDataSet);
vtkCxxSetObjectMacro(vtkClipDataSet,ClipFunction,vtkImplicitFunction);
......
......@@ -18,7 +18,7 @@
#include "vtkInformationVector.h"
#include "vtkObjectFactory.h"
#include "vtkPolyData.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkCursor2D);
......
......@@ -20,7 +20,7 @@
#include "vtkObjectFactory.h"
#include "vtkPolyData.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkCursor3D);
......
......@@ -26,7 +26,7 @@
#include "vtkPointData.h"
#include "vtkPolyData.h"
#include "vtkStreamingDemandDrivenPipeline.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkImageMarchingCubes);
......
......@@ -31,7 +31,7 @@
#include "vtkStructuredPoints.h"
#include "vtkIncrementalPointLocator.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkMarchingContourFilter);
......
......@@ -19,7 +19,7 @@
#include "vtkMultiThreshold.h"
#include <math.h>
#include <cmath>
#include "vtkCellData.h"
#include "vtkDataArray.h"
......
......@@ -22,7 +22,7 @@
#include "vtkInformationVector.h"
#include "vtkObjectFactory.h"
#include "vtkPointData.h"
#include <ctype.h>
#include <cctype>
vtkStandardNewMacro(vtkSplitField);
......
......@@ -54,7 +54,7 @@ PURPOSE. See the above copyright notice for more information.
#include <map>
#include <algorithm>
#include <math.h>
#include <cmath>
#include <cassert>
class vtkYoungsMaterialInterfaceCellCut
......
......@@ -38,7 +38,7 @@
#include "vtkExecutive.h"
#include "vtkIncrementalPointLocator.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkGenericClip);
vtkCxxSetObjectMacro(vtkGenericClip,ClipFunction,vtkImplicitFunction);
......
......@@ -38,7 +38,7 @@
#include "vtkGenericCellTessellator.h"
#include "vtkIncrementalPointLocator.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkGenericCutter);
vtkCxxSetObjectMacro(vtkGenericCutter,CutFunction,vtkImplicitFunction);
......
......@@ -20,7 +20,7 @@
#include "vtkTrivialProducer.h"
#include "vtkObjectFactory.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkBSplineTransform);
......
......@@ -32,7 +32,7 @@
#include "vtkObjectFactory.h"
#include "vtkDSPFilterDefinition.h"
#include <ctype.h>
#include <cctype>
#include <vector>
#include <string>
......
......@@ -25,7 +25,7 @@
#include "vtkPoints.h"
#include "vtkPolyData.h"
#include <math.h>
#include <cmath>
vtkStandardNewMacro(vtkEarthSource);
......
......@@ -23,7 +23,7 @@
#include "vtkStreamingDemandDrivenPipeline.h"
#include "vtkTrivialProducer.h"