Commit b43737f1 authored by Ken Martin's avatar Ken Martin Committed by Kitware Robot

Merge topic 'misc-typos'

433e8ff1 Misc. typos
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !4739
parents 21f82e2d 433e8ff1
......@@ -66,7 +66,7 @@ int TestVTKMWarpScalar(int argc, char* argv[])
vtkNew<vtkmWarpScalar> xyWarpScalar;
xyWarpScalar->SetScaleFactor(2);
xyWarpScalar->XYPlaneOn();
xyWarpScalar->SetNormal(1, 0, 0); // should be igored
xyWarpScalar->SetNormal(1, 0, 0); // should be ignored
xyWarpScalar->SetInputConnection(xySource->GetOutputPort());
xyWarpScalar->Update();
vtkPointSet* points = xyWarpScalar->GetOutput();
......
......@@ -225,7 +225,7 @@ void vtkmProbe::PassAttributeData(vtkDataSet* input,
}
}
// Set active attributes in the ouput to the active attributes in the input
// Set active attributes in the output to the active attributes in the input
for (int i = 0; i < vtkDataSetAttributes::NUM_ATTRIBUTES; ++i)
{
vtkAbstractArray* da = input->GetPointData()->GetAttribute(i);
......
......@@ -185,7 +185,7 @@ int vtkSimpleReader::ReadMesh(
int piece, int, int, int timestep, vtkDataObject* output)
{
// Not a parallel reader. Cannot handle anything other than the first piece,
// which will have everyhing.
// which will have everything.
if (piece > 0)
{
return 1;
......@@ -214,7 +214,7 @@ int vtkSimpleReader::ReadPoints(
int piece, int , int , int timestep, vtkDataObject* output)
{
// Not a parallel reader. Cannot handle anything other than the first piece,
// which will have everyhing.
// which will have everything.
if (piece > 0)
{
return 1;
......@@ -237,7 +237,7 @@ int vtkSimpleReader::ReadArrays(
int piece, int , int , int timestep, vtkDataObject* output)
{
// Not a parallel reader. Cannot handle anything other than the first piece,
// which will have everyhing.
// which will have everything.
if (piece > 0)
{
return 1;
......
......@@ -343,7 +343,7 @@ void vtkAMRResampleFilter::TransferToCellCenters(
vtkUniformGrid *g, vtkOverlappingAMR *amrds )
{
assert( "pre: uniform grid is nullptr" && (g != nullptr) );
assert( "pre: AMR data-strucutre is nullptr" && (amrds != nullptr) );
assert( "pre: AMR data-structure is nullptr" && (amrds != nullptr) );
// STEP 0: Get the first block so that we know the arrays
// vtkUniformGrid *refGrid = amrds->GetDataSet(0,0);
......@@ -851,7 +851,7 @@ void vtkAMRResampleFilter::TransferSolution(
vtkUniformGrid *g, vtkOverlappingAMR *amrds)
{
assert( "pre: uniform grid is nullptr" && (g != nullptr) );
assert( "pre: AMR data-strucutre is nullptr" && (amrds != nullptr) );
assert( "pre: AMR data-structure is nullptr" && (amrds != nullptr) );
if( this->TransferToNodes == 1 )
{
......
......@@ -2097,7 +2097,7 @@ void vtkBoxClipDataSet::ClipBox(vtkPoints *newPoints,
if (((v_tetra[i][cutInd] < value) && ((planes % 2) == 0)) ||
((v_tetra[i][cutInd] > value) && ((planes % 2) == 1)))
// If only one vertex is ouside, so the tetrahedron is outside
// If only one vertex is outside, so the tetrahedron is outside
// because there is not intersection.
{
outside = 1;
......@@ -2572,7 +2572,7 @@ void vtkBoxClipDataSet::ClipHexahedron(vtkPoints *newPoints,
{
if (p[i] > 0)
{
// If only one vertex is ouside, so the tetrahedron is outside
// If only one vertex is outside, so the tetrahedron is outside
// because there is not intersection.
// some vertex could be on plane, so you need to test all vertex
......@@ -3049,7 +3049,7 @@ void vtkBoxClipDataSet::ClipBoxInOut(vtkPoints *newPoints,
if (((v_tetra[i][cutInd] < value) && ((planes % 2) == 0)) ||
((v_tetra[i][cutInd] > value) && ((planes % 2) == 1)))
{
// If only one vertex is ouside, so the tetrahedron is outside
// If only one vertex is outside, so the tetrahedron is outside
// because there is not intersection.
outside = 1;
break;
......@@ -3606,7 +3606,7 @@ void vtkBoxClipDataSet::ClipHexahedronInOut(vtkPoints *newPoints,
for(i=0;i<4;i++)
{
if (p[i] > 0)
{ // If only one vertex is ouside, so the tetrahedron is outside
{ // If only one vertex is outside, so the tetrahedron is outside
outside = 1; // because there is not intersection.
break; // some vertex could be on plane, so you need to test all vertex
}
......@@ -4103,7 +4103,7 @@ void vtkBoxClipDataSet::ClipBox2D(vtkPoints *newPoints,
for(i=0; i<3; i++)
{
if (((v_triangle[i][cutInd] < value) && ((planes % 2) == 0)) ||
// If only one vertex is ouside, so the triangle is outside
// If only one vertex is outside, so the triangle is outside
((v_triangle[i][cutInd] > value) && ((planes % 2) == 1))) // because there is not intersection.
{
outside = 1;
......@@ -4465,7 +4465,7 @@ void vtkBoxClipDataSet::ClipBoxInOut2D(vtkPoints *newPoints,
if (((v_triangle[i][cutInd] < value) && ((planes % 2) == 0)) ||
((v_triangle[i][cutInd] > value) && ((planes % 2) == 1)))
{
// If only one vertex is ouside, so the triangle is outside
// If only one vertex is outside, so the triangle is outside
// because there is not intersection.
outside = 1;
break;
......@@ -4860,7 +4860,7 @@ void vtkBoxClipDataSet::ClipHexahedron2D(vtkPoints *newPoints,
unsigned int outside = 0;
for(i=0;i<3;i++)
{
if (p[i] > 0) // If only one vertex is ouside, so the triangle is outside
if (p[i] > 0) // If only one vertex is outside, so the triangle is outside
{
outside = 1; // because there is not intersection.
break; // some vertex could be on plane, so you need to test all vertex
......@@ -5224,7 +5224,7 @@ void vtkBoxClipDataSet::ClipHexahedronInOut2D(vtkPoints *newPoints,
unsigned int outside = 0;
for(i=0;i<3;i++)
{
if (p[i] > 0) // If only one vertex is ouside, so the trianglehedron is outside
if (p[i] > 0) // If only one vertex is outside, so the trianglehedron is outside
{
outside = 1; // because there is not intersection.
break; // some vertex could be on plane, so you need to test all vertex
......
......@@ -147,7 +147,7 @@ public:
//@{
/**
* Add a mesh subset to be computed by thresholding an attribute of the input mesh.
* The subset can then be added to an output mesh with OuputSet() or combined with other sets using AddBooleanSet.
* The subset can then be added to an output mesh with OutputSet() or combined with other sets using AddBooleanSet.
* If you wish to include all cells with values below some number \a a, call
* with xmin set to vtkMath::NegInf() and xmax set to \a a.
* Similarly, if you wish to include all cells with values above some number \a a,
......
......@@ -231,7 +231,7 @@ void QVTKOpenGLWindow::MakeCurrent()
// importers instantiate renderwindows which in turn can change the
// current context without Qt knowing about it
//
// The end result is that MakeCurrent shoudl not rely on
// The end result is that MakeCurrent should not rely on
// Qt's version of isCurrent to short circuit as it cannot be trusted.
//
if (!this->context())
......
......@@ -23,7 +23,7 @@
* take the values in those arrays and convert them to x,y,z world coordinates.
*
*
* Givem latitude and longitude arrays,
* Given latitude and longitude arrays,
* take the values in those arrays and convert them to x,y,z world coordinates.
* Uses a spherical model of the earth to do the conversion.
* The position is in meters relative to the center of the earth.
......@@ -117,4 +117,3 @@ private:
#endif //VTK_LEGACY_REMOVE
#endif
......@@ -97,7 +97,7 @@ void vtkLZ4DataCompressor::SetCompressionLevel(int compressionLevel)
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): setting CompressionLevel to " << compressionLevel );
// In order to make an intuitive interface for vtkDataCompressor objects
// we accept compressionLevel values 1..9. 1 is fastest, 9 is slowest
// 1 is worst compression, 9 is best compression. LZ4 accleration works inversely, with no upper bound.
// 1 is worst compression, 9 is best compression. LZ4 acceleration works inversely, with no upper bound.
// Note: LZ4 Acceleration set/get exists in header file, with no upper bound.
if (this->AccelerationLevel != (10-(compressionLevel<min?min:(compressionLevel>max?max:compressionLevel))) )
{
......
......@@ -4831,7 +4831,7 @@ int vtkOpenFOAMReaderPrivate::MakeMetaDataAtTimeStep(
}
BoundaryEntryI.AllBoundariesStartFace = allBoundariesNextStartFace;
const vtkStdString typeNameI(typeEntry->ToString());
// if the basic type of the patch is one of the followings the
// if the basic type of the patch is one of the following the
// point-filtered values at patches are overridden by patch values
if (typeNameI == "patch" || typeNameI == "wall")
{
......
......@@ -460,7 +460,7 @@ int vtkXGMLReader::RequestData(
vtkGraph* output = vtkGraph::GetData(outputVector);
if (!output->CheckedShallowCopy(builder))
{
vtkErrorMacro(<<"Invalid graph strucutre.");
vtkErrorMacro(<<"Invalid graph structure.");
return 0;
}
......
......@@ -192,7 +192,7 @@ int vtkDataReader::ReadMesh(
int piece, int npieces, int nghosts, int timestep, vtkDataObject* output)
{
// Not a parallel reader. Cannot handle anything other than the first piece,
// which will have everyhing.
// which will have everything.
if (piece > 0)
{
return 1;
......
......@@ -203,7 +203,7 @@ void vtkAVIWriter::Start()
if (AVIStreamSetFormat(this->Internals->StreamCompressed, 0,
this->Internals->lpbi, this->Internals->lpbi->biSize))
{
vtkErrorMacro("Unable to format " << this->FileName << " Most likely this means that the video compression scheme you seleted could not handle the data. Try selecting a different compression scheme." );
vtkErrorMacro("Unable to format " << this->FileName << " Most likely this means that the video compression scheme you selected could not handle the data. Try selecting a different compression scheme." );
this->SetErrorCode(vtkGenericMovieWriter::CanNotFormat);
return;
}
......@@ -294,4 +294,3 @@ void vtkAVIWriter::PrintSelf(ostream& os, vtkIndent indent)
os << indent << "CompressorFourCC: "
<< (this->CompressorFourCC ? this->CompressorFourCC : "(None)") << endl;
}
......@@ -706,7 +706,7 @@ void vtkPNetCDFPOPReader::SetReaderRanks(vtkIdList* ranks)
int vtkPNetCDFPOPReader::ReaderForDepth( unsigned depth)
{
// NOTE: This is a very simple algorithm - each rank in readerRanks will
// read single depth in a round-robbin fashion. There might be a more
// read single depth in a round-robin fashion. There might be a more
// efficient way to do this...
size_t numReaders = this->Internals->ReaderRanks.size();
return this->Internals->ReaderRanks[(depth % numReaders)];
......
......@@ -587,7 +587,7 @@ public:
dataSource->Delete(); // Just needed to extract the single value
// ------------------------------------------
// Extract pin informations
// Extract pin information
// ------------------------------------------
std::vector<std::string> names;
this->AddDataSetNamesWithDimension("/CORE", 4, names);
......
......@@ -323,7 +323,7 @@ int vtkContinuousScatterplot::RequestData(
newPoints->Allocate(estOutputPointSize);
// main loop ...
// For each tetrahedron in a gird
// For each tetrahedron in a grid
for (vtkIdType tetraIndex = 0; tetraIndex < input->GetNumberOfCells(); tetraIndex++)
{
// current tetrahedron vertex list.
......
......@@ -508,7 +508,7 @@ void vtkInteractorStyleFlight::UpdateMouseSteering(vtkCamera *cam)
this->DeltaPitch = dy;
this->DeltaYaw = dx;
/*
Not happy with smooth flight yet, please levae this code here
Not happy with smooth flight yet, please leave this code here
until I get around to experimenting : JB July 2002
// dx and dy need to be converted to a new 'ideal' camera focal point
......@@ -538,7 +538,7 @@ void vtkInteractorStyleFlight::UpdateSteering(vtkCamera *vtkNotUsed(cam))
#define D2R 0.01745329251994329576923690768 // degrees to radians
#define R2D 57.2957795130823208767981548141 // radians to degrees
Not happy with smooth flight yet, please levae this code here
Not happy with smooth flight yet, please leave this code here
until I get around to experimenting : JB July 2002
cam->OrthogonalizeViewUp();
......
......@@ -1166,7 +1166,7 @@ int TestCellCentersPointPlacer(int argc, char *argv[])
vtkSmartPointer< vtkDistanceRepresentation2D >::New();
rep->GetAxis()->GetProperty()->SetColor( 1.0, 0.0, 0.0 );
// Create a 3D handle reprensentation template for this distance
// Create a 3D handle representation template for this distance
// widget
vtkSmartPointer< vtkPointHandleRepresentation3D > handleRep3D =
vtkSmartPointer< vtkPointHandleRepresentation3D >::New();
......
......@@ -301,7 +301,7 @@ int TestPolygonalSurfaceConstrainedDistanceWidget(int argc, char*argv[])
vtkSmartPointer< vtkDistanceRepresentation2D >::New();
rep->GetAxis()->GetProperty()->SetColor( 0.0, 0.0, 1.0 );
// Create a 3D handle reprensentation template for this distance
// Create a 3D handle representation template for this distance
// widget
vtkSmartPointer< vtkPointHandleRepresentation3D > handleRep3D =
vtkSmartPointer< vtkPointHandleRepresentation3D >::New();
......
......@@ -84,7 +84,7 @@
* arrays on the polydata that may the polydata point and cell IDs back
* to the original unstructured grid's point and cell IDs. The hardware
* selection process honors those arrays and will provide the original
* unstructured gird point and cell ID when a selection is made.
* unstructured grid point and cell ID when a selection is made.
* Likewise there are process and composite arrays that most mappers
* support that allow for parallel data generation, delivery, and local
* rendering while preserving the original process and composite values
......@@ -518,5 +518,3 @@ private:
};
#endif
......@@ -108,7 +108,7 @@ public:
/** Print details of the event to a stream.
* @param os The stream.
* @param threshMs Only print events with a time > threshMs milliseconds.
* @param indent Starting indention for the first event.
* @param indent Starting indentation for the first event.
*/
void Print(std::ostream &os, float threshMs = 0.f,
vtkIndent indent = vtkIndent())
......
......@@ -37,7 +37,7 @@ geometry shaders should name their outputs with a postfix of GSOutput All
fragment shaders should name their inputs with a postfix of VSOutput. Put
another way fragment shaders should assuming their input is coming from the
vertex shader. If a geometry shader is present VTK will rename the fragment
shader inputs from VSOutput to GSOuput automatically.
shader inputs from VSOutput to GSOutput automatically.
All variables that represent positions or directions usually have a suffix
indicating the coordinate system they are in. The possible values are
......
......@@ -1632,7 +1632,7 @@ vtkPixelBufferObject *vtkOpenGLFramebufferObject::DownloadColor1(
oglChannel = GL_BLUE;
break;
default:
vtkErrorMacro("Inavlid channel");
vtkErrorMacro("Invalid channel");
return nullptr;
}
......
......@@ -127,7 +127,7 @@ public:
void ActivateTexture(vtkTextureObject *);
/**
* Deactive a previously activated texture
* Deactivate a previously activated texture
*/
void DeactivateTexture(vtkTextureObject *);
......
......@@ -254,7 +254,7 @@ vtkShaderProgram *vtkOpenGLShaderCache::ReadyShaderProgram(
vtkTransformFeedback *cap)
{
// perform system wide shader replacements
// desktops to not use percision statements
// desktops to not use precision statements
std::string VSSource = vertexCode;
std::string FSSource = fragmentCode;
std::string GSSource = geometryCode;
......
......@@ -624,10 +624,10 @@ void vtkXRenderWindowInteractorCallback(Widget vtkNotUsed(w),
// Don't call Render when the window is resized to be larger:
//
// - if the window is resized to be larger, an Expose event will
// be trigged by the X server which will trigger a call to
// be triggered by the X server which will trigger a call to
// Render().
// - if the window is resized to be smaller, no Expose event will
// be trigged by the X server, as no new area become visible.
// be triggered by the X server, as no new area become visible.
// only in this case, we need to explicitly call Render()
// in ConfigureNotify.
me->Render();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment