From 57a9ad15f4948bda3698c9b57d56aa7abe07e97e Mon Sep 17 00:00:00 2001 From: luzpaz Date: Sun, 17 Jul 2022 16:16:32 -0400 Subject: [PATCH] DOC: Fix typos in several subfolders Found via `codespell -q 3 -L ba,dependees,nd,nin,pinter,pullrequest,serie` --- .../Testing/Python/SlicerOptionDisableSettingsTest.py | 4 ++-- Base/Logic/vtkImageRectangularSource.cxx | 6 +++--- Base/QTCLI/qSlicerCLIModuleUIHelper.cxx | 2 +- Base/QTCore/qSlicerFileWriter.h | 2 +- Base/QTGUI/qSlicerNodeWriter.h | 2 +- CMake/ExternalProjectDependencyForPython.cmake | 2 +- CMake/SlicerMacroBuildApplication.cmake | 2 +- Docs/_extracli/DWIConvert.xml | 2 +- Docs/_extracli/PerformMetricTest.xml | 4 ++-- Docs/developer_guide/build_instructions/macos.md | 2 +- Docs/developer_guide/build_instructions/windows.md | 2 +- Docs/developer_guide/extensions.md | 2 +- Docs/developer_guide/modules/dicom.md | 2 +- Docs/developer_guide/mrml_overview.md | 2 +- Docs/developer_guide/python_faq.md | 2 +- Docs/user_guide/modules/annotations.md | 4 ++-- Docs/user_guide/modules/volumerendering.md | 2 +- Docs/user_guide/modules/volumes.md | 2 +- Docs/user_guide/user_interface.md | 2 +- Libs/MRML/Core/Testing/CMakeLists.txt | 2 +- .../Core/Testing/vtkMRMLNonlinearTransformNodeTest1.cxx | 2 +- Libs/MRML/Core/vtkEventBroker.cxx | 2 +- Libs/MRML/Core/vtkMRMLCoreTestingUtilities.cxx | 2 +- Libs/MRML/Core/vtkMRMLDiffusionImageVolumeNode.h | 2 +- Libs/MRML/Core/vtkMRMLDiffusionTensorVolumeNode.h | 2 +- Libs/MRML/Core/vtkMRMLDiffusionWeightedVolumeNode.h | 2 +- Libs/MRML/Core/vtkMRMLTensorVolumeNode.h | 2 +- Libs/MRML/Core/vtkMRMLTransformStorageNode.h | 2 +- Libs/MRML/Core/vtkTagTable.cxx | 2 +- .../Testing/Cxx/vtkMRMLDisplayableManagerFactoriesTest1.cxx | 6 +++--- Libs/MRML/IDImageIO/itkMRMLIDImageIO.h | 2 +- Libs/MRML/Logic/Testing/Cxx/vtkMRMLSliceLogicTest1.cxx | 2 +- Libs/MRML/Logic/vtkMRMLRemoteIOLogic.h | 2 +- Libs/MRML/Widgets/Testing/CMakeLists.txt | 4 ++-- Libs/MRML/Widgets/qMRMLNodeComboBoxMenuDelegate.h | 2 +- Libs/MRML/Widgets/qMRMLPlotView_p.h | 2 +- Libs/MRML/Widgets/qMRMLSliceView.h | 2 +- Libs/MRML/Widgets/qMRMLThreeDView.h | 2 +- Libs/vtkSegmentationCore/vtkOrientedImageDataResample.cxx | 4 ++-- Utilities/Scripts/SlicerWizard/doc/conf.py | 2 +- 40 files changed, 49 insertions(+), 49 deletions(-) diff --git a/Applications/SlicerApp/Testing/Python/SlicerOptionDisableSettingsTest.py b/Applications/SlicerApp/Testing/Python/SlicerOptionDisableSettingsTest.py index 3243cfb7011..3a8c7824afc 100755 --- a/Applications/SlicerApp/Testing/Python/SlicerOptionDisableSettingsTest.py +++ b/Applications/SlicerApp/Testing/Python/SlicerOptionDisableSettingsTest.py @@ -38,7 +38,7 @@ def checkUserSettings(slicer_executable, common_args, keep_temporary_settings=Fa print("=> ok\n") # User settings previously added should: - # * NOT be set by detault + # * NOT be set by default # * be set if '--keep-temporary-settings' is provided args = list(common_args) condition = 'is not None' @@ -62,7 +62,7 @@ def checkRevisionUserSettings(slicer_executable, common_args, keep_temporary_set print("=> ok\n") # User revision settings previously added should: - # * NOT be set by detault + # * NOT be set by default # * be set if '--keep-temporary-settings' is provided args = list(common_args) condition = 'is not None' diff --git a/Base/Logic/vtkImageRectangularSource.cxx b/Base/Logic/vtkImageRectangularSource.cxx index 2f5e8cf8cc4..8aa862bb8ae 100644 --- a/Base/Logic/vtkImageRectangularSource.cxx +++ b/Base/Logic/vtkImageRectangularSource.cxx @@ -209,11 +209,11 @@ void vtkImageRectangularSourceExecute(vtkImageRectangularSource *self, } } -// Beginining +// Beginning namespace RectSource { -// Define in a tirangle the min and max +// Define in a triangle the min and max int Min(int x1, int x2) {return (x1 < x2 ? x1 : x2);} int Min(int x1, int x2, int x3) {return Min(Min(x1,x2),x3);} int Min(int x1, int x2, int x3, int x4) {return Min(Min(x1,x2,x3),x4);} @@ -365,7 +365,7 @@ void DefineSlice(int **Corners, int RowLength, int LineLength, T inVal, T outVal // Area of interest for (int y = MinInY; y <= MaxInY; y ++) { - // Split Rectangual in two triangles + // Split rectangle into two triangles DefineXMinMaxInTriangle(Corners[0], Corners[1], Corners[3], y, inMinX1, inMaxX1); DefineXMinMaxInTriangle(Corners[1], Corners[2], Corners[3], y, inMinX2, inMaxX2); if (inMaxX1 < 0) DefineLine(inMinX2, inMaxX2,LineLength, inVal, outVal, InsideGraySlopeFlag,Result); diff --git a/Base/QTCLI/qSlicerCLIModuleUIHelper.cxx b/Base/QTCLI/qSlicerCLIModuleUIHelper.cxx index 7373f869747..738be469fbc 100644 --- a/Base/QTCLI/qSlicerCLIModuleUIHelper.cxx +++ b/Base/QTCLI/qSlicerCLIModuleUIHelper.cxx @@ -638,7 +638,7 @@ QWidget* qSlicerCLIModuleUIHelperPrivate::createRegionTagWidget(const ModulePara //TODO - title + " RegionList" widget->setNoneEnabled(this->isNoneEnabled(moduleParameter)); widget->setBaseName(_label); - // Reegion can be added without switching to another module + // Region can be added without switching to another module // therefore it makes sense to enable adding nodes. widget->setAddEnabled(true); widget->setRenameEnabled(true); diff --git a/Base/QTCore/qSlicerFileWriter.h b/Base/QTCore/qSlicerFileWriter.h index 389fcec54d9..a763cc3bf6d 100644 --- a/Base/QTCore/qSlicerFileWriter.h +++ b/Base/QTCore/qSlicerFileWriter.h @@ -38,7 +38,7 @@ class Q_SLICER_BASE_QTCORE_EXPORT qSlicerFileWriter /// Return true if the object is handled by the writer. virtual bool canWriteObject(vtkObject* object)const; - /// Return a list of the supported extensions for a particuliar object. + /// Return a list of the supported extensions for a particular object. /// Please read QFileDialog::nameFilters for the allowed formats /// Example: "Image (*.jpg *.png *.tiff)", "Model (*.vtk)" virtual QStringList extensions(vtkObject* object)const = 0; diff --git a/Base/QTGUI/qSlicerNodeWriter.h b/Base/QTGUI/qSlicerNodeWriter.h index d40eb889c31..a2b5156beee 100644 --- a/Base/QTGUI/qSlicerNodeWriter.h +++ b/Base/QTGUI/qSlicerNodeWriter.h @@ -53,7 +53,7 @@ class Q_SLICER_BASE_QTGUI_EXPORT qSlicerNodeWriter /// Return true if the object is handled by the writer. bool canWriteObject(vtkObject* object)const override; - /// Return a list of the supported extensions for a particuliar object. + /// Return a list of the supported extensions for a particular object. /// Please read QFileDialog::nameFilters for the allowed formats /// Example: "Image (*.jpg *.png *.tiff)", "Model (*.vtk)" QStringList extensions(vtkObject* object)const override; diff --git a/CMake/ExternalProjectDependencyForPython.cmake b/CMake/ExternalProjectDependencyForPython.cmake index 2ba4e70862d..90b1e18e114 100644 --- a/CMake/ExternalProjectDependencyForPython.cmake +++ b/CMake/ExternalProjectDependencyForPython.cmake @@ -62,7 +62,7 @@ # # ``OUTPUT_VAR_PREFIX `` # Specify the prefix of output variables ``_PATH`` and ``_VERSION``. -# It defaults to upercase value of ````. +# It defaults to uppercase value of ````. # function(ExternalProject_FindPythonPackage) diff --git a/CMake/SlicerMacroBuildApplication.cmake b/CMake/SlicerMacroBuildApplication.cmake index 134b511e9ed..76f643b694f 100644 --- a/CMake/SlicerMacroBuildApplication.cmake +++ b/CMake/SlicerMacroBuildApplication.cmake @@ -647,7 +647,7 @@ macro(slicerMacroBuildApplication) # Slicer arguments triggering display of launcher help HELP_SHORT_ARG "-h" HELP_LONG_ARG "--help" - # Slicer arguments that should NOT be associated with the spash screeb + # Slicer arguments that should NOT be associated with the splash screen NOSPLASH_ARGS "--no-splash,--help,--version,--home,--program-path,--no-main-window,--settings-path,--temporary-path" # Extra application associated with the launcher EXTRA_APPLICATION_TO_LAUNCH_BUILD ${extraApplicationToLaunchListForBuildTree} diff --git a/Docs/_extracli/DWIConvert.xml b/Docs/_extracli/DWIConvert.xml index bbd04ae1911..02fa4d0cac4 100644 --- a/Docs/_extracli/DWIConvert.xml +++ b/Docs/_extracli/DWIConvert.xml @@ -131,7 +131,7 @@ useBMatrixGradientDirections --useBMatrixGradientDirections - + false diff --git a/Docs/_extracli/PerformMetricTest.xml b/Docs/_extracli/PerformMetricTest.xml index 56c7d03699c..7875b94bb00 100644 --- a/Docs/_extracli/PerformMetricTest.xml +++ b/Docs/_extracli/PerformMetricTest.xml @@ -62,8 +62,8 @@ numberOfHistogramBins numberOfHistogramBins - - The number of historgram bins when MMI (Mattes) is metric type. + + The number of histogram bins when MMI (Mattes) is metric type. 50 diff --git a/Docs/developer_guide/build_instructions/macos.md b/Docs/developer_guide/build_instructions/macos.md index 2d7e40c6fda..fba511d2bc1 100644 --- a/Docs/developer_guide/build_instructions/macos.md +++ b/Docs/developer_guide/build_instructions/macos.md @@ -59,7 +59,7 @@ cmake \ - Remarks: - Instead of `cmake`, you can use `ccmake` or `cmake-gui` to visually inspect and edit configure options. - Using top-level directory name like `/opt/sr` for Release or `/opt/s` for Debug is recommended. If `/opt` does not exist on your machine you need to use sudo for `mkdir` and `chown` in `/opt`. - - [Step-by-step debug instuctions](https://www.slicer.org/wiki/Documentation/Nightly/Developers/Tutorials/Debug_Instructions) + - [Step-by-step debug instructions](https://www.slicer.org/wiki/Documentation/Nightly/Developers/Tutorials/Debug_Instructions) - Additional configuration options to customize the application are described [here](overview.md#custom-builds). ### General information diff --git a/Docs/developer_guide/build_instructions/windows.md b/Docs/developer_guide/build_instructions/windows.md index 99e0a327ad8..7bc59cd273e 100644 --- a/Docs/developer_guide/build_instructions/windows.md +++ b/Docs/developer_guide/build_instructions/windows.md @@ -69,7 +69,7 @@ cd /d C:\D\S4D - Add `Qt5_DIR` variable pointing to Qt5 folder: click Add entry button, set `Name` to `Qt5_DIR`, set `Type` to `PATH`, and set `Value` to the Qt5 folder, such as `C:\Qt\5.15.2\msvc2019_64\lib\cmake\Qt5`. - Click `Configure` - Select your compiler: `Visual Studio 17 2022`, and click `Finish` -- Click `Generate` and wait for project generation to finish (may take a few minues) +- Click `Generate` and wait for project generation to finish (may take a few minutes) - Click `Open Project` - If building in release mode: - Open the top-level Slicer.sln file in the build directory in Visual Studio diff --git a/Docs/developer_guide/extensions.md b/Docs/developer_guide/extensions.md index baba02cfa13..ddbeb9a4929 100644 --- a/Docs/developer_guide/extensions.md +++ b/Docs/developer_guide/extensions.md @@ -300,7 +300,7 @@ The ExtensionsIndex is a repository containing a list of [extension description The ExtensionsIndex is hosted on GitHub: -Each branch of the repository contains extension descrtiption files that corresponds to the same branch in the Slicer repository. For example, `main` branch contains descriptions for Slicer `main` branch, and `4.11` branch contains extension descripions for Slicer's `4.11` branch. +Each branch of the repository contains extension description files that corresponds to the same branch in the Slicer repository. For example, `main` branch contains descriptions for Slicer `main` branch, and `4.11` branch contains extension descripions for Slicer's `4.11` branch. Extension developers have to make sure that the extension description in each branch of the Extensions index is compatible with the corresponding Slicer version. Extension developers often create the same branches (`main`, `4.11`, `4.13`, ...) in their repository and they specify this branch name in the extensions descriptor file. diff --git a/Docs/developer_guide/modules/dicom.md b/Docs/developer_guide/modules/dicom.md index d978e4f6074..6999bf043c5 100644 --- a/Docs/developer_guide/modules/dicom.md +++ b/Docs/developer_guide/modules/dicom.md @@ -20,7 +20,7 @@ The existing two rules can be used as examples: the [default](https://github.com ## Plugin architecture -There are many different kind of DICOM information objects and import/export of all of them would not be feasible to implement in the Slicer core (see more information in the [DICOM module user manual](../../user_guide/modules/dicom.md#dicom-plugins)). Therefore, extensions can implement custom importer/exporter clases based on DICOMLib.DICOMPlugin class and add them to slicer.modules.dicomPlugins dictionary object. The DICOM module uses these plugins to determine list of loadable and exportable items. +There are many different kind of DICOM information objects and import/export of all of them would not be feasible to implement in the Slicer core (see more information in the [DICOM module user manual](../../user_guide/modules/dicom.md#dicom-plugins)). Therefore, extensions can implement custom importer/exporter classes based on DICOMLib.DICOMPlugin class and add them to slicer.modules.dicomPlugins dictionary object. The DICOM module uses these plugins to determine list of loadable and exportable items. ## References diff --git a/Docs/developer_guide/mrml_overview.md b/Docs/developer_guide/mrml_overview.md index 0317747da59..858a8ce1fa1 100644 --- a/Docs/developer_guide/mrml_overview.md +++ b/Docs/developer_guide/mrml_overview.md @@ -503,7 +503,7 @@ Management of slice views is distributed between several objects: - Slice node ([vtkMRMLSliceNode](https://apidocs.slicer.org/main/classvtkMRMLSliceNode.html)): Stores the position, orientation, and size of the slice. This is a [view node](https://apidocs.slicer.org/main/classvtkMRMLAbstractViewNode.html) and as such it stores common view properties, such as the view name, layout color, background color. - Slice display node ([vtkMRMLSliceDisplayNode](https://apidocs.slicer.org/main/classvtkMRMLSliceDisplayNode.html)): Specifies how the slice should be displayed, such as visibility and style of display of intersecting slices. The class is based on [classvtkMRMLModelDisplayNode](https://apidocs.slicer.org/main/classvtkMRMLModelDisplayNode.html), therefore it also specifies which 3D views the slice is displayed in. - Slice composite node ([vtkMRMLSliceCompositeNode](https://apidocs.slicer.org/main/classvtkMRMLSliceCompositeNode.html)): Specifies what volumes are displayed in the slice and how to blend them. It is ended up being a separate node probably because it is somewhat a mix between a data node (that tells what data to display) and a display node (that specifies how the data is displayed). -- Slice model node ([vtkMRMLModelNode](https://apidocs.slicer.org/main/classvtkMRMLModelNode.html)): It is a model node that displays the slice in 3D views. It stores a simple rectangle mesh on that the image cross-section is renderd as a texture. +- Slice model node ([vtkMRMLModelNode](https://apidocs.slicer.org/main/classvtkMRMLModelNode.html)): It is a model node that displays the slice in 3D views. It stores a simple rectangle mesh on that the image cross-section is rendered as a texture. - Slice model transform node ([vtkMRMLTransformNode](https://apidocs.slicer.org/main/classvtkMRMLTransformNode.html)). The transform node is used for positioning the slice model node in 3D views. It is faster to use a transform node to position the plane than modifying the plane points each time the slice is moved. - Slice logic ([vtkMRMLSliceLogic](https://apidocs.slicer.org/main/classvtkMRMLSliceLogic.html)): This is not a MRML node but a logic class, which implements operationson MRML nodes. There is one logic for each slice view. The object keeps reference to all MRML nodes, so it is a good starting point for accessing any data related to slices and performing operations on slices. Slice logics are stored in the application logic object and can be retrieved like this: `sliceLogic = slicer.app.applicationLogic().GetSliceLogicByLayoutName('Red')`. There are a few other `GetSlicerLogic...` methods to get slice logic based on slice node, slice model display node, and to get all the slice logics. - Slice layer logic([vtkMRMLSliceLayerLogic](https://apidocs.slicer.org/main/classvtkMRMLSliceLayerLogic.html)): Implements reslicing and interpolation for a volume. There is one slice layer logic for each volume layer (foreground, background, label) for each slice view. diff --git a/Docs/developer_guide/python_faq.md b/Docs/developer_guide/python_faq.md index 687d915d8c0..f4c91dee8d8 100644 --- a/Docs/developer_guide/python_faq.md +++ b/Docs/developer_guide/python_faq.md @@ -129,7 +129,7 @@ Module logic methods can be explored by using the `help` Python function (`help( ### Adding reusable widgets provided by modules -Most Slicer core modules provide a set of resuable, conigurable GUI widgets that can help developers in building their module's user interface. +Most Slicer core modules provide a set of reusable, configurable GUI widgets that can help developers in building their module's user interface. For example, Volumes module offers a widget that can display and edit basic properties of volume nodes: diff --git a/Docs/user_guide/modules/annotations.md b/Docs/user_guide/modules/annotations.md index 97f9aec8c21..26f2b727971 100644 --- a/Docs/user_guide/modules/annotations.md +++ b/Docs/user_guide/modules/annotations.md @@ -60,8 +60,8 @@ Create and edit annotations, supplementary information associated with a scene. - **Modify Annotation Properties: Advanced**: - **Text**: Set the descriptive text, text color, scale, opacity on this panel - - **Points**: Set the coordinate location of the point(s), glyph color, scale, glyph type, opacity, ambient, diffuse, specular material properites on this panel - - **Lines**: This panel is only enabled for rulers. Set the line color, label visibility, label position along the line (from 0-1), tick spacing, maximum number of ticks, opacity, ambient, diffuse, specular material properites on this panel + - **Points**: Set the coordinate location of the point(s), glyph color, scale, glyph type, opacity, ambient, diffuse, specular material properties on this panel + - **Lines**: This panel is only enabled for rulers. Set the line color, label visibility, label position along the line (from 0-1), tick spacing, maximum number of ticks, opacity, ambient, diffuse, specular material properties on this panel - **ROI**: This panel is only enabled for regions of interest. Set the ranges for the ROI along it's axes, LR, PA, IS. Toggle the ROI visibility and if it's updated interactively on this panel - **Toolbar**: diff --git a/Docs/user_guide/modules/volumerendering.md b/Docs/user_guide/modules/volumerendering.md index 9398147fbdc..31872baa44f 100644 --- a/Docs/user_guide/modules/volumerendering.md +++ b/Docs/user_guide/modules/volumerendering.md @@ -68,7 +68,7 @@ See [video demo/tutorial of these steps](https://youtu.be/xZwyW6SaoM4?t=12) for - Crop: Simple controls for the cropping box (ROI). More controls are available in the "Advanced..." section. Enable/Disable cropping of the volume. Show/Hide the cropping box. Reset the box ROI to the volume's bounds. - Rendering: Select a volume rendering method. A default method can be set in the application settings Volume Rendering panel. - VTK CPU Ray Casting: Available on all computers, regardless of capabilities of graphics hardware. The volume rendering is entirely realized on the CPU, therefore it is slower than other options. - - VTK GPU Ray Casting (default): Uses graphics hardware for rendering, typically much faster than CPU volume rendering. This is the recommended method for computers that have sufficiant graphics capabilities. It supports surface smoothing to remove staircase artifacts. + - VTK GPU Ray Casting (default): Uses graphics hardware for rendering, typically much faster than CPU volume rendering. This is the recommended method for computers that have sufficient graphics capabilities. It supports surface smoothing to remove staircase artifacts. - VTK Multi-Volume: Uses graphics hardware for rendering. Can render multiple overlapping volumes but it has several limitations (see details in [limitations](#limitations) section at the bottom of this page. - Advanced: More controls to control the volume rendering. Contains 3 tabs: "Techniques", "Volume Properties" and "ROI" - Techniques: Advanced properties of the current volume rendering method. diff --git a/Docs/user_guide/modules/volumes.md b/Docs/user_guide/modules/volumes.md index 1d32f81a7f6..1b416dd3ba3 100644 --- a/Docs/user_guide/modules/volumes.md +++ b/Docs/user_guide/modules/volumes.md @@ -88,7 +88,7 @@ Note: Consumer file formats, such as jpg, png, and tiff are not well suited for - Image Dimensions: The number of pixels in "IJK" space - this is the way the data is arranged in memory. The IJK indices (displayed in the DataProbe) go from 0 to dimension-1 in each direction. - Image Spacing: The physical distance between pixel centers when mapped to patient space expressed in millimeters. - Image Origin: The location of the center of the 0,0,0 (IJK) pixel expressed with respect to patient space. Patient space is organized with respect to the subject's Right, Anterior, and Superior anatomical directions. See [coordinate systems page](https://www.slicer.org/w/index.php/Coordinate_systems) for more information. - - IJK to RAS Direction Matrix: The trasnform matrix from the IJK to RAS coordinate systems + - IJK to RAS Direction Matrix: The transform matrix from the IJK to RAS coordinate systems - Center Volume: This button will apply a transform to the volume that shifts its center to the origin in patient space. Harden the transform on the volume to permanently change the image origin. - Scan Order: Describes the image orientation (how the IJK space is oriented with respect to patient RAS. - Number of Scalars: Most CT or MR scans have one scalar component (grayscale). Color images have three components (red, green, blue). diff --git a/Docs/user_guide/user_interface.md b/Docs/user_guide/user_interface.md index dcce197cdd6..7bfdee65ecb 100644 --- a/Docs/user_guide/user_interface.md +++ b/Docs/user_guide/user_interface.md @@ -171,7 +171,7 @@ View Controllers module provides an alternate way of displaying these controller - **Rotate to volume plane** changes the orientation of the slice to match the closest acquisition orientation of the displayed volume. - **Orientation Marker** controls display of human, cube, etc in lower right corner. - **Ruler** controls display of ruler in slice view. -- **View link** button synchronizes properties of views in the same view group, such as foreground/backgroudn/label volume selection, foreground/label volume opacity, zoom factor. +- **View link** button synchronizes properties of views in the same view group, such as foreground/background/label volume selection, foreground/label volume opacity, zoom factor. - For parallel views (i.e., that are set to the same orientation,OD such as `axial`), the view center position is synchronized as well. - Long-click on the button exposes **hot-linked** option, which controls when properties are synchronized (immediately or when the mouse button is released). - A view group typically consists of 3 orthogonal views (e.g., in `Four-Up` view, `R`, `G`, `Y, views are in the same group). In layouts that contain multiple triplets of slice views, each triplet forms a separate group (e.g., in `Three over three` layout there are two view groups, one group is `R`, `G`, `Y`, the other groups is `R+`, `G+`, `Y+`). diff --git a/Libs/MRML/Core/Testing/CMakeLists.txt b/Libs/MRML/Core/Testing/CMakeLists.txt index 0f0b4a48e88..a366e3f971c 100644 --- a/Libs/MRML/Core/Testing/CMakeLists.txt +++ b/Libs/MRML/Core/Testing/CMakeLists.txt @@ -231,7 +231,7 @@ simple_test( vtkThinPlateSplineTransformTest1 ) function(SIMPLE_TEST_WITH_SCENE TESTNAME SCENEFILENAME) # Extract list of external files to download. Note that the ${_externalfiles} variable # is only specified to trigger download of data files used in the scene, the arguments - # are NOT explcitly used in ${KIT}CxxTests test executable. + # are NOT explicitly used in ${KIT}CxxTests test executable. string(REPLACE "|" ";" scenefilename_and_externalfiles ${SCENEFILENAME}) list(GET scenefilename_and_externalfiles 0 SCENEFILENAME) list(LENGTH scenefilename_and_externalfiles _length) diff --git a/Libs/MRML/Core/Testing/vtkMRMLNonlinearTransformNodeTest1.cxx b/Libs/MRML/Core/Testing/vtkMRMLNonlinearTransformNodeTest1.cxx index 179b5e79254..b311e1b5534 100644 --- a/Libs/MRML/Core/Testing/vtkMRMLNonlinearTransformNodeTest1.cxx +++ b/Libs/MRML/Core/Testing/vtkMRMLNonlinearTransformNodeTest1.cxx @@ -242,7 +242,7 @@ int TestCompositeTransformHardenSplit(const char *filename) CHECK_EXIT_SUCCESS(testTransformAccuracy(transformFromWorldAfterHardening.GetPointer(), transformToWorldAfterHardening.GetPointer(), testPoints, transformedPoints.GetPointer(), transformedPointsBackToTest.GetPointer())); - // Split trasnform + // Split transform CHECK_BOOL(bsplineTransformNode->Split(), true); // Test if transform to world is the same after splitting diff --git a/Libs/MRML/Core/vtkEventBroker.cxx b/Libs/MRML/Core/vtkEventBroker.cxx index 52083ae5d72..09596c682b8 100644 --- a/Libs/MRML/Core/vtkEventBroker.cxx +++ b/Libs/MRML/Core/vtkEventBroker.cxx @@ -864,7 +864,7 @@ void vtkEventBroker::ProcessEventQueue () // - register your pointer to the observation in case it // gets deleted during handling of the event // - if the observation is no longer in the queue, stop processing events - // - unregister before after dequeing in case the observation should go away + // - unregister before after dequeuing in case the observation should go away // while ( this->GetNumberOfQueuedObservations() > 0 ) { diff --git a/Libs/MRML/Core/vtkMRMLCoreTestingUtilities.cxx b/Libs/MRML/Core/vtkMRMLCoreTestingUtilities.cxx index f37f28b1083..1aa8be50d80 100644 --- a/Libs/MRML/Core/vtkMRMLCoreTestingUtilities.cxx +++ b/Libs/MRML/Core/vtkMRMLCoreTestingUtilities.cxx @@ -129,7 +129,7 @@ int GetExpectedNodeAddedClassNames(const char * sceneFilePath, std::vectorGetRootElement()->GetNumberOfNestedElements(); CHECK_BOOL(expectedNumberOfNode > 0, true); - // Loop though all exepcted node and populate expectedNodeAddedClassNames vector + // Loop though all expected node and populate expectedNodeAddedClassNames vector // Note that node that can't be instantiated using CreateNodeByClass are not expected for(int i=0; i < xmlParser->GetRootElement()->GetNumberOfNestedElements(); ++i) { diff --git a/Libs/MRML/Core/vtkMRMLDiffusionImageVolumeNode.h b/Libs/MRML/Core/vtkMRMLDiffusionImageVolumeNode.h index 378bc7b0673..bbaac02876d 100644 --- a/Libs/MRML/Core/vtkMRMLDiffusionImageVolumeNode.h +++ b/Libs/MRML/Core/vtkMRMLDiffusionImageVolumeNode.h @@ -22,7 +22,7 @@ class vtkMRMLDiffusionWeightedVolumeNode; /// /// Diffusion Weighted Volume nodes describe data sets that encode diffusion weighted /// images. These images are the basis for computing the diffusion tensor. -/// The node is a container for the necessary information to interpert DW images: +/// The node is a container for the necessary information to interpret DW images: /// 1. Gradient information. /// 2. B value for each gradient. /// 3. Measurement frame that relates the coordinate system where the gradients are given diff --git a/Libs/MRML/Core/vtkMRMLDiffusionTensorVolumeNode.h b/Libs/MRML/Core/vtkMRMLDiffusionTensorVolumeNode.h index 755dcb930a7..a464672c230 100644 --- a/Libs/MRML/Core/vtkMRMLDiffusionTensorVolumeNode.h +++ b/Libs/MRML/Core/vtkMRMLDiffusionTensorVolumeNode.h @@ -23,7 +23,7 @@ class vtkMRMLDiffusionTensorVolumeDisplayNode; /// /// Diffusion Weighted Volume nodes describe data sets that encode diffusion weighted /// images. These images are the basis for computing the diffusion tensor. -/// The node is a container for the necessary information to interpert DW images: +/// The node is a container for the necessary information to interpret DW images: /// 1. Gradient information. /// 2. B value for each gradient. /// 3. Measurement frame that relates the coordinate system where the gradients are given diff --git a/Libs/MRML/Core/vtkMRMLDiffusionWeightedVolumeNode.h b/Libs/MRML/Core/vtkMRMLDiffusionWeightedVolumeNode.h index c19934c5eac..e4d8fe19d20 100644 --- a/Libs/MRML/Core/vtkMRMLDiffusionWeightedVolumeNode.h +++ b/Libs/MRML/Core/vtkMRMLDiffusionWeightedVolumeNode.h @@ -26,7 +26,7 @@ class vtkImageExtractComponents; /// /// Diffusion Weighted Volume nodes describe data sets that encode diffusion weighted /// images. These images are the basis for computing the diffusion tensor. -/// The node is a container for the necessary information to interpert DW images: +/// The node is a container for the necessary information to interpret DW images: /// 1. Gradient information. /// 2. B value for each gradient. /// 3. Measurement frame that relates the coordinate system where the gradients are given diff --git a/Libs/MRML/Core/vtkMRMLTensorVolumeNode.h b/Libs/MRML/Core/vtkMRMLTensorVolumeNode.h index e346d3d2bea..7565371ee58 100644 --- a/Libs/MRML/Core/vtkMRMLTensorVolumeNode.h +++ b/Libs/MRML/Core/vtkMRMLTensorVolumeNode.h @@ -26,7 +26,7 @@ class vtkMatrix4x4; /// /// Diffusion Weighted Volume nodes describe data sets that encode diffusion weighted /// images. These images are the basis for computing the diffusion tensor. -/// The node is a container for the necessary information to interpert DW images: +/// The node is a container for the necessary information to interpret DW images: /// 1. Gradient information. /// 2. B value for each gradient. /// 3. Measurement frame that relates the coordinate system where the gradients are given diff --git a/Libs/MRML/Core/vtkMRMLTransformStorageNode.h b/Libs/MRML/Core/vtkMRMLTransformStorageNode.h index 88f80585296..705d401e71e 100644 --- a/Libs/MRML/Core/vtkMRMLTransformStorageNode.h +++ b/Libs/MRML/Core/vtkMRMLTransformStorageNode.h @@ -92,7 +92,7 @@ class VTK_MRML_EXPORT vtkMRMLTransformStorageNode : public vtkMRMLStorageNode /// additive bulk transform (as in ITKv3 bspline transform). virtual int ReadFromITKv3BSplineTransformFile(vtkMRMLNode *refNode); - /// This method uses ITK's transform reading infrastucture to + /// This method uses ITK's transform reading infrastructure to /// read simple or composite transforms. The composite transform can /// contain nested transforms in any order coming in theory /// from any file type and it is read into a vtkGeneralTransform. diff --git a/Libs/MRML/Core/vtkTagTable.cxx b/Libs/MRML/Core/vtkTagTable.cxx index a6fecf978c3..57ec6d63225 100644 --- a/Libs/MRML/Core/vtkTagTable.cxx +++ b/Libs/MRML/Core/vtkTagTable.cxx @@ -58,7 +58,7 @@ void vtkTagTable::PrintSelf(ostream& os, vtkIndent indent) { os << indent << "TagTable:\n"; os << indent << "Attribute = " << iter->first << " Value = " << iter->second << " Selected = " << "??" << "\n"; - vtkErrorMacro ( "vtkTagTable::PrintSelf -- TagTable and TagSelectionTable are out of synch." ); + vtkErrorMacro ( "vtkTagTable::PrintSelf -- TagTable and TagSelectionTable are out of sync." ); } } } diff --git a/Libs/MRML/DisplayableManager/Testing/Cxx/vtkMRMLDisplayableManagerFactoriesTest1.cxx b/Libs/MRML/DisplayableManager/Testing/Cxx/vtkMRMLDisplayableManagerFactoriesTest1.cxx index 6e218bd33d4..dd236a51fd1 100644 --- a/Libs/MRML/DisplayableManager/Testing/Cxx/vtkMRMLDisplayableManagerFactoriesTest1.cxx +++ b/Libs/MRML/DisplayableManager/Testing/Cxx/vtkMRMLDisplayableManagerFactoriesTest1.cxx @@ -176,7 +176,7 @@ int vtkMRMLDisplayableManagerFactoriesTest1(int argc, char* argv[]) vtkNew cameraNode; scene->AddNode(cameraNode.GetPointer()); - // Check if both displayable manager cought the event + // Check if both displayable manager caught the event if (vtkMRMLTestThreeDViewDisplayableManager::NodeAddedCount != 1) { std::cerr << "Line " << __LINE__ @@ -247,7 +247,7 @@ int vtkMRMLDisplayableManagerFactoriesTest1(int argc, char* argv[]) return EXIT_FAILURE; } - // Check if both displayable manager cought the event + // Check if both displayable manager caught the event if (vtkMRMLTestThreeDViewDisplayableManager::NodeAddedCount != 1) { std::cerr << "Line " << __LINE__ @@ -311,7 +311,7 @@ int vtkMRMLDisplayableManagerFactoriesTest1(int argc, char* argv[]) return EXIT_FAILURE; } - // Check if both displayable manager cought the event + // Check if both displayable manager caught the event if (vtkMRMLTestThreeDViewDisplayableManager::NodeAddedCount != 2) { std::cerr << "Line " << __LINE__ diff --git a/Libs/MRML/IDImageIO/itkMRMLIDImageIO.h b/Libs/MRML/IDImageIO/itkMRMLIDImageIO.h index 92bc4b1fecb..de39379b71a 100644 --- a/Libs/MRML/IDImageIO/itkMRMLIDImageIO.h +++ b/Libs/MRML/IDImageIO/itkMRMLIDImageIO.h @@ -48,7 +48,7 @@ namespace itk * slicer:\#\ - local slicer * slicer://\/\#\ - remote slicer * - * This code was written on the Massachusettes Turnpike with extreme + * This code was written on the Massachusetts Turnpike with extreme * glare on the LCD. */ class MRMLIDImageIO_EXPORT MRMLIDImageIO : public ImageIOBase diff --git a/Libs/MRML/Logic/Testing/Cxx/vtkMRMLSliceLogicTest1.cxx b/Libs/MRML/Logic/Testing/Cxx/vtkMRMLSliceLogicTest1.cxx index 7ea81828c47..678e3d44af3 100644 --- a/Libs/MRML/Logic/Testing/Cxx/vtkMRMLSliceLogicTest1.cxx +++ b/Libs/MRML/Logic/Testing/Cxx/vtkMRMLSliceLogicTest1.cxx @@ -58,7 +58,7 @@ int vtkMRMLSliceLogicTest1(int , char * [] ) // TODO: need to fix the test. // The problem here is that the current node of the logic is wrong // it hasn't been added to the mrml scene. So when modified, - // the logic realizes it and create a new node (loosing the props). + // the logic realizes it and create a new node (losing the props). //TEST_SET_GET_VALUE(logic, SliceOffset, 1); logic->DeleteSliceModel(); diff --git a/Libs/MRML/Logic/vtkMRMLRemoteIOLogic.h b/Libs/MRML/Logic/vtkMRMLRemoteIOLogic.h index 56c1b0792fe..ecdb21161fc 100644 --- a/Libs/MRML/Logic/vtkMRMLRemoteIOLogic.h +++ b/Libs/MRML/Logic/vtkMRMLRemoteIOLogic.h @@ -47,7 +47,7 @@ class VTK_MRML_LOGIC_EXPORT vtkMRMLRemoteIOLogic : public vtkMRMLAbstractLogic /// and used when calling AddDataIOToScene /// and RemoveDataIOFromScene /// The Get methods can be used elsewhere, but the set methods - /// should only be used for debuggin + /// should only be used for debugging vtkGetObjectMacro (CacheManager, vtkCacheManager); virtual void SetCacheManager(vtkCacheManager*); vtkGetObjectMacro (DataIOManager, vtkDataIOManager); diff --git a/Libs/MRML/Widgets/Testing/CMakeLists.txt b/Libs/MRML/Widgets/Testing/CMakeLists.txt index 7c08c89c63f..3d7e2591553 100644 --- a/Libs/MRML/Widgets/Testing/CMakeLists.txt +++ b/Libs/MRML/Widgets/Testing/CMakeLists.txt @@ -174,7 +174,7 @@ set(INPUT ${MRMLCore_SOURCE_DIR}/Testing/TestData) function(SCENE_TEST TESTNAME SCENEFILENAME) # Extract list of external files to download. Note that the ${_externalfiles} variable # is only specified to trigger download of data files used in the scene, the arguments - # are NOT explcitly used in ${KIT}CxxTests test executable. + # are NOT explicitly used in ${KIT}CxxTests test executable. string(REPLACE "|" ";" scenefilename_and_externalfiles ${SCENEFILENAME}) list(GET scenefilename_and_externalfiles 0 SCENEFILENAME) list(LENGTH scenefilename_and_externalfiles _length) @@ -269,7 +269,7 @@ if(Slicer_USE_QtTesting) # Extract list of external files to download. Note that the ${_externalfiles} variable # is only specified to trigger download of data files used in the scene, the arguments - # are NOT explcitly used in ${KIT}CxxTests test executable. + # are NOT explicitly used in ${KIT}CxxTests test executable. string(REPLACE "|" ";" scenefilename_and_externalfiles ${SCENEFILENAME}) list(GET scenefilename_and_externalfiles 0 SCENEFILENAME) list(LENGTH scenefilename_and_externalfiles _length) diff --git a/Libs/MRML/Widgets/qMRMLNodeComboBoxMenuDelegate.h b/Libs/MRML/Widgets/qMRMLNodeComboBoxMenuDelegate.h index 31fdd31096a..05bf6f9db89 100644 --- a/Libs/MRML/Widgets/qMRMLNodeComboBoxMenuDelegate.h +++ b/Libs/MRML/Widgets/qMRMLNodeComboBoxMenuDelegate.h @@ -29,7 +29,7 @@ class QComboBox; -/// \brief Abstract Item delegate to show unselectable items highlighed when the mouse is +/// \brief Abstract Item delegate to show unselectable items highlighted when the mouse is /// over them to give a feeling of selectable item. /// /// This is used in qMRMLNodeComboBox for the extra items: diff --git a/Libs/MRML/Widgets/qMRMLPlotView_p.h b/Libs/MRML/Widgets/qMRMLPlotView_p.h index 3db7437b0b5..1f178934fcc 100644 --- a/Libs/MRML/Widgets/qMRMLPlotView_p.h +++ b/Libs/MRML/Widgets/qMRMLPlotView_p.h @@ -77,7 +77,7 @@ class qMRMLPlotViewPrivate: public QObject vtkMRMLPlotSeriesNode* plotSeriesNodeFromPlot(vtkPlot* plot); // Tries to update the existing plot. If returns nullptr then it means the existing plot must be deleted. - // If returned plot differs from the existin plot, then existing plot must be replaced by the returned one. + // If returned plot differs from the existing plot, then existing plot must be replaced by the returned one. vtkSmartPointer updatePlotFromPlotSeriesNode(vtkMRMLPlotSeriesNode* plotSeriesNode, vtkPlot* existingPlot); // Adjust range to make it displayable with logarithmic scale diff --git a/Libs/MRML/Widgets/qMRMLSliceView.h b/Libs/MRML/Widgets/qMRMLSliceView.h index 2dac68ed4b7..dc1e45edc44 100644 --- a/Libs/MRML/Widgets/qMRMLSliceView.h +++ b/Libs/MRML/Widgets/qMRMLSliceView.h @@ -36,7 +36,7 @@ class vtkMRMLSliceNode; class vtkMRMLSliceViewInteractorStyle; /// \brief 2D view for slice nodes. -/// For performance reasons, the view block refreshs when the scene is in +/// For performance reasons, the view block refreshes when the scene is in /// batch process state. /// \sa qMRMLSliceWidget, qMRMLSliceControllerWidget, qMRMLThreeDView class QMRML_WIDGETS_EXPORT qMRMLSliceView diff --git a/Libs/MRML/Widgets/qMRMLThreeDView.h b/Libs/MRML/Widgets/qMRMLThreeDView.h index 86f3d0e34d9..b2c6876afff 100644 --- a/Libs/MRML/Widgets/qMRMLThreeDView.h +++ b/Libs/MRML/Widgets/qMRMLThreeDView.h @@ -36,7 +36,7 @@ class vtkMRMLViewNode; class vtkCollection; /// \brief 3D view for view nodes. -/// For performance reasons, the view block refreshs when the scene is in +/// For performance reasons, the view block refreshes when the scene is in /// batch process state. /// \sa qMRMLThreeDWidget, qMRMLThreeDViewControllerWidget, qMRMLSliceView class QMRML_WIDGETS_EXPORT qMRMLThreeDView : public ctkVTKRenderView diff --git a/Libs/vtkSegmentationCore/vtkOrientedImageDataResample.cxx b/Libs/vtkSegmentationCore/vtkOrientedImageDataResample.cxx index 5994eaadf5e..28f64523ac5 100644 --- a/Libs/vtkSegmentationCore/vtkOrientedImageDataResample.cxx +++ b/Libs/vtkSegmentationCore/vtkOrientedImageDataResample.cxx @@ -1642,7 +1642,7 @@ void vtkOrientedImageDataResample::GetLabelValuesInMask(std::vector& labelV effectiveExtent[2 * i + 1] = std::min(binaryExtent[2 * i + 1], maskExtent[2 * i + 1]); } - // No labels in mask if effective extent is emptyy + // No labels in mask if effective extent is empty if (effectiveExtent[0] > effectiveExtent[1] || effectiveExtent[2] > effectiveExtent[3] || effectiveExtent[4] > effectiveExtent[5]) { return; @@ -1805,7 +1805,7 @@ bool vtkOrientedImageDataResample::IsLabelInMask( effectiveExtent[2 * i + 1] = std::min(binaryExtent[2 * i + 1], maskExtent[2 * i + 1]); } - // No labels in mask if effective extent is emptyy + // No labels in mask if effective extent is empty if (effectiveExtent[0] > effectiveExtent[1] || effectiveExtent[2] > effectiveExtent[3] || effectiveExtent[4] > effectiveExtent[5]) { return false; diff --git a/Utilities/Scripts/SlicerWizard/doc/conf.py b/Utilities/Scripts/SlicerWizard/doc/conf.py index d22c4f8a1f7..8be99e22250 100644 --- a/Utilities/Scripts/SlicerWizard/doc/conf.py +++ b/Utilities/Scripts/SlicerWizard/doc/conf.py @@ -341,7 +341,7 @@ def setup(app): # The format is a list of tuples containing the path and title. # epub_pre_files = [] -# HTML files shat should be inserted after the pages created by sphinx. +# HTML files that should be inserted after the pages created by sphinx. # The format is a list of tuples containing the path and title. # epub_post_files = []