From 84960d6484d9549a3009475aec54bc2cb7d8cdca Mon Sep 17 00:00:00 2001 From: "luz.paz" Date: Mon, 29 Jan 2018 23:49:50 -0500 Subject: [PATCH] Misc. typos Found via `codespell -q 3 -I ../vtk-whitelist-words.txt --skip="./ThirdParty,./Utilities"` --- Filters/AMR/Testing/Cxx/TestAMRGhostLayerStripping.cxx | 2 +- Filters/Core/vtkMultiObjectMassProperties.cxx | 2 +- Filters/Core/vtkMultiObjectMassProperties.h | 2 +- Filters/Core/vtkSynchronizedTemplates3D.h | 2 +- Filters/Geometry/vtkStructuredAMRGridConnectivity.h | 2 +- Filters/SMP/vtkThreadedSynchronizedTemplates3D.h | 2 +- IO/Geometry/vtkAVSucdReader.cxx | 2 +- IO/Geometry/vtkWindBladeReader.cxx | 2 +- IO/Import/vtkOBJImporterInternals.cxx | 2 +- IO/MPIParallel/vtkPWindBladeReader.cxx | 2 +- IO/XML/vtkXMLPTableReader.h | 2 +- IO/Xdmf2/CMakeLists.txt | 2 +- IO/Xdmf2/vtkXdmfWriter.cxx | 2 +- Rendering/OpenGL2/vtkDepthPeelingPass.h | 4 ++-- Rendering/OpenGL2/vtkOpenGLFramebufferObject.h | 2 +- Rendering/VolumeOpenGL2/vtkOpenGLGPUVolumeRayCastMapper.cxx | 2 +- Utilities/PythonInterpreter/vtkPythonInteractiveInterpreter.h | 2 +- Utilities/PythonInterpreter/vtkPythonInterpreter.cxx | 4 ++-- Utilities/octree/octree.h | 2 +- 19 files changed, 21 insertions(+), 21 deletions(-) diff --git a/Filters/AMR/Testing/Cxx/TestAMRGhostLayerStripping.cxx b/Filters/AMR/Testing/Cxx/TestAMRGhostLayerStripping.cxx index f0bb27e4a1..a320640a76 100644 --- a/Filters/AMR/Testing/Cxx/TestAMRGhostLayerStripping.cxx +++ b/Filters/AMR/Testing/Cxx/TestAMRGhostLayerStripping.cxx @@ -208,7 +208,7 @@ vtkUniformGrid* GetGhostedGrid( } } // END for all dimensions - // STEP 3: Construt ghosted grid + // STEP 3: Construct ghosted grid vtkUniformGrid *grid = vtkUniformGrid::New(); grid->Initialize(); grid->SetOrigin( origin ); diff --git a/Filters/Core/vtkMultiObjectMassProperties.cxx b/Filters/Core/vtkMultiObjectMassProperties.cxx index 47a528b8fb..65b29a43bd 100644 --- a/Filters/Core/vtkMultiObjectMassProperties.cxx +++ b/Filters/Core/vtkMultiObjectMassProperties.cxx @@ -286,7 +286,7 @@ int vtkMultiObjectMassProperties::RequestData( output->GetFieldData()->AddArray(this->ObjectValidity); unsigned char *valid; - // All polygons intially assumed oriented properly + // All polygons initially assumed oriented properly unsigned char *orient = new unsigned char [numPolys]; std::fill_n(orient, numPolys, 1); diff --git a/Filters/Core/vtkMultiObjectMassProperties.h b/Filters/Core/vtkMultiObjectMassProperties.h index c7cccad583..51e939d643 100644 --- a/Filters/Core/vtkMultiObjectMassProperties.h +++ b/Filters/Core/vtkMultiObjectMassProperties.h @@ -74,7 +74,7 @@ * operates on triangle meshes and assumes only a single, closed, properly * oriented surface is represented. vtkMultiObjectMassProperties performs * additional topological and connectivity operations to identify separate - * objects, and confirms that they are manifold. It also accomodates + * objects, and confirms that they are manifold. It also accommodates * inconsistent ordering. * * @warning diff --git a/Filters/Core/vtkSynchronizedTemplates3D.h b/Filters/Core/vtkSynchronizedTemplates3D.h index 1635964538..97234c91e8 100644 --- a/Filters/Core/vtkSynchronizedTemplates3D.h +++ b/Filters/Core/vtkSynchronizedTemplates3D.h @@ -155,7 +155,7 @@ public: //@{ /** - * Determines the chunk size fro streaming. This filter will act like a + * Determines the chunk size for streaming. This filter will act like a * collector: ask for many input pieces, but generate one output. Limit is * in KBytes */ diff --git a/Filters/Geometry/vtkStructuredAMRGridConnectivity.h b/Filters/Geometry/vtkStructuredAMRGridConnectivity.h index a34f9e927c..c2b507298d 100644 --- a/Filters/Geometry/vtkStructuredAMRGridConnectivity.h +++ b/Filters/Geometry/vtkStructuredAMRGridConnectivity.h @@ -175,7 +175,7 @@ protected: const int gridIdx, int fromLevel, int toLevel, int ext[6]); /** - * Gets the refined extent fro the grid with the given grid index. + * Gets the refined extent for the grid with the given grid index. */ void GetRefinedExtent( const int gridIdx, int fromLevel, int toLevel, int ext[6]); diff --git a/Filters/SMP/vtkThreadedSynchronizedTemplates3D.h b/Filters/SMP/vtkThreadedSynchronizedTemplates3D.h index ef3fb9872e..917eaff8a6 100644 --- a/Filters/SMP/vtkThreadedSynchronizedTemplates3D.h +++ b/Filters/SMP/vtkThreadedSynchronizedTemplates3D.h @@ -156,7 +156,7 @@ public: //@{ /** - * Determines the chunk size fro streaming. This filter will act like a + * Determines the chunk size for streaming. This filter will act like a * collector: ask for many input pieces, but generate one output. Limit is * in KBytes */ diff --git a/IO/Geometry/vtkAVSucdReader.cxx b/IO/Geometry/vtkAVSucdReader.cxx index 8e58fbd10a..09d2a2873e 100644 --- a/IO/Geometry/vtkAVSucdReader.cxx +++ b/IO/Geometry/vtkAVSucdReader.cxx @@ -315,7 +315,7 @@ int vtkAVSucdReader::RequestInformation( vtkDebugMacro( << "TFL = " << trueFileLength << "\tCFL = " << calculatedFileLength << endl); - // We tried. Count our trys. + // We tried. Count our tries. attempts++; if(trueFileLength == calculatedFileLength) diff --git a/IO/Geometry/vtkWindBladeReader.cxx b/IO/Geometry/vtkWindBladeReader.cxx index 8e46034f61..808cd010a8 100644 --- a/IO/Geometry/vtkWindBladeReader.cxx +++ b/IO/Geometry/vtkWindBladeReader.cxx @@ -729,7 +729,7 @@ void vtkWindBladeReader::ReadDataVariables(istream& inStr) // // Open the first data file and verify that the data is where is should be // Each data block is enclosed by two ints which record the number of bytes -// Save the file offset for each varible +// Save the file offset for each variable // //---------------------------------------------------------------------------- bool vtkWindBladeReader::FindVariableOffsets() diff --git a/IO/Import/vtkOBJImporterInternals.cxx b/IO/Import/vtkOBJImporterInternals.cxx index b8e91e7846..ac1201d39a 100644 --- a/IO/Import/vtkOBJImporterInternals.cxx +++ b/IO/Import/vtkOBJImporterInternals.cxx @@ -165,7 +165,7 @@ bool tokenGetVector(size_t &t, std::vector &tokens, vtkGenericWarningMacro("bad syntax"); return false; } - // parse the folloing numbers + // parse the following numbers size_t count = 0; while (tokens.size() > t + 2 && tokens[t+1].Type == Token::Space && diff --git a/IO/MPIParallel/vtkPWindBladeReader.cxx b/IO/MPIParallel/vtkPWindBladeReader.cxx index e240ccbcfc..3df1465421 100644 --- a/IO/MPIParallel/vtkPWindBladeReader.cxx +++ b/IO/MPIParallel/vtkPWindBladeReader.cxx @@ -290,7 +290,7 @@ bool vtkPWindBladeReader::ReadGlobalData() // // Open the first data file and verify that the data is where is should be // Each data block is enclosed by two ints which record the number of bytes -// Save the file offset for each varible +// Save the file offset for each variable // //---------------------------------------------------------------------------- bool vtkPWindBladeReader::FindVariableOffsets() diff --git a/IO/XML/vtkXMLPTableReader.h b/IO/XML/vtkXMLPTableReader.h index a33871ce07..b675529719 100644 --- a/IO/XML/vtkXMLPTableReader.h +++ b/IO/XML/vtkXMLPTableReader.h @@ -87,7 +87,7 @@ protected: ~vtkXMLPTableReader() override; /** - * Return hte type of the dataset being read + * Return the type of the dataset being read */ const char* GetDataSetName() override; diff --git a/IO/Xdmf2/CMakeLists.txt b/IO/Xdmf2/CMakeLists.txt index f017c95056..fcacb3687c 100644 --- a/IO/Xdmf2/CMakeLists.txt +++ b/IO/Xdmf2/CMakeLists.txt @@ -7,5 +7,5 @@ set(Module_SRCS vtkXdmfWriter.cxx ) -#set(${vtk-module}_NO_HeaderTest 1) # TODO: helper classes and reenable +#set(${vtk-module}_NO_HeaderTest 1) # TODO: helper classes and re-enable vtk_module_library(vtkIOXdmf2 ${Module_SRCS}) diff --git a/IO/Xdmf2/vtkXdmfWriter.cxx b/IO/Xdmf2/vtkXdmfWriter.cxx index 03c6e9b7fe..35daeb7814 100644 --- a/IO/Xdmf2/vtkXdmfWriter.cxx +++ b/IO/Xdmf2/vtkXdmfWriter.cxx @@ -458,7 +458,7 @@ int vtkXdmfWriter::WriteCompositeDataSet(vtkCompositeDataSet *dobj, xdmf2::XdmfG { //fine for vtkMultiBlockDataSet //vtkHierarchicalBoxDataSet would be better served by a different xdmf tree type - //vtkTemporalDataSet is internal to the VTK pipeline so I am ingnoring it + //vtkTemporalDataSet is internal to the VTK pipeline so I am ignoring it grid->SetGridType(XDMF_GRID_TREE); } diff --git a/Rendering/OpenGL2/vtkDepthPeelingPass.h b/Rendering/OpenGL2/vtkDepthPeelingPass.h index 7fba337ee7..2732391e54 100644 --- a/Rendering/OpenGL2/vtkDepthPeelingPass.h +++ b/Rendering/OpenGL2/vtkDepthPeelingPass.h @@ -14,7 +14,7 @@ =========================================================================*/ /** * @class vtkDepthPeelingPass - * @brief Implement Depth Peeling for use within a frambuffer pass + * @brief Implement Depth Peeling for use within a framebuffer pass * * Note that this implementation is used as a fallback for drivers that * don't support floating point textures. Most renderings will use the subclass @@ -38,7 +38,7 @@ * This implementation makes use of textures and is suitable for ES3 * For ES3 it must be embedded within a pass that makes use of framebuffers * so that the required OpaqueZTexture and OpaqueRGBATexture can be - * passed from the outer frambuffer pass. For OpenGL ES3 be aware the + * passed from the outer framebuffer pass. For OpenGL ES3 be aware the * occlusion ratio test is not supported. The maximum number of peels * is used instead so set it to a reasonable value. For many scenes * a value of 4 or 5 will work well. diff --git a/Rendering/OpenGL2/vtkOpenGLFramebufferObject.h b/Rendering/OpenGL2/vtkOpenGLFramebufferObject.h index 9e94ce72be..62e1a117f7 100644 --- a/Rendering/OpenGL2/vtkOpenGLFramebufferObject.h +++ b/Rendering/OpenGL2/vtkOpenGLFramebufferObject.h @@ -339,7 +339,7 @@ public: /** * Convenience method to populate a framebuffer with * attachments created as well. Returns true if a - * complete valid Frambuffer was created + * complete valid Framebuffer was created */ bool PopulateFramebuffer(int width, int height); bool PopulateFramebuffer( diff --git a/Rendering/VolumeOpenGL2/vtkOpenGLGPUVolumeRayCastMapper.cxx b/Rendering/VolumeOpenGL2/vtkOpenGLGPUVolumeRayCastMapper.cxx index 00d81161c8..cb2d0dfdc1 100644 --- a/Rendering/VolumeOpenGL2/vtkOpenGLGPUVolumeRayCastMapper.cxx +++ b/Rendering/VolumeOpenGL2/vtkOpenGLGPUVolumeRayCastMapper.cxx @@ -3345,7 +3345,7 @@ bool vtkOpenGLGPUVolumeRayCastMapper::vtkInternal::UpdateInputs(vtkRenderer* ren this->Partitions[2]); ///TODO Currently, only input arrays with the same name/id/mode can be - // (accross input objects) can be rendered. This could be addressed by + // (across input objects) can be rendered. This could be addressed by // overriding the mapper's settings with array settings defined in the // vtkMultiVolume instance. vtkDataArray* scalars = this->Parent->GetScalars(input, this->Parent->ScalarMode, diff --git a/Utilities/PythonInterpreter/vtkPythonInteractiveInterpreter.h b/Utilities/PythonInterpreter/vtkPythonInteractiveInterpreter.h index 4b42f556dd..57f6b43605 100644 --- a/Utilities/PythonInterpreter/vtkPythonInteractiveInterpreter.h +++ b/Utilities/PythonInterpreter/vtkPythonInteractiveInterpreter.h @@ -17,7 +17,7 @@ * @brief interpreter for interactive shells. * * vtkPythonInteractiveInterpreter provides an interpreter that can be used in - * interactive shells. It mimicks the behaviour of the interactive + * interactive shells. It mimics the behaviour of the interactive * console (much like the default Python shell) providing the "read-eval-print" * loops. It also handles incomplete statements correctly. It uses "code" * module provided by Python standard library to achieve this. diff --git a/Utilities/PythonInterpreter/vtkPythonInterpreter.cxx b/Utilities/PythonInterpreter/vtkPythonInterpreter.cxx index 10ca69d891..2d5346f2f2 100644 --- a/Utilities/PythonInterpreter/vtkPythonInterpreter.cxx +++ b/Utilities/PythonInterpreter/vtkPythonInterpreter.cxx @@ -276,7 +276,7 @@ void vtkPythonInterpreter::Finalize() { NotifyInterpreters(vtkCommand::ExitEvent); vtkPythonScopeGilEnsurer gilEnsurer(false, true); - // Py_Finalize will take care of relasing gil + // Py_Finalize will take care of releasing gil Py_Finalize(); } } @@ -404,7 +404,7 @@ int vtkPythonInterpreter::PyMain(int argc, char** argv) return res; #else - // process command line argments to remove unhandled args. + // process command line arguments to remove unhandled args. std::vector newargv; for (int i=0; i < argc; ++i) { diff --git a/Utilities/octree/octree.h b/Utilities/octree/octree.h index 50c34f608e..bfc37f3531 100644 --- a/Utilities/octree/octree.h +++ b/Utilities/octree/octree.h @@ -27,7 +27,7 @@ * the integers in the vector will all be in \f$\{0,\ldots,2^d-1\}\f$. * * The octree_cursor class provides a free-form way to visit nodes in the octree; - * it does not behave like an interator that guarantees each node will be visited once. + * it does not behave like an iterator that guarantees each node will be visited once. * Instead, it provides a way to move up, down, and across the tree from any location. * This makes it useful for local queries that do not need to traverse the entire tree. * -- GitLab