Commit cb8f6bf1 authored by luz.paz's avatar luz.paz

More typo fixes

Found via `codespell`
parent c0ea4326
......@@ -50,7 +50,7 @@ For further visualization, it also produces two output fields that encode the ra
The second input, i.e. the grid, steers the resolution of the balls. It is helpful if its extent is a multiple of the first input's. Then, the circles are centered nicely.
The spheres/circles are good for 2D visualizations, because they can be laid over a visualization of the field.
The balls are good for 3D volume rendering or steering of the seeding of visualization elements.
The 2D visualzation is decribed in
The 2D visualzation is described in
*Bujack, R., Hotz, I., Scheuermann, G., & Hitzer, E. (2015). Moment invariants for 2D flow fields via normalization in detail. IEEE transactions on visualization and computer graphics, 21(8), 916-929*
......
......@@ -13,7 +13,7 @@ int TestQtSwapWindows(int argc, char* argv[])
QApplication app(argc, argv);
// Set up frame with two horizontally stacked panels,
// Each containg a QVTKOpenGLWidget
// Each containing a QVTKOpenGLWidget
QWidget frame;
QHBoxLayout *layout = new QHBoxLayout(&frame);
......
......@@ -67,7 +67,7 @@ public:
* same this as the data objects modification time. It is the mod
* time of the object when it was placed into the Qt model adapter.
* You can use this mtime as part of the checking to see whether
* you need to update the the adapter by call SetVTKDataObject again. :)
* you need to update the adapter by call SetVTKDataObject again. :)
*/
vtkMTimeType GetVTKDataObjectMTime() const;
......
......@@ -91,7 +91,7 @@ vtkGeoImageNode* vtkGeoImageNode::GetParent()
// We have to get a power of 2 for dimensions of the image. VTK
// resamples every time a tile is selected anr changed otherwise.
//
// We have two choises for dealing with images.
// We have two choices for dealing with images.
//
// 1: Treat pixels like cell data.
// This makes subsampling easy. Simply use vtkImageShrink3D.
......
......@@ -129,7 +129,7 @@ protected:
~vtkGeoInteractorStyle() override;
// To avoid a warning.
// We should really inherit directy from vtkInteractorStyle
// We should really inherit directly from vtkInteractorStyle
void Dolly(double) override;
void OnTimer() override;
......
......@@ -70,7 +70,7 @@ public:
//@{
/**
* The input coordinate system.
* RECTANGULAR is x,y,z meters relative the the earth center.
* RECTANGULAR is x,y,z meters relative the earth center.
* SPHERICAL is longitude,latitude,altitude.
*/
vtkSetMacro(InputCoordinateSystem, int);
......@@ -84,7 +84,7 @@ public:
//@{
/**
* The desired output coordinate system.
* RECTANGULAR is x,y,z meters relative the the earth center.
* RECTANGULAR is x,y,z meters relative the earth center.
* SPHERICAL is longitude,latitude,altitude.
*/
vtkSetMacro(OutputCoordinateSystem, int);
......
......@@ -148,7 +148,7 @@ int vtkGlobeSource::RequestData(
* this->Radius / 3600.0;
}
// get the ouptut
// get the output
vtkPolyData *output = vtkPolyData::SafeDownCast(
outInfo->Get(vtkDataObject::DATA_OBJECT()));
......
......@@ -27,7 +27,7 @@
* given its Longitude-Latitude extent. It adds two point scalar arrays
* Longitude and Latitude to the output. These arrays can be transformed
* to generate texture coordinates for any texture map. This source is
* imperfect near the poles as implmented. It should really reduce the
* imperfect near the poles as implemented. It should really reduce the
* longitude resolution as the triangles become slivers.
*
* \image html vtkGlobeSourceSphericalToCartesianFigure.png
......
......@@ -114,7 +114,7 @@ struct Writer::InitContext
}
};
// Dafault communicator is invalid
// Default communicator is invalid
MPI_Comm Writer::InitContext::GlobalComm = MPI_COMM_NULL;
int Writer::InitContext::RefCount = 0;
......
......@@ -281,7 +281,7 @@ void vtkEnzoReaderBlock::GetLevelBasedIds
if ( this->ParentId != 0 )
{
// the parent is not the root and therefore we need to exploit the level-
// based Ids of the parent, of which the shifted verson is multiplied by
// based Ids of the parent, of which the shifted version is multiplied by
// the refinement ratio
vtkEnzoReaderBlock & parent = blocks[ this->ParentId ];
......@@ -641,7 +641,7 @@ int vtkEnzoReaderInternal::LoadAttribute( const char *atribute, int blockIdx )
// do not forget to provide a name for the array
this->DataArray->SetName( atribute );
// This close statements cause a crash!
// These close statements cause a crash!
// H5Tclose( dataType );
// H5Tclose( tRawType );
// H5Tclose( spaceIdx );
......@@ -961,7 +961,7 @@ void vtkEnzoReaderInternal::GetAttributeNames()
int wasFound = 0; // any block with particles was found?
int blkIndex = 0; // index of the block with fewest cells
// (either with or without particles)
int numCells = INT_MAX; // number of cells of a block
int numCells = INT_MAX; // number of cells of a block
int numbBlks = static_cast < int > ( this->Blocks.size() );
for ( int i = 1; i < numbBlks; i ++ )
......
......@@ -17,8 +17,8 @@
* The whole pupose of this header file is to allow us to 'wrap' a c library
* into Fortran. Here are the basic goals we should reach:
*
* 1. The symbol mangling in fortan is different than is C. For example if
* you do this fortan:
* 1. The symbol mangling in fortran is different than is C. For example if
* you do this fortran:
* CALL Foo()
* you either need to define a symbol:
* - void FOO()
......
......@@ -51,7 +51,7 @@ public:
//@{
/**
* Before writing the current data out, set the TimeValue (optional)
* The TimeValue is a float/double value that corresonds to the real
* The TimeValue is a float/double value that corresponds to the real
* time of the data, it may not be regular, whereas the TimeSteps
* are simple increments.
*/
......
......@@ -961,7 +961,7 @@ int vtkEnSight6BinaryReader::ReadScalarsPerNode(
compositeOutput, this->NumberOfGeometryParts)->GetNumberOfPoints();
}
// Here I am assuming that we are skiping over data
// Here I am assuming that we are skipping over data
// we do not need to read.
//scalarsRead = new float[numPts];
//this->ReadFloatArray(scalarsRead, numPts);
......@@ -983,7 +983,7 @@ int vtkEnSight6BinaryReader::ReadScalarsPerNode(
numPts = this->GetDataSetFromBlock(
compositeOutput, realId)->GetNumberOfPoints();
// Here I am assuming that we are skiping over data
// Here I am assuming that we are skipping over data
// we do not need to read.
//scalarsRead = new float[numPts];
//this->ReadFloatArray(scalarsRead, numPts);
......
......@@ -2929,7 +2929,7 @@ int vtkEnSightGoldReader::CheckForUndefOrPartial(const char *line)
this->UndefPartial->UndefElementTypes = val;
break;
default:
vtkErrorMacro( << "Unknow section type: " << subline );
vtkErrorMacro( << "Unknown section type: " << subline );
}
return 0; //meaning 'undef', so no other steps is necesserary
}
......@@ -2967,7 +2967,7 @@ int vtkEnSightGoldReader::CheckForUndefOrPartial(const char *line)
}
break;
default:
vtkErrorMacro( << "Unknow section type: " << subline );
vtkErrorMacro( << "Unknown section type: " << subline );
}
return 1; //meaning 'partial', so other steps are necesserary
}
......
......@@ -821,7 +821,7 @@ int vtkEnSightReader::ReadCaseFileVariable(char* line)
}
else
{
vtkErrorMacro("Unknow type, faulty line was:" << line );
vtkErrorMacro("Unknown type, faulty line was:" << line );
}
this->AddVariableFileName(subLine);
this->NumberOfVariables++;
......@@ -1237,7 +1237,7 @@ int vtkEnSightReader::ReadCaseFileTime(char* line)
this->TimeSets->AddItem(timeValues);
timeValues->Delete();
// The follwing line MUST *NOT* be modified as it enables the loop
// The following line MUST *NOT* be modified as it enables the loop
// "while ( lineReadResult != 0 && strncmp(line, "FILE", 4) != 0 )".
// It also enables the check of redundant time-step values.
lineRead = this->ReadNextDataLine(line);
......
......@@ -971,7 +971,7 @@ int vtkGenericEnSightReader::GetNumberOfVariables(int type)
case vtkEnSightReader::COMPLEX_VECTOR_PER_ELEMENT:
return this->GetNumberOfComplexVectorsPerElement();
default:
vtkWarningMacro("unknow variable type");
vtkWarningMacro("unknown variable type");
return -1;
}
}
......
......@@ -159,7 +159,7 @@ public:
* Reads the FORMAT part of the case file to determine whether this is an
* EnSight6 or EnSightGold data set. Returns an identifier listed in
* the FileTypes enum or -1 if an error occurred or the file could not
* be indentified as any EnSight type.
* be identified as any EnSight type.
*/
int DetermineEnSightVersion(int quiet=0);
......
......@@ -295,7 +295,7 @@ void vtkExodusIIReaderParser::FinishedParsing()
}
//// * If <material-assignments /> are not present use
//// <material-specification /> to construct material assignemnts.
//// <material-specification /> to construct material assignments.
if (this->BlockID_To_MaterialName.empty())
{
std::map<int, vtkIdType>::iterator iterII;
......
......@@ -212,7 +212,7 @@ public:
/**
* Set or get a pointer to a list of the number of nodes in the
* elements of each block.
* elements of each block.
* We use your pointers, and free the memory when the object is freed.
*/
void SetBlockNodesPerElement(int *);
......@@ -369,7 +369,7 @@ public:
int *GetSideSetIds() const {return this->SideSetIds;}
/**
* Set or get a pointer to a list of the number of sides in each side set.
* Set or get a pointer to a list of the number of sides in each side set.
* We use your pointer, and free the memory when the object is freed.
*/
int SetSideSetSize(int *sizes);
......@@ -602,7 +602,7 @@ public:
* each grid variable, and a list of the index into the list of
* original variable names where the original name of the first
* component of a grid variable may be found. The names of subsequent
* components would immediately follow the name of the the first
* components would immediately follow the name of the first
* component.
*/
int GetOriginalNumberOfElementVariables() const {
......
......@@ -102,7 +102,7 @@ set(TestGL2PSExporterVolumeRasterError 50)
include(vtkTestingGL2PS)
vtk_add_pdf_test_cxx(${PDFTests})
# text allignment and rotation with TextAsPath off is not
# text alignment and rotation with TextAsPath off is not
# yet implemented for the OpenGL2 backend.
vtk_add_gl2ps_test_cxx(${GL2PSTests})
# test postscript and pdf
......
......@@ -178,7 +178,7 @@ public:
//@{
/**
* Set the the type of sorting algorithm to order primitives from
* Set the type of sorting algorithm to order primitives from
* back to front. Successive algorithms are more memory
* intensive. Simple is the default but BSP is perhaps the best.
*/
......
......@@ -67,7 +67,7 @@ public:
//@{
/**
* Get raster width and heigth
* Get raster width and height
*/
vtkGetVector2Macro(RasterDimensions, int);
//@}
......
......@@ -432,7 +432,7 @@ int vtkGeoJSONReader::RequestData(vtkInformation* vtkNotUsed(request),
// Get the info object
vtkInformation* outInfo = outputVector->GetInformationObject(0);
// Get the ouptut
// Get the output
vtkPolyData* output = vtkPolyData::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT()));
// Parse either string input of file, depeding on mode
......
......@@ -115,7 +115,7 @@ int vtkAVSucdReader::RequestData(
// get the info object
vtkInformation *outInfo = outputVector->GetInformationObject(0);
// get the ouptut
// get the output
vtkUnstructuredGrid *output = vtkUnstructuredGrid::SafeDownCast(
outInfo->Get(vtkDataObject::DATA_OBJECT()));
......
......@@ -106,7 +106,7 @@ vtkCGMWriter::~vtkCGMWriter()
//
// The initial size of the element list. When it fills up, we will just
// make it bigger. Starting with a larger number reduces the frequency of
// make it bigger. Starting with a larger number reduces the frequency of
// the list growing, but increases the memory needed for small pictures
//
......@@ -184,7 +184,7 @@ typedef struct cgmImageStruct {
// the next three are used for maintaining the element list
long int bytestoend; // number of bytes to end of the element list
long int listlen; // the total length of the element list
unsigned char * curelemlist; // where we curently are in the list
unsigned char * curelemlist; // where we currently are in the list
} cgmImage;
typedef cgmImage* cgmImagePtr;
......@@ -1021,7 +1021,7 @@ static int cgmAddElem(cgmImagePtr im, unsigned char *es, int octet_count)
static int cgmCgmHeader(cgmImagePtr im)
{
/* add the cgm header to the imagepointer's element list
/* add the cgm header to the imagepointer's element list
* do it all in a string than call cgmAddElem on it
* For internal cgm functions only, do not call!
*/
......@@ -1374,7 +1374,7 @@ static int cgmCgmNewPic(cgmImagePtr im, int sticky)
/* The CGM standard allows multiple images in a single file. This function
* will close the current picture, then open a new one.
* if sticky is 0 then all attributes will be reset to the defaults
* if sticky is 1 then all attributes will be inherited from the prevous
* if sticky is 1 then all attributes will be inherited from the previous
* picture.
* if sticky is 2 all attributes except the color table will be inherited
* from the previous picture
......@@ -1392,7 +1392,7 @@ static int cgmCgmNewPic(cgmImagePtr im, int sticky)
#endif
static int cgmImageCgm(cgmImagePtr im, FILE *out)
/* Gej: Write the image to file *out, which must be open already
/* Gej: Write the image to file *out, which must be open already
* does not close the file */
{
cgmImageSetOutput(im, out);
......@@ -1473,7 +1473,7 @@ static int cgmSetLineWidth(cgmImagePtr im, int lnwidth)
* sets the line width. with an image of height X with line width 1
* the displayed width will be 1/X%. as an example, if you image is
* x=5, y=10, and you set line width = 1, and draw a vertical line, the
* resulting line will cover 20% of horizontal area.
* resulting line will cover 20% of horizontal area.
*/
unsigned char *es, *esp;
int octet_count;
......@@ -2174,7 +2174,7 @@ static int cgmSetTextFont(cgmImagePtr im, int font)
static int cgmSetTextColor(cgmImagePtr im, int color)
{
/* Attribute: Text Colour ; Elem Class 5; Elem ID 14
* set the forground color of text
* set the foreground color of text
*/
unsigned char *es, *esp;
int octet_count;
......@@ -2478,7 +2478,7 @@ static int cgmSetMarkerSize(cgmImagePtr im, int msize)
* sets the marker size. with an image of height X with marker size 1
* the displayed size will be 1/X%. as an example, if you image is
* x=5, y=10, and you set marker size = 1, and draw a marker, the
* resulting marker will cover 20% of horizontal area.
* resulting marker will cover 20% of horizontal area.
*/
unsigned char *es, *esp;
int octet_count;
......@@ -2985,7 +2985,7 @@ static int cgmImageColorAllocate(cgmImagePtr im, int r, int g, int b)
{
return -1;
}
/* GEJ: w we have successfully alocated it in the color table
/* GEJ: w we have successfully allocated it in the color table
* so let's put it in the CGM as well.
*/
if (cgmImageAddColor(im, ct, ct) == -1 )
......@@ -3627,7 +3627,7 @@ static int cgmPolygon(cgmImagePtr im, cgmPointPtr p, int n)
/* Graphic Primitive: Polygon; Elem Class 4; Elem ID 7
*
* cgmPointPtr is defined in cgm.h, basically, it is two arrays of integers
* p[m].x and p[m].y containing the x and y values respectively. n
* p[m].x and p[m].y containing the x and y values respectively. n
* is the number of points in this array (not the index of the last point,
* which is n-1). n must be at least 3 (otherwise
* you really don't have much of a polygon, it is closer to a line.)
......@@ -4029,7 +4029,7 @@ static int cgmText(cgmImagePtr im, int x, int y, const char *ts)
* is the number of octets of string data, or 255 which signifies a long
* string. if it is 255 then the next 16 bits indicate the length of the
* string. the first bit (bit15) is 0 if this is the last part of the
* string and 1 if another part follows it. the next 15 bits are in the
* string and 1 if another part follows it. the next 15 bits are in the
* range 0..32767 and are the number of octets of string info following.
* so the length stored in the command header is the whole enchelada.
*/
......
......@@ -984,7 +984,7 @@ double *x, double *y, double *z)
//----------------------------------------------------------------------------
int vtkChacoReader::InputGraph1()
{
/* Read first line of input (= nvtxs, narcs, option). */
/* Read first line of input (= nvtxs, narcs, option). */
/* The (decimal) digits of the option variable mean: 1's digit not zero => input
edge weights 10's digit not zero => input vertex weights 100's digit not zero
=> include vertex numbers */
......
......@@ -77,7 +77,7 @@ public:
int GetNumberOfCellArrays(void);
/**
* Get the name of the cell array with the given index in
* Get the name of the cell array with the given index in
* the input.
*/
const char* GetCellArrayName(int index);
......
......@@ -59,7 +59,7 @@ int vtkGAMBITReader::RequestData(
// get the info object
vtkInformation *outInfo = outputVector->GetInformationObject(0);
// get the ouptut
// get the output
vtkUnstructuredGrid *output = vtkUnstructuredGrid::SafeDownCast(
outInfo->Get(vtkDataObject::DATA_OBJECT()));
......
......@@ -217,7 +217,7 @@ void vtkIVWriter::WritePolyData(vtkPolyData *pd, FILE *fp)
fprintf(fp,"\t}\n");
}
fprintf(fp,"}\n"); // close the Shape
fprintf(fp,"}\n"); // close the Shape
}
......
......@@ -70,7 +70,7 @@ int vtkMCubesReader::RequestData(
// get the info object
vtkInformation *outInfo = outputVector->GetInformationObject(0);
// get the ouptut
// get the output
vtkPolyData *output = vtkPolyData::SafeDownCast(
outInfo->Get(vtkDataObject::DATA_OBJECT()));
......
......@@ -2108,7 +2108,7 @@ void vtkMFIXReader::GetVariableAtTimestep(int vari , int tstep,
// This routine opens and closes the file for each request.
// Maybe keep all SPX files open, and just perform relative
// moves to get to the correct location in the file
// get filename that vaiable # vari is located in
// get filename that variable # vari is located in
// assumptions : there are <10 solid phases,
// <10 scalars and <10 ReactionRates (need to change this)
......
......@@ -117,7 +117,7 @@ public:
int GetNumberOfCellArrays(void);
/**
* Get the name of the cell array with the given index in
* Get the name of the cell array with the given index in
* the input.
*/
const char* GetCellArrayName(int index);
......
......@@ -214,7 +214,7 @@ int vtkMoleculeReaderBase::RequestData(
// get the info object
vtkInformation *outInfo = outputVector->GetInformationObject(0);
// get the ouptut
// get the output
vtkPolyData *output = vtkPolyData::SafeDownCast(
outInfo->Get(vtkDataObject::DATA_OBJECT()));
......
......@@ -112,7 +112,7 @@ int vtkOBJReader::RequestData(
// get the info object
vtkInformation *outInfo = outputVector->GetInformationObject(0);
// get the ouptut
// get the output
vtkPolyData *output = vtkPolyData::SafeDownCast(
outInfo->Get(vtkDataObject::DATA_OBJECT()));
......
......@@ -93,7 +93,7 @@ public:
{ this->SetSelectionArrayStatus(this->CellDataArraySelection, name, status); }
/**
* Get the name of the cell array with the given index in
* Get the name of the cell array with the given index in
* the input.
*/
const char *GetCellArrayName(int index)
......@@ -124,7 +124,7 @@ public:
name, status); }
/**
* Get the name of the point array with the given index in
* Get the name of the point array with the given index in
* the input.
*/
const char *GetPointArrayName(int index)
......@@ -157,7 +157,7 @@ public:
status); }
/**
* Get the name of the Lagrangian array with the given index in
* Get the name of the Lagrangian array with the given index in
* the input.
*/
const char* GetLagrangianArrayName(int index)
......
......@@ -246,7 +246,7 @@ RequestData(vtkInformation *vtkNotUsed(request),
// get the info object
vtkInformation *outInfo = outputVector->GetInformationObject(0);
// get the ouptut
// get the output
vtkPolyData *output = vtkPolyData::SafeDownCast(
outInfo->Get(vtkDataObject::DATA_OBJECT()));
......@@ -315,7 +315,7 @@ RequestData(vtkInformation *vtkNotUsed(request),
return 1;
}
// setup the ReadBBox, IF we're limiting the read to specifed ReadBounds
// setup the ReadBBox, IF we're limiting the read to specified ReadBounds
if (this->LimitReadToBounds)
{
this->ReadBBox.Reset();
......
......@@ -426,7 +426,7 @@ int vtkParticleReader::ProduceOutputFromTextFileDouble(vtkInformationVector *out
// get the info object
vtkInformation *outInfo = outputVector->GetInformationObject(0);
// get the ouptut
// get the output
vtkPolyData *output = vtkPolyData::SafeDownCast(
outInfo->Get(vtkDataObject::DATA_OBJECT()));
......@@ -504,7 +504,7 @@ int vtkParticleReader::ProduceOutputFromTextFileFloat(vtkInformationVector *outp
// get the info object
vtkInformation *outInfo = outputVector->GetInformationObject(0);
// get the ouptut
// get the output
vtkPolyData *output = vtkPolyData::SafeDownCast(
outInfo->Get(vtkDataObject::DATA_OBJECT()));
......@@ -690,7 +690,7 @@ int vtkParticleReader::ProduceOutputFromBinaryFileDouble(vtkInformationVector *o
}
delete [] data;
// get the ouptut
// get the output
vtkPolyData *output = vtkPolyData::SafeDownCast(
outInfo->Get(vtkDataObject::DATA_OBJECT()));
......@@ -873,7 +873,7 @@ int vtkParticleReader::ProduceOutputFromBinaryFileFloat(vtkInformationVector *ou
}
delete [] data;
// get the ouptut
// get the output
vtkPolyData *output = vtkPolyData::SafeDownCast(
outInfo->Get(vtkDataObject::DATA_OBJECT()));
......
......@@ -20,7 +20,7 @@
* LLNL-CODE-400124
* All rights reserved.
*
* This file was adapted from the ASCII Tecplot reader of VisIt. For details,
* This file was adapted from the ASCII Tecplot reader of VisIt. For details,
* see https://visit.llnl.gov/. The full copyright notice is contained in the
* file COPYRIGHT located at the root of the VisIt distribution or at
* http://www.llnl.gov/visit/copyright.html.
......@@ -39,7 +39,7 @@
* physical properties.
*
* Tecplot treats 3D coordinates (only one or two coordinates might be
* explicitly specified in a file) as varaibles too, whose names (e.g.,
* explicitly specified in a file) as variables too, whose names (e.g.,
* 'X' / 'x' / 'I', 'Y' / 'y' / 'J', 'Z' / 'z' / 'K') are provided in the
* variables list (the 'VARIABLES' section). These names are then followed
* in the list by those of other traditional variables or attributes (node-
......@@ -49,8 +49,8 @@
* specific values of the aforementioned variables (including 3D coordinates),
* in the same order as indicated by the variable-names list, through either
* POINT-packing (i.e., tuple-based storage) or BLOCK-packing (component-based
* storage). In particular, the first / description line of each zone tells
* the type of all the constituent cells as the connectivity / topology
* storage). In particular, the first / description line of each zone tells
* the type of all the constituent cells as the connectivity / topology
* information. In other words, the entire dataset is made up of multiple zones
* (blocks), of which each maintains a set of cells of the same type ('BRICK',
* 'TRIANGLE', 'QUADRILATERAL', 'TETRAHEDRON', and 'POINT' in Tecplot terms).
......
......@@ -86,7 +86,7 @@ int vtkUGFacetReader::RequestData(
// get the info object
vtkInformation *outInfo = outputVector->GetInformationObject(0);
// get the ouptut
// get the output
vtkPolyData *output = vtkPolyData::SafeDownCast(
outInfo->Get(vtkDataObject::DATA_OBJECT()));
......
......@@ -72,7 +72,7 @@ public:
/**
* Specify the desired part to extract. The part number must range between
* [0,NumberOfParts-1]. If the value is =(-1), then all parts will be
* extracted. If the value is <(-1), then no parts will be extracted but
* extracted. If the value is <(-1), then no parts will be extracted but
* the part colors will be updated.
*/
vtkSetMacro(PartNumber,int);
......
......@@ -119,7 +119,7 @@ def TestReadWriteRead(infile, outfile):
writer = vtk.vtkNIFTIImageWriter()
writer.SetInputConnection(reader.GetOutputPort())
writer.SetFileName(outpath)
# copy most information directoy from the header
# copy most information directory from the header
writer.SetNIFTIHeader(reader.GetNIFTIHeader())
# this information will override the reader's header
writer.SetQFac(reader.GetQFac())
......
......@@ -447,7 +447,7 @@ void vtkImageReader::ComputeTransformedSpacing (double Spacing[3])
}
}
// if the spacing is negative we need to tranlate the origin
// if the spacing is negative we need to translate the origin
// basically O' = O + spacing*(dim-1) for any axis that would
// have a negative spaing
void vtkImageReader::ComputeTransformedOrigin (double origin[3])
......
......@@ -40,7 +40,7 @@ public:
void PrintSelf(ostream& os, vtkIndent indent) override;
/**
* Convenience method to reset all fields to an emptry string/value
* Convenience method to reset all fields to an empty string/value
*/
virtual void Clear();
......
......@@ -850,7 +850,7 @@ int vtkNIFTIImageReader::RequestInformation(
// flip-factor as there is in the quaternion representation.
//
// Let S be the matrix stored in the NIFTI header, and let M be our
// desired coordinate tranformation from VTK data coordinates X,Y,Z
// desired coordinate transformation from VTK data coordinates X,Y,Z
// to NIFTI data coordinates x,y,z (see discussion above for more
// information). Let's consider the cases where the determinant
// is positive, or negative.
......
......@@ -1197,7 +1197,7 @@ static void cleanup_name (char *name)
strcpy (&tmp[1], name);
}
/* Replace all illegal charaters in name with underscores */
/* Replace all illegal characters in name with underscores */
for (i = 0; tmp[i] != '\0'; i++)
{
if (!isalnum(tmp[i]))
......
......@@ -1039,7 +1039,7 @@ int vtkVRMLYaccData::yyparse(vtkVRMLImporter* self)
yylsp = yyls;