diff --git a/src/GccAna/GccAna_CircLin2dBisec.cxx b/src/GccAna/GccAna_CircLin2dBisec.cxx index 8660c36e4c..e7a0dea5c0 100644 --- a/src/GccAna/GccAna_CircLin2dBisec.cxx +++ b/src/GccAna/GccAna_CircLin2dBisec.cxx @@ -15,7 +15,7 @@ // commercial license or contractual agreement. //========================================================================= -// CREATION of the BISSECTICE between a CIRCLE and a STRAIGHT LINE. + +// CREATION of the BISSECTICE between a CIRCLE and a STRAIGHT LINE. + //========================================================================= #include @@ -41,11 +41,11 @@ GccAna_CircLin2dBisec:: { //========================================================================= -// Initialization of fields : + -// - circle + -// - line (straight line.) + +// Initialization of fields : + +// - circle + +// - line (straight line.) + // - NbrSol (number of solution.) + -// - WellDone (Booleen showing success or failure of algorithm). + +// - WellDone (Boolean showing success or failure of algorithm)+ //========================================================================= NbrSol = 2; @@ -54,14 +54,14 @@ GccAna_CircLin2dBisec:: //========================================================================= // Processing. + -// Return coordinates of origins of the straight line (xloc,yloc) and the + -// circle (xcencir, ycencir). + -// Also return the coordinates of the direction of the straight line (xdir, + -// ydir) and the radius of circle R1. + -// Check at which side of the straight line is found the center of the circle + -// to orientate the parabola (sign). + -// Create axis of each parabola (axeparab1, axeparb2), then + -// two parabolas (biscirlin1, biscirlin1). + +// Return coordinates of origins of the straight line (xloc,yloc) and + +// the circle (xcencir, ycencir). + +// Also return the coordinates of the direction of the straight line + +// (xdir, ydir) and the radius of circle R1. + +// Check at which side of the straight line is found the center of the + +// circle to orientate the parabola (sign). + +// Create axis of each parabola (axeparab1, axeparb2), then + +// two parabolas (biscirlin1, biscirlin1). + //========================================================================= Handle(GccInt_Bisec) GccAna_CircLin2dBisec:: diff --git a/src/SWDRAW/SWDRAW_ShapeAnalysis.cxx b/src/SWDRAW/SWDRAW_ShapeAnalysis.cxx index eb267bbad3..e47730d8a1 100644 --- a/src/SWDRAW/SWDRAW_ShapeAnalysis.cxx +++ b/src/SWDRAW/SWDRAW_ShapeAnalysis.cxx @@ -710,7 +710,7 @@ static Standard_Integer freebounds (Draw_Interpretor& di, //======================================================================= //function : PrintProps -//purpose : auxilary for FreeBoundsProps +//purpose : auxiliary for FreeBoundsProps //======================================================================= static void PrintProps(Standard_Integer i, const Handle(ShapeAnalysis_FreeBoundData)& fbd, @@ -762,7 +762,7 @@ static Standard_Integer FreeBoundsProps(Draw_Interpretor& di, Standard_Integer nb = analyzer.NbClosedFreeBounds(); di<<"\n"; - di<<" \tArea mm2\tLength mm\tRatio L/W\tWidth mm\tNb noth\n"; + di<<" \tArea mm2\tLength mm\tRatio L/W\tWidth mm\tNb notch\n"; B.MakeCompound(closed); if (nb) { di<<"Closed bounds properties\n"; diff --git a/src/StepToTopoDS/StepToTopoDS_TranslateFace.cxx b/src/StepToTopoDS/StepToTopoDS_TranslateFace.cxx index c3bdc3f844..bcb083956b 100644 --- a/src/StepToTopoDS/StepToTopoDS_TranslateFace.cxx +++ b/src/StepToTopoDS/StepToTopoDS_TranslateFace.cxx @@ -329,7 +329,7 @@ void StepToTopoDS_TranslateFace::Init // orientation of the surface => the underlying topological // orientation are not implicitly reversed // this is the case in CAS.CADE => If the face_surface is reversed, - // the wire orientation has to be explictly reversed + // the wire orientation has to be explicitly reversed if (FaceBound->Orientation()) { // *DTH* if (sameSense || GeomSurf->IsKind(STANDARD_TYPE(Geom_Plane))) W.Orientation(sameSense ? TopAbs_FORWARD : TopAbs_REVERSED); diff --git a/src/TCollection/TCollection.cxx b/src/TCollection/TCollection.cxx index 667b058423..4fb2733d8b 100644 --- a/src/TCollection/TCollection.cxx +++ b/src/TCollection/TCollection.cxx @@ -18,7 +18,7 @@ #include -// The array of prime numbers used as consequtive steps for +// The array of prime numbers used as consecutive steps for // size of array of buckets in the map. // The prime numbers are used for array size with the hope that this will // lead to less probablility of having the same hash codes for diff --git a/src/TCollection/TCollection_AsciiString.hxx b/src/TCollection/TCollection_AsciiString.hxx index 7e9355d791..cbc0f46e22 100644 --- a/src/TCollection/TCollection_AsciiString.hxx +++ b/src/TCollection/TCollection_AsciiString.hxx @@ -69,7 +69,7 @@ public: Standard_EXPORT TCollection_AsciiString(const Standard_Character aChar); //! Initializes an AsciiString with space allocated. - //! and filled with . This is usefull for buffers. + //! and filled with . This is useful for buffers. Standard_EXPORT TCollection_AsciiString(const Standard_Integer length, const Standard_Character filler); //! Initializes an AsciiString with an integer value @@ -105,7 +105,7 @@ public: Standard_EXPORT TCollection_AsciiString(const TCollection_AsciiString& astring, const TCollection_AsciiString& message); //! Creation by converting an extended string to an ascii string. - //! If replaceNonAscii is non-null charecter, it will be used + //! If replaceNonAscii is non-null character, it will be used //! in place of any non-ascii character found in the source string. //! Otherwise, creates UTF-8 unicode string. Standard_EXPORT TCollection_AsciiString(const TCollection_ExtendedString& astring, const Standard_Character replaceNonAscii = 0); @@ -254,7 +254,7 @@ void operator += (const TCollection_AsciiString& other) //! Substitutes all the characters equal to aChar by NewChar //! in the AsciiString . //! The substitution can be case sensitive. - //! If you don't use default case sensitive, no matter wether aChar + //! If you don't use default case sensitive, no matter whether aChar //! is uppercase or not. //! Example: me = "Histake" -> ChangeAll('H','M',Standard_True) //! gives me = "Mistake" @@ -455,7 +455,7 @@ Standard_Boolean operator > (const TCollection_AsciiString& other) const //! This means no control character and no extended ASCII code. Standard_EXPORT Standard_Boolean IsAscii() const; - //! Removes all space characters in the begining of the string. + //! Removes all space characters in the beginning of the string. Standard_EXPORT void LeftAdjust(); //! left justify @@ -483,7 +483,7 @@ Standard_Boolean operator > (const TCollection_AsciiString& other) const //! of this string by its position. Standard_Integer Length() const; - //! Returns an index in the string of the first occurence + //! Returns an index in the string of the first occurrence //! of the string S in the string from the starting index //! FromIndex to the ending index ToIndex //! returns zero if failure @@ -497,7 +497,7 @@ Standard_Boolean operator > (const TCollection_AsciiString& other) const //! 4 Standard_EXPORT Standard_Integer Location (const TCollection_AsciiString& other, const Standard_Integer FromIndex, const Standard_Integer ToIndex) const; - //! Returns the index of the nth occurence of the character C + //! Returns the index of the nth occurrence of the character C //! in the string from the starting index FromIndex to the //! ending index ToIndex. //! Returns zero if failure. @@ -542,7 +542,7 @@ friend Standard_EXPORT Standard_IStream& operator >> (Standard_IStream& astream, //! ex: "3.14159267" returns 3.14159267. Standard_EXPORT Standard_Real RealValue() const; - //! Remove all the occurences of the character C in the string. + //! Remove all the occurrences of the character C in the string. //! Example: //! before //! me = "HellLLo", C = 'L' , CaseSensitive = True @@ -674,7 +674,7 @@ friend Standard_EXPORT Standard_IStream& operator >> (Standard_IStream& astream, Standard_EXPORT Standard_Integer UsefullLength() const; //! Returns character at position in . - //! If is less than zero or greater than the lenght of , + //! If is less than zero or greater than the length of , //! an exception is raised. //! Example: //! aString contains "Hello" diff --git a/src/TCollection/TCollection_ExtendedString.hxx b/src/TCollection/TCollection_ExtendedString.hxx index 3e16ca49dc..6fc7536acd 100644 --- a/src/TCollection/TCollection_ExtendedString.hxx +++ b/src/TCollection/TCollection_ExtendedString.hxx @@ -140,8 +140,7 @@ TCollection_ExtendedString operator + (const TCollection_ExtendedString& other) //! Substitutes all the characters equal to aChar by NewChar //! in the ExtendedString . //! The substitution can be case sensitive. - //! If you don't use default case sensitive, no matter wether aChar - //! is uppercase or not. + //! If you don't use default case sensitive, no matter whether aChar is uppercase or not. Standard_EXPORT void ChangeAll (const Standard_ExtCharacter aChar, const Standard_ExtCharacter NewChar); //! Removes all characters contained in . @@ -329,7 +328,7 @@ friend Standard_EXPORT Standard_OStream& operator << (Standard_OStream& astream, Standard_EXPORT void Trunc (const Standard_Integer ahowmany); //! Returns character at position in . - //! If is less than zero or greater than the lenght of + //! If is less than zero or greater than the length of //! , an exception is raised. //! Example: //! aString contains "Hello" @@ -372,8 +371,7 @@ friend Standard_EXPORT Standard_OStream& operator << (Standard_OStream& astream, private: - //! Returns true if the input CString was successfuly converted - //! to UTF8 coding + //! Returns true if the input CString was successfully converted to UTF8 coding. Standard_EXPORT Standard_Boolean ConvertToUnicode (const Standard_CString astring); private: diff --git a/src/TCollection/TCollection_HAsciiString.hxx b/src/TCollection/TCollection_HAsciiString.hxx index dca8116209..58cfc73c2a 100644 --- a/src/TCollection/TCollection_HAsciiString.hxx +++ b/src/TCollection/TCollection_HAsciiString.hxx @@ -79,7 +79,7 @@ public: Standard_EXPORT TCollection_HAsciiString(const Handle(TCollection_HAsciiString)& aString); //! Initializes a HAsciiString with a HExtendedString. - //! If replaceNonAscii is non-null charecter, it will be used + //! If replaceNonAscii is non-null character, it will be used //! in place of any non-ascii character found in the source string. //! Otherwise, creates UTF-8 unicode string. Standard_EXPORT TCollection_HAsciiString(const Handle(TCollection_HExtendedString)& aString, const Standard_Character replaceNonAscii); @@ -256,7 +256,7 @@ public: //! string . Standard_EXPORT Standard_Boolean IsSameString (const Handle(TCollection_HAsciiString)& S, const Standard_Boolean CaseSensitive) const; - //! Removes all space characters in the begining of the string + //! Removes all space characters in the beginning of the string Standard_EXPORT void LeftAdjust(); //! Left justify. @@ -275,7 +275,7 @@ public: //! This is the same functionality as 'strlen' in C. Standard_Integer Length() const; - //! returns an index in the string of the first occurence + //! returns an index in the string of the first occurrence //! of the string S in the string from the starting index //! FromIndex to the ending index ToIndex //! returns zero if failure @@ -289,7 +289,7 @@ public: //! 4 Standard_EXPORT Standard_Integer Location (const Handle(TCollection_HAsciiString)& other, const Standard_Integer FromIndex, const Standard_Integer ToIndex) const; - //! Returns the index of the nth occurence of the character C + //! Returns the index of the nth occurrence of the character C //! in the string from the starting index FromIndex to the //! ending index ToIndex. //! Returns zero if failure. @@ -305,7 +305,7 @@ public: //! Converts to its lower-case equivalent. Standard_EXPORT void LowerCase(); - //! Inserts the other string at the begining of the string + //! Inserts the other string at the beginning of the string //! Example: //! before //! me = "cde" , S = "ab" @@ -322,7 +322,7 @@ public: //! "3.14159267" returns 3.14159267. Standard_EXPORT Standard_Real RealValue() const; - //! Remove all the occurences of the character C in the string + //! Remove all the occurrences of the character C in the string //! Example: //! before //! me = "HellLLo", C = 'L' , CaseSensitive = True @@ -455,7 +455,7 @@ public: Standard_EXPORT Standard_Integer UsefullLength() const; //! Returns character at position in . - //! If is less than zero or greater than the lenght of + //! If is less than zero or greater than the length of //! , an exception is raised. //! Example: //! aString contains "Hello" diff --git a/src/TCollection/TCollection_HExtendedString.hxx b/src/TCollection/TCollection_HExtendedString.hxx index 1fd628523d..80820d32d1 100644 --- a/src/TCollection/TCollection_HExtendedString.hxx +++ b/src/TCollection/TCollection_HExtendedString.hxx @@ -69,7 +69,7 @@ public: Standard_EXPORT TCollection_HExtendedString(const Standard_ExtCharacter aChar); //! Initializes a HExtendedString with space allocated. - //! and filled with .This is usefull for buffers. + //! and filled with . This is useful for buffers. Standard_EXPORT TCollection_HExtendedString(const Standard_Integer length, const Standard_ExtCharacter filler); //! Initializes a HExtendedString with a HExtendedString. diff --git a/src/TDF/TDF.hxx b/src/TDF/TDF.hxx index 2d93dec614..45c525502a 100644 --- a/src/TDF/TDF.hxx +++ b/src/TDF/TDF.hxx @@ -56,7 +56,7 @@ class TDF_IDFilter; //! features and data structures. //! //! The feature structure is a tree used to bind -//! semantic informations about each feature together. +//! semantic information about each feature together. //! //! The only one concrete attribute defined in this //! package is the TagSource attribute.This attribute diff --git a/src/TDF/TDF_Attribute.cxx b/src/TDF/TDF_Attribute.cxx index b82b740b30..fd5560e9ce 100644 --- a/src/TDF/TDF_Attribute.cxx +++ b/src/TDF/TDF_Attribute.cxx @@ -304,8 +304,8 @@ void TDF_Attribute::RemoveBackup() throw Standard_DomainError("Impossible to remove a nonexistent backup."); #endif myBackup->BeforeRemoval(); - myBackup->myLabelNode = NULL; // Absolutly necessary! - myBackup->myNext.Nullify(); // Absolutly necessary! + myBackup->myLabelNode = NULL; // Absolutely necessary! + myBackup->myNext.Nullify(); // Absolutely necessary! myBackup = myBackup->myBackup; if (!myBackup.IsNull()) myBackup->myNext = this; // New back reference. } diff --git a/src/TDF/TDF_Attribute.hxx b/src/TDF/TDF_Attribute.hxx index 7c85746424..a6159829a6 100644 --- a/src/TDF/TDF_Attribute.hxx +++ b/src/TDF/TDF_Attribute.hxx @@ -70,7 +70,7 @@ DEFINE_STANDARD_HANDLE(TDF_Attribute, Standard_Transient) //! //! An attribute can be identified by its ID. Every //! attributes used with the same meaning (for -//! exemple: Integer, String, Topology...) have the +//! example: Integer, String, Topology...) have the //! same worldwide unique ID. //! //! Addition: @@ -121,7 +121,7 @@ DEFINE_STANDARD_HANDLE(TDF_Attribute, Standard_Transient) //! algorithms. The goal of "Paste" is to transfer an //! attribute new contents into another attribute. The //! goal of "NewEmpty" is to create an attribute -//! whithout contents, to be further filled with the +//! without contents, to be further filled with the //! new contents of another one. These 2 methods must //! be implemented by end use inheriting classes. //! @@ -206,7 +206,7 @@ public: Standard_EXPORT void AddAttribute (const Handle(TDF_Attribute)& other) const; //! Forgets the Attribute of GUID associated - //! to the label of . Be carefull that if is + //! to the label of . Be careful that if is //! the attribute of , will have a null label //! after this call. If the attribute doesn't exist //! returns False. Otherwise returns True. @@ -216,7 +216,7 @@ public: //! of . Does it on the sub-labels if //! is set to true. Of course, this //! method is compatible with Transaction & Delta - //! mecanisms. Be carefull that if will have a + //! mechanisms. Be careful that if will have a //! null label after this call Standard_EXPORT void ForgetAllAttributes (const Standard_Boolean clearChildren = Standard_True) const; diff --git a/src/TDF/TDF_AttributeDelta.hxx b/src/TDF/TDF_AttributeDelta.hxx index f07f1fd3f3..35460289b4 100644 --- a/src/TDF/TDF_AttributeDelta.hxx +++ b/src/TDF/TDF_AttributeDelta.hxx @@ -30,7 +30,7 @@ class Standard_GUID; class TDF_AttributeDelta; DEFINE_STANDARD_HANDLE(TDF_AttributeDelta, Standard_Transient) -//! This class discribes the services we need to +//! This class describes the services we need to //! implement Delta and Undo/Redo services. //! //! AttributeDeltas are applied in an unpredictable diff --git a/src/TDF/TDF_AttributeIterator.hxx b/src/TDF/TDF_AttributeIterator.hxx index dbc6103fd2..05e588f67a 100644 --- a/src/TDF/TDF_AttributeIterator.hxx +++ b/src/TDF/TDF_AttributeIterator.hxx @@ -30,8 +30,8 @@ // up-to-date (current) valid attributes of a label. // // This class should not be used for standard attributes workflow. -// Application allways knows what to search at particular label. -// So, use IsAttribute and FindAttibute methods of +// Application always knows what to search at particular label. +// So, use IsAttribute and FindAttribute methods of // TDF_Label to check and get attributes in usual way. // This class may be used for processing of content of labels // in generic way, like copy-tool, specific save/restore algorithms, diff --git a/src/TDF/TDF_ClosureMode.hxx b/src/TDF/TDF_ClosureMode.hxx index dda00408e1..9693608a8f 100644 --- a/src/TDF/TDF_ClosureMode.hxx +++ b/src/TDF/TDF_ClosureMode.hxx @@ -32,7 +32,7 @@ public: DEFINE_STANDARD_ALLOC - //! Creates an objet with all modes set to . + //! Creates an object with all modes set to . Standard_EXPORT TDF_ClosureMode(const Standard_Boolean aMode = Standard_True); //! Sets the mode "Descendants" to . diff --git a/src/TDF/TDF_ClosureTool.cxx b/src/TDF/TDF_ClosureTool.cxx index b40402451d..40a7624b26 100644 --- a/src/TDF/TDF_ClosureTool.cxx +++ b/src/TDF/TDF_ClosureTool.cxx @@ -35,7 +35,7 @@ //======================================================================= //function : Closure -//purpose : Builds the transitive closure whithout attribute filter. +//purpose : Builds the transitive closure without attribute filter. //======================================================================= void TDF_ClosureTool::Closure diff --git a/src/TDF/TDF_ComparisonTool.hxx b/src/TDF/TDF_ComparisonTool.hxx index d54982fa8f..2d2a81057a 100644 --- a/src/TDF/TDF_ComparisonTool.hxx +++ b/src/TDF/TDF_ComparisonTool.hxx @@ -32,19 +32,15 @@ class TDF_Label; //! information. The use of this tool can works after //! a copy, acted by a CopyTool. //! -//! * Compare(...) compares two DataSet and returns -//! the result. +//! * Compare(...) compares two DataSet and returns the result. //! //! * SourceUnbound(...) builds the difference between -//! a relocation dictionnary and a source set of -//! information. +//! a relocation dictionary and a source set of information. //! //! * TargetUnbound(...) does the same between a -//! relocation dictionnary and a target set of -//! information. +//! relocation dictionary and a target set of information. //! -//! * Cut(aDataSet, anLabel) removes a set of -//! attributes. +//! * Cut(aDataSet, anLabel) removes a set of attributes. //! //! * IsSelfContained(...) returns true if all the //! labels of the attributes of the given DataSet are diff --git a/src/TDF/TDF_Data.hxx b/src/TDF/TDF_Data.hxx index 73a2341d3b..edacaac7bc 100644 --- a/src/TDF/TDF_Data.hxx +++ b/src/TDF/TDF_Data.hxx @@ -37,9 +37,8 @@ class TDF_Label; class TDF_Data; DEFINE_STANDARD_HANDLE(TDF_Data, Standard_Transient) -//! This class is used to manipulate a complete -//! independant, self sufficient data structure and -//! its services: +//! This class is used to manipulate a complete independent, +//! self sufficient data structure and its services: //! //! Access to the root label; //! @@ -48,8 +47,7 @@ DEFINE_STANDARD_HANDLE(TDF_Data, Standard_Transient) //! Generation and use of Delta, depending on the time. //! This class uses a special allocator //! (see LabelNodeAllocator() method) -//! for more efficient allocation of -//! objects in memory. +//! for more efficient allocation of objects in memory. class TDF_Data : public Standard_Transient { @@ -71,10 +69,9 @@ public: //! Returns true if is applicable HERE and NOW. Standard_EXPORT Standard_Boolean IsApplicable (const Handle(TDF_Delta)& aDelta) const; - //! Apply to undo a set of attribute - //! modifications. + //! Apply to undo a set of attribute modifications. //! - //! Optionnal set to True indiquates a + //! Optional set to True indicates a //! Delta Set must be generated. (See above) Standard_EXPORT Handle(TDF_Delta) Undo (const Handle(TDF_Delta)& aDelta, const Standard_Boolean withDelta = Standard_False); @@ -162,7 +159,7 @@ private: //! //! Raises if there is no current transaction. //! - //! Optionnal set to True indiquates a + //! Optional set to True indicates a //! Delta must be generated. Standard_EXPORT Handle(TDF_Delta) CommitTransaction (const Standard_Boolean withDelta = Standard_False); diff --git a/src/TDF/TDF_DataSet.hxx b/src/TDF/TDF_DataSet.hxx index 8ee6697c77..f05c85ed27 100644 --- a/src/TDF/TDF_DataSet.hxx +++ b/src/TDF/TDF_DataSet.hxx @@ -32,8 +32,7 @@ class TDF_Attribute; class TDF_DataSet; DEFINE_STANDARD_HANDLE(TDF_DataSet, Standard_Transient) -//! This class is a set of TDF informations like -//! labels and attributes. +//! This class is a set of TDF information like labels and attributes. class TDF_DataSet : public Standard_Transient { diff --git a/src/TDF/TDF_Label.cxx b/src/TDF/TDF_Label.cxx index 9fac8c344f..b610bbb520 100644 --- a/src/TDF/TDF_Label.cxx +++ b/src/TDF/TDF_Label.cxx @@ -620,7 +620,7 @@ void TDF_Label::ForgetFromNode (const TDF_LabelNodePtr& fromNode, // The attribute has been modified in the current transaction. // (It has at least one backup.) We don't restore the previous // version before forgetting. It may generated a strange behaviour - // in case of forgetting, commiting, aborting... + // in case of forgetting, committing, aborting... if (fromNode->Data()->NotUndoMode()) anAttribute->BeforeForget(); anAttribute->Forget(fromNode->Data()->Transaction()); } diff --git a/src/TDF/TDF_Label.hxx b/src/TDF/TDF_Label.hxx index e4a5be36c3..b048e372c5 100644 --- a/src/TDF/TDF_Label.hxx +++ b/src/TDF/TDF_Label.hxx @@ -133,7 +133,7 @@ public: //! Forgets all the attributes. Does it on also on the //! sub-labels if is set to true. Of //! course, this method is compatible with Transaction - //! & Delta mecanisms. + //! & Delta mechanisms. Standard_EXPORT void ForgetAllAttributes (const Standard_Boolean clearChildren = Standard_True) const; //! Undo Forget action, setting its forgotten status diff --git a/src/TDF/TDF_LabelNode.cxx b/src/TDF/TDF_LabelNode.cxx index 528510a363..55ebd2e8db 100644 --- a/src/TDF/TDF_LabelNode.cxx +++ b/src/TDF/TDF_LabelNode.cxx @@ -128,7 +128,7 @@ void TDF_LabelNode::RemoveAttribute (const Handle(TDF_Attribute)& afterAtt, const Handle(TDF_Attribute)& oldAtt) { - oldAtt->myFlags = 0; // Unvalid. + oldAtt->myFlags = 0; // Invalid. oldAtt->myLabelNode = NULL; if (afterAtt.IsNull()) { // Removes from beginning. myFirstAttribute = oldAtt->myNext; diff --git a/src/TDF/TDF_RelocationTable.hxx b/src/TDF/TDF_RelocationTable.hxx index 2c14f29554..bbc112e2a9 100644 --- a/src/TDF/TDF_RelocationTable.hxx +++ b/src/TDF/TDF_RelocationTable.hxx @@ -35,7 +35,7 @@ class Standard_Transient; class TDF_RelocationTable; DEFINE_STANDARD_HANDLE(TDF_RelocationTable, Standard_Transient) -//! This is a relocation dictionnary between source +//! This is a relocation dictionary between source //! and target labels, attributes or any //! transient(useful for copy or paste actions). //! Note that one target value may be the @@ -125,7 +125,7 @@ public: //! explanation about the method behavior) Standard_EXPORT Standard_Boolean HasTransientRelocation (const Handle(Standard_Transient)& aSourceTransient, Handle(Standard_Transient)& aTargetTransient) const; - //! Clears the relocation dictionnary, but lets the + //! Clears the relocation dictionary, but lets the //! self relocation flag to its current value. Standard_EXPORT void Clear(); diff --git a/src/TDF/TDF_Tool.hxx b/src/TDF/TDF_Tool.hxx index f78245b4db..ca74adbace 100644 --- a/src/TDF/TDF_Tool.hxx +++ b/src/TDF/TDF_Tool.hxx @@ -85,7 +85,7 @@ public: Standard_EXPORT static void OutReferences (const TDF_Label& aLabel, TDF_AttributeMap& atts); //! Returns in the referenced attributes and kept by . - //! It considers only the referers kept by . + //! It considers only the referrers kept by . //! Caution: is not cleared before use! Standard_EXPORT static void OutReferences (const TDF_Label& aLabel, const TDF_IDFilter& aFilterForReferers, const TDF_IDFilter& aFilterForReferences, TDF_AttributeMap& atts); @@ -93,7 +93,7 @@ public: //! but located as descendant as //! instead of . //! - //! Exemple : + //! Example : //! //! aLabel = 0:3:24:7:2:7 //! fromRoot = 0:3:24 @@ -149,10 +149,10 @@ public: //! attributes content. Standard_EXPORT static void ExtendedDeepDump (Standard_OStream& anOS, const Handle(TDF_Data)& aDF, const TDF_IDFilter& aFilter); - //! Dumps , its chilren and their attributes. + //! Dumps , its children and their attributes. Standard_EXPORT static void DeepDump (Standard_OStream& anOS, const TDF_Label& aLabel); - //! Dumps , its chilren and their attributes, + //! Dumps , its children and their attributes, //! if their IDs are kept by . Dumps also the //! attributes content. Standard_EXPORT static void ExtendedDeepDump (Standard_OStream& anOS, const TDF_Label& aLabel, const TDF_IDFilter& aFilter); diff --git a/src/TDF/TDF_Transaction.hxx b/src/TDF/TDF_Transaction.hxx index dca67e8556..6e01ef8a14 100644 --- a/src/TDF/TDF_Transaction.hxx +++ b/src/TDF/TDF_Transaction.hxx @@ -33,7 +33,7 @@ class TCollection_AsciiString; //! This class offers services to open, commit or //! abort a transaction in a more secure way than //! using Data from TDF. If you forget to close a -//! transaction, it will be automaticaly aborted at +//! transaction, it will be automatically aborted at //! the destruction of this object, at the closure of //! its scope. //! diff --git a/src/TDataStd/TDataStd_Current.cxx b/src/TDataStd/TDataStd_Current.cxx index 6c12c3c0fa..052f5b1aaa 100644 --- a/src/TDataStd/TDataStd_Current.cxx +++ b/src/TDataStd/TDataStd_Current.cxx @@ -64,7 +64,7 @@ TDF_Label TDataStd_Current::Get (const TDF_Label& access) // TDF_Label current; Handle(TDataStd_Current) A; if (!access.Data()->Root().FindAttribute (TDataStd_Current::GetID(), A)) { - throw Standard_DomainError("TDataStd_Current::Get : not setted"); + throw Standard_DomainError("TDataStd_Current::Get : not set"); } return A->GetLabel(); } diff --git a/src/TDataStd/TDataStd_GenericEmpty.hxx b/src/TDataStd/TDataStd_GenericEmpty.hxx index 86c91d1b9f..412eed8d57 100644 --- a/src/TDataStd/TDataStd_GenericEmpty.hxx +++ b/src/TDataStd/TDataStd_GenericEmpty.hxx @@ -27,7 +27,7 @@ class TDF_RelocationTable; class TDataStd_GenericEmpty; DEFINE_STANDARD_HANDLE(TDataStd_GenericEmpty, TDF_Attribute) -//! An ancestor attibute for all attributes which have no fields. +//! An ancestor attribute for all attributes which have no fields. //! If an attribute inherits this one it should not have drivers for persistence. class TDataStd_GenericEmpty : public TDF_Attribute { diff --git a/src/TDataStd/TDataStd_GenericExtString.hxx b/src/TDataStd/TDataStd_GenericExtString.hxx index 0b94776ff2..ed0eb1c529 100644 --- a/src/TDataStd/TDataStd_GenericExtString.hxx +++ b/src/TDataStd/TDataStd_GenericExtString.hxx @@ -25,7 +25,7 @@ class TDF_RelocationTable; class TDataStd_GenericExtString; DEFINE_STANDARD_HANDLE(TDataStd_GenericExtString, TDF_Attribute) -//! An ancestor attibute for all attributes which have TCollection_ExtendedString field. +//! An ancestor attribute for all attributes which have TCollection_ExtendedString field. //! If an attribute inherits this one it should not have drivers for persistence. //! Also this attribute provides functionality to have on the same label same attributes with different IDs. class TDataStd_GenericExtString : public TDF_Attribute diff --git a/src/TDataStd/TDataStd_NamedData.hxx b/src/TDataStd/TDataStd_NamedData.hxx index 5b28f62698..1072256a57 100644 --- a/src/TDataStd/TDataStd_NamedData.hxx +++ b/src/TDataStd/TDataStd_NamedData.hxx @@ -44,7 +44,7 @@ public: //! Returns the ID of the named data attribute. Standard_EXPORT static const Standard_GUID& GetID(); - + //! Finds or creates a named data attribute. Standard_EXPORT static Handle(TDataStd_NamedData) Set (const TDF_Label& label); @@ -52,26 +52,26 @@ public: //! Empty constructor. Standard_EXPORT TDataStd_NamedData(); - + //! Returns true if at least one named integer value is kept in the attribute. Standard_Boolean HasIntegers() const { return !myIntegers.IsNull(); } //! Returns true if the attribute contains specified by Name //! integer value. Standard_EXPORT Standard_Boolean HasInteger (const TCollection_ExtendedString& theName) const; - + //! Returns the integer value specified by the Name. //! It returns 0 if internal map doesn't contain the specified //! integer (use HasInteger() to check before). Standard_EXPORT Standard_Integer GetInteger (const TCollection_ExtendedString& theName); - + //! Defines a named integer. //! If the integer already exists, it changes its value to . Standard_EXPORT void SetInteger (const TCollection_ExtendedString& theName, const Standard_Integer theInteger); - + //! Returns the internal container of named integers. Standard_EXPORT const TColStd_DataMapOfStringInteger& GetIntegersContainer(); - + //! Replace the container content by new content of the . Standard_EXPORT void ChangeIntegers (const TColStd_DataMapOfStringInteger& theIntegers); @@ -80,70 +80,70 @@ public: //! Returns true if the attribute contains a real specified by Name. Standard_EXPORT Standard_Boolean HasReal (const TCollection_ExtendedString& theName) const; - + //! Returns the named real. //! It returns 0.0 if there is no such a named real //! (use HasReal()). Standard_EXPORT Standard_Real GetReal (const TCollection_ExtendedString& theName); - + //! Defines a named real. //! If the real already exists, it changes its value to . Standard_EXPORT void SetReal (const TCollection_ExtendedString& theName, const Standard_Real theReal); - + //! Returns the internal container of named reals. Standard_EXPORT const TDataStd_DataMapOfStringReal& GetRealsContainer(); - + //! Replace the container content by new content of the . Standard_EXPORT void ChangeReals (const TDataStd_DataMapOfStringReal& theReals); - + //! Returns true if there are some named strings in the attribute. Standard_Boolean HasStrings() const { return !myStrings.IsNull(); } //! Returns true if the attribute contains this named string. Standard_EXPORT Standard_Boolean HasString (const TCollection_ExtendedString& theName) const; - + //! Returns the named string. //! It returns an empty string if there is no such a named string //! (use HasString()). Standard_EXPORT const TCollection_ExtendedString& GetString (const TCollection_ExtendedString& theName); - + //! Defines a named string. //! If the string already exists, it changes its value to . Standard_EXPORT void SetString (const TCollection_ExtendedString& theName, const TCollection_ExtendedString& theString); - + //! Returns the internal container of named strings. Standard_EXPORT const TDataStd_DataMapOfStringString& GetStringsContainer(); - + //! Replace the container content by new content of the . Standard_EXPORT void ChangeStrings (const TDataStd_DataMapOfStringString& theStrings); - + //! Returns true if there are some named bytes in the attribute. Standard_Boolean HasBytes() const { return !myBytes.IsNull(); } //! Returns true if the attribute contains this named byte. Standard_EXPORT Standard_Boolean HasByte (const TCollection_ExtendedString& theName) const; - + //! Returns the named byte. //! It returns 0 if there is no such a named byte //! (use HasByte()). Standard_EXPORT Standard_Byte GetByte (const TCollection_ExtendedString& theName); - + //! Defines a named byte. //! If the byte already exists, it changes its value to . Standard_EXPORT void SetByte (const TCollection_ExtendedString& theName, const Standard_Byte theByte); - + //! Returns the internal container of named bytes. Standard_EXPORT const TDataStd_DataMapOfStringByte& GetBytesContainer(); - + //! Replace the container content by new content of the . Standard_EXPORT void ChangeBytes (const TDataStd_DataMapOfStringByte& theBytes); - + //! Returns true if there are some named arrays of integer values in the attribute. Standard_Boolean HasArraysOfIntegers() const { return !myArraysOfIntegers.IsNull(); } //! Returns true if the attribute contains this named array of integer values. Standard_EXPORT Standard_Boolean HasArrayOfIntegers (const TCollection_ExtendedString& theName) const; - + //! Returns the named array of integer values. //! It returns a NULL Handle if there is no such a named array of integers //! (use HasArrayOfIntegers()). @@ -161,16 +161,16 @@ public: //! Returns the internal container of named arrays of integer values. Standard_EXPORT const TDataStd_DataMapOfStringHArray1OfInteger& GetArraysOfIntegersContainer(); - + //! Replace the container content by new content of the . Standard_EXPORT void ChangeArraysOfIntegers (const TDataStd_DataMapOfStringHArray1OfInteger& theArraysOfIntegers); - + //! Returns true if there are some named arrays of real values in the attribute. Standard_Boolean HasArraysOfReals() const { return !myArraysOfReals.IsNull(); } //! Returns true if the attribute contains this named array of real values. Standard_EXPORT Standard_Boolean HasArrayOfReals (const TCollection_ExtendedString& theName) const; - + //! Returns the named array of real values. //! It returns a NULL Handle if there is no such a named array of reals //! (use HasArrayOfReals()). @@ -188,7 +188,7 @@ public: //! Returns the internal container of named arrays of real values. Standard_EXPORT const TDataStd_DataMapOfStringHArray1OfReal& GetArraysOfRealsContainer(); - + //! Replace the container content by new content of the . Standard_EXPORT void ChangeArraysOfReals (const TDataStd_DataMapOfStringHArray1OfReal& theArraysOfReals); @@ -213,7 +213,7 @@ public: //! @name late-load deferred data interface //! //! Usage scenarios: //! - Application displays model in read-only way. - //! Late-load elements are loaded temporarily on demand and immediatly unloaded. + //! Late-load elements are loaded temporarily on demand and immediately unloaded. //! theNamedData->LoadDeferredData (true); //! TCollection_AsciiString aValue = theNamedData->GetString (theKey); //! theNamedData->UnloadDeferredData(); @@ -227,7 +227,7 @@ public: //! @name late-load deferred data interface virtual Standard_Boolean HasDeferredData() const { return false; } //! Load data from deferred storage, without calling Backup(). - //! As result, the content of the object will be overidden by data from deferred storage (which is normally read-only). + //! As result, the content of the object will be overridden by data from deferred storage (which is normally read-only). //! @param theToKeepDeferred [in] when TRUE, the link to deferred storage will be preserved //! so that it will be possible calling UnloadDeferredData() afterwards for releasing memory //! @return FALSE if deferred storage is unavailable or deferred data has been already loaded @@ -283,7 +283,7 @@ public: //! @name TDF_Attribute interface Standard_EXPORT virtual void Paste (const Handle(TDF_Attribute)& Into, const Handle(TDF_RelocationTable)& RT) const Standard_OVERRIDE; Standard_EXPORT virtual Standard_OStream& Dump (Standard_OStream& anOS) const Standard_OVERRIDE; - + //! Dumps the content of me into the stream Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE; diff --git a/src/TDataStd/TDataStd_TreeNode.cxx b/src/TDataStd/TDataStd_TreeNode.cxx index 1d7ec79b22..7f40a930ed 100644 --- a/src/TDataStd/TDataStd_TreeNode.cxx +++ b/src/TDataStd/TDataStd_TreeNode.cxx @@ -545,7 +545,7 @@ void TDataStd_TreeNode::AfterAddition() { //======================================================================= //TreeNode : BeforeForget //purpose : Disconnect the TreeNode from the tree. -// Backuped attribute is normaly not concerned by such an operation +// Backuped attribute is normally not concerned by such an operation //======================================================================= void TDataStd_TreeNode::BeforeForget() { diff --git a/src/TDataStd/TDataStd_TreeNode.hxx b/src/TDataStd/TDataStd_TreeNode.hxx index a020b72dcc..30288e20e9 100644 --- a/src/TDataStd/TDataStd_TreeNode.hxx +++ b/src/TDataStd/TDataStd_TreeNode.hxx @@ -200,8 +200,7 @@ public: //! =================================== Standard_EXPORT virtual Standard_Boolean AfterUndo (const Handle(TDF_AttributeDelta)& anAttDelta, const Standard_Boolean forceIt = Standard_False) Standard_OVERRIDE; - //! Returns the tree ID (default or explicit one depending - //! onthe Set method used). + //! Returns the tree ID (default or explicit one depending on the Set method used). Standard_EXPORT const Standard_GUID& ID() const Standard_OVERRIDE; Standard_EXPORT virtual void Restore (const Handle(TDF_Attribute)& with) Standard_OVERRIDE; diff --git a/src/TDataXtd/TDataXtd_Geometry.hxx b/src/TDataXtd/TDataXtd_Geometry.hxx index d498d761cc..29c7bf92d1 100644 --- a/src/TDataXtd/TDataXtd_Geometry.hxx +++ b/src/TDataXtd/TDataXtd_Geometry.hxx @@ -133,9 +133,9 @@ public: //! Returns the GUID for geometry attributes. Standard_EXPORT static const Standard_GUID& GetID(); - //! This and the next methods are used to retrieve underlying geometry of the - //! NamedShape, even if noone Geometry Attribute is - //! associated . if not found or not compliant geometry return False. + //! This and the next methods are used to retrieve underlying geometry of the NamedShape, + //! even if no Geometry Attribute is associated. + //! if not found or not compliant geometry return False. Standard_EXPORT TDataXtd_Geometry(); //! Returns the type of geometric construction T of this attribute. diff --git a/src/TDocStd/TDocStd.hxx b/src/TDocStd/TDocStd.hxx index 91e574f8f7..5241dfa126 100644 --- a/src/TDocStd/TDocStd.hxx +++ b/src/TDocStd/TDocStd.hxx @@ -41,7 +41,7 @@ class TDocStd_MultiTransactionManager; //! //! * The standard application root class //! -//! * The standard document wich contains data +//! * The standard document which contains data //! //! * The external reference mechanism between documents //! diff --git a/src/TDocStd/TDocStd_Application.hxx b/src/TDocStd/TDocStd_Application.hxx index bc28787000..442a8f3693 100644 --- a/src/TDocStd/TDocStd_Application.hxx +++ b/src/TDocStd/TDocStd_Application.hxx @@ -65,7 +65,7 @@ DEFINE_STANDARD_HANDLE(TDocStd_Application, CDF_Application) //! the events during the Open/Store operation, a MessageDriver //! based on Message_PrinterOStream may be used. In case of need client //! can implement his own version inheriting from Message_Printer class -//! and add it to the Messanger. +//! and add it to the Messenger. //! Also the trace level of messages can be tuned by setting trace level (SetTraceLevel (Gravity )) for the used Printer. //! By default, trace level is Message_Info, so that all messages are output. @@ -232,7 +232,7 @@ public: const Message_ProgressRange& theRange = Message_ProgressRange()); //! Retrieves aDoc from standard SEEKABLE stream theIStream. - //! the stream should support SEEK fuctionality + //! the stream should support SEEK functionality Standard_EXPORT PCDM_ReaderStatus Open (Standard_IStream& theIStream, Handle(TDocStd_Document)& theDoc, const Message_ProgressRange& theRange = Message_ProgressRange()); @@ -244,7 +244,7 @@ public: const Message_ProgressRange& theRange = Message_ProgressRange()); //! Save theDoc to standard SEEKABLE stream theOStream. - //! the stream should support SEEK fuctionality + //! the stream should support SEEK functionality Standard_EXPORT PCDM_StoreStatus SaveAs (const Handle(TDocStd_Document)& theDoc, Standard_OStream& theOStream, const Message_ProgressRange& theRange = Message_ProgressRange()); @@ -265,7 +265,7 @@ public: const Message_ProgressRange& theRange = Message_ProgressRange()); //! Save theDoc TO standard SEEKABLE stream theOStream. - //! the stream should support SEEK fuctionality + //! the stream should support SEEK functionality Standard_EXPORT PCDM_StoreStatus SaveAs (const Handle(TDocStd_Document)& theDoc, Standard_OStream& theOStream, TCollection_ExtendedString& theStatusMessage, diff --git a/src/TDocStd/TDocStd_Document.cxx b/src/TDocStd/TDocStd_Document.cxx index d9656c4689..6bb37dc131 100644 --- a/src/TDocStd/TDocStd_Document.cxx +++ b/src/TDocStd/TDocStd_Document.cxx @@ -376,7 +376,7 @@ Standard_Boolean TDocStd_Document::CommitTransaction() } - // deny or allow modifications acording to transaction state + // deny or allow modifications according to transaction state if(myOnlyTransactionModification) { myData->AllowModification (myUndoTransaction.IsOpen() && myUndoLimit ? Standard_True :Standard_False); @@ -413,7 +413,7 @@ void TDocStd_Document::AbortTransaction() if (myUndoFILO.Extent()) myUndoTransaction.Open(); } - // deny or allow modifications acording to transaction state + // deny or allow modifications according to transaction state if (myOnlyTransactionModification) { myData->AllowModification (myUndoTransaction.IsOpen() && myUndoLimit ? Standard_True :Standard_False); @@ -457,7 +457,7 @@ void TDocStd_Document::OpenTransaction() if (myUndoLimit != 0) myUndoTransaction.Open(); - // deny or allow modifications acording to transaction state + // deny or allow modifications according to transaction state if (myOnlyTransactionModification) { myData->AllowModification (myUndoTransaction.IsOpen() && myUndoLimit ? Standard_True :Standard_False); @@ -490,7 +490,7 @@ void TDocStd_Document::SetUndoLimit(const Standard_Integer L) myUndos.RemoveFirst(); --n; } - // deny or allow modifications acording to transaction state + // deny or allow modifications according to transaction state if(myOnlyTransactionModification) { myData->AllowModification(myUndoTransaction.IsOpen() && myUndoLimit ? Standard_True :Standard_False); @@ -595,7 +595,7 @@ Standard_Boolean TDocStd_Document::Undo() if (isOpened && undoDone) OpenTransaction(); - // deny or allow modifications acording to transaction state + // deny or allow modifications according to transaction state if(myOnlyTransactionModification) { myData->AllowModification(myUndoTransaction.IsOpen() && myUndoLimit ? Standard_True :Standard_False); @@ -654,7 +654,7 @@ Standard_Boolean TDocStd_Document::Redo() if (isOpened && undoDone) OpenTransaction(); - // deny or allow modifications acording to transaction state + // deny or allow modifications according to transaction state if(myOnlyTransactionModification) { myData->AllowModification(myUndoTransaction.IsOpen() && myUndoLimit ? Standard_True :Standard_False); @@ -924,7 +924,7 @@ void TDocStd_Document::ChangeStorageFormatVersion(const TDocStd_FormatVersion th //======================================================================= //function : CurrentStorageFormatVersion -//purpose : Returns current storage format verison of the document. +//purpose : Returns current storage format version of the document. //======================================================================= TDocStd_FormatVersion TDocStd_Document::CurrentStorageFormatVersion() { diff --git a/src/TDocStd/TDocStd_Document.hxx b/src/TDocStd/TDocStd_Document.hxx index 97c64d7b38..7737e0ec84 100644 --- a/src/TDocStd/TDocStd_Document.hxx +++ b/src/TDocStd/TDocStd_Document.hxx @@ -73,7 +73,7 @@ public: Standard_EXPORT Standard_Boolean IsSaved() const; //! returns True if document differs from the state of last saving. - //! this method have to be called only wroking in the transaction mode + //! this method have to be called only working in the transaction mode Standard_Boolean IsChanged() const; //! This method have to be called to show document that it has been saved @@ -89,7 +89,7 @@ public: //! raise if is not saved. Standard_EXPORT TCollection_ExtendedString GetName() const; - //! returns the OS path of the file, in wich one is + //! returns the OS path of the file, in which one is //! saved. Raise an exception if is not saved. Standard_EXPORT TCollection_ExtendedString GetPath() const; @@ -255,7 +255,7 @@ public: //! Sets version of the format to be used to store the document Standard_EXPORT void ChangeStorageFormatVersion(const TDocStd_FormatVersion theVersion); - //! Returns current storage format verison of the document. + //! Returns current storage format version of the document. Standard_EXPORT static TDocStd_FormatVersion CurrentStorageFormatVersion(); //! Dumps the content of me into the stream diff --git a/src/TDocStd/TDocStd_Document.lxx b/src/TDocStd/TDocStd_Document.lxx index 33ba50119c..38745eea15 100644 --- a/src/TDocStd/TDocStd_Document.lxx +++ b/src/TDocStd/TDocStd_Document.lxx @@ -40,7 +40,7 @@ inline Standard_Boolean //======================================================================= //function : IsModified //purpose : returns True if document differs from the state of last saving. -// this method have to be called only wroking in the transaction mode +// this method have to be called only working in the transaction mode //======================================================================= inline Standard_Boolean @@ -70,7 +70,7 @@ inline void TDocStd_Document::SetModificationMode { myOnlyTransactionModification = theTransactionOnly; - // deny or allow modifications acording to transaction state + // deny or allow modifications according to transaction state if(myOnlyTransactionModification) { myData->AllowModification(myUndoTransaction.IsOpen()); } diff --git a/src/TDocStd/TDocStd_Modified.hxx b/src/TDocStd/TDocStd_Modified.hxx index 7f8adc50cf..25b05c6e9a 100644 --- a/src/TDocStd/TDocStd_Modified.hxx +++ b/src/TDocStd/TDocStd_Modified.hxx @@ -33,8 +33,8 @@ class TDF_RelocationTable; class TDocStd_Modified; DEFINE_STANDARD_HANDLE(TDocStd_Modified, TDF_Attribute) -//! Transient attribute wich register modified -//! labels. This attribute is attached to root label. +//! Transient attribute which register modified labels. +//! This attribute is attached to root label. class TDocStd_Modified : public TDF_Attribute { diff --git a/src/TDocStd/TDocStd_MultiTransactionManager.cxx b/src/TDocStd/TDocStd_MultiTransactionManager.cxx index 37d78f5303..f59f862ffd 100644 --- a/src/TDocStd/TDocStd_MultiTransactionManager.cxx +++ b/src/TDocStd/TDocStd_MultiTransactionManager.cxx @@ -106,10 +106,10 @@ void TDocStd_MultiTransactionManager::OpenCommand() { #ifdef OCCT_DEBUG std::cout << "TDocStd_MultiTransactionManager::OpenCommand(): " "Can't start new application transaction while a " - "previous one is not commited or aborted" << std::endl; + "previous one is not committed or aborted" << std::endl; #endif throw Standard_Failure("Can't start new application transaction" - "while a previous one is not commited or aborted"); + "while a previous one is not committed or aborted"); } myOpenTransaction = Standard_True; Standard_Integer i; diff --git a/src/TDocStd/TDocStd_MultiTransactionManager.hxx b/src/TDocStd/TDocStd_MultiTransactionManager.hxx index 5dffa64fc4..d0c46f9d73 100644 --- a/src/TDocStd/TDocStd_MultiTransactionManager.hxx +++ b/src/TDocStd/TDocStd_MultiTransactionManager.hxx @@ -36,7 +36,7 @@ DEFINE_STANDARD_HANDLE(TDocStd_MultiTransactionManager, Standard_Transient) //! Each transaction of this class involvess one transaction in each modified document. //! //! The documents to be synchronized should be added explicitly to -//! the manager; then its interface is uesd to ensure that all transactions +//! the manager; then its interface is used to ensure that all transactions //! (Open/Commit, Undo/Redo) are performed synchronously in all managed documents. //! //! The current implementation does not support nested transactions @@ -46,7 +46,7 @@ DEFINE_STANDARD_HANDLE(TDocStd_MultiTransactionManager, Standard_Transient) //! with TDocStd_Document class interface. //! //! NOTE: When you invoke CommitTransaction of multi transaction -//! manager, all nested transaction of its documents will be closed (commited). +//! manager, all nested transaction of its documents will be closed (committed). class TDocStd_MultiTransactionManager : public Standard_Transient { @@ -83,7 +83,7 @@ public: //! Opens transaction in each document and sets the flag that //! transaction is opened. If there are already opened transactions in the documents, - //! these transactions will be aborted before openning new ones. + //! these transactions will be aborted before opening new ones. Standard_EXPORT void OpenCommand(); //! Unsets the flag of started manager transaction and aborts @@ -93,7 +93,7 @@ public: //! Commits transaction in all documents and fills the transaction manager //! with the documents that have been changed during the transaction. //! Returns True if new data has been added to myUndos. - //! NOTE: All nested transactions in the documents will be commited. + //! NOTE: All nested transactions in the documents will be committed. Standard_EXPORT Standard_Boolean CommitCommand(); //! Makes the same steps as the previous function but defines the name for transaction. diff --git a/src/TDocStd/TDocStd_Owner.hxx b/src/TDocStd/TDocStd_Owner.hxx index 3b36f82380..8b23fc32d3 100644 --- a/src/TDocStd/TDocStd_Owner.hxx +++ b/src/TDocStd/TDocStd_Owner.hxx @@ -34,7 +34,7 @@ DEFINE_STANDARD_HANDLE(TDocStd_Owner, TDF_Attribute) //! This attribute located at the root label of the //! framework contains a back reference to the owner -//! TDocStd_Document, providing acces to the document from +//! TDocStd_Document, providing access to the document from //! any label. private class Owner; class TDocStd_Owner : public TDF_Attribute { diff --git a/src/TDocStd/TDocStd_XLink.hxx b/src/TDocStd/TDocStd_XLink.hxx index 2f022ebeeb..a455218f10 100644 --- a/src/TDocStd/TDocStd_XLink.hxx +++ b/src/TDocStd/TDocStd_XLink.hxx @@ -96,7 +96,7 @@ public: //! Something to do after applying . Standard_EXPORT virtual Standard_Boolean AfterUndo (const Handle(TDF_AttributeDelta)& anAttDelta, const Standard_Boolean forceIt = Standard_False) Standard_OVERRIDE; - //! Returns a null handle. Raise allways for ,it is + //! Returns a null handle. Raise always for it is //! nonsense to use this method. Standard_EXPORT Handle(TDF_Attribute) BackupCopy() const Standard_OVERRIDE; diff --git a/src/TDocStd/TDocStd_XLinkRoot.hxx b/src/TDocStd/TDocStd_XLinkRoot.hxx index fef4425354..de6778e1fb 100644 --- a/src/TDocStd/TDocStd_XLinkRoot.hxx +++ b/src/TDocStd/TDocStd_XLinkRoot.hxx @@ -36,8 +36,7 @@ DEFINE_STANDARD_HANDLE(TDocStd_XLinkRoot, TDF_Attribute) //! references contained in a Data from TDF. Only one //! instance of this class is added to the TDF_Data //! root label. Starting from this attribute all the -//! Reference are linked together, to be found -//! easely. +//! Reference are linked together, to be found easily. class TDocStd_XLinkRoot : public TDF_Attribute { diff --git a/src/TDocStd/TDocStd_XLinkTool.cxx b/src/TDocStd/TDocStd_XLinkTool.cxx index ca333c0a84..8fefef9f19 100644 --- a/src/TDocStd/TDocStd_XLinkTool.cxx +++ b/src/TDocStd/TDocStd_XLinkTool.cxx @@ -159,7 +159,7 @@ void TDocStd_XLinkTool::UpdateLink (const TDF_Label& label) { Handle(TDF_Reference) REF; if (!label.FindAttribute(TDF_Reference::GetID(),REF)) { - throw Standard_DomainError(" TDocStd_XLinkTool::UpdateLink : not ref registred"); + throw Standard_DomainError(" TDocStd_XLinkTool::UpdateLink : not ref registered"); } TDocStd_XLinkTool XLinkTool; Copy (label,REF->Get()); diff --git a/src/TDocStd/TDocStd_XLinkTool.hxx b/src/TDocStd/TDocStd_XLinkTool.hxx index 4be312d500..172036ca25 100644 --- a/src/TDocStd/TDocStd_XLinkTool.hxx +++ b/src/TDocStd/TDocStd_XLinkTool.hxx @@ -33,8 +33,8 @@ class TDF_Label; //! attributes located out of source scope are not //! copied by this algorithm. //! Depending of the called method an external -//! reference is set in the the target document to -//! registred the externallink. +//! reference is set in the target document to +//! registered the externallink. //! Provide services to set, update and perform //! external references. //! Warning1: Nothing is provided in this class about the @@ -53,7 +53,7 @@ public: Standard_EXPORT TDocStd_XLinkTool(); //! Copies the content of the label to the label . - //! The link is registred with an XLink attribute by + //! The link is registered with an XLink attribute by //! label. if the content of is not //! self-contained, and/or has already an XLink //! attribute, an exception is raised. @@ -74,7 +74,7 @@ public: Standard_EXPORT void UpdateLink (const TDF_Label& L); //! Copy the content of under - //! . Noone link is registred. noone check is done. + //! . No link is registered. No check is done. //! Example //! Handle(TDocStd_Document) DOC, XDOC; //! TDF_Label L, XL; diff --git a/src/TFunction/TFunction_Function.hxx b/src/TFunction/TFunction_Function.hxx index 0d227729a1..ebd248e713 100644 --- a/src/TFunction/TFunction_Function.hxx +++ b/src/TFunction/TFunction_Function.hxx @@ -68,7 +68,7 @@ public: const Standard_GUID& GetDriverGUID() const { return myDriverGUID; } //! Sets the driver for this function as that - //! indentified by the GUID guid. + //! identified by the GUID guid. Standard_EXPORT void SetDriverGUID (const Standard_GUID& guid); //! Returns true if the execution failed diff --git a/src/TFunction/TFunction_Iterator.cxx b/src/TFunction/TFunction_Iterator.cxx index 58f64d6df8..b1836e18ac 100644 --- a/src/TFunction/TFunction_Iterator.cxx +++ b/src/TFunction/TFunction_Iterator.cxx @@ -245,7 +245,7 @@ void TFunction_Iterator::Next() } } - // Ignore already passed fucntions (for the mode of ignoring the execution status). + // Ignore already passed functions (for the mode of ignoring the execution status). if (!myUsageOfExecutionStatus && myPassedFunctions.Contains(Lnext)) continue; diff --git a/src/TNaming/TNaming.hxx b/src/TNaming/TNaming.hxx index d24d0dbb5e..47de03ebf2 100644 --- a/src/TNaming/TNaming.hxx +++ b/src/TNaming/TNaming.hxx @@ -175,7 +175,7 @@ public: //! single contexts Standard_EXPORT static TopoDS_Shape FindUniqueContextSet (const TopoDS_Shape& S, const TopoDS_Shape& Context, Handle(TopTools_HArray1OfShape)& Arr); - //! Subtitutes shape in source structure + //! Substitutes shape in source structure Standard_EXPORT static Standard_Boolean SubstituteSShape (const TDF_Label& accesslabel, const TopoDS_Shape& From, TopoDS_Shape& To); //! Returns True if outer wire is found and the found wire in . diff --git a/src/TNaming/TNaming_Tool.hxx b/src/TNaming/TNaming_Tool.hxx index 392770b028..2e2eeb20ce 100644 --- a/src/TNaming/TNaming_Tool.hxx +++ b/src/TNaming/TNaming_Tool.hxx @@ -147,7 +147,7 @@ public: Standard_EXPORT static Standard_Integer ValidUntil (const TDF_Label& access, const TopoDS_Shape& S); //! Returns the current shape (a Wire or a Shell) built (in the data framework) - //! from the the shapes of the argument named shape. + //! from the shapes of the argument named shape. //! It is used for IDENTITY name type computation. Standard_EXPORT static void FindShape (const TDF_LabelMap& Valid, const TDF_LabelMap& Forbiden, const Handle(TNaming_NamedShape)& Arg, TopoDS_Shape& S); diff --git a/src/TObj/TObj_Application.cxx b/src/TObj/TObj_Application.cxx index 0fdad6123e..44e7457fd9 100644 --- a/src/TObj/TObj_Application.cxx +++ b/src/TObj/TObj_Application.cxx @@ -214,7 +214,7 @@ void TObj_Application::DumpJson (Standard_OStream& theOStream, Standard_Integer //======================================================================= //function : SetError -//purpose : Sets an error occured on storage of a document. +//purpose : Sets an error occurred on storage of a document. //======================================================================= void TObj_Application::SetError (const PCDM_StoreStatus theStatus, const TCollection_ExtendedString& theInfo) @@ -247,7 +247,7 @@ void TObj_Application::SetError (const PCDM_StoreStatus theStatus, const TCollec //======================================================================= //function : SetError -//purpose : Sets an error occured on reading of a document. +//purpose : Sets an error occurred on reading of a document. //======================================================================= void TObj_Application::SetError(const PCDM_ReaderStatus theStatus, const TCollection_ExtendedString& theInfo) diff --git a/src/TObj/TObj_Application.hxx b/src/TObj/TObj_Application.hxx index f619955f15..c7166f86b6 100644 --- a/src/TObj/TObj_Application.hxx +++ b/src/TObj/TObj_Application.hxx @@ -109,10 +109,10 @@ public: //! the static instance of the object (or derive your own application) Standard_EXPORT TObj_Application(); - //! Sets an error occured on storage of a document. + //! Sets an error occurred on storage of a document. void SetError (const PCDM_StoreStatus theStatus, const TCollection_ExtendedString& theInfo); - //! Sets an error occured on reading of a document. + //! Sets an error occurred on reading of a document. void SetError (const PCDM_ReaderStatus theStatus, const TCollection_ExtendedString& theInfo); private: diff --git a/src/TObj/TObj_Common.hxx b/src/TObj/TObj_Common.hxx index 85fdd77e36..f6fe6bfbe3 100644 --- a/src/TObj/TObj_Common.hxx +++ b/src/TObj/TObj_Common.hxx @@ -29,7 +29,7 @@ #include #include -//! Methods inline implimentation for HExtendedString +//! Methods inline implementation for HExtendedString //! Computes a hash code for the given handle referred to extended string, in the range [1, theUpperBound] //! @param theHExtendedString the handle referred to extended string which hash code is to be computed diff --git a/src/TObj/TObj_Object.cxx b/src/TObj/TObj_Object.cxx index afdd460b0f..3be096cad7 100644 --- a/src/TObj/TObj_Object.cxx +++ b/src/TObj/TObj_Object.cxx @@ -195,7 +195,7 @@ Handle(TObj_ObjectIterator) TObj_Object::GetChildren //======================================================================= //function : getLabelByRank -//purpose : Auxiliary function to get a label and attache a name to it +//purpose : Auxiliary function to get a label and attach a name to it // Used in debug mode only //======================================================================= diff --git a/src/TObj/TObj_Object.hxx b/src/TObj/TObj_Object.hxx index ab5d31935d..9807246962 100644 --- a/src/TObj/TObj_Object.hxx +++ b/src/TObj/TObj_Object.hxx @@ -149,7 +149,7 @@ class TObj_Object : public Standard_Transient public: /** - * Methods hanling name of the object + * Methods handling name of the object */ //! Returns the map of names of the objects @@ -202,7 +202,7 @@ class TObj_Object : public Standard_Transient virtual Standard_EXPORT void RemoveAllReferences(); //! Returns iterator for the objects which depend on this one. - //! These reffering objects may belong to other models. + //! These referring objects may belong to other models. //! theType narrows a variety of iterated objects virtual Standard_EXPORT Handle(TObj_ObjectIterator) GetBackReferences (const Handle(Standard_Type)& theType = NULL) const; @@ -227,7 +227,7 @@ class TObj_Object : public Standard_Transient //! The default implementation just clear the back references container virtual Standard_EXPORT void ClearBackReferences(); - //! Returns TRUE if obejct has 1 or more back references + //! Returns TRUE if object has 1 or more back references Standard_EXPORT Standard_Boolean HasBackReferences() const; //! Replace reference from old object to new object. @@ -291,7 +291,7 @@ class TObj_Object : public Standard_Transient (const TObj_DeletingMode theMode = TObj_FreeOnly); //! Deletes the object from the label. Checks if object can be deleted. - //! Finds object on the label and detaches it by calling previos method. + //! Finds object on the label and detaches it by calling previous method. //! Returns true if there is no object on the label after detaching static Standard_EXPORT Standard_Boolean Detach (const TDF_Label& theLabel, @@ -336,7 +336,7 @@ class TObj_Object : public Standard_Transient //! Coping object with data and childs, but change name by adding string "_copy" //! As result return handle of new object (null handle is something wrong) //! NOTE: BackReferences not coping. - //! After clonning all objects it is neccessary to call copy references + //! After cloning all objects it is necessary to call copy references //! with the same relocation table virtual Standard_EXPORT Handle(TObj_Object) Clone (const TDF_Label& theTargetLabel, @@ -415,13 +415,13 @@ class TObj_Object : public Standard_Transient * Method for updating object afrer restoring */ - //! Preforms updating the links and dependances of the object which are not + //! Performs updating the links and dependances of the object which are not //! stored in persistence. Should be redefined if necessary. virtual Standard_EXPORT void AfterRetrieval(); - //! Preforms storing the objects transient fields in OCAF document + //! Performs storing the objects transient fields in OCAF document //! which were outside transaction mechanism. - //! Default implementation doesnot nothing + //! Default implementation does nothing virtual Standard_EXPORT void BeforeStoring(); protected: diff --git a/src/TObj/TObj_Partition.hxx b/src/TObj/TObj_Partition.hxx index 343dd42916..1b693f62d2 100644 --- a/src/TObj/TObj_Partition.hxx +++ b/src/TObj/TObj_Partition.hxx @@ -23,14 +23,14 @@ /** -* This class privides tool handling one of partitions (the set of -* homogenious elements) in the OCAF based model`s data structure +* This class provides tool handling one of partitions (the set of +* homogeneous elements) in the OCAF based model`s data structure */ class TObj_Partition : public TObj_Object { protected: - enum DataTag + enum DataTag { DataTag_First = TObj_Object::DataTag_Last, DataTag_LastIndex, @@ -42,22 +42,22 @@ class TObj_Partition : public TObj_Object * Constructor */ - //! Constructor is protected; + //! Constructor is protected; //! static methods are used for creation of this type of objects Standard_EXPORT TObj_Partition (const TDF_Label& theLabel, const Standard_Boolean theSetName = Standard_True); - + public: /** * Method for create partition */ - + //! Creates a new partition on given label. static Standard_EXPORT Handle(TObj_Partition) Create (const TDF_Label& theLabel, const Standard_Boolean theSetName = Standard_True); - + public: /** - * Methods hanling name of the object + * Methods handling name of the object */ //! Sets name of the object. partition does not check unique of own name @@ -69,7 +69,7 @@ class TObj_Partition : public TObj_Object * Method for updating object afrer restoring */ - //! Preforms updating the links and dependances of the object which are not + //! Performs updating the links and dependencies of the object which are not //! stored in persistence. Does not register the partition name virtual Standard_EXPORT void AfterRetrieval() Standard_OVERRIDE; @@ -77,10 +77,10 @@ class TObj_Partition : public TObj_Object /** * Methods handling of the objects in partition */ - + //! Creates and Returns label for new object in partition. Standard_EXPORT TDF_Label NewLabel() const; - + //! Sets prefix for names of the objects in partition. Standard_EXPORT void SetNamePrefix (const Handle(TCollection_HExtendedString)& thePrefix); @@ -88,16 +88,16 @@ class TObj_Partition : public TObj_Object //! Returns prefix for names of the objects in partition. Handle(TCollection_HExtendedString) GetNamePrefix() const { return myPrefix; } - + //! Generates and returns name for new object in partition. - //! if theIsToChangeCount is true partition icrease own counter + //! if theIsToChangeCount is true partition increase own counter //! to generate new name next time starting from new counter value Standard_EXPORT Handle(TCollection_HExtendedString) GetNewName ( const Standard_Boolean theIsToChangeCount = Standard_True ); - + //! Return Last index in partition (reserved); Standard_EXPORT Standard_Integer GetLastIndex() const; - + //! Sets Last index in partition (reserved); Standard_EXPORT void SetLastIndex(const Standard_Integer theIndex); @@ -105,17 +105,17 @@ class TObj_Partition : public TObj_Object /** * Methods to define partition by object */ - + //! Returns the partition in which object is stored. Null partition //! returned if not found static Standard_EXPORT Handle(TObj_Partition) GetPartition (const Handle(TObj_Object)& theObject); - + public: /** * Methods for updating the object */ - + //! Does nothing in the partition. virtual Standard_Boolean Update() {return Standard_True;} @@ -129,14 +129,14 @@ class TObj_Partition : public TObj_Object //! return Standard_False is Target object is different type Standard_EXPORT virtual Standard_Boolean copyData (const Handle(TObj_Object)& theTargetObject) Standard_OVERRIDE; - + private: /** * fields */ - + //! prefix for naming of objects in the partition - Handle(TCollection_HExtendedString) myPrefix; + Handle(TCollection_HExtendedString) myPrefix; protected: //! Persistence of TObj object diff --git a/src/TObj/TObj_SequenceIterator.hxx b/src/TObj/TObj_SequenceIterator.hxx index 34e23f19ba..6e02886a5b 100644 --- a/src/TObj/TObj_SequenceIterator.hxx +++ b/src/TObj/TObj_SequenceIterator.hxx @@ -66,7 +66,7 @@ class TObj_SequenceIterator : public TObj_ObjectIterator */ Standard_Integer myIndex; //!< current index of object in sequence Handle(Standard_Type) myType; //!< type of object - Handle(TObj_HSequenceOfObject) myObjects; //!< seqence of objects + Handle(TObj_HSequenceOfObject) myObjects; //!< sequence of objects public: //! CASCADE RTTI diff --git a/src/TObj/TObj_TModel.hxx b/src/TObj/TObj_TModel.hxx index f0e58d64f7..8257ce5b08 100644 --- a/src/TObj/TObj_TModel.hxx +++ b/src/TObj/TObj_TModel.hxx @@ -48,7 +48,7 @@ class TObj_TModel : public TDF_Attribute public: //! Methods for setting and obtaining the Model object - //! Sets the the Model object + //! Sets the Model object Standard_EXPORT void Set(const Handle(TObj_Model)& theModel); //! Returns the Model object diff --git a/src/TObj/TObj_TReference.cxx b/src/TObj/TObj_TReference.cxx index a876692e92..4a0f175d0f 100644 --- a/src/TObj/TObj_TReference.cxx +++ b/src/TObj/TObj_TReference.cxx @@ -166,7 +166,7 @@ void TObj_TReference::Paste (const Handle(TDF_Attribute)& theInto, Handle(TObj_TObject) aObject, aMasterTObj; if (myLabel.IsNull()) { - // unvalidity if it neccessary + // unvalidity if it necessary aReference->myLabel.Nullify(); return; } diff --git a/src/TObjDRAW/TObjDRAW.cxx b/src/TObjDRAW/TObjDRAW.cxx index 17342d5d3a..1a400735f3 100644 --- a/src/TObjDRAW/TObjDRAW.cxx +++ b/src/TObjDRAW/TObjDRAW.cxx @@ -84,7 +84,7 @@ class TObjDRAW_Object : public TObj_Object enum RefTag { RefTag_First = TObj_Object::RefTag_Last, - RefTag_Other, //!< here we test only one refrence to other + RefTag_Other, //!< here we test only one reference to other RefTag_Last = RefTag_First + 100 }; diff --git a/src/TPrsStd/TPrsStd_AxisDriver.hxx b/src/TPrsStd/TPrsStd_AxisDriver.hxx index 040ad7e029..03b915caa0 100644 --- a/src/TPrsStd/TPrsStd_AxisDriver.hxx +++ b/src/TPrsStd/TPrsStd_AxisDriver.hxx @@ -41,7 +41,7 @@ public: //! Build the AISObject (if null) or update it. //! No compute is done. - //! Returns if informations was found + //! Returns if information was found //! and AISObject updated. Standard_EXPORT virtual Standard_Boolean Update (const TDF_Label& aLabel, Handle(AIS_InteractiveObject)& anAISObject) Standard_OVERRIDE; diff --git a/src/TPrsStd/TPrsStd_ConstraintDriver.hxx b/src/TPrsStd/TPrsStd_ConstraintDriver.hxx index c81258caf0..590b64554f 100644 --- a/src/TPrsStd/TPrsStd_ConstraintDriver.hxx +++ b/src/TPrsStd/TPrsStd_ConstraintDriver.hxx @@ -41,7 +41,7 @@ public: //! Build the AISObject (if null) or update it. //! No compute is done. - //! Returns if informations was found + //! Returns if information was found //! and AISObject updated. Standard_EXPORT virtual Standard_Boolean Update (const TDF_Label& aLabel, Handle(AIS_InteractiveObject)& anAISObject) Standard_OVERRIDE; diff --git a/src/TPrsStd/TPrsStd_GeometryDriver.hxx b/src/TPrsStd/TPrsStd_GeometryDriver.hxx index 550d951885..42ada3dc0d 100644 --- a/src/TPrsStd/TPrsStd_GeometryDriver.hxx +++ b/src/TPrsStd/TPrsStd_GeometryDriver.hxx @@ -42,7 +42,7 @@ public: //! Build the AISObject (if null) or update it. //! No compute is done. - //! Returns if informations was found + //! Returns if information was found //! and AISObject updated. Standard_EXPORT virtual Standard_Boolean Update (const TDF_Label& aLabel, Handle(AIS_InteractiveObject)& anAISObject) Standard_OVERRIDE; diff --git a/src/TPrsStd/TPrsStd_NamedShapeDriver.hxx b/src/TPrsStd/TPrsStd_NamedShapeDriver.hxx index ebacd6e06a..e9d9b94390 100644 --- a/src/TPrsStd/TPrsStd_NamedShapeDriver.hxx +++ b/src/TPrsStd/TPrsStd_NamedShapeDriver.hxx @@ -41,7 +41,7 @@ public: //! Build the AISObject (if null) or update it. //! No compute is done. - //! Returns if informations was found + //! Returns if information was found //! and AISObject updated. Standard_EXPORT virtual Standard_Boolean Update (const TDF_Label& aLabel, Handle(AIS_InteractiveObject)& anAISObject) Standard_OVERRIDE; diff --git a/src/TPrsStd/TPrsStd_PlaneDriver.hxx b/src/TPrsStd/TPrsStd_PlaneDriver.hxx index cca9761c63..577ac70ed8 100644 --- a/src/TPrsStd/TPrsStd_PlaneDriver.hxx +++ b/src/TPrsStd/TPrsStd_PlaneDriver.hxx @@ -41,7 +41,7 @@ public: //! Build the AISObject (if null) or update it. //! No compute is done. - //! Returns if informations was found + //! Returns if information was found //! and AISObject updated. Standard_EXPORT virtual Standard_Boolean Update (const TDF_Label& aLabel, Handle(AIS_InteractiveObject)& anAISObject) Standard_OVERRIDE; diff --git a/src/TPrsStd/TPrsStd_PointDriver.hxx b/src/TPrsStd/TPrsStd_PointDriver.hxx index 7b41162ec4..6137f06fbe 100644 --- a/src/TPrsStd/TPrsStd_PointDriver.hxx +++ b/src/TPrsStd/TPrsStd_PointDriver.hxx @@ -41,7 +41,7 @@ public: //! Build the AISObject (if null) or update it. //! No compute is done. - //! Returns if informations was found + //! Returns if information was found //! and AISObject updated. Standard_EXPORT virtual Standard_Boolean Update (const TDF_Label& aLabel, Handle(AIS_InteractiveObject)& anAISObject) Standard_OVERRIDE; diff --git a/src/TopAbs/TopAbs.hxx b/src/TopAbs/TopAbs.hxx index cc8bbd5bdc..7d56eb3a11 100644 --- a/src/TopAbs/TopAbs.hxx +++ b/src/TopAbs/TopAbs.hxx @@ -34,7 +34,7 @@ //! It contains : //! //! * The ShapeEnum enumeration to describe the -//! differents topological shapes. +//! different topological shapes. //! //! * The Orientation enumeration to describe the //! orientation of a topological shape. diff --git a/src/TopExp/TopExp_Explorer.hxx b/src/TopExp/TopExp_Explorer.hxx index dd69a2a42d..33daa37ff6 100644 --- a/src/TopExp/TopExp_Explorer.hxx +++ b/src/TopExp/TopExp_Explorer.hxx @@ -95,7 +95,7 @@ public: DEFINE_STANDARD_ALLOC - //! Creates an empty explorer, becomes usefull after Init. + //! Creates an empty explorer, becomes useful after Init. Standard_EXPORT TopExp_Explorer(); //! Creates an Explorer on the Shape . diff --git a/src/TopOpeBRep/TopOpeBRep.cxx b/src/TopOpeBRep/TopOpeBRep.cxx index 803f09019c..ffc654e552 100644 --- a/src/TopOpeBRep/TopOpeBRep.cxx +++ b/src/TopOpeBRep/TopOpeBRep.cxx @@ -14,13 +14,8 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -// Modifed: Portage NT 7-5-97 DPF (strcasecmp) - #include -//#ifdef _WIN32 -//#define strcasecmp strcmp Already defined -//#endif //======================================================================= //function : Print //purpose : diff --git a/src/TopOpeBRep/TopOpeBRep_DSFiller.hxx b/src/TopOpeBRep/TopOpeBRep_DSFiller.hxx index 7f0dfffc8e..f91759857e 100644 --- a/src/TopOpeBRep/TopOpeBRep_DSFiller.hxx +++ b/src/TopOpeBRep/TopOpeBRep_DSFiller.hxx @@ -115,7 +115,7 @@ public: Standard_EXPORT void GapFiller (const Handle(TopOpeBRepDS_HDataStructure)& HDS) const; //! Update the data structure with relevant - //! informations deduced from the intersections. + //! information deduced from the intersections. //! //! Shells containing an intersected face. //! Wires containing an intersected edge. @@ -130,7 +130,7 @@ public: Standard_EXPORT void Checker (const Handle(TopOpeBRepDS_HDataStructure)& HDS) const; //! Update the data structure with relevant - //! informations deduced from the intersections 2d. + //! information deduced from the intersections 2d. //! //! Shells containing an intersected face. //! Wires containing an intersected edge. diff --git a/src/TopOpeBRep/TopOpeBRep_EdgesFiller.cxx b/src/TopOpeBRep/TopOpeBRep_EdgesFiller.cxx index 9c2355e1d2..eb2dbe30ec 100644 --- a/src/TopOpeBRep/TopOpeBRep_EdgesFiller.cxx +++ b/src/TopOpeBRep/TopOpeBRep_EdgesFiller.cxx @@ -126,8 +126,8 @@ void TopOpeBRep_EdgesFiller::Insert(const TopoDS_Shape& E1,const TopoDS_Shape& E // xpu : 080498 : CTS20072 (e12,e3,p8) // edgesintersector called for tolerances = 0. // facesintersector called for greater tolerances - // we assume facesintersector's ouput data to be valid - // and we use it for correcting edgesintersector's ouput data + // we assume facesintersector's output data to be valid + // and we use it for correcting edgesintersector's output data TopOpeBRepDS_ListIteratorOfListOfInterference itloI1( myPDS->ShapeInterferences(E1) ); Standard_Integer G; TopOpeBRepDS_Kind K; Standard_Boolean found = GetGeometry(itloI1,P2D,G,K); diff --git a/src/TopOpeBRep/TopOpeBRep_FacesFiller.hxx b/src/TopOpeBRep/TopOpeBRep_FacesFiller.hxx index c9406b0a97..acd3f3e34e 100644 --- a/src/TopOpeBRep/TopOpeBRep_FacesFiller.hxx +++ b/src/TopOpeBRep/TopOpeBRep_FacesFiller.hxx @@ -132,7 +132,7 @@ public: //! of the 2 faces. Standard_EXPORT void GetESL (TopTools_ListOfShape& LES); - //! calling the followings ProcessVPIonR and ProcessVPonR. + //! calling the following ProcessVPIonR and ProcessVPonR. Standard_EXPORT void ProcessVPR (TopOpeBRep_FacesFiller& FF, const TopOpeBRep_VPointInter& VP); //! processing ProcessVPonR for VPI. diff --git a/src/TopOpeBRep/TopOpeBRep_ProcessSectionEdges.cxx b/src/TopOpeBRep/TopOpeBRep_ProcessSectionEdges.cxx index 6cf18c66ac..103f34c2fc 100644 --- a/src/TopOpeBRep/TopOpeBRep_ProcessSectionEdges.cxx +++ b/src/TopOpeBRep/TopOpeBRep_ProcessSectionEdges.cxx @@ -114,7 +114,7 @@ Standard_Boolean TopOpeBRep_FacesFiller::KeepRLine // look for a vpoint with transition IN/OUT or OUT/IN TopOpeBRep_VPointInterIterator VPI; VPI.Init(L,checkkeep); - // With LineContructor, each RLine restricted by its vpbounds + // With LineConstructor, each RLine restricted by its vpbounds // has its restrictions IN or ON the two faces Standard_Boolean keeprline; Standard_Boolean isedge1 = L.ArcIsEdge(1); diff --git a/src/TopOpeBRep/TopOpeBRep_ShapeIntersector.cxx b/src/TopOpeBRep/TopOpeBRep_ShapeIntersector.cxx index d0911d4489..0a8bac0e65 100644 --- a/src/TopOpeBRep/TopOpeBRep_ShapeIntersector.cxx +++ b/src/TopOpeBRep/TopOpeBRep_ShapeIntersector.cxx @@ -1095,10 +1095,10 @@ static Standard_Integer OneShapeIsHalfSpace(const TopoDS_Shape& S1,const TopoDS_ { // if one solid has shell consisted of only a face but other one has valid closed // shell we can detect current boolean operation as operation with half space object. - // if shell of second solid is not valid too we cann't detect what kind of objects + // if shell of second solid is not valid too we can't detect what kind of objects // we try to perform. in this case we do nothing and just return. - // but before we must avoid shperes, toruses and solids with a face biult on spherical surfaces + // but before we must avoid spheres, toruses and solids with a face built on spherical surfaces // of revolution (SSRFS) - solids with shell of one face: // sphere (U: 0, 2PI) (V: -PI/2, PI/2), // torus (U: 0, 2PI) (V: 0, 2PI). @@ -1205,7 +1205,7 @@ static TopoDS_Solid GetNewSolid(const TopoDS_Shape& S, TopoDS_Face& F) { // "new solid" is a new halfspace solid consists of two faces now: the first face is a face // used to build halfspace solid and the second face is a new "face on infinity" specially - // created to constuct correct bounding box around halfspace solid with bounds more wide than + // created to construct correct bounding box around halfspace solid with bounds more wide than // previous one. // the following algorithm is used: diff --git a/src/TopOpeBRep/TopOpeBRep_vpr.cxx b/src/TopOpeBRep/TopOpeBRep_vpr.cxx index f22f171264..7a2ea2e715 100644 --- a/src/TopOpeBRep/TopOpeBRep_vpr.cxx +++ b/src/TopOpeBRep/TopOpeBRep_vpr.cxx @@ -1030,7 +1030,7 @@ void TopOpeBRep_FacesFiller::ProcessVPonR // alors qu'il est dessus) TopOpeBRepDS_Transition tOOedge; - // distinguish wether OOedge is the edge on which geometric line lies. + // distinguish whether OOedge is the edge on which geometric line lies. // OOedge == edge(line) ==> tOOedge = f(orientation of in FORWARD) // OOedge != edge(line) ==> tOOedge = f(orientation of ) Standard_Real OOpar1,OOpar2; Standard_Boolean isonper; FDS_LOIinfsup((*myDS),OOedge,OOparedge,PVKind,PVIndex, diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_Builder.hxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_Builder.hxx index 6b7fe30f92..c9807ee38e 100644 --- a/src/TopOpeBRepBuild/TopOpeBRepBuild_Builder.hxx +++ b/src/TopOpeBRepBuild/TopOpeBRepBuild_Builder.hxx @@ -113,7 +113,7 @@ public: //! Merges the two edges and keeping the //! parts in each edge of states and . - //! Booleans onA, onB, onAB indicate wheter parts of edges + //! Booleans onA, onB, onAB indicate whether parts of edges //! found as state ON respectively on first, second, and both //! shapes must be (or not) built. Standard_EXPORT void MergeEdges (const TopTools_ListOfShape& L1, const TopAbs_State TB1, const TopTools_ListOfShape& L2, const TopAbs_State TB2, const Standard_Boolean onA = Standard_False, const Standard_Boolean onB = Standard_False, const Standard_Boolean onAB = Standard_False); diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_Builder1.cxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_Builder1.cxx index 239b136fd8..bc1b16c7d7 100644 --- a/src/TopOpeBRepBuild/TopOpeBRepBuild_Builder1.cxx +++ b/src/TopOpeBRepBuild/TopOpeBRepBuild_Builder1.cxx @@ -516,7 +516,7 @@ void TopOpeBRepBuild_Builder1::GFillFaceSameDomSFS(const TopoDS_Shape& FOR, mySDEdgeMap.Clear(); mySourceShapes.Clear(); - //we process all same domain faces during cycling throught the Shape1 + //we process all same domain faces during cycling through the Shape1 if(myDataStructure -> DS().AncestorRank(FOR) != 1) return; @@ -1214,7 +1214,7 @@ void TopOpeBRepBuild_Builder1::GWESMakeFaces(const TopoDS_Shape& FF, LOF.Clear(); LOF.Assign(corrLOF); - //corect face2d + //correct face2d aLOFit.Initialize(corrLOF); TopTools_ListOfShape corrLOF1; for(; aLOFit.More(); aLOFit.Next()) { diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_Builder1_1.cxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_Builder1_1.cxx index f30f19fc36..f667366ca9 100644 --- a/src/TopOpeBRepBuild/TopOpeBRepBuild_Builder1_1.cxx +++ b/src/TopOpeBRepBuild/TopOpeBRepBuild_Builder1_1.cxx @@ -164,7 +164,7 @@ void DumpMapOfShapeWithState (const Standard_Integer iP, TCollection_AsciiString an;//=postfix+prefix+cn; an+=postfix; an+=prefix; an+=cn; - printf(" -> Splitted Part IN : %s\n", an.ToCString()); + printf(" -> Split Part IN : %s\n", an.ToCString()); cnt++; } @@ -179,7 +179,7 @@ void DumpMapOfShapeWithState (const Standard_Integer iP, TCollection_AsciiString an;//=postfix+prefix+cn; an+=postfix; an+=prefix; an+=cn; - printf(" -> Splitted Part OUT: %-s\n", an.ToCString()); + printf(" -> Split Part OUT: %-s\n", an.ToCString()); cnt++; } @@ -194,7 +194,7 @@ void DumpMapOfShapeWithState (const Standard_Integer iP, TCollection_AsciiString an;//=postfix+prefix+cn; an+=postfix; an+=prefix; an+=cn; - printf(" -> Splitted Part ON : %s\n", an.ToCString()); + printf(" -> Split Part ON : %s\n", an.ToCString()); cnt++; } } @@ -708,13 +708,13 @@ void DumpMapOfShapeWithState (const Standard_Integer iP, } } else { - // Usual case. The Edge was splitted onto several parts: + // Usual case. The Edge was split onto several parts: TopTools_ListIteratorOfListOfShape aLIt(aLNew); for (; aLIt.More(); aLIt.Next()) { const TopoDS_Shape& aS = aLIt.Value(); aState = aDataMapOfShapeState(aS); //////////////////////////////////////////////////////////////////////////// - // ** When aState==TopAbs_IN it is not evidence that it is realy so. + // ** When aState==TopAbs_IN it is not evidence that it is really so. // There are some cases when JYL does not define ON parts completely. // So, as we want to have right states, we have to do it ourselves. // PKV Mon 25 Oct 1999 diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_BuilderON.cxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_BuilderON.cxx index 4be9fc562a..d02bc73760 100644 --- a/src/TopOpeBRepBuild/TopOpeBRepBuild_BuilderON.cxx +++ b/src/TopOpeBRepBuild/TopOpeBRepBuild_BuilderON.cxx @@ -639,11 +639,11 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter if (!ok) return; // ngFS, ngFOR, xxFOR : Standard_Real tolON = Max(tolFS,tolEG); - tolON *= 1.e2;//*****CAREFULL***** : xpu040998, cto 904 A3 + tolON *= 1.e2;//*****CAREFUL***** : xpu040998, cto 904 A3 gp_Vec ngFS; ok = FUN_tool_nggeomF(parEG,EG,FS,ngFS,tolON); if (!ok) return; tolON = Max(tolFOR,tolEG); - tolON *= 1.e2;//*****CAREFULL***** : xpu040998, cto 904 A3 + tolON *= 1.e2;//*****CAREFUL***** : xpu040998, cto 904 A3 gp_Vec ngFOR; ok = FUN_tool_nggeomF(parEG,EG,FOR,ngFOR,tolON); if (!ok) return; gp_Dir xxFOR; ok = FUN_tool_getxx(FOR,EG,parEG,ngFOR,xxFOR); @@ -1057,7 +1057,7 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter if (!ok) return; //nyiRAISE Standard_Real tolON = Max(tolEG,tolFOR);//xpu291098 cto900L7(f7,e7on) //xpu051198 PRO12953(f6,e4on) - tolON *= 1.e2;//*****CAREFULL***** : xpu040998, cto 904 A3 + tolON *= 1.e2;//*****CAREFUL***** : xpu040998, cto 904 A3 Standard_Boolean eONFOR = (d < tolON); if (!eONFOR) return; } diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_CorrectFace2d.cxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_CorrectFace2d.cxx index 3b00d39d9f..560cf16073 100644 --- a/src/TopOpeBRepBuild/TopOpeBRepBuild_CorrectFace2d.cxx +++ b/src/TopOpeBRepBuild/TopOpeBRepBuild_CorrectFace2d.cxx @@ -291,7 +291,7 @@ TopOpeBRepBuild_CorrectFace2d::TopOpeBRepBuild_CorrectFace2d() myCurrentWire = TopoDS::Wire(aFExp.Current()); priz=MakeRightWire (); if (priz) { - // This myFace contais a wire (myCurrentWire) that is not closed. + // This myFace contains a wire (myCurrentWire) that is not closed. myIsDone=Standard_True; myErrorStatus=3; return; @@ -564,7 +564,7 @@ TopOpeBRepBuild_CorrectFace2d::TopOpeBRepBuild_CorrectFace2d() if (!myCopyAvoidMap.Contains(myCurrentWire)) { priz=ConnectWire (myCopyFace, myCopyAvoidMap, Standard_False); if (priz) { - // This myFace contais a wire (myCurrentWire) that is not closed. + // This myFace contains a wire (myCurrentWire) that is not closed. myIsDone=Standard_False; myErrorStatus=3; return; diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_End.cxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_End.cxx index 1aa64ab2c9..4410ce08f1 100644 --- a/src/TopOpeBRepBuild/TopOpeBRepBuild_End.cxx +++ b/src/TopOpeBRepBuild/TopOpeBRepBuild_End.cxx @@ -336,10 +336,10 @@ void TopOpeBRepBuild_Builder::UpdateSplitAndMerged(const TopTools_DataMapOfInte // For each edge of the MapSplit if ( e.ShapeType() == TopAbs_EDGE ) { - // get the list of splitted edges. + // get the list of split edges. TopTools_ListOfShape& LstSplit = ChangeSplit(e,state); - // for each edge of the list of splitted edges + // for each edge of the list of split edges TopTools_ListIteratorOfListOfShape itSplitEdg; itSplitEdg.Initialize(LstSplit); while ( itSplitEdg.More()) { @@ -391,10 +391,10 @@ void TopOpeBRepBuild_Builder::UpdateSplitAndMerged(const TopTools_DataMapOfInte } // For each face of the MapSplit else if ( e.ShapeType() == TopAbs_FACE ) { - // get the list of splitted faces. + // get the list of split faces. TopTools_ListOfShape& LstSplit = ChangeSplit(e,state); - // for each face of the list of splitted faces + // for each face of the list of split faces TopTools_ListIteratorOfListOfShape itSplitFac; itSplitFac.Initialize(LstSplit); while ( itSplitFac.More()) { diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_GridSS.cxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_GridSS.cxx index 2d81239554..5442620774 100644 --- a/src/TopOpeBRepBuild/TopOpeBRepBuild_GridSS.cxx +++ b/src/TopOpeBRepBuild/TopOpeBRepBuild_GridSS.cxx @@ -1027,7 +1027,7 @@ static Standard_Boolean FUN_SplitEvisoONperiodicF(const Handle(TopOpeBRepDS_HDat // modifies : myDataStructure // Scans among the interferences attached to faces for FEI with // support = cylinder, geometry ; adds pcurve on -// for edge if necessay. +// for edge if necessary. //======================================================================= void TopOpeBRepBuild_Builder::SplitEvisoONperiodicF() { diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_ShapeSet.cxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_ShapeSet.cxx index 680a93a12e..496ac26ab0 100644 --- a/src/TopOpeBRepBuild/TopOpeBRepBuild_ShapeSet.cxx +++ b/src/TopOpeBRepBuild/TopOpeBRepBuild_ShapeSet.cxx @@ -309,7 +309,7 @@ void TopOpeBRepBuild_ShapeSet::FindNeighbours() { while (mySubShapeExplorer.More()) { - // l = list of edges neighbour of edge myCurrentShape trough + // l = list of edges neighbour of edge myCurrentShape through // the vertex mySubShapeExplorer.Current(), which is a vertex of the // edge myCurrentShape. const TopoDS_Shape& V = mySubShapeExplorer.Current(); diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_WireEdgeSet.cxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_WireEdgeSet.cxx index 649ec04749..4bad75db04 100644 --- a/src/TopOpeBRepBuild/TopOpeBRepBuild_WireEdgeSet.cxx +++ b/src/TopOpeBRepBuild/TopOpeBRepBuild_WireEdgeSet.cxx @@ -184,7 +184,7 @@ void TopOpeBRepBuild_WireEdgeSet::FindNeighbours() { while (mySubShapeExplorer.More()) { - // l = list of edges neighbour of edge myCurrentShape trough + // l = list of edges neighbour of edge myCurrentShape through // the vertex mySubShapeExplorer.Current(), which is a vertex of the // edge myCurrentShape. const TopoDS_Shape& V = mySubShapeExplorer.Current(); diff --git a/src/TopOpeBRepDS/TopOpeBRepDS_ProcessEdgeInterferences.cxx b/src/TopOpeBRepDS/TopOpeBRepDS_ProcessEdgeInterferences.cxx index 79474f6f68..2385817aec 100644 --- a/src/TopOpeBRepDS/TopOpeBRepDS_ProcessEdgeInterferences.cxx +++ b/src/TopOpeBRepDS/TopOpeBRepDS_ProcessEdgeInterferences.cxx @@ -461,13 +461,13 @@ Standard_EXPORT void FUN_purgeDSonSE(const Handle(TopOpeBRepDS_HDataStructure)& { // recall : (I1,I2) / I1=(T(F),G,S=edge), I2=(T(F),G,S=F) describes a 3d interference // - // purpose : attached to EIX (section egde SE), I=(T(Fsdm),G,S) / + // purpose : attached to EIX (section edge SE), I=(T(Fsdm),G,S) / // Fsdm shares same domain with Fanc ancestor face of SE // => SE has split ON near G => // I'=(T(Fsdm),G,S=Fsdm) gives bad information (3d information whereas // we should only have 2d information) // - PRO12660 for spON(e48) - - + TopOpeBRepDS_DataStructure& BDS = HDS->ChangeDS(); const TopoDS_Edge& SE = TopoDS::Edge(BDS.Shape(EIX)); Standard_Integer rkSE = BDS.AncestorRank(SE); diff --git a/src/TopOpeBRepTool/TopOpeBRepTool.hxx b/src/TopOpeBRepTool/TopOpeBRepTool.hxx index 337066797b..04887f6726 100644 --- a/src/TopOpeBRepTool/TopOpeBRepTool.hxx +++ b/src/TopOpeBRepTool/TopOpeBRepTool.hxx @@ -71,7 +71,7 @@ public: //! the faulty shapes (edge,wire,face) to . //! is a face descendant of . //! (wire) = 1 if wire is wire of - //! 0 wire results from 's wire splitted. + //! 0 wire results from 's wire split. //! returns false if purge fails Standard_EXPORT static Standard_Boolean PurgeClosingEdges (const TopoDS_Face& F, const TopoDS_Face& FF, const TopTools_DataMapOfShapeInteger& MWisOld, TopTools_IndexedMapOfOrientedShape& MshNOK); diff --git a/src/TopOpeBRepTool/TopOpeBRepTool_CLASSI.cxx b/src/TopOpeBRepTool/TopOpeBRepTool_CLASSI.cxx index d5d5c46f48..abd41708b3 100644 --- a/src/TopOpeBRepTool/TopOpeBRepTool_CLASSI.cxx +++ b/src/TopOpeBRepTool/TopOpeBRepTool_CLASSI.cxx @@ -155,7 +155,7 @@ Standard_Integer TopOpeBRepTool_CLASSI::ClassiBnd2d(const TopoDS_Shape& S1,const // diff = Umin - Umax : k = 1 // diff = Vmin - Vmax : k = 3 Standard_Real diff = UV(ii,k) - UV(jj,k+1); - // IMPORTANT : for splitted faces sharing same edge, use + // IMPORTANT : for split faces sharing same edge, use // chklarge = True. Standard_Boolean disjoint = chklarge ? (diff >= -tol) : (diff > 0.); if (disjoint) return DIFF; diff --git a/src/TopOpeBRepTool/TopOpeBRepTool_FuseEdges.cxx b/src/TopOpeBRepTool/TopOpeBRepTool_FuseEdges.cxx index 69723ec46a..dc37d527f1 100644 --- a/src/TopOpeBRepTool/TopOpeBRepTool_FuseEdges.cxx +++ b/src/TopOpeBRepTool/TopOpeBRepTool_FuseEdges.cxx @@ -455,9 +455,9 @@ void TopOpeBRepTool_FuseEdges::Perform() //======================================================================= //function : BuildListConnexEdge //purpose : giving one edge, build the list of connex edges which have -// vertices that have only two connex edges. All the edges that are addes +// vertices that have only two connex edges. All the edges that are added // to the list must be added also to the mapUniq, in order for the caller -// to not treat again theses edges. +// to not treat again these edges. // This list is always oriented in the "Forward" direction. //======================================================================= @@ -569,7 +569,7 @@ Standard_Boolean TopOpeBRepTool_FuseEdges::NextConnexEdge(const TopoDS_Vertex& t itFac1.Next(); } - // 3rd condition : same suport + // 3rd condition : same support if (HasConnex) { HasConnex = SameSupport(TopoDS::Edge(theEdge),TopoDS::Edge(theEdgeConnex)); } diff --git a/src/TopOpeBRepTool/TopOpeBRepTool_PURGE.cxx b/src/TopOpeBRepTool/TopOpeBRepTool_PURGE.cxx index 0e7f643935..8ccd846e11 100644 --- a/src/TopOpeBRepTool/TopOpeBRepTool_PURGE.cxx +++ b/src/TopOpeBRepTool/TopOpeBRepTool_PURGE.cxx @@ -206,9 +206,9 @@ Standard_Boolean TopOpeBRepTool::PurgeClosingEdges(const TopoDS_Face& Fin, const TopTools_IndexedMapOfOrientedShape& MshNOK) { // Fin is the original face - // FF is the splitted face + // FF is the split face - // prequesitory : splitted edges, of edge ancestor a closing edge + // prequesitory : split edges, of edge ancestor a closing edge // keep in memory the geometry of the ancestor edge, // they answer True to BRep_Tool::IsClosed. // elsewhere : we have to get this information using geometric diff --git a/src/TopOpeBRepTool/TopOpeBRepTool_PurgeInternalEdges.cxx b/src/TopOpeBRepTool/TopOpeBRepTool_PurgeInternalEdges.cxx index 30a8af4754..89d7df5525 100644 --- a/src/TopOpeBRepTool/TopOpeBRepTool_PurgeInternalEdges.cxx +++ b/src/TopOpeBRepTool/TopOpeBRepTool_PurgeInternalEdges.cxx @@ -111,7 +111,7 @@ TopoDS_Shape& TopOpeBRepTool_PurgeInternalEdges::Shape() //======================================================================= //function : BuildList -//purpose : Build the map of faces with the list of inernal edges. +//purpose : Build the map of faces with the list of internal edges. //======================================================================= void TopOpeBRepTool_PurgeInternalEdges::BuildList() diff --git a/src/TopOpeBRepTool/TopOpeBRepTool_REGUS.cxx b/src/TopOpeBRepTool/TopOpeBRepTool_REGUS.cxx index ca0c9d2013..fb0581e26f 100644 --- a/src/TopOpeBRepTool/TopOpeBRepTool_REGUS.cxx +++ b/src/TopOpeBRepTool/TopOpeBRepTool_REGUS.cxx @@ -252,7 +252,7 @@ Standard_Boolean TopOpeBRepTool_REGUS::WireToFace(const TopoDS_Face& Fanc, const Standard_Boolean TopOpeBRepTool_REGUS::SplitF(const TopoDS_Face& Fanc, TopTools_ListOfShape& FSplits) { - // prequesitory : All edges have already been splitted, there is no + // prequesitory : All edges have already been split, there is no // internal vertex on edge, except for internal edge. TopAbs_Orientation oAnc = Fanc.Orientation(); TopoDS_Shape aLocalShapeFromFace = Fanc.Oriented(TopAbs_FORWARD); @@ -699,12 +699,12 @@ Standard_Boolean TopOpeBRepTool_REGUS::NearestF(const TopoDS_Edge& e, const TopT ffound.Nullify(); TopoDS_Face fref = TopoDS::Face(myf); - // Give us egde , and a reference face (= ) + // Give us edge , and a reference face (= ) // - parameter on = . // - xxi = tangent fo face fi at pnt(e,pare) oriented INSIDE 2d(fi) // normal to tge = tg(e,pare). // purpose : looking for ffound / - // MatterAng(xxref, xxfound) = Min{ MatterAng(xxref, xxi), xxi for fi in + // MatterAng(xxref, xxfound) = Min{ MatterAng(xxref, xxi), xxi for fi in // providing fi reduces 3d(fref) } // : diff --git a/src/TopOpeBRepTool/TopOpeBRepTool_REGUW.cxx b/src/TopOpeBRepTool/TopOpeBRepTool_REGUW.cxx index 38bd6ba383..7472c6b764 100644 --- a/src/TopOpeBRepTool/TopOpeBRepTool_REGUW.cxx +++ b/src/TopOpeBRepTool/TopOpeBRepTool_REGUW.cxx @@ -285,13 +285,13 @@ Standard_Boolean TopOpeBRepTool_REGUW::MapS() // Prequesitories : // 0) an edge with an INTERNAL vertex binded in must be - // splitted + // split // After splitting such edges, we deal only with FORWARD and // REVERSED vertices. // 1) a vertex belonging to a CLOSING edge is represented by 2 distinct // 2d points in the UV space. // 2) a vertex belonging to a DEGENERATED edge has at least 2 UV rep. - // (if the original degenerated edge has been splitted). + // (if the original degenerated edge has been split). // the bounds of the degenerated edge share the same TShape. // 3) a CLOSED edge binds the same vertex oriented FORWARD and REVERSED. @@ -789,7 +789,7 @@ Standard_Boolean TopOpeBRepTool_REGUW::REGU(const Standard_Integer istep, }//ite(loEcur) FINI = (nite == nE); - // if Scur = gives only one new wire, and has no new splitted edges, + // if Scur = gives only one new wire, and has no new split edges, // is valid and unchanged. Standard_Boolean onewok = FINI && loW.IsEmpty() && !hasnewsplits; if (onewok){ diff --git a/src/TopOpeBRepTool/TopOpeBRepTool_RegularizeW.cxx b/src/TopOpeBRepTool/TopOpeBRepTool_RegularizeW.cxx index c61b52d0b0..879aa3ed20 100644 --- a/src/TopOpeBRepTool/TopOpeBRepTool_RegularizeW.cxx +++ b/src/TopOpeBRepTool/TopOpeBRepTool_RegularizeW.cxx @@ -211,7 +211,7 @@ Standard_Boolean TopOpeBRepTool::Regularize(const TopoDS_Face& theFace, // diff = Umin - Umax : k = 1 // diff = Vmin - Vmax : k = 3 Standard_Real diff = UV(ii,k) - UV(jj,k+1); - // IMPORTANT : for splitted faces sharing same edge, use + // IMPORTANT : for split faces sharing same edge, use // chklarge = True. disjoint = chklarge ? (diff >= -tol) : (diff > 0.); if (disjoint) {ismaller = 1; return TopAbs_OUT;} @@ -348,13 +348,13 @@ Standard_EXPORT Standard_Boolean FUN_tool_ClassifW(const TopoDS_Face& F, // Filling the map : with (key + item) = new face, // item = (newface has holes) ? list of wires IN the wire key: empty list - // prequesitory : binds (non splitted wire of , emptylos) - // (splitted wire of , splits of the wire) + // prequesitory : binds (non split wire of , emptylos) + // (split wire of , splits of the wire) // Mapping : // -------- // Filling : list of wires of - // Filling : with (non-splitted old wire, emptylos), + // Filling : with (non-split old wire, emptylos), // (split of old wire, emptylos) TopTools_ListOfShape oldW; Standard_Integer noldW = mapoldWnewW.Extent(); diff --git a/src/TopOpeBRepTool/TopOpeBRepTool_ShapeClassifier.hxx b/src/TopOpeBRepTool/TopOpeBRepTool_ShapeClassifier.hxx index 7621ca7103..4dd062a4a8 100644 --- a/src/TopOpeBRepTool/TopOpeBRepTool_ShapeClassifier.hxx +++ b/src/TopOpeBRepTool/TopOpeBRepTool_ShapeClassifier.hxx @@ -85,26 +85,26 @@ public: //! classify shape S compared with shape SRef. //! AvoidS is not used in classification; AvoidS may be IsNull(). - //! (usefull to avoid ON or UNKNOWN state in special cases) + //! (useful to avoid ON or UNKNOWN state in special cases) Standard_EXPORT TopAbs_State StateShapeShape (const TopoDS_Shape& S, const TopoDS_Shape& AvoidS, const TopoDS_Shape& SRef); //! classify shape S compared with shape SRef. //! LAvoidS is list of S subshapes to avoid in classification //! AvoidS is not used in classification; AvoidS may be IsNull(). - //! (usefull to avoid ON or UNKNOWN state in special cases) + //! (useful to avoid ON or UNKNOWN state in special cases) Standard_EXPORT TopAbs_State StateShapeShape (const TopoDS_Shape& S, const TopTools_ListOfShape& LAvoidS, const TopoDS_Shape& SRef); //! classify shape S compared with reference shape. //! AvoidS is not used in classification; AvoidS may be IsNull(). - //! (usefull to avoid ON or UNKNOWN state in special cases) + //! (useful to avoid ON or UNKNOWN state in special cases) Standard_EXPORT TopAbs_State StateShapeReference (const TopoDS_Shape& S, const TopoDS_Shape& AvoidS); //! classify shape S compared with reference shape. //! LAvoidS is list of S subshapes to avoid in classification - //! (usefull to avoid ON or UNKNOWN state in special cases) + //! (useful to avoid ON or UNKNOWN state in special cases) Standard_EXPORT TopAbs_State StateShapeReference (const TopoDS_Shape& S, const TopTools_ListOfShape& LAvoidS); Standard_EXPORT TopOpeBRepTool_SolidClassifier& ChangeSolidClassifier(); diff --git a/src/TopOpeBRepTool/TopOpeBRepTool_ShapeExplorer.hxx b/src/TopOpeBRepTool/TopOpeBRepTool_ShapeExplorer.hxx index 2c6e95028d..273abbd5cf 100644 --- a/src/TopOpeBRepTool/TopOpeBRepTool_ShapeExplorer.hxx +++ b/src/TopOpeBRepTool/TopOpeBRepTool_ShapeExplorer.hxx @@ -27,7 +27,7 @@ class TopOpeBRepTool_ShapeExplorer : public TopExp_Explorer { public: - //! Creates an empty explorer, becomes usefull after Init. + //! Creates an empty explorer, becomes useful after Init. TopOpeBRepTool_ShapeExplorer() : myIndex(0) { } diff --git a/src/TopOpeBRepTool/TopOpeBRepTool_ShapeTool.hxx b/src/TopOpeBRepTool/TopOpeBRepTool_ShapeTool.hxx index 87444074f7..776a3b950d 100644 --- a/src/TopOpeBRepTool/TopOpeBRepTool_ShapeTool.hxx +++ b/src/TopOpeBRepTool/TopOpeBRepTool_ShapeTool.hxx @@ -61,7 +61,7 @@ public: Standard_EXPORT static void UVBOUNDS (const TopoDS_Face& F, Standard_Boolean& UPeri, Standard_Boolean& VPeri, Standard_Real& Umin, Standard_Real& Umax, Standard_Real& Vmin, Standard_Real& Vmax); - //! ajust u,v values in UVBounds of the domain of the + //! adjust u,v values in UVBounds of the domain of the //! geometric shape , according to Uperiodicity and //! VPeriodicity of the domain. //! is assumed to be a face. @@ -69,7 +69,7 @@ public: //! not periodic in U and/or V . Standard_EXPORT static void AdjustOnPeriodic (const TopoDS_Shape& S, Standard_Real& u, Standard_Real& v); - //! indicates wheter shape S1 is a closing shape on S2 or not. + //! indicates whether shape S1 is a closing shape on S2 or not. Standard_EXPORT static Standard_Boolean Closed (const TopoDS_Shape& S1, const TopoDS_Shape& S2); Standard_EXPORT static Standard_Real PeriodizeParameter (const Standard_Real par, const TopoDS_Shape& EE, const TopoDS_Shape& FF); diff --git a/src/TopOpeBRepTool/TopOpeBRepTool_matter.cxx b/src/TopOpeBRepTool/TopOpeBRepTool_matter.cxx index 9b8e0457b5..10e1c5c1c6 100644 --- a/src/TopOpeBRepTool/TopOpeBRepTool_matter.cxx +++ b/src/TopOpeBRepTool/TopOpeBRepTool_matter.cxx @@ -35,7 +35,7 @@ // ---------------------------------------------------------------------- Standard_EXPORT gp_Dir FUN_tool_nCinsideS(const gp_Dir& tgC,const gp_Dir& ngS) { - // Give us a curve C on suface S,,a parameter + // Give us a curve C on surface S,,a parameter // Purpose : compute normal vector to C,tangent to S at // given point,oriented INSIDE S // : geometric tangent at point of diff --git a/src/TopTools/TopTools_ShapeSet.cxx b/src/TopTools/TopTools_ShapeSet.cxx index 7733994bcc..be91dcf712 100644 --- a/src/TopTools/TopTools_ShapeSet.cxx +++ b/src/TopTools/TopTools_ShapeSet.cxx @@ -19,7 +19,7 @@ // On Unix platforms: // ------------------ // In method Read(Standard_IStream &IS), during the version -// authentification we cut last '\r' in the line (which will +// authentication we cut last '\r' in the line (which will // be present if file is in DOS coding) #include diff --git a/src/TopTrans/TopTrans_CurveTransition.cxx b/src/TopTrans/TopTrans_CurveTransition.cxx index 8584168d36..f560df1b03 100644 --- a/src/TopTrans/TopTrans_CurveTransition.cxx +++ b/src/TopTrans/TopTrans_CurveTransition.cxx @@ -86,7 +86,7 @@ void TopTrans_CurveTransition::Compare (const Standard_Real Tole, S = O; } - // It is the first comparaison for this complex transition + // It is the first comparison for this complex transition if (Init) { Init=Standard_False; TgtFirst =T; diff --git a/src/TopTrans/TopTrans_CurveTransition.hxx b/src/TopTrans/TopTrans_CurveTransition.hxx index 0edbf2c9fd..39d62a93a7 100644 --- a/src/TopTrans/TopTrans_CurveTransition.hxx +++ b/src/TopTrans/TopTrans_CurveTransition.hxx @@ -62,8 +62,7 @@ public: //! of a Curve. Standard_EXPORT void Reset (const gp_Dir& Tgt, const gp_Dir& Norm, const Standard_Real Curv); - //! Initialize a Transition with the local description - //! of a straigth line. + //! Initialize a Transition with the local description of a straight line. Standard_EXPORT void Reset (const gp_Dir& Tgt); //! Add a curve element to the boundary. If Or is diff --git a/src/TopTrans/TopTrans_SurfaceTransition.cxx b/src/TopTrans/TopTrans_SurfaceTransition.cxx index adbfec7595..c5b5009743 100644 --- a/src/TopTrans/TopTrans_SurfaceTransition.cxx +++ b/src/TopTrans/TopTrans_SurfaceTransition.cxx @@ -27,7 +27,7 @@ static Standard_Boolean STATIC_DEFINED = Standard_False; static gp_Dir FUN_nCinsideS(const gp_Dir& tgC, const gp_Dir& ngS) { - // Give us a curve C on suface S, , a parameter + // Give us a curve C on surface S, , a parameter // Purpose : compute normal vector to C, tangent to S at // given point , oriented INSIDE S // : geometric tangent at point of @@ -111,7 +111,7 @@ static Standard_Integer FUN_refnearest(const Standard_Real Angref, const TopAbs_ // Analysis for tangent cases : if two boundary faces are same sided // and have tangent normals, if they have opposite orientations // we choose INTERNAL as resulting complex transition (case EXTERNAL - // refering to no logical case) + // referring to no logical case) if (TopAbs::Complement(Ori) == Oriref) return M_Ointernal; else return (Standard_Integer ) M_Unknown; // nyi FUN_RAISE } diff --git a/src/TopoDSToStep/TopoDSToStep.hxx b/src/TopoDSToStep/TopoDSToStep.hxx index 83cb044402..cfd41589c5 100644 --- a/src/TopoDSToStep/TopoDSToStep.hxx +++ b/src/TopoDSToStep/TopoDSToStep.hxx @@ -61,7 +61,7 @@ class TopoDSToStep_MakeStepVertex; //! MakeFacetedBrepAndBrepWithVoids //! MakeShellBasedSurfaceModel //! Each of these classes call the Builder -//! The class tool centralizes some common informations. +//! The class tool centralizes some common information. class TopoDSToStep { public: diff --git a/src/TopoDSToStep/TopoDSToStep_WireframeBuilder.cxx b/src/TopoDSToStep/TopoDSToStep_WireframeBuilder.cxx index c46ad6fb48..ed6f735337 100644 --- a/src/TopoDSToStep/TopoDSToStep_WireframeBuilder.cxx +++ b/src/TopoDSToStep/TopoDSToStep_WireframeBuilder.cxx @@ -259,7 +259,7 @@ Standard_Boolean TopoDSToStep_WireframeBuilder:: C2d->IsKind(STANDARD_TYPE(Geom2d_Line))) iaplan = Standard_True; } - // to be modified : cf and cl are the topological trimming prameter + // to be modified : cf and cl are the topological trimming parameter // these are computed after ! (U1 and U2) -> cf and cl instead if (iaplan) { gp_Pnt Pnt1 = CA.Value(CA.FirstParameter()), Pnt2 = CA.Value(CA.LastParameter()); diff --git a/src/ViewerTest/ViewerTest_ObjectCommands.cxx b/src/ViewerTest/ViewerTest_ObjectCommands.cxx index 018ab96b31..b907983190 100644 --- a/src/ViewerTest/ViewerTest_ObjectCommands.cxx +++ b/src/ViewerTest/ViewerTest_ObjectCommands.cxx @@ -1635,7 +1635,7 @@ static Standard_Integer VPlaneBuilder (Draw_Interpretor& /*di*/, } else { - Message::SendFail ("Error: Builded surface is not a plane."); + Message::SendFail ("Error: Built surface is not a plane."); return 1; } } diff --git a/src/XCAFPrs/XCAFPrs.cxx b/src/XCAFPrs/XCAFPrs.cxx index 161d1f41f5..54d449c1a4 100644 --- a/src/XCAFPrs/XCAFPrs.cxx +++ b/src/XCAFPrs/XCAFPrs.cxx @@ -242,7 +242,7 @@ void XCAFPrs::CollectStyleSettings (const TDF_Label& theLabel, // set style for all component from Next Usage Occurrence. #ifdef OCCT_DEBUG - std::cout << "Set the style for SHUO next_usage-occurrance" << std::endl; + std::cout << "Set the style for SHUO next_usage-occurrence" << std::endl; #endif /* // may be work, but static it returns excess shapes. It is more faster to use OLD version. diff --git a/tests/bugs/modalg_6/bug28690_1 b/tests/bugs/modalg_6/bug28690_1 index 4d144eb4a2..7f3fb12fbb 100644 --- a/tests/bugs/modalg_6/bug28690_1 +++ b/tests/bugs/modalg_6/bug28690_1 @@ -20,6 +20,6 @@ foreach e [explode r] { if {[validrange $e] == "edge has no valid range"} { regexp {Mass : *([0-9\-+.eE]+)} [lprops $e] dummy len regexp {Tolerance MAX=([0-9\-+.eE]+)} [tolerance $e] dummy tol - puts "Error: edge $e (lenth=$len, tolerance=$tol) is too small" + puts "Error: edge $e (length=$len, tolerance=$tol) is too small" } } diff --git a/tests/bugs/modalg_6/bug28690_2 b/tests/bugs/modalg_6/bug28690_2 index dd524b4f12..7ab7b3b67e 100644 --- a/tests/bugs/modalg_6/bug28690_2 +++ b/tests/bugs/modalg_6/bug28690_2 @@ -19,6 +19,6 @@ foreach e [explode r] { if {[validrange $e] == "edge has no valid range"} { regexp {Mass : *([0-9\-+.eE]+)} [lprops $e] dummy len regexp {Tolerance MAX=([0-9\-+.eE]+)} [tolerance $e] dummy tol - puts "Error: edge $e (lenth=$len, tolerance=$tol) is too small" + puts "Error: edge $e (length=$len, tolerance=$tol) is too small" } }