From 0177fe26175d65a5352c39d3d861dc253926fc93 Mon Sep 17 00:00:00 2001 From: luz paz Date: Wed, 16 Dec 2020 11:58:16 +0300 Subject: [PATCH] 0031939: Coding - correction of spelling errors in comments [part 4] Fix various typos Fixed via `codespell v2.1.dev --- src/HLRBRep/HLRBRep_Data.cxx | 2 +- src/HLRBRep/HLRBRep_Data.hxx | 27 ++----- src/HLRBRep/HLRBRep_Hider.cxx | 2 +- src/HLRBRep/HLRBRep_InternalAlgo.cxx | 4 +- src/HLRBRep/HLRBRep_Intersector.hxx | 37 ++-------- ...FOfTheLocateExtPCOfTheProjPCurOfCInter.hxx | 2 +- ...ep_TheLocateExtPCOfTheProjPCurOfCInter.hxx | 39 ++-------- .../HLRBRep_ThePolyhedronOfInterCSurf.hxx | 23 ++---- .../HLRBRep_ThePolyhedronToolOfInterCSurf.hxx | 73 +++++++------------ src/HLRBRep/HLRBRep_TheProjPCurOfCInter.hxx | 30 +------- src/HLRTopoBRep/HLRTopoBRep_OutLiner.cxx | 2 +- src/Hermit/Hermit.hxx | 24 +----- src/IFGraph/IFGraph_Articulations.hxx | 22 +----- src/IFGraph/IFGraph_ConnectedComponants.cxx | 2 +- src/IFGraph/IFGraph_ConnectedComponants.hxx | 27 +------ src/IFSelect/IFSelect_AppliedModifiers.hxx | 29 +------- src/IFSelect/IFSelect_ContextModif.hxx | 23 +----- src/IFSelect/IFSelect_EditForm.hxx | 20 +---- src/IFSelect/IFSelect_Functions.cxx | 2 +- src/IFSelect/IFSelect_Functions.hxx | 31 +------- src/IFSelect/IFSelect_GeneralModifier.hxx | 20 +---- src/IFSelect/IFSelect_IntParam.hxx | 19 +---- src/IFSelect/IFSelect_ListEditor.hxx | 27 +------ src/IFSelect/IFSelect_ModelCopier.hxx | 22 +----- src/IFSelect/IFSelect_ParamEditor.hxx | 28 ++----- src/IFSelect/IFSelect_SelectAnyType.hxx | 25 +------ src/IFSelect/IFSelect_SelectEntityNumber.hxx | 20 +---- src/IFSelect/IFSelect_SelectRange.hxx | 23 +----- src/IFSelect/IFSelect_SelectRootComps.hxx | 28 +------ src/IFSelect/IFSelect_SelectRoots.hxx | 31 ++------ src/IFSelect/IFSelect_Selection.hxx | 31 ++------ src/IFSelect/IFSelect_SelectionIterator.hxx | 24 +----- src/IFSelect/IFSelect_SessionFile.cxx | 6 +- src/IFSelect/IFSelect_SessionFile.hxx | 52 +++++-------- src/IFSelect/IFSelect_SessionPilot.hxx | 24 +----- src/IFSelect/IFSelect_ShareOut.hxx | 23 +----- src/IFSelect/IFSelect_ShareOutResult.hxx | 23 +----- src/IFSelect/IFSelect_SignCounter.hxx | 29 ++------ src/IFSelect/IFSelect_TransformStandard.hxx | 27 +------ src/IFSelect/IFSelect_Transformer.hxx | 35 ++------- src/IFSelect/IFSelect_WorkSession.hxx | 29 ++++---- src/IGESAppli/IGESAppli_GeneralModule.cxx | 2 +- src/IGESAppli/IGESAppli_ReadWriteModule.cxx | 2 +- src/IGESAppli/IGESAppli_SpecificModule.cxx | 2 +- src/IGESBasic/IGESBasic.cxx | 2 +- src/IGESBasic/IGESBasic_GeneralModule.cxx | 2 +- src/IGESBasic/IGESBasic_ReadWriteModule.cxx | 2 +- src/IGESBasic/IGESBasic_SpecificModule.cxx | 2 +- src/IGESControl/IGESControl_IGESBoundary.cxx | 11 --- src/IGESControl/IGESControl_IGESBoundary.hxx | 27 +------ src/IGESData/IGESData.cxx | 6 +- src/IGESData/IGESData_DefSwitch.hxx | 22 +----- src/IGESData/IGESData_DirPart.hxx | 29 +------- src/IGESData/IGESData_Dump.hxx | 2 +- src/IGESData/IGESData_FileProtocol.hxx | 23 +----- .../IGESData_GlobalNodeOfSpecificLib.hxx | 25 +------ .../IGESData_GlobalNodeOfWriterLib.hxx | 31 ++------ src/IGESData/IGESData_GlobalSection.hxx | 7 +- src/IGESData/IGESData_IGESDumper.hxx | 30 ++------ src/IGESData/IGESData_IGESEntity.hxx | 4 +- src/IGESData/IGESData_IGESReaderData.hxx | 2 +- src/IGESData/IGESData_IGESType.hxx | 2 +- src/IGESData/IGESData_IGESWriter.hxx | 4 +- src/IGESData/IGESData_ParamCursor.hxx | 2 +- src/IGESData/IGESData_ParamReader.hxx | 4 +- src/IGESData/IGESData_Protocol.hxx | 2 +- src/IGESData/IGESData_ToolLocation.hxx | 2 +- src/IGESDefs/IGESDefs_AttributeTable.hxx | 2 +- src/IGESDefs/IGESDefs_GeneralModule.cxx | 2 +- src/IGESDefs/IGESDefs_ReadWriteModule.cxx | 2 +- src/IGESDefs/IGESDefs_SpecificModule.cxx | 2 +- src/IGESDefs/IGESDefs_ToolTabularData.cxx | 4 +- src/IGESDimen/IGESDimen_AngularDimension.hxx | 4 +- src/IGESDimen/IGESDimen_DiameterDimension.hxx | 4 +- src/IGESDimen/IGESDimen_GeneralModule.cxx | 2 +- src/IGESDimen/IGESDimen_LeaderArrow.hxx | 8 +- src/IGESDimen/IGESDimen_ReadWriteModule.cxx | 2 +- src/IGESDimen/IGESDimen_SpecificModule.cxx | 2 +- src/IGESDraw/IGESDraw_GeneralModule.cxx | 2 +- src/IGESDraw/IGESDraw_ReadWriteModule.cxx | 2 +- src/IGESDraw/IGESDraw_SpecificModule.cxx | 2 +- src/IGESFile/liriges.c | 4 +- src/IGESGeom/IGESGeom_GeneralModule.cxx | 2 +- src/IGESGeom/IGESGeom_Point.hxx | 4 +- src/IGESGeom/IGESGeom_ReadWriteModule.cxx | 2 +- src/IGESGeom/IGESGeom_SpecificModule.cxx | 2 +- src/IGESGeom/IGESGeom_SplineSurface.hxx | 2 +- .../IGESGeom_ToolTransformationMatrix.cxx | 2 +- .../IGESGeom_TransformationMatrix.hxx | 2 +- src/IGESGraph/IGESGraph_GeneralModule.cxx | 2 +- src/IGESGraph/IGESGraph_ReadWriteModule.cxx | 2 +- src/IGESGraph/IGESGraph_SpecificModule.cxx | 2 +- src/IGESGraph/IGESGraph_ToolNominalSize.cxx | 2 +- src/IGESSelect/IGESSelect.hxx | 4 +- src/IGESSelect/IGESSelect_AddFileComment.hxx | 2 +- .../IGESSelect_CounterOfLevelNumber.hxx | 2 +- src/IGESSelect/IGESSelect_RebuildGroups.hxx | 2 +- src/IGESSelect/IGESSelect_SelectBasicGeom.hxx | 2 +- src/IGESSolid/IGESSolid_GeneralModule.cxx | 2 +- src/IGESSolid/IGESSolid_ReadWriteModule.cxx | 2 +- src/IGESSolid/IGESSolid_SpecificModule.cxx | 2 +- .../IGESSolid_ToolSelectedComponent.cxx | 2 +- src/IGESSolid/IGESSolid_TopoBuilder.hxx | 2 +- src/IGESToBRep/IGESToBRep_BasicCurve.cxx | 6 +- src/IGESToBRep/IGESToBRep_BasicSurface.cxx | 2 +- src/IGESToBRep/IGESToBRep_BasicSurface.hxx | 63 ++++------------ src/IGESToBRep/IGESToBRep_CurveAndSurface.cxx | 8 +- src/IGESToBRep/IGESToBRep_Reader.cxx | 6 +- src/IMeshData/IMeshData_Edge.hxx | 2 +- src/IMeshTools/IMeshTools_Context.hxx | 2 +- src/IMeshTools/IMeshTools_MeshBuilder.hxx | 2 +- src/IMeshTools/IMeshTools_ModelBuilder.hxx | 2 +- src/IVtk/IVtk_IShapeMesher.cxx | 2 +- src/IVtk/IVtk_IView.hxx | 2 +- src/IVtkDraw/IVtkDraw.cxx | 2 +- src/IVtkDraw/IVtkDraw_Interactor.cxx | 8 +- src/IVtkOCC/IVtkOCC_SelectableObject.cxx | 2 +- src/IVtkOCC/IVtkOCC_ShapePickerAlgo.cxx | 6 +- src/IVtkTools/IVtkTools_ShapePicker.hxx | 2 +- src/Image/Image_AlienPixMap.hxx | 2 +- src/Image/Image_Diff.hxx | 8 +- src/IntAna/IntAna_IntQuadQuad.cxx | 2 +- src/IntAna/IntAna_IntQuadQuad.hxx | 27 ++----- src/IntAna/IntAna_QuadQuadGeo.cxx | 2 +- src/IntAna/IntAna_QuadQuadGeo.hxx | 16 ++-- src/IntAna2d/IntAna2d_AnaIntersection.hxx | 2 +- src/IntCurve/IntCurve_IConicTool.hxx | 26 +------ src/IntCurve/IntCurve_IntConicConic.cxx | 16 ++-- src/IntCurve/IntCurve_IntConicConic_1.cxx | 2 +- src/IntCurve/IntCurve_IntCurveCurveGen.gxx | 2 +- src/IntCurve/IntCurve_IntPolyPolyGen.gxx | 4 +- src/IntCurve/IntCurve_ProjectOnPConicTool.hxx | 6 +- .../IntCurveSurface_ThePolyhedronOfHInter.hxx | 8 +- ...CurveSurface_ThePolyhedronToolOfHInter.hxx | 6 +- .../IntCurvesFace_Intersector.hxx | 6 +- .../IntCurvesFace_ShapeIntersector.hxx | 2 +- src/IntImpParGen/IntImpParGen_ImpTool.hxx | 2 +- src/IntPatch/IntPatch_ALine.hxx | 4 +- src/IntPatch/IntPatch_ALineToWLine.hxx | 2 +- src/IntPatch/IntPatch_GLine.hxx | 8 +- .../IntPatch_ImpImpIntersection_4.gxx | 2 +- .../IntPatch_ImpImpIntersection_5.gxx | 4 +- src/IntPatch/IntPatch_ImpPrmIntersection.cxx | 2 +- src/IntPatch/IntPatch_ImpPrmIntersection.hxx | 2 +- src/IntPatch/IntPatch_Intersection.hxx | 2 +- src/IntPatch/IntPatch_LineConstructor.cxx | 2 +- src/IntPatch/IntPatch_PointLine.cxx | 4 +- src/IntPatch/IntPatch_Polyhedron.hxx | 8 +- src/IntPatch/IntPatch_PolyhedronTool.hxx | 8 +- src/IntPatch/IntPatch_PrmPrmIntersection.hxx | 12 ++- src/IntPatch/IntPatch_RstInt.cxx | 2 +- src/IntPatch/IntPatch_SpecialPoints.cxx | 6 +- src/IntPatch/IntPatch_WLineTool.cxx | 2 +- src/IntPolyh/IntPolyh_MaillageAffinage.cxx | 2 +- src/IntPolyh/IntPolyh_MaillageAffinage.hxx | 2 +- src/IntSurf/IntSurf_InteriorPointTool.hxx | 2 +- src/IntSurf/IntSurf_QuadricTool.hxx | 2 +- src/IntTools/IntTools_BeanFaceIntersector.cxx | 2 +- src/IntTools/IntTools_BeanFaceIntersector.hxx | 4 +- src/IntTools/IntTools_CArray1OfInteger.hxx | 2 +- src/IntTools/IntTools_CArray1OfReal.hxx | 2 +- src/IntTools/IntTools_EdgeEdge.cxx | 2 +- src/IntTools/IntTools_EdgeEdge.hxx | 6 +- src/IntTools/IntTools_EdgeFace.cxx | 6 +- src/IntTools/IntTools_FaceFace.hxx | 4 +- src/IntTools/IntTools_Tools.hxx | 4 +- src/IntTools/IntTools_TopolTool.hxx | 2 +- src/IntTools/IntTools_WLineTool.cxx | 2 +- src/IntWalk/IntWalk_IWalking_3.gxx | 2 +- src/IntWalk/IntWalk_IWalking_4.gxx | 2 +- src/IntWalk/IntWalk_IWalking_5.gxx | 2 +- src/IntWalk/IntWalk_PWalking.cxx | 6 +- src/Interface/Interface_Category.hxx | 2 +- src/Interface/Interface_CheckTool.hxx | 4 +- src/Interface/Interface_EntityList.hxx | 2 +- src/Interface/Interface_FileReaderData.hxx | 4 +- src/Interface/Interface_FileReaderTool.hxx | 2 +- src/Interface/Interface_FloatWriter.hxx | 8 +- src/Interface/Interface_GeneralModule.hxx | 2 +- .../Interface_GlobalNodeOfGeneralLib.hxx | 2 +- .../Interface_GlobalNodeOfReaderLib.hxx | 2 +- src/Interface/Interface_Graph.hxx | 2 +- src/Interface/Interface_GraphContent.hxx | 2 +- src/Interface/Interface_HGraph.hxx | 4 +- src/Interface/Interface_IntList.hxx | 27 +------ src/Interface/Interface_InterfaceModel.hxx | 6 +- src/Interface/Interface_MSG.hxx | 4 +- src/Interface/Interface_ParamList.hxx | 2 +- src/Interface/Interface_ParamSet.hxx | 6 +- src/Interface/Interface_ReportEntity.hxx | 2 +- src/Interface/Interface_STAT.hxx | 6 +- src/Interface/Interface_ShareTool.hxx | 4 +- src/Interface/Interface_Static.hxx | 2 +- src/Interface/Interface_Statics.hxx | 4 +- src/Interface/Interface_TypedValue.hxx | 8 +- src/Intf/Intf_SectionPoint.hxx | 32 ++------ 196 files changed, 476 insertions(+), 1351 deletions(-) diff --git a/src/HLRBRep/HLRBRep_Data.cxx b/src/HLRBRep/HLRBRep_Data.cxx index 24bb851bf7..72b0fdf316 100644 --- a/src/HLRBRep/HLRBRep_Data.cxx +++ b/src/HLRBRep/HLRBRep_Data.cxx @@ -1118,7 +1118,7 @@ void HLRBRep_Data::NextInterference () ((MinMaxFEdg->Max[7] - myLEMinMax->Min[7]) & 0x80008000) == 0) { //-- Rejection en Z // not rejected perform intersection Standard_Boolean rej = Standard_False; - if (myLE == myFE) { // test if an auto-intersection is not usefull + if (myLE == myFE) { // test if an auto-intersection is not useful if (((HLRBRep_EdgeData*)myLEData)->AutoIntersectionDone()) { ((HLRBRep_EdgeData*)myLEData)-> AutoIntersectionDone(Standard_True); diff --git a/src/HLRBRep/HLRBRep_Data.hxx b/src/HLRBRep/HLRBRep_Data.hxx index b80836fd61..464b899de9 100644 --- a/src/HLRBRep/HLRBRep_Data.hxx +++ b/src/HLRBRep/HLRBRep_Data.hxx @@ -52,11 +52,9 @@ class HLRBRep_FaceData; class IntRes2d_IntersectionPoint; class TableauRejection; - class HLRBRep_Data; DEFINE_STANDARD_HANDLE(HLRBRep_Data, Standard_Transient) - class HLRBRep_Data : public Standard_Transient { @@ -166,10 +164,9 @@ public: //! classification. Standard_EXPORT TopAbs_State Compare (const Standard_Integer E, const HLRBRep_EdgeData& ED); - //! Simple classification of part of edge [p1, p2] - //! returns OUT if at least 1 of Nbp points of edge is out - //! othewise returns IN - //! It is used to check "suspision" hided part of edge. + //! Simple classification of part of edge [p1, p2]. + //! Returns OUT if at least 1 of Nbp points of edge is out; otherwise returns IN. + //! It is used to check "suspicion" hidden part of edge. Standard_EXPORT TopAbs_State SimplClassify (const Standard_Integer E, const HLRBRep_EdgeData& ED, const Standard_Integer Nbp, const Standard_Real p1, const Standard_Real p2); //! Classification of an edge. @@ -184,18 +181,10 @@ public: Destroy(); } - - DEFINE_STANDARD_RTTIEXT(HLRBRep_Data,Standard_Transient) -protected: - - - - private: - //! Orient the OutLines ( left must be inside in //! projection ). Returns True if the face of a closed //! shell has been inverted; @@ -208,10 +197,11 @@ private: //! Returns True if the intersection is rejected. Standard_EXPORT Standard_Boolean RejectedPoint (const IntRes2d_IntersectionPoint& PInter, const TopAbs_Orientation BoundOri, const Standard_Integer NumSeg); - //! returns True if there is a common vertex between - //! myLE and myFE dependig on and . + //! Returns True if there is a common vertex between myLE and myFE depending on and . Standard_EXPORT Standard_Boolean SameVertex (const Standard_Boolean head1, const Standard_Boolean head2); +private: + Standard_Integer myNbVertices; Standard_Integer myNbEdges; Standard_Integer myNbFaces; @@ -272,14 +262,9 @@ private: Standard_Boolean myAboveIntf; TableauRejection* myReject; - }; - #include - - - #endif // _HLRBRep_Data_HeaderFile diff --git a/src/HLRBRep/HLRBRep_Hider.cxx b/src/HLRBRep/HLRBRep_Hider.cxx index baf219a365..d561da612e 100644 --- a/src/HLRBRep/HLRBRep_Hider.cxx +++ b/src/HLRBRep/HLRBRep_Hider.cxx @@ -698,7 +698,7 @@ void HLRBRep_Hider::Hide(const Standard_Integer FI, catch(Standard_Failure const& anException) { #ifdef OCCT_DEBUG - std::cout << "An exception was catched when hiding edge " << E; + std::cout << "An exception was caught when hiding edge " << E; std::cout << " by the face " << FI << std::endl; std::cout << anException << std::endl; #endif diff --git a/src/HLRBRep/HLRBRep_InternalAlgo.cxx b/src/HLRBRep/HLRBRep_InternalAlgo.cxx index fc776a67ad..50b5504059 100644 --- a/src/HLRBRep/HLRBRep_InternalAlgo.cxx +++ b/src/HLRBRep/HLRBRep_InternalAlgo.cxx @@ -114,7 +114,7 @@ void HLRBRep_InternalAlgo::Update () catch(Standard_Failure const& anException) { if (myDebug) { - std::cout << "An exception was catched when preparing the Shape " << i; + std::cout << "An exception was caught when preparing the Shape " << i; std::cout << " and computing its OutLines " << std::endl; std::cout << anException << std::endl; } @@ -721,7 +721,7 @@ void HLRBRep_InternalAlgo::HideSelected (const Standard_Integer I, std::cout << "Vertices : " << std::setw(5) << myDS->NbVertices() << std::endl; std::cout << "Edges : " << std::setw(5) << myDS->NbEdges() << " , "; std::cout << "Selected : " << std::setw(5) << nbSelEdges << " , "; - std::cout << "Visibles : " << std::setw(5) << nbVisEdges << std::endl; + std::cout << "Visible : " << std::setw(5) << nbVisEdges << std::endl; std::cout << "Faces : " << std::setw(5) << myDS->NbFaces() << " , "; std::cout << "Selected : " << std::setw(5) << nbSelFaces << " , "; std::cout << "Simple : " << std::setw(5) << nbFSimp << std::endl; diff --git a/src/HLRBRep/HLRBRep_Intersector.hxx b/src/HLRBRep/HLRBRep_Intersector.hxx index b3a619eb91..f8109cfaed 100644 --- a/src/HLRBRep/HLRBRep_Intersector.hxx +++ b/src/HLRBRep/HLRBRep_Intersector.hxx @@ -35,29 +35,22 @@ class IntCurveSurface_IntersectionPoint; class IntRes2d_IntersectionSegment; class IntCurveSurface_IntersectionSegment; - -//! The Intersector computes 2D intersections of the -//! projections of 3D curves. -//! -//! It can also computes the intersection of a 3D line -//! and a surface. +//! The Intersector computes 2D intersections of the projections of 3D curves. +//! It can also computes the intersection of a 3D line and a surface. class HLRBRep_Intersector { public: DEFINE_STANDARD_ALLOC - Standard_EXPORT HLRBRep_Intersector(); - //! Performs the auto intersection of an edge. The - //! edge domain is cutted at start with da1*(b-a) and - //! at end with db1*(b-a). + //! Performs the auto intersection of an edge. + //! The edge domain is cut at start with da1*(b-a) and at end with db1*(b-a). Standard_EXPORT void Perform (const Standard_Address A1, const Standard_Real da1, const Standard_Real db1); - //! Performs the intersection between the two edges. - //! The edges domains are cutted at start with - //! da*(b-a) and at end with db*(b-a). + //! Performs the intersection between the two edges. + //! The edges domains are cut at start with da*(b-a) and at end with db*(b-a). Standard_EXPORT void Perform (const Standard_Integer nA, const Standard_Address A1, const Standard_Real da1, const Standard_Real db1, const Standard_Integer nB, const Standard_Address A2, const Standard_Real da2, const Standard_Real db2, const Standard_Boolean NoBound); //! Create a single IntersectionPoint (U on A1) (V on A2) @@ -88,19 +81,8 @@ public: Destroy(); } - - - -protected: - - - - - private: - - IntRes2d_IntersectionPoint mySinglePoint; Standard_Integer myTypePerform; HLRBRep_CInter myIntersector; @@ -108,13 +90,6 @@ private: Standard_Address mySurface; HLRBRep_ThePolyhedronOfInterCSurf* myPolyhedron; - }; - - - - - - #endif // _HLRBRep_Intersector_HeaderFile diff --git a/src/HLRBRep/HLRBRep_PCLocFOfTheLocateExtPCOfTheProjPCurOfCInter.hxx b/src/HLRBRep/HLRBRep_PCLocFOfTheLocateExtPCOfTheProjPCurOfCInter.hxx index b2d0210646..b4aa907724 100644 --- a/src/HLRBRep/HLRBRep_PCLocFOfTheLocateExtPCOfTheProjPCurOfCInter.hxx +++ b/src/HLRBRep/HLRBRep_PCLocFOfTheLocateExtPCOfTheProjPCurOfCInter.hxx @@ -66,7 +66,7 @@ public: //! Save the found extremum. Standard_EXPORT virtual Standard_Integer GetStateNumber() Standard_OVERRIDE; - //! Return the nunber of found extrema. + //! Return the number of found extrema. Standard_EXPORT Standard_Integer NbExt() const; //! Returns the Nth distance. diff --git a/src/HLRBRep/HLRBRep_TheLocateExtPCOfTheProjPCurOfCInter.hxx b/src/HLRBRep/HLRBRep_TheLocateExtPCOfTheProjPCurOfCInter.hxx index 74fea28759..504125543b 100644 --- a/src/HLRBRep/HLRBRep_TheLocateExtPCOfTheProjPCurOfCInter.hxx +++ b/src/HLRBRep/HLRBRep_TheLocateExtPCOfTheProjPCurOfCInter.hxx @@ -40,27 +40,22 @@ public: DEFINE_STANDARD_ALLOC - Standard_EXPORT HLRBRep_TheLocateExtPCOfTheProjPCurOfCInter(); - + //! Calculates the distance with a close point. - //! The close point is defined by the parameter value - //! U0. - //! The function F(u)=distance(P,C(u)) has an extremum - //! when g(u)=dF/du=0. The algorithm searchs a zero - //! near the close point. + //! The close point is defined by the parameter value U0. + //! The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. + //! The algorithm searches a zero near the close point. //! TolU is used to decide to stop the iterations. //! At the nth iteration, the criteria is: //! abs(Un - Un-1) < TolU. Standard_EXPORT HLRBRep_TheLocateExtPCOfTheProjPCurOfCInter(const gp_Pnt2d& P, const Standard_Address& C, const Standard_Real U0, const Standard_Real TolU); //! Calculates the distance with a close point. - //! The close point is defined by the parameter value - //! U0. - //! The function F(u)=distance(P,C(u)) has an extremum - //! when g(u)=dF/du=0. The algorithm searchs a zero - //! near the close point. - //! Zeros are searched between Umin et Usup. + //! The close point is defined by the parameter value U0. + //! The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. + //! The algorithm searches a zero near the close point. + //! Zeros are searched between Umin and Usup. //! TolU is used to decide to stop the iterations. //! At the nth iteration, the criteria is: //! abs(Un - Un-1) < TolU. @@ -86,32 +81,14 @@ public: //! Returns the point of the extremum distance. Standard_EXPORT const Extrema_POnCurv2d& Point() const; - - - -protected: - - - - - private: - - Standard_Boolean myDone; Standard_Real mytolU; Standard_Real myumin; Standard_Real myusup; HLRBRep_PCLocFOfTheLocateExtPCOfTheProjPCurOfCInter myF; - }; - - - - - - #endif // _HLRBRep_TheLocateExtPCOfTheProjPCurOfCInter_HeaderFile diff --git a/src/HLRBRep/HLRBRep_ThePolyhedronOfInterCSurf.hxx b/src/HLRBRep/HLRBRep_ThePolyhedronOfInterCSurf.hxx index 1462b16af4..87555f2456 100644 --- a/src/HLRBRep/HLRBRep_ThePolyhedronOfInterCSurf.hxx +++ b/src/HLRBRep/HLRBRep_ThePolyhedronOfInterCSurf.hxx @@ -34,15 +34,12 @@ class gp_Pnt; class Bnd_Box; class gp_XYZ; - - class HLRBRep_ThePolyhedronOfInterCSurf { public: DEFINE_STANDARD_ALLOC - Standard_EXPORT HLRBRep_ThePolyhedronOfInterCSurf(const Standard_Address& Surface, const Standard_Integer nbdU, const Standard_Integer nbdV, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2); Standard_EXPORT HLRBRep_ThePolyhedronOfInterCSurf(const Standard_Address& Surface, const TColStd_Array1OfReal& Upars, const TColStd_Array1OfReal& Vpars); @@ -71,11 +68,11 @@ public: //! Give the number of triangles in this double array of Standard_EXPORT Standard_Integer NbTriangles() const; - //! Give the 3 points of the triangle of addresse Index in + //! Give the 3 points of the triangle of address Index in //! the double array of triangles. Standard_EXPORT void Triangle (const Standard_Integer Index, Standard_Integer& P1, Standard_Integer& P2, Standard_Integer& P3) const; - //! Give the addresse Tricon of the triangle connexe to the + //! Give the address Tricon of the triangle connexe to the //! triangle of address Triang by the edge Pivot Pedge and //! the third point of this connexe triangle. When we are //! on a free edge TriCon==0 but the function return the @@ -121,10 +118,10 @@ public: Standard_EXPORT Standard_Boolean HasVMaxSingularity() const; - //! Give the plane equation of the triangle of addresse Triang. + //! Give the plane equation of the triangle of address Triang. Standard_EXPORT void PlaneEquation (const Standard_Integer Triang, gp_XYZ& NormalVector, Standard_Real& PolarDistance) const; - //! Give the plane equation of the triangle of addresse Triang. + //! Give the plane equation of the triangle of address Triang. Standard_EXPORT Standard_Boolean Contain (const Standard_Integer Triang, const gp_Pnt& ThePnt) const; Standard_EXPORT void Parameters (const Standard_Integer Index, Standard_Real& U, Standard_Real& V) const; @@ -140,9 +137,6 @@ public: Standard_EXPORT void Dump() const; - - - protected: @@ -150,16 +144,13 @@ protected: Standard_EXPORT void Init (const Standard_Address& Surface, const TColStd_Array1OfReal& Upars, const TColStd_Array1OfReal& Vpars); - - - private: - //! This method computes and returns a deflection of isoline //! of given parameter on Surface. Standard_EXPORT Standard_Real ComputeBorderDeflection (const Standard_Address& Surface, const Standard_Real Parameter, const Standard_Real PMin, const Standard_Real PMax, const Standard_Boolean isUIso) const; +private: Standard_Integer nbdeltaU; Standard_Integer nbdeltaV; @@ -176,7 +167,6 @@ private: Standard_Real TheBorderDeflection; Standard_Address C_MyIsOnBounds; - }; #define ThePSurface Standard_Address @@ -195,7 +185,4 @@ private: #undef IntCurveSurface_Polyhedron #undef IntCurveSurface_Polyhedron_hxx - - - #endif // _HLRBRep_ThePolyhedronOfInterCSurf_HeaderFile diff --git a/src/HLRBRep/HLRBRep_ThePolyhedronToolOfInterCSurf.hxx b/src/HLRBRep/HLRBRep_ThePolyhedronToolOfInterCSurf.hxx index 4c6c349f3d..e0268a7627 100644 --- a/src/HLRBRep/HLRBRep_ThePolyhedronToolOfInterCSurf.hxx +++ b/src/HLRBRep/HLRBRep_ThePolyhedronToolOfInterCSurf.hxx @@ -30,69 +30,50 @@ class HLRBRep_ThePolyhedronOfInterCSurf; class Bnd_Box; class gp_Pnt; - - class HLRBRep_ThePolyhedronToolOfInterCSurf { public: DEFINE_STANDARD_ALLOC - //! Give the bounding box of the PolyhedronTool. - static const Bnd_Box& Bounding (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh); - + static const Bnd_Box& Bounding (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh); + //! Give the array of boxes. The box corresponding //! to the triangle . - static const Handle(Bnd_HArray1OfBox)& ComponentsBounding (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh); - + static const Handle(Bnd_HArray1OfBox)& ComponentsBounding (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh); + //! Give the tolerance of the polygon. - static Standard_Real DeflectionOverEstimation (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh); - - //! Give the number of triangles in this polyedral surface. - static Standard_Integer NbTriangles (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh); - + static Standard_Real DeflectionOverEstimation (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh); + + //! Give the number of triangles in this polyhedral surface. + static Standard_Integer NbTriangles (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh); + //! Give the indices of the 3 points of the triangle of //! address Index in the PolyhedronTool. - static void Triangle (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, const Standard_Integer Index, Standard_Integer& P1, Standard_Integer& P2, Standard_Integer& P3); - - //! Give the point of index i in the polyedral surface. - static const gp_Pnt& Point (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, const Standard_Integer Index); - - //! Give the addresse Tricon of the triangle connexe to + static void Triangle (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, const Standard_Integer Index, Standard_Integer& P1, Standard_Integer& P2, Standard_Integer& P3); + + //! Give the point of index i in the polyhedral surface. + static const gp_Pnt& Point (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, const Standard_Integer Index); + + //! Give the address Tricon of the triangle connexe to //! the triangle of address Triang by the edge Pivot Pedge - //! and the third point of this connexe triangle. When we - //! are on a free edge TriCon==0 but the function return - //! the value of the triangle in the other side of Pivot - //! on the free edge. Used to turn around a vertex. - static Standard_Integer TriConnex (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, const Standard_Integer Triang, const Standard_Integer Pivot, const Standard_Integer Pedge, Standard_Integer& TriCon, Standard_Integer& OtherP); - + //! and the third point of this connexe triangle. + //! When we are on a free edge TriCon==0 but the function return + //! the value of the triangle in the other side of Pivot on the free edge. + //! Used to turn around a vertex. + static Standard_Integer TriConnex (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, const Standard_Integer Triang, const Standard_Integer Pivot, const Standard_Integer Pedge, Standard_Integer& TriCon, Standard_Integer& OtherP); + //! This method returns true if the edge based on points with - //! indices Index1 and Index2 represents a boundary edge. It is - //! necessary to take into account the boundary deflection for - //! this edge. - static Standard_Boolean IsOnBound (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, const Standard_Integer Index1, const Standard_Integer Index2); - + //! indices Index1 and Index2 represents a boundary edge. + //! It is necessary to take into account the boundary deflection for this edge. + static Standard_Boolean IsOnBound (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, const Standard_Integer Index1, const Standard_Integer Index2); + //! This method returns a border deflection of the polyhedron. - static Standard_Real GetBorderDeflection (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh); - + static Standard_Real GetBorderDeflection (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh); + Standard_EXPORT static void Dump (const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh); - - - -protected: - - - - - -private: - - - - - }; #define ThePolyhedron HLRBRep_ThePolyhedronOfInterCSurf diff --git a/src/HLRBRep/HLRBRep_TheProjPCurOfCInter.hxx b/src/HLRBRep/HLRBRep_TheProjPCurOfCInter.hxx index fe207a6b2a..b584470036 100644 --- a/src/HLRBRep/HLRBRep_TheProjPCurOfCInter.hxx +++ b/src/HLRBRep/HLRBRep_TheProjPCurOfCInter.hxx @@ -29,31 +29,28 @@ class HLRBRep_TheLocateExtPCOfTheProjPCurOfCInter; class HLRBRep_PCLocFOfTheLocateExtPCOfTheProjPCurOfCInter; class gp_Pnt2d; - - class HLRBRep_TheProjPCurOfCInter { public: DEFINE_STANDARD_ALLOC - //! Returns the parameter V of the point on the //! parametric curve corresponding to the Point Pnt. - //! The Correspondance between Pnt and the point P(V) + //! The Correspondence between Pnt and the point P(V) //! on the parametric curve must be coherent with the //! way of determination of the signed distance //! between a point and the implicit curve. //! Tol is the tolerance on the distance between a point //! and the parametrised curve. //! In that case, no bounds are given. The research of - //! the rigth parameter has to be made on the natural + //! the right parameter has to be made on the natural //! parametric domain of the curve. Standard_EXPORT static Standard_Real FindParameter (const Standard_Address& C, const gp_Pnt2d& Pnt, const Standard_Real Tol); //! Returns the parameter V of the point on the //! parametric curve corresponding to the Point Pnt. - //! The Correspondance between Pnt and the point P(V) + //! The Correspondence between Pnt and the point P(V) //! on the parametric curve must be coherent with the //! way of determination of the signed distance //! between a point and the implicit curve. @@ -67,27 +64,6 @@ public: //! LowParameter <= Value <= HighParameter. Standard_EXPORT static Standard_Real FindParameter (const Standard_Address& C, const gp_Pnt2d& Pnt, const Standard_Real LowParameter, const Standard_Real HighParameter, const Standard_Real Tol); - - - -protected: - - - - - -private: - - - - - }; - - - - - - #endif // _HLRBRep_TheProjPCurOfCInter_HeaderFile diff --git a/src/HLRTopoBRep/HLRTopoBRep_OutLiner.cxx b/src/HLRTopoBRep/HLRTopoBRep_OutLiner.cxx index 73bd04fcd2..9e3d2c8144 100644 --- a/src/HLRTopoBRep/HLRTopoBRep_OutLiner.cxx +++ b/src/HLRTopoBRep/HLRTopoBRep_OutLiner.cxx @@ -250,7 +250,7 @@ void HLRTopoBRep_OutLiner::ProcessFace(const TopoDS_Face& F, itE.Next()) { TopoDS_Edge E = TopoDS::Edge(itE.Value()); E.Orientation(TopAbs_INTERNAL); - if (myDS.EdgeHasSplE(E)) { // normaly IsoLines are never splitted. + if (myDS.EdgeHasSplE(E)) { // normally IsoLines are never split. TopTools_ListIteratorOfListOfShape itS; for (itS.Initialize(myDS.EdgeSplE(E)); diff --git a/src/Hermit/Hermit.hxx b/src/Hermit/Hermit.hxx index 58a62ff329..80fec1b6b6 100644 --- a/src/Hermit/Hermit.hxx +++ b/src/Hermit/Hermit.hxx @@ -39,7 +39,7 @@ class Geom_BSplineCurve; //! //! the function a(u)D(u) has value 1 at the umin and umax //! and has 0.0e0 derivative value a umin and umax. -//! The details of the computation occuring in this package +//! The details of the computation occurring in this package //! can be found by reading : //! " Etude sur la concatenation de NURBS en vue du //! balayage de surfaces" PFE n S85 Ensam Lille @@ -49,7 +49,6 @@ public: DEFINE_STANDARD_ALLOC - //! returns the correct spline a(u) which will //! be multiplicated with BS later. Standard_EXPORT static Handle(Geom2d_BSplineCurve) Solution (const Handle(Geom_BSplineCurve)& BS, const Standard_Real TolPoles = 0.000001, const Standard_Real TolKnots = 0.000001); @@ -63,27 +62,6 @@ public: //! tolerances. Standard_EXPORT static void Solutionbis (const Handle(Geom_BSplineCurve)& BS, Standard_Real& Knotmin, Standard_Real& Knotmax, const Standard_Real TolPoles = 0.000001, const Standard_Real TolKnots = 0.000001); - - - -protected: - - - - - -private: - - - - - }; - - - - - - #endif // _Hermit_HeaderFile diff --git a/src/IFGraph/IFGraph_Articulations.hxx b/src/IFGraph/IFGraph_Articulations.hxx index c07b9f59f2..7f7fcccd69 100644 --- a/src/IFGraph/IFGraph_Articulations.hxx +++ b/src/IFGraph/IFGraph_Articulations.hxx @@ -30,20 +30,18 @@ class Interface_Graph; class Standard_Transient; class Interface_EntityIterator; - //! this class gives entities which are Articulation points //! in a whole Model or in a sub-part //! An Articulation Point divides the graph in two (or more) //! disconnected sub-graphs //! Identifying Articulation Points allows improving -//! efficiency of spliting a set of Entities into sub-sets +//! efficiency of splitting a set of Entities into sub-sets class IFGraph_Articulations : public Interface_GraphContent { public: DEFINE_STANDARD_ALLOC - //! creates Articulations to evaluate a Graph //! whole True : works on the whole Model //! whole False : remains empty, ready to work on a sub-part @@ -61,34 +59,18 @@ public: //! Evaluates the list of Articulation points Standard_EXPORT virtual void Evaluate() Standard_OVERRIDE; - - - -protected: - - - - - private: - //! basic routine of computation //! (see book Sedgewick "Algorithms", p 392) Standard_EXPORT Standard_Integer Visit (const Standard_Integer num); +private: Interface_Graph thegraph; Standard_Integer thenow; Handle(TColStd_HSequenceOfInteger) thelist; - }; - - - - - - #endif // _IFGraph_Articulations_HeaderFile diff --git a/src/IFGraph/IFGraph_ConnectedComponants.cxx b/src/IFGraph/IFGraph_ConnectedComponants.cxx index b18925ab63..519e3b2ff4 100644 --- a/src/IFGraph/IFGraph_ConnectedComponants.cxx +++ b/src/IFGraph/IFGraph_ConnectedComponants.cxx @@ -19,7 +19,7 @@ // Pour travailler, ConnectedComponants exploite AllConnected : // On prend un 1er Vertex, on determine ses AllConnected -> voila un 1er -// Connected Componant +// Connected Component // On recommence jusqu'a ce qu'il n'y ait plus de Vertex libre // Honnetement, si ca ne marche pas, cf classe ConnectedVerticesIterator // de GraphTools qui fait en principe la meme chose diff --git a/src/IFGraph/IFGraph_ConnectedComponants.hxx b/src/IFGraph/IFGraph_ConnectedComponants.hxx index cb88726b1a..30398c72f1 100644 --- a/src/IFGraph/IFGraph_ConnectedComponants.hxx +++ b/src/IFGraph/IFGraph_ConnectedComponants.hxx @@ -25,15 +25,13 @@ #include class Interface_Graph; - -//! determines Connected Componants in a Graph. They define -//! disjoined sets of Entities +//! determines Connected Components in a Graph. +//! They define disjoined sets of Entities. class IFGraph_ConnectedComponants : public IFGraph_SubPartsIterator { public: DEFINE_STANDARD_ALLOC - //! creates with a Graph, and will analyse : //! whole True : all the contents of the Model @@ -43,27 +41,6 @@ public: //! does the computation Standard_EXPORT virtual void Evaluate() Standard_OVERRIDE; - - - -protected: - - - - - -private: - - - - - }; - - - - - - #endif // _IFGraph_ConnectedComponants_HeaderFile diff --git a/src/IFSelect/IFSelect_AppliedModifiers.hxx b/src/IFSelect/IFSelect_AppliedModifiers.hxx index ea6e17bc49..fd17585a6c 100644 --- a/src/IFSelect/IFSelect_AppliedModifiers.hxx +++ b/src/IFSelect/IFSelect_AppliedModifiers.hxx @@ -28,23 +28,20 @@ #include class IFSelect_GeneralModifier; - class IFSelect_AppliedModifiers; DEFINE_STANDARD_HANDLE(IFSelect_AppliedModifiers, Standard_Transient) //! This class allows to memorize and access to the modifiers //! which are to be applied to a file. To each modifier, is bound -//! a list of integers (optionnal) : if this list is absent, the -//! modifier applies to all the file. Else, it applies to the +//! a list of integers (optional) : if this list is absent, +//! the modifier applies to all the file. Else, it applies to the //! entities designated by these numbers in the produced file. //! -//! To record a modifier, and a possible list of entity numbers -//! to be applied on : +//! To record a modifier, and a possible list of entity numbers to be applied on: //! AddModif (amodifier); //! loop on AddNum (anumber); //! -//! To query it, Count gives the count of recorded modifiers, -//! then for each one : +//! To query it, Count gives the count of recorded modifiers, then for each one: //! Item (numodif, amodifier, entcount); //! IsForAll () -> can be called, if True, applies on the whole file //! @@ -52,9 +49,7 @@ DEFINE_STANDARD_HANDLE(IFSelect_AppliedModifiers, Standard_Transient) //! nument = ItemNum (i); -> return an entity number class IFSelect_AppliedModifiers : public Standard_Transient { - public: - //! Creates an AppliedModifiers, ready to record up to //! modifiers, on a model of entities @@ -103,31 +98,15 @@ public: //! numbers, each one is queried by ItemNum Standard_EXPORT Standard_Boolean IsForAll() const; - - - DEFINE_STANDARD_RTTIEXT(IFSelect_AppliedModifiers,Standard_Transient) -protected: - - - - private: - IFSelect_SequenceOfGeneralModifier themodifs; Interface_IntList thelists; Standard_Integer thenbent; Standard_Integer theentcnt; - }; - - - - - - #endif // _IFSelect_AppliedModifiers_HeaderFile diff --git a/src/IFSelect/IFSelect_ContextModif.hxx b/src/IFSelect/IFSelect_ContextModif.hxx index 282f0e13af..45e864f76f 100644 --- a/src/IFSelect/IFSelect_ContextModif.hxx +++ b/src/IFSelect/IFSelect_ContextModif.hxx @@ -59,7 +59,6 @@ public: DEFINE_STANDARD_ALLOC - //! Prepares a ContextModif with these information : //! - the graph established from original model (target passed //! directly to Modifier) @@ -172,8 +171,8 @@ public: //! Traces the modification of the current entity (see above, //! ValueOriginal and ValueResult) for default trace level >= 2. - //! To be called on each indivudual entity really modified - //! is an optionnal additional message + //! To be called on each individual entity really modified + //! is an optional additional message Standard_EXPORT void Trace (const Standard_CString mess = ""); //! Adds a Check to the CheckList. If it is empty, nothing is done @@ -206,19 +205,8 @@ public: //! Returns the complete CheckList Standard_EXPORT Interface_CheckIterator CheckList() const; - - - -protected: - - - - - private: - - Interface_Graph thegraf; Handle(Interface_Protocol) theprot; Handle(Interface_CopyControl) themap; @@ -229,13 +217,6 @@ private: Standard_Integer thecurr; Standard_Integer thecurt; - }; - - - - - - #endif // _IFSelect_ContextModif_HeaderFile diff --git a/src/IFSelect/IFSelect_EditForm.hxx b/src/IFSelect/IFSelect_EditForm.hxx index aeddf37209..d6440c037a 100644 --- a/src/IFSelect/IFSelect_EditForm.hxx +++ b/src/IFSelect/IFSelect_EditForm.hxx @@ -48,14 +48,12 @@ DEFINE_STANDARD_HANDLE(IFSelect_EditForm, Standard_Transient) //! Number of Value for the Editor //! While references to Rank are for rank in the EditForm, which //! may differ if it is not Complete -//! Two methods give the correspondance between this Number and +//! Two methods give the correspondence between this Number and //! the Rank in the EditForm : RankFromNumber and NumberFromRank class IFSelect_EditForm : public Standard_Transient { - public: - //! Creates a complete EditForm from an Editor //! A specific Label can be given Standard_EXPORT IFSelect_EditForm(const Handle(IFSelect_Editor)& editor, const Standard_Boolean readonly, const Standard_Boolean undoable, const Standard_CString label = ""); @@ -279,19 +277,10 @@ public: //! Can be run only once Standard_EXPORT Standard_Boolean Undo(); - - - DEFINE_STANDARD_RTTIEXT(IFSelect_EditForm,Standard_Transient) -protected: - - - - private: - Standard_Boolean thecomplete; Standard_Boolean theloaded; Standard_Boolean thekeepst; @@ -305,13 +294,6 @@ private: Handle(Interface_InterfaceModel) themodel; Standard_Integer thetouched; - }; - - - - - - #endif // _IFSelect_EditForm_HeaderFile diff --git a/src/IFSelect/IFSelect_Functions.cxx b/src/IFSelect/IFSelect_Functions.cxx index 7066c807f3..ce9c0f5235 100644 --- a/src/IFSelect/IFSelect_Functions.cxx +++ b/src/IFSelect/IFSelect_Functions.cxx @@ -491,7 +491,7 @@ static IFSelect_ReturnStatus fundumpent if (argc < 2 || (argc == 2 && levmax < 0)) { sout<<"Give n0 or id of entity"; if (levmax < 0) sout<<" and dump level"< - //! is empty) on keybord, and returns the entity - //! name can be a label or a number (in alphanumeric), it is - //! searched by NumberFromLabel from WorkSession. + //! Takes the name of an entity, either as argument, + //! or (if is empty) on keyboard, and returns the entity + //! name can be a label or a number (in alphanumeric), + //! it is searched by NumberFromLabel from WorkSession. //! If doesn't match en entity, a Null Handle is returned Standard_EXPORT static Handle(Standard_Transient) GiveEntity (const Handle(IFSelect_WorkSession)& WS, const Standard_CString name = ""); @@ -76,27 +74,6 @@ public: //! Defines and loads all basic functions (as ActFunc) Standard_EXPORT static void Init(); - - - -protected: - - - - - -private: - - - - - }; - - - - - - #endif // _IFSelect_Functions_HeaderFile diff --git a/src/IFSelect/IFSelect_GeneralModifier.hxx b/src/IFSelect/IFSelect_GeneralModifier.hxx index 31135a5f53..44b4e46242 100644 --- a/src/IFSelect/IFSelect_GeneralModifier.hxx +++ b/src/IFSelect/IFSelect_GeneralModifier.hxx @@ -26,14 +26,13 @@ class IFSelect_Selection; class IFSelect_Dispatch; class TCollection_AsciiString; - class IFSelect_GeneralModifier; DEFINE_STANDARD_HANDLE(IFSelect_GeneralModifier, Standard_Transient) //! This class gives a frame for Actions which modify the effect //! of a Dispatch, i.e. : //! By Selections and Dispatches, an original Model can be -//! splitted into one or more "target" Models : these Models +//! split into one or more "target" Models : these Models //! contain Entities copied from the original one (that is, a //! part of it). Basically, these dispatched Entities are copied //! as identical to their original counterparts. Also the copied @@ -66,7 +65,6 @@ class IFSelect_GeneralModifier : public Standard_Transient public: - //! Returns True if this modifier may change the graph of //! dependences (aknowledged at creation time) Standard_EXPORT Standard_Boolean MayChangeGraph() const; @@ -90,7 +88,7 @@ public: //! Resets the Selection : this criterium is not longer active Standard_EXPORT void ResetSelection(); - //! Returns True if a Selection is set as an additionnal criterium + //! Returns True if a Selection is set as an additional criterium Standard_EXPORT Standard_Boolean HasSelection() const; //! Returns the Selection, or a Null Handle if not set @@ -99,14 +97,10 @@ public: //! Returns a short text which defines the operation performed Standard_EXPORT virtual TCollection_AsciiString Label() const = 0; - - - DEFINE_STANDARD_RTTIEXT(IFSelect_GeneralModifier,Standard_Transient) protected: - //! Sets the Modifier criteria to default Values //! (i.e. "always applies") //! must be provided at creation time, to : @@ -117,22 +111,12 @@ protected: //! dependencies when this modifier is applied Standard_EXPORT IFSelect_GeneralModifier(const Standard_Boolean maychangegraph); - - private: - Handle(IFSelect_Selection) thesel; Handle(IFSelect_Dispatch) thedisp; Standard_Boolean thechgr; - }; - - - - - - #endif // _IFSelect_GeneralModifier_HeaderFile diff --git a/src/IFSelect/IFSelect_IntParam.hxx b/src/IFSelect/IFSelect_IntParam.hxx index 22ac2178ce..ae61944699 100644 --- a/src/IFSelect/IFSelect_IntParam.hxx +++ b/src/IFSelect/IFSelect_IntParam.hxx @@ -25,7 +25,6 @@ #include #include - class IFSelect_IntParam; DEFINE_STANDARD_HANDLE(IFSelect_IntParam, Standard_Transient) @@ -36,7 +35,7 @@ DEFINE_STANDARD_HANDLE(IFSelect_IntParam, Standard_Transient) //! parameters of a Selection or a Dispatch (according its type) //! can be controlled directly from the ShareOut which contains them //! -//! Additionnaly, an IntParam can be bound to a Static. +//! Additionally, an IntParam can be bound to a Static. //! Remember that for a String, binding is immediate, because the //! string value of a Static is a HAsciiString, it then suffices //! to get its Handle. @@ -48,7 +47,6 @@ class IFSelect_IntParam : public Standard_Transient public: - //! Creates an IntParam. Initial value is set to zer Standard_EXPORT IFSelect_IntParam(); @@ -76,28 +74,13 @@ public: Standard_EXPORT void SetValue (const Standard_Integer val); - - DEFINE_STANDARD_RTTIEXT(IFSelect_IntParam,Standard_Transient) -protected: - - - - private: - Standard_Integer theval; TCollection_AsciiString thestn; - }; - - - - - - #endif // _IFSelect_IntParam_HeaderFile diff --git a/src/IFSelect/IFSelect_ListEditor.hxx b/src/IFSelect/IFSelect_ListEditor.hxx index cb8993f22f..ac71d7b701 100644 --- a/src/IFSelect/IFSelect_ListEditor.hxx +++ b/src/IFSelect/IFSelect_ListEditor.hxx @@ -29,7 +29,6 @@ class Interface_TypedValue; class Interface_InterfaceModel; class TCollection_HAsciiString; - class IFSelect_ListEditor; DEFINE_STANDARD_HANDLE(IFSelect_ListEditor, Standard_Transient) @@ -58,7 +57,6 @@ class IFSelect_ListEditor : public Standard_Transient public: - //! Creates a ListEditor with absolutely no constraint Standard_EXPORT IFSelect_ListEditor(); @@ -70,12 +68,11 @@ public: //! Loads a Model. It is used to check items of type Entity(Ident) Standard_EXPORT void LoadModel (const Handle(Interface_InterfaceModel)& model); - - //! Loads the original values for the list - //! Remark : If its length is mor then MaxLength, editions remain - //! allowed, except Add + + //! Loads the original values for the list. + //! Remark : If its length is more then MaxLength, editions remain allowed, except Add Standard_EXPORT void LoadValues (const Handle(TColStd_HSequenceOfHAsciiString)& vals); - + //! Declares this ListEditor to have been touched (whatever action) Standard_EXPORT void SetTouched(); @@ -140,19 +137,10 @@ public: //! been recorded Standard_EXPORT Standard_Boolean IsTouched() const; - - - DEFINE_STANDARD_RTTIEXT(IFSelect_ListEditor,Standard_Transient) -protected: - - - - private: - Standard_Integer themax; Handle(Interface_TypedValue) thedef; Standard_Integer thetouc; @@ -161,13 +149,6 @@ private: Handle(TColStd_HSequenceOfInteger) thestat; Handle(Interface_InterfaceModel) themodl; - }; - - - - - - #endif // _IFSelect_ListEditor_HeaderFile diff --git a/src/IFSelect/IFSelect_ModelCopier.hxx b/src/IFSelect/IFSelect_ModelCopier.hxx index 18923f2f25..5363202c2d 100644 --- a/src/IFSelect/IFSelect_ModelCopier.hxx +++ b/src/IFSelect/IFSelect_ModelCopier.hxx @@ -41,7 +41,6 @@ class Interface_CopyTool; class Interface_Graph; class Interface_EntityIterator; - class IFSelect_ModelCopier; DEFINE_STANDARD_HANDLE(IFSelect_ModelCopier, Standard_Transient) @@ -49,8 +48,8 @@ DEFINE_STANDARD_HANDLE(IFSelect_ModelCopier, Standard_Transient) //! description of a ShareOut (evaluated by a ShareOutResult) //! plus, if there are, the Modifications on the results, with //! the help of Modifiers. Each Modifier can work on one or more -//! resulting packets, accoding its criteria : it operates on a -//! Model once copied and filled with the content of the packet. +//! resulting packets, according to its criteria : it operates on +//! a Model once copied and filled with the content of the packet. //! //! Modifiers can be : //! - Model Modifiers, inheriting from the specific class Modifier @@ -86,7 +85,6 @@ class IFSelect_ModelCopier : public Standard_Transient public: - //! Creates an empty ModelCopier Standard_EXPORT IFSelect_ModelCopier(); @@ -204,14 +202,10 @@ public: //! BeginSentFiles has stopped recording. Standard_EXPORT Handle(TColStd_HSequenceOfHAsciiString) SentFiles() const; - - - DEFINE_STANDARD_RTTIEXT(IFSelect_ModelCopier,Standard_Transient) protected: - //! Internal routine which does the effective Copy. It allows to //! work, either with a standard CopyTool, or a specialised one //! Copying itself is done by which uses a CopyTool @@ -226,7 +220,7 @@ protected: //! is the graph which defines the starting entities, it //! contains the original InterfaceModel //! performs the copy by using - //! is the used protocol (can be usefull for Modifiers) + //! is the used protocol (can be useful for Modifiers) //! is the list of Entities which are the Roots of the //! packet to be copied //! is the name of the file which will receive it @@ -254,11 +248,8 @@ protected: //! itself of the file, these changes are ignored Standard_EXPORT void CopiedModel (const Interface_Graph& G, const Handle(IFSelect_WorkLibrary)& WL, const Handle(Interface_Protocol)& protocol, const Interface_EntityIterator& topcopy, const TCollection_AsciiString& filename, const Standard_Integer dispnum, const Standard_Integer numod, Interface_CopyTool& TC, Handle(Interface_InterfaceModel)& newmod, Handle(IFSelect_AppliedModifiers)& applied, Interface_CheckIterator& checks) const; - - private: - IFSelect_SequenceOfInterfaceModel thefilemodels; TColStd_SequenceOfAsciiString thefilenames; IFSelect_SequenceOfAppliedModifiers theapplieds; @@ -266,13 +257,6 @@ private: Handle(TColStd_HArray1OfInteger) theremain; Handle(TColStd_HSequenceOfHAsciiString) thesentfiles; - }; - - - - - - #endif // _IFSelect_ModelCopier_HeaderFile diff --git a/src/IFSelect/IFSelect_ParamEditor.hxx b/src/IFSelect/IFSelect_ParamEditor.hxx index 3386be0ca5..e9b645cd8e 100644 --- a/src/IFSelect/IFSelect_ParamEditor.hxx +++ b/src/IFSelect/IFSelect_ParamEditor.hxx @@ -33,7 +33,6 @@ class TCollection_HAsciiString; class Standard_Transient; class Interface_InterfaceModel; - class IFSelect_ParamEditor; DEFINE_STANDARD_HANDLE(IFSelect_ParamEditor, IFSelect_Editor) @@ -50,17 +49,16 @@ class IFSelect_ParamEditor : public IFSelect_Editor public: - //! Creates a ParamEditor, empty, with a maximum count of params //! (default is 100) //! And a label, by default it will be "Param Editor" Standard_EXPORT IFSelect_ParamEditor(const Standard_Integer nbmax = 100, const Standard_CString label = ""); - + //! Adds a TypedValue - //! By default, its short name equates its complete name, it can - //! be explicited - Standard_EXPORT void AddValue (const Handle(Interface_TypedValue)& val, const Standard_CString shortname = ""); - + //! By default, its short name equates its complete name, it can be made explicit + Standard_EXPORT void AddValue (const Handle(Interface_TypedValue)& val, + const Standard_CString shortname = ""); + //! Adds a Constant Text, it will be Read Only //! By default, its long name equates its shortname Standard_EXPORT void AddConstantText (const Standard_CString val, const Standard_CString shortname, const Standard_CString completename = ""); @@ -80,28 +78,12 @@ public: //! Null Handle if is null or empty Standard_EXPORT static Handle(IFSelect_ParamEditor) StaticEditor (const Handle(TColStd_HSequenceOfHAsciiString)& list, const Standard_CString label = ""); - - - DEFINE_STANDARD_RTTIEXT(IFSelect_ParamEditor,IFSelect_Editor) -protected: - - - - private: - TCollection_AsciiString thelabel; - }; - - - - - - #endif // _IFSelect_ParamEditor_HeaderFile diff --git a/src/IFSelect/IFSelect_SelectAnyType.hxx b/src/IFSelect/IFSelect_SelectAnyType.hxx index 94f6dac663..865cf1ff32 100644 --- a/src/IFSelect/IFSelect_SelectAnyType.hxx +++ b/src/IFSelect/IFSelect_SelectAnyType.hxx @@ -27,7 +27,6 @@ class Standard_Transient; class Interface_InterfaceModel; - class IFSelect_SelectAnyType; DEFINE_STANDARD_HANDLE(IFSelect_SelectAnyType, IFSelect_SelectExtract) @@ -39,36 +38,16 @@ class IFSelect_SelectAnyType : public IFSelect_SelectExtract public: - //! Returns the Type which has to be matched for select Standard_EXPORT virtual Handle(Standard_Type) TypeForMatch() const = 0; - + //! Returns True for an Entity (model->Value(num)) which is kind - //! of the choosen type, given by the method TypeForMatch. + //! of the chosen type, given by the method TypeForMatch. //! Criterium is IsKind. Standard_EXPORT Standard_Boolean Sort (const Standard_Integer rank, const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const Standard_OVERRIDE; - - - DEFINE_STANDARD_RTTIEXT(IFSelect_SelectAnyType,IFSelect_SelectExtract) -protected: - - - - -private: - - - - }; - - - - - - #endif // _IFSelect_SelectAnyType_HeaderFile diff --git a/src/IFSelect/IFSelect_SelectEntityNumber.hxx b/src/IFSelect/IFSelect_SelectEntityNumber.hxx index 4c5e14b26b..f594f9d989 100644 --- a/src/IFSelect/IFSelect_SelectEntityNumber.hxx +++ b/src/IFSelect/IFSelect_SelectEntityNumber.hxx @@ -26,7 +26,6 @@ class Interface_EntityIterator; class Interface_Graph; class TCollection_AsciiString; - class IFSelect_SelectEntityNumber; DEFINE_STANDARD_HANDLE(IFSelect_SelectEntityNumber, IFSelect_SelectBase) @@ -34,13 +33,12 @@ DEFINE_STANDARD_HANDLE(IFSelect_SelectEntityNumber, IFSelect_SelectBase) //! Graph), the Entity which has a specified Number (its rank of //! adding into the Model) : there can be zero (if none) or one. //! The Number is not directly defined as an Integer, but as a -//! Parameter, which can be externally controled +//! Parameter, which can be externally controlled class IFSelect_SelectEntityNumber : public IFSelect_SelectBase { public: - //! Creates a SelectEntityNumber, initially with no specified Number Standard_EXPORT IFSelect_SelectEntityNumber(); @@ -57,28 +55,12 @@ public: //! Returns a text defining the criterium : "Entity Number ..." Standard_EXPORT TCollection_AsciiString Label() const Standard_OVERRIDE; - - - DEFINE_STANDARD_RTTIEXT(IFSelect_SelectEntityNumber,IFSelect_SelectBase) -protected: - - - - private: - Handle(IFSelect_IntParam) thenum; - }; - - - - - - #endif // _IFSelect_SelectEntityNumber_HeaderFile diff --git a/src/IFSelect/IFSelect_SelectRange.hxx b/src/IFSelect/IFSelect_SelectRange.hxx index 9e4d01416b..2e4f8e6e2d 100644 --- a/src/IFSelect/IFSelect_SelectRange.hxx +++ b/src/IFSelect/IFSelect_SelectRange.hxx @@ -29,7 +29,6 @@ class Standard_Transient; class Interface_InterfaceModel; class TCollection_AsciiString; - class IFSelect_SelectRange; DEFINE_STANDARD_HANDLE(IFSelect_SelectRange, IFSelect_SelectExtract) @@ -75,38 +74,22 @@ public: //! Returns Value of Upper Limit (0 if none is defined) Standard_EXPORT Standard_Integer UpperValue() const; - - //! Returns True for an Entity of which occurence number in the + + //! Returns True for an Entity of which occurrence number in the //! iteration is inside the selected Range (considers ) Standard_EXPORT Standard_Boolean Sort (const Standard_Integer rank, const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const Standard_OVERRIDE; - + //! Returns a text defining the criterium : following cases, //! " From .. Until .." or "From .." or "Until .." or "Rank no .." Standard_EXPORT TCollection_AsciiString ExtractLabel() const Standard_OVERRIDE; - - - DEFINE_STANDARD_RTTIEXT(IFSelect_SelectRange,IFSelect_SelectExtract) -protected: - - - - private: - Handle(IFSelect_IntParam) thelower; Handle(IFSelect_IntParam) theupper; - }; - - - - - - #endif // _IFSelect_SelectRange_HeaderFile diff --git a/src/IFSelect/IFSelect_SelectRootComps.hxx b/src/IFSelect/IFSelect_SelectRootComps.hxx index fd00df1038..52d07fdc3f 100644 --- a/src/IFSelect/IFSelect_SelectRootComps.hxx +++ b/src/IFSelect/IFSelect_SelectRootComps.hxx @@ -29,7 +29,6 @@ class Standard_Transient; class Interface_InterfaceModel; class TCollection_AsciiString; - class IFSelect_SelectRootComps; DEFINE_STANDARD_HANDLE(IFSelect_SelectRootComps, IFSelect_SelectExtract) @@ -47,47 +46,28 @@ class IFSelect_SelectRootComps : public IFSelect_SelectExtract public: - //! Creates a SelectRootComps Standard_EXPORT IFSelect_SelectRootComps(); - - //! Returns the list of local root strong components, by one - //! Entity per component. It is redefined for a purpose of - //! effeciency : calling a Sort routine for each Entity would + + //! Returns the list of local root strong components, by one Entity per component. + //! It is redefined for a purpose of efficiency : calling a Sort routine for each Entity would //! cost more resources than to work in once using a Map //! RootResult takes in account the Direct status Standard_EXPORT virtual Interface_EntityIterator RootResult (const Interface_Graph& G) const Standard_OVERRIDE; - + //! Returns always True, because RootResult has done work Standard_EXPORT Standard_Boolean Sort (const Standard_Integer rank, const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const Standard_OVERRIDE; //! Returns a text defining the criterium : "Local Root Components" Standard_EXPORT TCollection_AsciiString ExtractLabel() const Standard_OVERRIDE; - - - DEFINE_STANDARD_RTTIEXT(IFSelect_SelectRootComps,IFSelect_SelectExtract) protected: - //! Returns True, RootResult assuring uniqueness Standard_EXPORT virtual Standard_Boolean HasUniqueResult() const Standard_OVERRIDE; - - -private: - - - - }; - - - - - - #endif // _IFSelect_SelectRootComps_HeaderFile diff --git a/src/IFSelect/IFSelect_SelectRoots.hxx b/src/IFSelect/IFSelect_SelectRoots.hxx index 0f8d087145..c685ca7566 100644 --- a/src/IFSelect/IFSelect_SelectRoots.hxx +++ b/src/IFSelect/IFSelect_SelectRoots.hxx @@ -29,7 +29,6 @@ class Standard_Transient; class Interface_InterfaceModel; class TCollection_AsciiString; - class IFSelect_SelectRoots; DEFINE_STANDARD_HANDLE(IFSelect_SelectRoots, IFSelect_SelectExtract) @@ -41,46 +40,28 @@ class IFSelect_SelectRoots : public IFSelect_SelectExtract public: - //! Creates a SelectRoots Standard_EXPORT IFSelect_SelectRoots(); - - //! Returns the list of local roots. It is redefined for a purpose - //! of effeciency : calling a Sort routine for each Entity would - //! cost more resources than to work in once using a Map - //! RootResult takes in account the Direct status + + //! Returns the list of local roots. + //! It is redefined for a purpose of efficiency: + //! calling a Sort routine for each Entity would cost more resources + //! than to work in once using a Map RootResult takes in account the Direct status. Standard_EXPORT virtual Interface_EntityIterator RootResult (const Interface_Graph& G) const Standard_OVERRIDE; - + //! Returns always True, because RootResult has done work Standard_EXPORT Standard_Boolean Sort (const Standard_Integer rank, const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const Standard_OVERRIDE; //! Returns a text defining the criterium : "Local Root Entities" Standard_EXPORT TCollection_AsciiString ExtractLabel() const Standard_OVERRIDE; - - - DEFINE_STANDARD_RTTIEXT(IFSelect_SelectRoots,IFSelect_SelectExtract) protected: - //! Returns True, because RootResult assures uniqueness Standard_EXPORT virtual Standard_Boolean HasUniqueResult() const Standard_OVERRIDE; - - -private: - - - - }; - - - - - - #endif // _IFSelect_SelectRoots_HeaderFile diff --git a/src/IFSelect/IFSelect_Selection.hxx b/src/IFSelect/IFSelect_Selection.hxx index 0365345af1..4cda578515 100644 --- a/src/IFSelect/IFSelect_Selection.hxx +++ b/src/IFSelect/IFSelect_Selection.hxx @@ -28,37 +28,35 @@ class Interface_Graph; class IFSelect_SelectionIterator; class TCollection_AsciiString; - class IFSelect_Selection; DEFINE_STANDARD_HANDLE(IFSelect_Selection, Standard_Transient) //! A Selection allows to define a set of Interface Entities. //! Entities to be put on an output file should be identified in -//! a way as independant from such or such execution as possible. +//! a way as independent from such or such execution as possible. //! This permits to handle comprehensive criteria, and to replay //! them when a new variant of an input file has to be processed. //! //! Its input can be, either an Interface Model (the very source), -//! or another-other Selection(s) or any other ouput. All list -//! computations start from an input Graph (from IFGraph) +//! or another-other Selection(s) or any other output. +//! All list computations start from an input Graph (from IFGraph) class IFSelect_Selection : public Standard_Transient { public: - //! Returns the list of selected entities, computed from Input //! given as a Graph. Specific to each class of Selection //! Note that uniqueness of each entity is not required here //! This method can raise an exception as necessary Standard_EXPORT virtual Interface_EntityIterator RootResult (const Interface_Graph& G) const = 0; - - //! Returns the list of selected entities, each of them beeing + + //! Returns the list of selected entities, each of them being //! unique. Default definition works from RootResult. According //! HasUniqueResult, UniqueResult returns directly RootResult, //! or build a Unique Result from it with a Graph. Standard_EXPORT Interface_EntityIterator UniqueResult (const Interface_Graph& G) const; - + //! Returns the list of entities involved by a Selection, i.e. //! UniqueResult plus the shared entities (directly or not) Standard_EXPORT virtual Interface_EntityIterator CompleteResult (const Interface_Graph& G) const; @@ -73,32 +71,15 @@ public: //! Specific to each class Standard_EXPORT virtual TCollection_AsciiString Label() const = 0; - - - DEFINE_STANDARD_RTTIEXT(IFSelect_Selection,Standard_Transient) protected: - //! Returns True if RootResult guarantees uniqueness for each //! Entity. Called by UniqueResult. //! Default answer is False. Can be redefined. Standard_EXPORT virtual Standard_Boolean HasUniqueResult() const; - - -private: - - - - }; - - - - - - #endif // _IFSelect_Selection_HeaderFile diff --git a/src/IFSelect/IFSelect_SelectionIterator.hxx b/src/IFSelect/IFSelect_SelectionIterator.hxx index 58d679db79..bf09ddf218 100644 --- a/src/IFSelect/IFSelect_SelectionIterator.hxx +++ b/src/IFSelect/IFSelect_SelectionIterator.hxx @@ -28,7 +28,6 @@ class Standard_NoSuchObject; class IFSelect_Selection; - //! Defines an Iterator on a list of Selections class IFSelect_SelectionIterator { @@ -36,7 +35,6 @@ public: DEFINE_STANDARD_ALLOC - //! Creates an empty iterator, ready to be filled Standard_EXPORT IFSelect_SelectionIterator(); @@ -60,34 +58,16 @@ public: //! Sets iterator to the next item Standard_EXPORT void Next(); - - //! Returns the current Selction beeing iterated + + //! Returns the current Selection being iterated //! Error if count of Selection has been passed Standard_EXPORT const Handle(IFSelect_Selection)& Value() const; - - - -protected: - - - - - private: - - Standard_Integer thecurr; Handle(IFSelect_HSeqOfSelection) thelist; - }; - - - - - - #endif // _IFSelect_SelectionIterator_HeaderFile diff --git a/src/IFSelect/IFSelect_SessionFile.cxx b/src/IFSelect/IFSelect_SessionFile.cxx index cbbdfb02bc..98bd57b777 100644 --- a/src/IFSelect/IFSelect_SessionFile.cxx +++ b/src/IFSelect/IFSelect_SessionFile.cxx @@ -544,20 +544,20 @@ static int deja = 0; DeclareAndCast(IFSelect_SelectExtract,sxt,sel); if (!sxt.IsNull()) { if (nbs > 1) - sout<<"Lineno."<SetInput(source); } DeclareAndCast(IFSelect_SelectDeduct,sdt,sel); if (!sdt.IsNull()) { if (nbs > 1) - sout<<"Lineno."<SetInput(GetCasted(IFSelect_Selection,ItemValue(3))); } DeclareAndCast(IFSelect_SelectControl,sct,sel); if (!sct.IsNull()) { if (nbs != 2) - sout<<"Lineno."<SetMainInput (GetCasted(IFSelect_Selection,ItemValue(3))); sct->SetSecondInput (GetCasted(IFSelect_Selection,ItemValue(4))); } diff --git a/src/IFSelect/IFSelect_SessionFile.hxx b/src/IFSelect/IFSelect_SessionFile.hxx index 46f13a7b6a..6e40a07f05 100644 --- a/src/IFSelect/IFSelect_SessionFile.hxx +++ b/src/IFSelect/IFSelect_SessionFile.hxx @@ -34,7 +34,6 @@ class IFSelect_WorkSession; class TCollection_AsciiString; class Standard_Transient; - //! A SessionFile is intended to manage access between a //! WorkSession and an Ascii Form, to be considered as a Dump. //! It allows to write the File from the WorkSession, and later @@ -46,7 +45,7 @@ class Standard_Transient; //! It is possible to cumulate reading of several Files. But in //! case of Names conflict, the newer Names are forgottens. //! -//! The Dump supports the description of XSTEP functionnalities +//! The Dump supports the description of XSTEP functionalities //! (Sharing an Interface File, with Selections, Dispatches, //! Modifiers ...) but does not refer to the Interface File //! which is currently loaded. @@ -71,7 +70,6 @@ public: DEFINE_STANDARD_ALLOC - //! Creates a SessionFile, ready to read Files in order to load //! them into a given WorkSession. //! The following Read Operations must then be called. @@ -188,26 +186,25 @@ public: //! in order to be used by the method ItemValue //! commands to make active or not in the session Standard_EXPORT void AddItem (const Handle(Standard_Transient)& item, const Standard_Boolean active = Standard_True); - - //! Returns True if the last Read or Write operation has been - //! corectly performed. ELse returns False. + + //! Returns True if the last Read or Write operation has been correctly performed. + //! Else returns False. Standard_EXPORT Standard_Boolean IsDone() const; - + //! Returns the WorkSession on which a SessionFile works. //! Remark that it is returned as Immutable. Standard_EXPORT Handle(IFSelect_WorkSession) WorkSession() const; - + //! At beginning of writing an Item, writes its basics : //! - either its name in the session if it has one - //! - or its relative number of item in the file, else - //! (preceeded by a '_') + //! - or its relative number of item in the file, else (preceded by a '_') //! - then, its Dynamic Type (in the sense of cdl : pk_class) //! This basic description can be followed by the parameters //! which are used in the definition of the item. Standard_EXPORT void NewItem (const Standard_Integer ident, const Handle(Standard_Transient)& par); - + //! Sets Parameters to be sent as Own if is True (their - //! Name or Number or Void Mark or Text Value is preceeded by a + //! Name or Number or Void Mark or Text Value is preceded by a //! Column sign ':') else they are sent normally //! Hence, the Own Parameter are clearly identified in the File Standard_EXPORT void SetOwn (const Standard_Boolean mode); @@ -216,15 +213,15 @@ public: //! i.e. a Parameter which is present but undefined //! Its form will be the dollar sign : $ Standard_EXPORT void SendVoid(); - + //! During a Write action, commands to send the identification of //! a Parameter : if it is Null (undefined) it is send as Void ($) - //! if it is Named in the WorkSession, its Name is sent preceeded - //! by ':', else a relative Ident Number is sent preceeded by '#' + //! if it is Named in the WorkSession, its Name is sent preceded + //! by ':', else a relative Ident Number is sent preceded by '#' //! (relative to the present Write, i.e. starting at one, without //! skip, and counted part from Named Items) Standard_EXPORT void SendItem (const Handle(Standard_Transient)& par); - + //! During a Write action, commands to send a Text without //! interpretation. It will be sent as well Standard_EXPORT void SendText (const Standard_CString text); @@ -233,15 +230,15 @@ public: //! followed by the Fist Own Parameter of the item. //! Used by SessionFile after reading general parameters. Standard_EXPORT void SetLastGeneral (const Standard_Integer lastgen); - - //! During a Read operation, SessionFile processes sequencially - //! the Items to read. For each one, it gives access to the list + + //! During a Read operation, SessionFile processes sequentially the Items to read. + //! For each one, it gives access to the list //! of its Parameters : they were defined by calls to //! SendVoid/SendParam/SendText during Writing the File. //! NbParams returns the count of Parameters for the line //! currently read. Standard_EXPORT Standard_Integer NbParams() const; - + //! Returns True if a Parameter, given its rank in the Own List //! (see NbOwnParams), is Void. Returns also True if is //! out of range (undefined parameters) @@ -271,24 +268,16 @@ public: Destroy(); } - - - protected: - - Handle(IFSelect_WorkSession) thesess; Handle(TColStd_HArray1OfInteger) thenums; NCollection_DataMap thenames; Standard_Integer thenl; TColStd_SequenceOfAsciiString theline; - private: - - Standard_Boolean themode; TColStd_SequenceOfAsciiString thelist; TCollection_AsciiString thebuff; @@ -297,13 +286,6 @@ private: Standard_Boolean theownflag; Standard_Integer thenewnum; - }; - - - - - - #endif // _IFSelect_SessionFile_HeaderFile diff --git a/src/IFSelect/IFSelect_SessionPilot.hxx b/src/IFSelect/IFSelect_SessionPilot.hxx index 8ae9599621..e6a16ad441 100644 --- a/src/IFSelect/IFSelect_SessionPilot.hxx +++ b/src/IFSelect/IFSelect_SessionPilot.hxx @@ -36,13 +36,12 @@ class IFSelect_WorkLibrary; class TCollection_AsciiString; class IFSelect_SignCounter; - class IFSelect_SessionPilot; DEFINE_STANDARD_HANDLE(IFSelect_SessionPilot, IFSelect_Activator) -//! A SessionPilot is intended to make easier the use of a -//! WorkSession. It receives commands, under alphanumeric form, -//! then calls a library of Activators to interprete and run them. +//! A SessionPilot is intended to make easier the use of a WorkSession. +//! It receives commands, under alphanumeric form, +//! then calls a library of Activators to interpret and run them. //! //! Then, WorkSession just records data required to work : //! Rules for Selection, Dispatch ... ; File Data (InterfaceModel @@ -78,7 +77,6 @@ class IFSelect_SessionPilot : public IFSelect_Activator public: - //! Creates an empty SessionPilot, with a prompt which will be //! displayed on querying commands. If not precised (""), this //! prompt is set to "Test-XSTEP>" @@ -210,19 +208,10 @@ public: //! Help for specific commands (apart from general command help) Standard_EXPORT Standard_CString Help (const Standard_Integer number) const Standard_OVERRIDE; - - - DEFINE_STANDARD_RTTIEXT(IFSelect_SessionPilot,IFSelect_Activator) -protected: - - - - private: - Handle(IFSelect_WorkSession) thesession; TCollection_AsciiString theprompt; TCollection_AsciiString thecommand; @@ -234,13 +223,6 @@ private: Handle(Standard_Transient) theobjrec; TColStd_SequenceOfAsciiString thecomlist; - }; - - - - - - #endif // _IFSelect_SessionPilot_HeaderFile diff --git a/src/IFSelect/IFSelect_ShareOut.hxx b/src/IFSelect/IFSelect_ShareOut.hxx index 558c753d53..ff0732170f 100644 --- a/src/IFSelect/IFSelect_ShareOut.hxx +++ b/src/IFSelect/IFSelect_ShareOut.hxx @@ -34,7 +34,6 @@ class IFSelect_GeneralModifier; class IFSelect_Modifier; class TCollection_AsciiString; - class IFSelect_ShareOut; DEFINE_STANDARD_HANDLE(IFSelect_ShareOut, Standard_Transient) @@ -66,7 +65,6 @@ class IFSelect_ShareOut : public Standard_Transient public: - //! Creates an empty ShareOut Standard_EXPORT IFSelect_ShareOut(); @@ -94,10 +92,10 @@ public: //! Returns the rank of last run item (ClearResult resets it to 0) Standard_EXPORT Standard_Integer LastRun() const; - - //! Records a new alue for the rank of last run item + + //! Records a new value for the rank of last run item Standard_EXPORT void SetLastRun (const Standard_Integer last); - + //! Returns the count of Dispatches Standard_EXPORT Standard_Integer NbDispatches() const; @@ -226,19 +224,11 @@ public: //! Error if no Root is defined for this Standard_EXPORT TCollection_AsciiString FileName (const Standard_Integer dnum, const Standard_Integer pnum, const Standard_Integer nbpack = 0); - - - DEFINE_STANDARD_RTTIEXT(IFSelect_ShareOut,Standard_Transient) -protected: - - - private: - IFSelect_TSeqOfDispatch thedisps; IFSelect_SequenceOfGeneralModifier themodelmodifiers; IFSelect_SequenceOfGeneralModifier thefilemodifiers; @@ -248,13 +238,6 @@ private: Standard_Integer thenbdefs; Standard_Integer thelastrun; - }; - - - - - - #endif // _IFSelect_ShareOut_HeaderFile diff --git a/src/IFSelect/IFSelect_ShareOutResult.hxx b/src/IFSelect/IFSelect_ShareOutResult.hxx index 334873326d..5ff1848b60 100644 --- a/src/IFSelect/IFSelect_ShareOutResult.hxx +++ b/src/IFSelect/IFSelect_ShareOutResult.hxx @@ -36,7 +36,6 @@ class IFSelect_PacketList; class Interface_EntityIterator; class TCollection_AsciiString; - //! This class gives results computed from a ShareOut : simulation //! before transfer, helps to list entities ... //! Transfer itself will later be performed, either by a @@ -48,7 +47,6 @@ public: DEFINE_STANDARD_ALLOC - //! Creates a ShareOutResult from a ShareOut, to work on a Model //! (without any more precision; uses Active Protocol) Standard_EXPORT IFSelect_ShareOutResult(const Handle(IFSelect_ShareOut)& sho, const Handle(Interface_InterfaceModel)& mod); @@ -86,17 +84,17 @@ public: //! Called the first time anyone question is asked, or after a //! call to Reset. Works by calling the method Prepare. Standard_EXPORT void Evaluate(); - + //! Returns the list of recorded Packets, under two modes : //! - = False, the strict definition of Packets, i.e. - //! for each one, the Root Entities, to be explicitely sent + //! for each one, the Root Entities, to be explicitly sent //! - = True (Default), the completely evaluated list, //! i.e. which really gives the destination of each entity : //! this mode allows to evaluate duplications //! Remark that to send packets, iteration remains preferable //! (file names are managed) Standard_EXPORT Handle(IFSelect_PacketList) Packets (const Standard_Boolean complete = Standard_True); - + //! Returns the total count of produced non empty packets //! (in out : calls Evaluate as necessary) Standard_EXPORT Standard_Integer NbPackets(); @@ -152,21 +150,13 @@ public: //! the returned value is Null Standard_EXPORT TCollection_AsciiString FileName() const; - - - protected: - - Interface_Graph thegraph; IFGraph_SubPartsIterator thedispres; - private: - - Handle(IFSelect_ShareOut) theshareout; Handle(IFSelect_Dispatch) thedispatch; Standard_Boolean theeval; @@ -176,13 +166,6 @@ private: Standard_Integer thenbindisp; TColStd_SequenceOfInteger thedisplist; - }; - - - - - - #endif // _IFSelect_ShareOutResult_HeaderFile diff --git a/src/IFSelect/IFSelect_SignCounter.hxx b/src/IFSelect/IFSelect_SignCounter.hxx index 2d719d4af5..342d0893ba 100644 --- a/src/IFSelect/IFSelect_SignCounter.hxx +++ b/src/IFSelect/IFSelect_SignCounter.hxx @@ -33,7 +33,6 @@ class Interface_InterfaceModel; class Interface_Graph; class TCollection_HAsciiString; - class IFSelect_SignCounter; DEFINE_STANDARD_HANDLE(IFSelect_SignCounter, IFSelect_SignatureList) @@ -61,16 +60,14 @@ class IFSelect_SignCounter : public IFSelect_SignatureList public: - //! Creates a SignCounter, without proper Signature //! If is True (default), added entities are counted //! only if they are not yet recorded in the map - //! Map control can be set off if the input garantees uniqueness - //! of data + //! Map control can be set off if the input guarantees uniqueness of data //! is transmitted to SignatureList (option to list //! entities, not only to count them). Standard_EXPORT IFSelect_SignCounter(const Standard_Boolean withmap = Standard_True, const Standard_Boolean withlist = Standard_False); - + //! Creates a SignCounter, with a predefined Signature //! Other arguments as for Create without Signature. Standard_EXPORT IFSelect_SignCounter(const Handle(IFSelect_Signature)& matcher, const Standard_Boolean withmap = Standard_True, const Standard_Boolean withlist = Standard_False); @@ -110,11 +107,11 @@ public: //! Adds the result determined by a Selection from a Graph //! Remark : does not impact at all data from SetSelection & Co Standard_EXPORT void AddFromSelection (const Handle(IFSelect_Selection)& sel, const Interface_Graph& G); - + //! Sets a Selection as input : this causes content to be cleared - //! then the Selection to be ready to compute (but not immediatly) + //! then the Selection to be ready to compute (but not immediately) Standard_EXPORT void SetSelection (const Handle(IFSelect_Selection)& sel); - + //! Returns the selection, or a null Handle Standard_EXPORT Handle(IFSelect_Selection) Selection() const; @@ -154,19 +151,10 @@ public: //! call, the returned value is LastValue Standard_EXPORT Standard_CString ComputedSign (const Handle(Standard_Transient)& ent, const Interface_Graph& G); - - - DEFINE_STANDARD_RTTIEXT(IFSelect_SignCounter,IFSelect_SignatureList) -protected: - - - - private: - Standard_Boolean themapstat; TColStd_MapOfTransient themap; Handle(IFSelect_Signature) thematcher; @@ -175,13 +163,6 @@ private: Standard_Integer thenbcomp1; Standard_Integer thenbcomp2; - }; - - - - - - #endif // _IFSelect_SignCounter_HeaderFile diff --git a/src/IFSelect/IFSelect_TransformStandard.hxx b/src/IFSelect/IFSelect_TransformStandard.hxx index 3ca33d2e5b..91da146dae 100644 --- a/src/IFSelect/IFSelect_TransformStandard.hxx +++ b/src/IFSelect/IFSelect_TransformStandard.hxx @@ -35,7 +35,6 @@ class Interface_CopyTool; class Standard_Transient; class TCollection_AsciiString; - class IFSelect_TransformStandard; DEFINE_STANDARD_HANDLE(IFSelect_TransformStandard, IFSelect_Transformer) @@ -69,7 +68,6 @@ class IFSelect_TransformStandard : public IFSelect_Transformer public: - //! Creates a TransformStandard, option StandardCopy, no Modifier Standard_EXPORT IFSelect_TransformStandard(); @@ -130,16 +128,15 @@ public: //! This is the OnTheSpot action : each entity is bound with ... //! itself. The produced model is the same as the starting one. Standard_EXPORT void OnTheSpot (const Interface_Graph& G, Interface_CopyTool& TC, Handle(Interface_InterfaceModel)& newmod) const; - - //! Applies the modifiers sequencially. - //! For each one, prepares required data (if a Selection is - //! associated as a filter). + + //! Applies the modifiers sequentially. + //! For each one, prepares required data (if a Selection is associated as a filter). //! For the option OnTheSpot, it determines if the graph may be //! changed and updates if required //! If a Modifier causes an error (check "HasFailed"), //! ApplyModifier stops : the following Modifiers are ignored Standard_EXPORT Standard_Boolean ApplyModifiers (const Interface_Graph& G, const Handle(Interface_Protocol)& protocol, Interface_CopyTool& TC, Interface_CheckIterator& checks, Handle(Interface_InterfaceModel)& newmod) const; - + //! This methods allows to know what happened to a starting //! entity after the last Perform. It reads result from the map //! which was filled by Perform. @@ -150,31 +147,15 @@ public: //! " Modifiers" Standard_EXPORT TCollection_AsciiString Label() const Standard_OVERRIDE; - - - DEFINE_STANDARD_RTTIEXT(IFSelect_TransformStandard,IFSelect_Transformer) -protected: - - - - private: - Standard_Boolean thecopy; Handle(IFSelect_Selection) thesel; IFSelect_SequenceOfGeneralModifier themodifs; Handle(Interface_CopyControl) themap; - }; - - - - - - #endif // _IFSelect_TransformStandard_HeaderFile diff --git a/src/IFSelect/IFSelect_Transformer.hxx b/src/IFSelect/IFSelect_Transformer.hxx index 5fdb6d4cbe..207f21af4e 100644 --- a/src/IFSelect/IFSelect_Transformer.hxx +++ b/src/IFSelect/IFSelect_Transformer.hxx @@ -29,7 +29,6 @@ class Interface_InterfaceModel; class Standard_Transient; class TCollection_AsciiString; - class IFSelect_Transformer; DEFINE_STANDARD_HANDLE(IFSelect_Transformer, Standard_Transient) @@ -39,18 +38,16 @@ DEFINE_STANDARD_HANDLE(IFSelect_Transformer, Standard_Transient) //! Perform, it can be parametred as needed. //! //! It receives a Model (the data set) as input. It then can : -//! - edit this Model on the spot (i.e. alter its content : by -//! editing entities, or adding/replacing some ...) +//! - edit this Model on the spot +//! (i.e. alter its content: by editing entities, or adding/replacing some ...) //! - produce a copied Model, which detains the needed changes -//! (typically on the same type, but some or all entities beeing -//! rebuilt or converted; or converted from a protocol to -//! another one) +//! (typically on the same type, but some or all entities being +//! rebuilt or converted; or converted from a protocol to another one) class IFSelect_Transformer : public Standard_Transient { public: - //! Performs a Transformation (defined by each sub-class) : //! gives the input data (especially the starting model) and //! can be used for queries (by Selections, etc...) @@ -72,9 +69,9 @@ public: //! memorized if needed, and to store information useful for //! the method Updated //! - //! Returns True if Done, False if an Error occured : in this case, - //! if a new data set has been produced, the transformation - //! is ignored, else data may be corrupted. + //! Returns True if Done, False if an Error occurred: + //! in this case, if a new data set has been produced, the transformation is ignored, + //! else data may be corrupted. Standard_EXPORT virtual Standard_Boolean Perform (const Interface_Graph& G, const Handle(Interface_Protocol)& protocol, Interface_CheckIterator& checks, Handle(Interface_InterfaceModel)& newmod) = 0; //! This methods allows to declare that the Protocol applied to @@ -97,27 +94,9 @@ public: //! (to identify the transformation it performs) Standard_EXPORT virtual TCollection_AsciiString Label() const = 0; - - - DEFINE_STANDARD_RTTIEXT(IFSelect_Transformer,Standard_Transient) -protected: - - - - -private: - - - }; - - - - - - #endif // _IFSelect_Transformer_HeaderFile diff --git a/src/IFSelect/IFSelect_WorkSession.hxx b/src/IFSelect/IFSelect_WorkSession.hxx index f10d40dca3..e1da442570 100644 --- a/src/IFSelect/IFSelect_WorkSession.hxx +++ b/src/IFSelect/IFSelect_WorkSession.hxx @@ -65,7 +65,6 @@ class IFSelect_Transformer; class IFSelect_PacketList; class IFSelect_SignatureList; - class IFSelect_WorkSession; DEFINE_STANDARD_HANDLE(IFSelect_WorkSession, Standard_Transient) @@ -80,7 +79,6 @@ class IFSelect_WorkSession : public Standard_Transient public: - //! Creates a Work Session //! It provides default, empty ShareOut and ModelCopier, which can //! be replaced (if required, should be done just after creation). @@ -100,13 +98,13 @@ public: //! Sets a new ShareOut. Fills Items which its content //! Warning : data from the former ShareOut are lost Standard_EXPORT void SetShareOut (const Handle(IFSelect_ShareOut)& shareout); - - //! Set value of mode responsible for precence of selections after loading + + //! Set value of mode responsible for presence of selections after loading //! If mode set to true that different selections will be accessible after loading - //! else selections will be not accessible after loading( for economy memory in applicatios) + //! else selections will be not accessible after loading( for economy memory in applications) void SetModeStat (const Standard_Boolean theMode) { themodelstat = theMode; } - + //! Return value of mode defining of filling selection during loading Standard_Boolean GetModeStat() const { return themodelstat; } @@ -264,7 +262,7 @@ public: Standard_EXPORT Standard_Boolean IsLoaded() const; //! Computes the CheckList for the Model currently loaded - //! It can then be used for displays, querries ... + //! It can then be used for displays, queries ... //! Returns True if OK, False else (i.e. no Protocol set, or Model //! absent). If is False, works only if not already done //! or if a new Model has been loaded from last call. @@ -313,7 +311,7 @@ public: Standard_EXPORT Handle(Standard_Transient) NamedItem (const Standard_CString name) const; //! Same as above, but is given through a Handle - //! Especially Usefull with methods SelectionNames, etc... + //! Especially useful with methods SelectionNames, etc... Standard_EXPORT Handle(Standard_Transient) NamedItem (const Handle(TCollection_HAsciiString)& name) const; //! Returns the Ident attached to a Name, 0 if name not recorded @@ -581,7 +579,7 @@ public: //! Returns the Rank of a Modifier given its Ident. Model or File //! Modifier according its type (ModelModifier or not) - //! Remember that Modifiers are applied sequencially following + //! Remember that Modifiers are applied sequentially following //! their Rank : first Model Modifiers then File Modifiers //! Rank is given by rank of call to AddItem and can be //! changed by ChangeModifierRank @@ -812,8 +810,7 @@ public: //! Returns a status of execution : //! Done if OK, //! Void if no data available, - //! Error if errors occured (work library is not defined), errors - //! during translation + //! Error if errors occurred (work library is not defined), errors during translation //! Fail if exception during translation is raised //! Stop if no disk space or disk, file is write protected //! Fills LastRunCheckList @@ -884,7 +881,7 @@ public: //! 0 if is not kind of SelectCombine, or if or //! is not in the WorkSession //! By default, adding is done at the end of the list - //! Else, it is an insertion to rank (usefull for Un-ReDo) + //! Else, it is an insertion to rank (useful for Un-ReDo) Standard_EXPORT Standard_Integer CombineAdd (const Handle(IFSelect_Selection)& selcomb, const Handle(IFSelect_Selection)& seladd, const Standard_Integer atnum = 0); //! Removes an input selection from a SelectCombine (Union or @@ -926,7 +923,7 @@ public: //! if is the name of a Selection in , and //! not defined, the standard result of this Selection //! else, let's consider "first second" : this whole phrase is - //! splitted by blanks, as follows (RECURSIVE CALL) : + //! split by blanks, as follows (RECURSIVE CALL) : //! - the leftest term is the final selection //! - the other terms define the result of the selection //! - and so on (the "leftest minus one" is a selection, of which @@ -934,15 +931,15 @@ public: Standard_EXPORT Handle(TColStd_HSequenceOfTransient) GiveList (const Standard_CString first, const Standard_CString second = "") const; //! Computes a List of entities from the model as follows - //! beeing a Selection or a combination of Selections, - //! beeing an entity or a list + //! being a Selection or a combination of Selections, + //! being an entity or a list //! of entities (as a HSequenceOfTransient) : //! the standard result of this selection applied to this list //! if is Null, the standard definition of the selection is //! used (which contains a default input selection) //! if is erroneous, a null handle is returned //! - //! REMARK : selname is processed as of preceeding + //! REMARK : selname is processed as of preceding //! GiveList Standard_EXPORT Handle(TColStd_HSequenceOfTransient) GiveListFromList (const Standard_CString selname, const Handle(Standard_Transient)& ent) const; diff --git a/src/IGESAppli/IGESAppli_GeneralModule.cxx b/src/IGESAppli/IGESAppli_GeneralModule.cxx index 873c63a18a..bce49e74ba 100644 --- a/src/IGESAppli/IGESAppli_GeneralModule.cxx +++ b/src/IGESAppli/IGESAppli_GeneralModule.cxx @@ -64,7 +64,7 @@ IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_GeneralModule,IGESData_GeneralModule) -// Each Module is attached to a Protocol : it must interprete Case Numbers +// Each Module is attached to a Protocol : it must interpret Case Numbers // (arguments of various methods) in accordance to values returned by // the method TypeNumber from this Protocol IGESAppli_GeneralModule::IGESAppli_GeneralModule () { } diff --git a/src/IGESAppli/IGESAppli_ReadWriteModule.cxx b/src/IGESAppli/IGESAppli_ReadWriteModule.cxx index 8a3f85a503..1f9c037903 100644 --- a/src/IGESAppli/IGESAppli_ReadWriteModule.cxx +++ b/src/IGESAppli/IGESAppli_ReadWriteModule.cxx @@ -61,7 +61,7 @@ IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_ReadWriteModule,IGESData_ReadWriteModule) -// Each Module is attached to a Protocol : it must interprete Case Numbers +// Each Module is attached to a Protocol : it must interpret Case Numbers // (arguments of various methods) in accordance to values returned by // the method TypeNumber from this Protocol IGESAppli_ReadWriteModule::IGESAppli_ReadWriteModule () { } diff --git a/src/IGESAppli/IGESAppli_SpecificModule.cxx b/src/IGESAppli/IGESAppli_SpecificModule.cxx index 3c82890a67..d136d67dce 100644 --- a/src/IGESAppli/IGESAppli_SpecificModule.cxx +++ b/src/IGESAppli/IGESAppli_SpecificModule.cxx @@ -59,7 +59,7 @@ IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_SpecificModule,IGESData_SpecificModule) -// Each Module is attached to a Protocol : it must interprete Case Numbers +// Each Module is attached to a Protocol : it must interpret Case Numbers // (arguments of various methods) in accordance to values returned by // the method TypeNumber from this Protocol IGESAppli_SpecificModule::IGESAppli_SpecificModule() { } diff --git a/src/IGESBasic/IGESBasic.cxx b/src/IGESBasic/IGESBasic.cxx index 601a043cf9..19ccf1e364 100644 --- a/src/IGESBasic/IGESBasic.cxx +++ b/src/IGESBasic/IGESBasic.cxx @@ -30,7 +30,7 @@ static Handle(IGESBasic_Protocol) protocol; void IGESBasic::Init () { - IGESData::Init(); // usefull for Undefined Type or Erroneous Entities + IGESData::Init(); // useful for Undefined Type or Erroneous Entities if (protocol.IsNull()) { protocol = new IGESBasic_Protocol; Interface_GeneralLib::SetGlobal (new IGESBasic_GeneralModule, protocol); diff --git a/src/IGESBasic/IGESBasic_GeneralModule.cxx b/src/IGESBasic/IGESBasic_GeneralModule.cxx index 8f144ddee9..f6dbdab81f 100644 --- a/src/IGESBasic/IGESBasic_GeneralModule.cxx +++ b/src/IGESBasic/IGESBasic_GeneralModule.cxx @@ -58,7 +58,7 @@ IMPLEMENT_STANDARD_RTTIEXT(IGESBasic_GeneralModule,IGESData_GeneralModule) -// Each Module is attached to a Protocol : it must interprete Case Numbers +// Each Module is attached to a Protocol : it must interpret Case Numbers // (arguments of various methods) in accordance to values returned by // the method TypeNumber from this Protocol IGESBasic_GeneralModule::IGESBasic_GeneralModule () { } diff --git a/src/IGESBasic/IGESBasic_ReadWriteModule.cxx b/src/IGESBasic/IGESBasic_ReadWriteModule.cxx index eb5dfdd79c..f174d13ae4 100644 --- a/src/IGESBasic/IGESBasic_ReadWriteModule.cxx +++ b/src/IGESBasic/IGESBasic_ReadWriteModule.cxx @@ -55,7 +55,7 @@ IMPLEMENT_STANDARD_RTTIEXT(IGESBasic_ReadWriteModule,IGESData_ReadWriteModule) -// Each Module is attached to a Protocol : it must interprete Case Numbers +// Each Module is attached to a Protocol : it must interpret Case Numbers // (arguments of various methods) in accordance to values returned by // the method TypeNumber from this Protocol IGESBasic_ReadWriteModule::IGESBasic_ReadWriteModule () { } diff --git a/src/IGESBasic/IGESBasic_SpecificModule.cxx b/src/IGESBasic/IGESBasic_SpecificModule.cxx index 92c9d16c28..0aba6b73bb 100644 --- a/src/IGESBasic/IGESBasic_SpecificModule.cxx +++ b/src/IGESBasic/IGESBasic_SpecificModule.cxx @@ -53,7 +53,7 @@ IMPLEMENT_STANDARD_RTTIEXT(IGESBasic_SpecificModule,IGESData_SpecificModule) -// Each Module is attached to a Protocol : it must interprete Case Numbers +// Each Module is attached to a Protocol : it must interpret Case Numbers // (arguments of various methods) in accordance to values returned by // the method TypeNumber from this Protocol IGESBasic_SpecificModule::IGESBasic_SpecificModule() { } diff --git a/src/IGESControl/IGESControl_IGESBoundary.cxx b/src/IGESControl/IGESControl_IGESBoundary.cxx index 9a4a54b8bf..12106ba106 100644 --- a/src/IGESControl/IGESControl_IGESBoundary.cxx +++ b/src/IGESControl/IGESControl_IGESBoundary.cxx @@ -13,17 +13,6 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//06.01.99 pdn renaming ShapeFix_Wire::FixLittle to ShapeFix_Wire::FixSmall -//:n1 abv 20.01.99: BUC60328.rle (loopback): call FixSmall with Max(1.,preci) -//smh #1 11.03.99 PRO15640/15641, szv#2 PRO17393: call FixSameParameter after BuildCurve3d -//#74 rln 10.03.99 S4135: handling use of BRepLib::SameParameter by new static parameter -// pdn 18.03.99 S4135: using mintol instead of resolution from IGES file -// pdn 18.03.99 S4135: projecting with resolution from IGES file. -//%14 pdn 06.03.99 implementing fixFace in IGES -// S4135 pdn improvements in using of stdsameparameter flag -//#21 gka 12.04.99 CSR UKI60998 entities number - 13, 24 lost of boundaries during translation of tabulated cylinders -//S4181 pdn 15.04.99 implementing of reading IGES elementary surfaces. (instead of shift, reverce and -//scale factors the transformation matrix and scale factor used) #include #include diff --git a/src/IGESControl/IGESControl_IGESBoundary.hxx b/src/IGESControl/IGESControl_IGESBoundary.hxx index 8fff40b5b1..838508b2d7 100644 --- a/src/IGESControl/IGESControl_IGESBoundary.hxx +++ b/src/IGESControl/IGESControl_IGESBoundary.hxx @@ -27,7 +27,6 @@ class IGESToBRep_CurveAndSurface; class IGESData_IGESEntity; class ShapeExtend_WireData; - class IGESControl_IGESBoundary; DEFINE_STANDARD_HANDLE(IGESControl_IGESBoundary, IGESToBRep_IGESBoundary) @@ -40,13 +39,12 @@ class IGESControl_IGESBoundary : public IGESToBRep_IGESBoundary public: - - //! Creates an object and calls inherited constuctor. + //! Creates an object and calls inherited constructor. Standard_EXPORT IGESControl_IGESBoundary(); - - //! Creates an object and calls inherited constuctor. + + //! Creates an object and calls inherited constructor. Standard_EXPORT IGESControl_IGESBoundary(const IGESToBRep_CurveAndSurface& CS); - + //! Checks result of translation of IGES boundary entities //! (types 141, 142 or 508). //! Checks consistency of 2D and 3D representations and keeps @@ -56,29 +54,12 @@ public: //! wire to contain only closed representation. Standard_EXPORT virtual void Check (const Standard_Boolean result, const Standard_Boolean checkclosure, const Standard_Boolean okCurve3d, const Standard_Boolean okCurve2d) Standard_OVERRIDE; - - - DEFINE_STANDARD_RTTIEXT(IGESControl_IGESBoundary,IGESToBRep_IGESBoundary) protected: - Standard_EXPORT virtual Standard_Boolean Transfer (Standard_Boolean& okCurve, Standard_Boolean& okCurve3d, Standard_Boolean& okCurve2d, const Handle(IGESData_IGESEntity)& icurve3d, const Handle(ShapeExtend_WireData)& scurve3d, const Standard_Boolean usescurve, const Standard_Boolean toreverse3d, const Handle(IGESData_HArray1OfIGESEntity)& curves2d, const Standard_Boolean toreverse2d, const Standard_Integer number, Handle(ShapeExtend_WireData)& lsewd) Standard_OVERRIDE; - - -private: - - - - }; - - - - - - #endif // _IGESControl_IGESBoundary_HeaderFile diff --git a/src/IGESData/IGESData.cxx b/src/IGESData/IGESData.cxx index fa23835976..fd0a585335 100644 --- a/src/IGESData/IGESData.cxx +++ b/src/IGESData/IGESData.cxx @@ -96,9 +96,9 @@ static Handle(IGESData_DefaultSpecific) speci; Interface_Static::Init ("XSTEP","read.iges.resource.name",'t',"IGES"); Interface_Static::Init ("XSTEP","write.iges.sequence",'t',"ToIGES"); Interface_Static::Init ("XSTEP","read.iges.sequence",'t',"FromIGES"); - - // sln 11.06.2002 OCC448 : Initialize "read.onlyvisible" parameter to control transfering - // invisiable sub entities which logicaly depend on the grouping entities + + // sln 11.06.2002 OCC448 : Initialize "read.onlyvisible" parameter to control transferring + // invisible sub entities which logically depend on the grouping entities Interface_Static::Init ("XSTEP","read.iges.onlyvisible",'e',""); Interface_Static::Init ("XSTEP","read.iges.onlyvisible",'&',"ematch 0"); Interface_Static::Init ("XSTEP","read.iges.onlyvisible",'&',"eval Off"); diff --git a/src/IGESData/IGESData_DefSwitch.hxx b/src/IGESData/IGESData_DefSwitch.hxx index 661dda3bda..19ac25467a 100644 --- a/src/IGESData/IGESData_DefSwitch.hxx +++ b/src/IGESData/IGESData_DefSwitch.hxx @@ -24,10 +24,9 @@ #include #include - //! description of a directory component which can be either //! undefined (let Void), defined as a Reference to an entity, -//! or as a Rank, integer value adressing a builtin table +//! or as a Rank, integer value addressing a builtin table //! The entity reference is not included here, only reference //! status is kept (because entity type must be adapted) class IGESData_DefSwitch @@ -36,7 +35,6 @@ public: DEFINE_STANDARD_ALLOC - //! creates a DefSwitch as Void Standard_EXPORT IGESData_DefSwitch(); @@ -55,28 +53,10 @@ public: //! returns Value as Integer (sensefull for a Rank) Standard_EXPORT Standard_Integer Value() const; - - - -protected: - - - - - private: - - Standard_Integer theval; - }; - - - - - - #endif // _IGESData_DefSwitch_HeaderFile diff --git a/src/IGESData/IGESData_DirPart.hxx b/src/IGESData/IGESData_DirPart.hxx index e9c671f8e5..6fe8348730 100644 --- a/src/IGESData/IGESData_DirPart.hxx +++ b/src/IGESData/IGESData_DirPart.hxx @@ -26,22 +26,19 @@ #include class IGESData_IGESType; - -//! literal/numeric description of an entity's directory section, -//! taken from file +//! literal/numeric description of an entity's directory section, taken from file class IGESData_DirPart { public: DEFINE_STANDARD_ALLOC - //! creates an empty DirPart, ready to be filled by Init Standard_EXPORT IGESData_DirPart(); - - //! fills DirPart with consistant data read from file + + //! fills DirPart with consistent data read from file Standard_EXPORT void Init (const Standard_Integer i1, const Standard_Integer i2, const Standard_Integer i3, const Standard_Integer i4, const Standard_Integer i5, const Standard_Integer i6, const Standard_Integer i7, const Standard_Integer i8, const Standard_Integer i9, const Standard_Integer i19, const Standard_Integer i11, const Standard_Integer i12, const Standard_Integer i13, const Standard_Integer i14, const Standard_Integer i15, const Standard_Integer i16, const Standard_Integer i17, const Standard_CString res1, const Standard_CString res2, const Standard_CString label, const Standard_CString subscript); - + //! returns values recorded in DirPart //! (content of cstrings are modified) Standard_EXPORT void Values (Standard_Integer& i1, Standard_Integer& i2, Standard_Integer& i3, Standard_Integer& i4, Standard_Integer& i5, Standard_Integer& i6, Standard_Integer& i7, Standard_Integer& i8, Standard_Integer& i9, Standard_Integer& i19, Standard_Integer& i11, Standard_Integer& i12, Standard_Integer& i13, Standard_Integer& i14, Standard_Integer& i15, Standard_Integer& i16, Standard_Integer& i17, const Standard_CString res1, const Standard_CString res2, const Standard_CString label, const Standard_CString subscript) const; @@ -49,32 +46,14 @@ public: //! returns "type" and "form" info, used to recognize the entity Standard_EXPORT IGESData_IGESType Type() const; - - - -protected: - - - - - private: - - Standard_Integer thevals[17]; Standard_Character theres1[10]; Standard_Character theres2[10]; Standard_Character thelabl[10]; Standard_Character thesubs[10]; - }; - - - - - - #endif // _IGESData_DirPart_HeaderFile diff --git a/src/IGESData/IGESData_Dump.hxx b/src/IGESData/IGESData_Dump.hxx index b6d48716f6..fbbacbf0a4 100644 --- a/src/IGESData/IGESData_Dump.hxx +++ b/src/IGESData/IGESData_Dump.hxx @@ -25,7 +25,7 @@ // ############################################################### // Macros to help Dumping Parts of IGES Entities -// (for usefull and repetitive cases but which apply to different classes +// (for useful and repetitive cases but which apply to different classes // but with similar signatures, such as Arrays) // Remember that the class IGESDumper processes itself individual dump of // IGESEntity diff --git a/src/IGESData/IGESData_FileProtocol.hxx b/src/IGESData/IGESData_FileProtocol.hxx index c1eaf7481d..dfe7726808 100644 --- a/src/IGESData/IGESData_FileProtocol.hxx +++ b/src/IGESData/IGESData_FileProtocol.hxx @@ -25,21 +25,18 @@ class IGESData_Protocol; class Interface_Protocol; - class IGESData_FileProtocol; DEFINE_STANDARD_HANDLE(IGESData_FileProtocol, IGESData_Protocol) //! This class allows to define complex protocols, in order to //! treat various sub-sets (or the complete set) of the IGES Norm, -//! such as Solid + Draw (which are normally independant), etc... -//! While it inherits Protocol from IGESData, it admits -//! UndefinedEntity too +//! such as Solid + Draw (which are normally independent), etc... +//! While it inherits Protocol from IGESData, it admits UndefinedEntity too class IGESData_FileProtocol : public IGESData_Protocol { public: - //! Returns an empty FileProtocol Standard_EXPORT IGESData_FileProtocol(); @@ -52,29 +49,13 @@ public: //! Returns a Resource, given a rank (rank of call to Add) Standard_EXPORT virtual Handle(Interface_Protocol) Resource (const Standard_Integer num) const Standard_OVERRIDE; - - - DEFINE_STANDARD_RTTIEXT(IGESData_FileProtocol,IGESData_Protocol) -protected: - - - - private: - Handle(IGESData_Protocol) theresource; Handle(IGESData_FileProtocol) thenext; - }; - - - - - - #endif // _IGESData_FileProtocol_HeaderFile diff --git a/src/IGESData/IGESData_GlobalNodeOfSpecificLib.hxx b/src/IGESData/IGESData_GlobalNodeOfSpecificLib.hxx index e9db7ad2af..b96b9b32d5 100644 --- a/src/IGESData/IGESData_GlobalNodeOfSpecificLib.hxx +++ b/src/IGESData/IGESData_GlobalNodeOfSpecificLib.hxx @@ -27,26 +27,23 @@ class IGESData_IGESEntity; class IGESData_SpecificLib; class IGESData_NodeOfSpecificLib; - class IGESData_GlobalNodeOfSpecificLib; DEFINE_STANDARD_HANDLE(IGESData_GlobalNodeOfSpecificLib, Standard_Transient) - class IGESData_GlobalNodeOfSpecificLib : public Standard_Transient { public: - //! Creates an empty GlobalNode, with no Next Standard_EXPORT IGESData_GlobalNodeOfSpecificLib(); - + //! Adds a Module bound with a Protocol to the list : does //! nothing if already in the list, THAT IS, Same Type (exact //! match) and Same State (that is, IsEqual is not required) - //! Once added, stores its attached Protocol in correspondance + //! Once added, stores its attached Protocol in correspondence Standard_EXPORT void Add (const Handle(IGESData_SpecificModule)& amodule, const Handle(IGESData_Protocol)& aprotocol); - + //! Returns the Module stored in a given GlobalNode Standard_EXPORT const Handle(IGESData_SpecificModule)& Module() const; @@ -57,30 +54,14 @@ public: //! value is a Null Handle Standard_EXPORT const Handle(IGESData_GlobalNodeOfSpecificLib)& Next() const; - - - DEFINE_STANDARD_RTTI_INLINE(IGESData_GlobalNodeOfSpecificLib,Standard_Transient) -protected: - - - - private: - Handle(IGESData_SpecificModule) themod; Handle(IGESData_Protocol) theprot; Handle(IGESData_GlobalNodeOfSpecificLib) thenext; - }; - - - - - - #endif // _IGESData_GlobalNodeOfSpecificLib_HeaderFile diff --git a/src/IGESData/IGESData_GlobalNodeOfWriterLib.hxx b/src/IGESData/IGESData_GlobalNodeOfWriterLib.hxx index cea9c9c7f3..5bbcd7fb49 100644 --- a/src/IGESData/IGESData_GlobalNodeOfWriterLib.hxx +++ b/src/IGESData/IGESData_GlobalNodeOfWriterLib.hxx @@ -27,26 +27,23 @@ class IGESData_IGESEntity; class IGESData_WriterLib; class IGESData_NodeOfWriterLib; - class IGESData_GlobalNodeOfWriterLib; DEFINE_STANDARD_HANDLE(IGESData_GlobalNodeOfWriterLib, Standard_Transient) - class IGESData_GlobalNodeOfWriterLib : public Standard_Transient { public: - //! Creates an empty GlobalNode, with no Next Standard_EXPORT IGESData_GlobalNodeOfWriterLib(); - - //! Adds a Module bound with a Protocol to the list : does - //! nothing if already in the list, THAT IS, Same Type (exact - //! match) and Same State (that is, IsEqual is not required) - //! Once added, stores its attached Protocol in correspondance + + //! Adds a Module bound with a Protocol to the list: + //! does nothing if already in the list, + //! THAT IS, Same Type (exact match) and Same State (that is, IsEqual is not required). + //! Once added, stores its attached Protocol in correspondence Standard_EXPORT void Add (const Handle(IGESData_ReadWriteModule)& amodule, const Handle(IGESData_Protocol)& aprotocol); - + //! Returns the Module stored in a given GlobalNode Standard_EXPORT const Handle(IGESData_ReadWriteModule)& Module() const; @@ -57,30 +54,14 @@ public: //! value is a Null Handle Standard_EXPORT const Handle(IGESData_GlobalNodeOfWriterLib)& Next() const; - - - DEFINE_STANDARD_RTTI_INLINE(IGESData_GlobalNodeOfWriterLib,Standard_Transient) -protected: - - - - private: - Handle(IGESData_ReadWriteModule) themod; Handle(IGESData_Protocol) theprot; Handle(IGESData_GlobalNodeOfWriterLib) thenext; - }; - - - - - - #endif // _IGESData_GlobalNodeOfWriterLib_HeaderFile diff --git a/src/IGESData/IGESData_GlobalSection.hxx b/src/IGESData/IGESData_GlobalSection.hxx index 2d5fe47d5e..29bb832b99 100644 --- a/src/IGESData/IGESData_GlobalSection.hxx +++ b/src/IGESData/IGESData_GlobalSection.hxx @@ -30,7 +30,6 @@ class Interface_ParamSet; class Interface_Check; class gp_XYZ; - //! Description of a global section (corresponds to file header) //! used as well in IGESModel, IGESReader and IGESWriter //! Warning : From IGES-5.1, a parameter is added : LastChangeDate (concerns @@ -52,12 +51,12 @@ public: //! undefined parameters do not change default values when defined //! Fills Check about Corrections or Fails Standard_EXPORT void Init (const Handle(Interface_ParamSet)& params, Handle(Interface_Check)& ach); - + //! Copies data referenced by Handle (that is, Strings) - //! usefull to "isolate" a GlobalSection after copy by "=" + //! useful to "isolate" a GlobalSection after copy by "=" //! (from a Model to another Model for instance) Standard_EXPORT void CopyRefs(); - + //! Returns all contained data in the form of a ParamSet //! Remark : Strings are given under Hollerith form Standard_EXPORT Handle(Interface_ParamSet) Params() const; diff --git a/src/IGESData/IGESData_IGESDumper.hxx b/src/IGESData/IGESData_IGESDumper.hxx index 5a15457e2f..08b863ac0f 100644 --- a/src/IGESData/IGESData_IGESDumper.hxx +++ b/src/IGESData/IGESData_IGESDumper.hxx @@ -32,7 +32,7 @@ class IGESData_IGESEntity; //! (distinct from normalized output). It works with tools //! attached to Entities, as for normalized Reade and Write //! -//! For each Entity, displaying data is splitted in own data +//! For each Entity, displaying data is split in own data //! (specific to each type) and other attached data, which are //! defined for all IGES Types (either from "Directory Entry" or //! from Lists of Associativities and Properties) @@ -43,11 +43,11 @@ public: DEFINE_STANDARD_ALLOC - //! Returns an IGESDumper ready to work. The IGESModel provides - //! the numbering of Entities : as for any InterfaceModel, it - //! gives each Entity a number; but for IGESEntities, the "Number - //! of Directory Entry" according to the definition of IGES Files, - //! is also usefull + //! Returns an IGESDumper ready to work. + //! The IGESModel provides the numbering of Entities: + //! as for any InterfaceModel, it gives each Entity a number; + //! but for IGESEntities, the "Number of Directory Entry" + //! according to the definition of IGES Files, is also useful. Standard_EXPORT IGESData_IGESDumper(const Handle(IGESData_IGESModel)& model, const Handle(IGESData_Protocol)& protocol); //! Prints onto an output, the "Number of Directory Entry" which @@ -66,29 +66,11 @@ public: //! is the parameter from Dump Standard_EXPORT void OwnDump (const Handle(IGESData_IGESEntity)& ent, Standard_OStream& S, const Standard_Integer own) const; - - - -protected: - - - - - private: - - Handle(IGESData_IGESModel) themodel; IGESData_SpecificLib thelib; - }; - - - - - - #endif // _IGESData_IGESDumper_HeaderFile diff --git a/src/IGESData/IGESData_IGESEntity.hxx b/src/IGESData/IGESData_IGESEntity.hxx index afe98206e3..55d222f025 100644 --- a/src/IGESData/IGESData_IGESEntity.hxx +++ b/src/IGESData/IGESData_IGESEntity.hxx @@ -53,7 +53,7 @@ class IGESData_IGESEntity; DEFINE_STANDARD_HANDLE(IGESData_IGESEntity, Standard_Transient) //! defines root of IGES Entity definition, including Directory -//! Part, lists of (optionnal) Properties and Associativities +//! Part, lists of (optional) Properties and Associativities class IGESData_IGESEntity : public Standard_Transient { @@ -335,7 +335,7 @@ friend class IGESData_DirChecker; protected: - //! prepares lists of optionnal data, set values to defaults + //! prepares lists of optional data, set values to defaults Standard_EXPORT IGESData_IGESEntity(); //! Initializes Type and Form Numbers to new values. Reserved for diff --git a/src/IGESData/IGESData_IGESReaderData.hxx b/src/IGESData/IGESData_IGESReaderData.hxx index 71ac9d06dc..4e99fdbd06 100644 --- a/src/IGESData/IGESData_IGESReaderData.hxx +++ b/src/IGESData/IGESData_IGESReaderData.hxx @@ -44,7 +44,7 @@ DEFINE_STANDARD_HANDLE(IGESData_IGESReaderData, Interface_FileReaderData) //! contains header as GlobalSection, and for each Entity, its //! directory part as DirPart, list of Parameters as ParamSet //! Each Item has a DirPart, plus classically a ParamSet and the -//! correspondant recognized Entity (inherited from FileReaderData) +//! correspondent recognized Entity (inherited from FileReaderData) //! Parameters are accessed through specific objects, ParamReaders class IGESData_IGESReaderData : public Interface_FileReaderData { diff --git a/src/IGESData/IGESData_IGESType.hxx b/src/IGESData/IGESData_IGESType.hxx index 2723675b2e..54d7122f33 100644 --- a/src/IGESData/IGESData_IGESType.hxx +++ b/src/IGESData/IGESData_IGESType.hxx @@ -51,7 +51,7 @@ Standard_Boolean operator == (const IGESData_IGESType& another) const return IsEqual(another); } - //! resets fields (usefull when an IGESType is stored as mask) + //! resets fields (useful when an IGESType is stored as mask) Standard_EXPORT void Nullify(); diff --git a/src/IGESData/IGESData_IGESWriter.hxx b/src/IGESData/IGESData_IGESWriter.hxx index 33a86ad791..16518d2253 100644 --- a/src/IGESData/IGESData_IGESWriter.hxx +++ b/src/IGESData/IGESData_IGESWriter.hxx @@ -75,7 +75,7 @@ public: //! 0 (D) : Normal IGES, 10 : FNES Standard_EXPORT Standard_Integer& WriteMode(); - //! Sends an additionnal Starting Line : this is the way used to + //! Sends an additional Starting Line : this is the way used to //! send comments in an IGES File (at beginning of the file). //! If the line is more than 72 char.s long, it is splited into //! as many lines as required to send it completely @@ -174,7 +174,7 @@ public: //! Writes result on an output defined as an OStream //! resolves stored infos at this time; in particular, numbers of - //! lines used to adress P-section from D-section and final totals + //! lines used to address P-section from D-section and final totals //! Takes WriteMode into account Standard_EXPORT Standard_Boolean Print (Standard_OStream& S) const; diff --git a/src/IGESData/IGESData_ParamCursor.hxx b/src/IGESData/IGESData_ParamCursor.hxx index 6ba7005696..a14e16f8fe 100644 --- a/src/IGESData/IGESData_ParamCursor.hxx +++ b/src/IGESData/IGESData_ParamCursor.hxx @@ -77,7 +77,7 @@ public: //! (that is, skip "item size" - "term size") //! //! In addition, Offset from beginning of Item is managed : - //! After being created, and for the frist call to SetTerm, the + //! After being created, and for the first call to SetTerm, the //! part of Item to be read begins exactly as the Item begins //! But after a SetTerm, the next read will add an offset which is //! the size of former term. diff --git a/src/IGESData/IGESData_ParamReader.hxx b/src/IGESData/IGESData_ParamReader.hxx index 25c864aa10..1787347d27 100644 --- a/src/IGESData/IGESData_ParamReader.hxx +++ b/src/IGESData/IGESData_ParamReader.hxx @@ -80,7 +80,7 @@ public: //! parameter : it can be ended by two lists (Associativities and //! Properties), which can be empty, or even absent. Hence, it is //! necessary to know, at the end of specific reading, how many - //! parameters have been read : the optionnal lists follow + //! parameters have been read : the optional lists follow Standard_EXPORT Standard_Integer CurrentNumber() const; //! sets current parameter number to a new value @@ -302,7 +302,7 @@ public: //! If "ord" is given True (default), entities will be added to //! the list in their original order //! Remark : Negative or Null Pointers are ignored - //! Else ("ord" False), order is not garanteed (faster mode) + //! Else ("ord" False), order is not guaranteed (faster mode) //! If all params cannot be read as Entities, same as above //! Warning Give "ord" to False ONLY if order is not significant Standard_EXPORT Standard_Boolean ReadEntList (const Handle(IGESData_IGESReaderData)& IR, const IGESData_ParamCursor& PC, const Standard_CString mess, Interface_EntityList& val, const Standard_Boolean ord = Standard_True); diff --git a/src/IGESData/IGESData_Protocol.hxx b/src/IGESData/IGESData_Protocol.hxx index 54497254c6..f37de80536 100644 --- a/src/IGESData/IGESData_Protocol.hxx +++ b/src/IGESData/IGESData_Protocol.hxx @@ -33,7 +33,7 @@ class IGESData_Protocol; DEFINE_STANDARD_HANDLE(IGESData_Protocol, Interface_Protocol) //! Description of basic Protocol for IGES -//! This comprises treatement of IGESModel and Recognition of +//! This comprises treatment of IGESModel and Recognition of //! Undefined-FreeFormat-Entity class IGESData_Protocol : public Interface_Protocol { diff --git a/src/IGESData/IGESData_ToolLocation.hxx b/src/IGESData/IGESData_ToolLocation.hxx index 00499c426e..4192eb2293 100644 --- a/src/IGESData/IGESData_ToolLocation.hxx +++ b/src/IGESData/IGESData_ToolLocation.hxx @@ -141,7 +141,7 @@ public: //! Calls ConvertLocation (see below) Standard_EXPORT Standard_Boolean AnalyseLocation (const gp_GTrsf& loc, gp_Trsf& result) const; - //! Convertion of a Location, from GTrsf form to Trsf form + //! Conversion of a Location, from GTrsf form to Trsf form //! Works with a precision given as argument. //! Returns True if the Conversion is possible, (hence, //! contains the converted location), False else diff --git a/src/IGESDefs/IGESDefs_AttributeTable.hxx b/src/IGESDefs/IGESDefs_AttributeTable.hxx index a830114849..2ae71a9aae 100644 --- a/src/IGESDefs/IGESDefs_AttributeTable.hxx +++ b/src/IGESDefs/IGESDefs_AttributeTable.hxx @@ -38,7 +38,7 @@ DEFINE_STANDARD_HANDLE(IGESDefs_AttributeTable, IGESData_IGESEntity) //! defines IGES Attribute Table, Type <422> Form <0, 1> //! in package IGESDefs -//! This class is used to represent an occurence of +//! This class is used to represent an occurrence of //! Attribute Table. This Class may be independent //! or dependent or pointed at by other Entities. class IGESDefs_AttributeTable : public IGESData_IGESEntity diff --git a/src/IGESDefs/IGESDefs_GeneralModule.cxx b/src/IGESDefs/IGESDefs_GeneralModule.cxx index f87e672e95..ca93a5d001 100644 --- a/src/IGESDefs/IGESDefs_GeneralModule.cxx +++ b/src/IGESDefs/IGESDefs_GeneralModule.cxx @@ -40,7 +40,7 @@ IMPLEMENT_STANDARD_RTTIEXT(IGESDefs_GeneralModule,IGESData_GeneralModule) -// Each Module is attached to a Protocol : it must interprete Case Numbers +// Each Module is attached to a Protocol : it must interpret Case Numbers // (arguments of various methods) in accordance to values returned by // the method TypeNumber from this Protocol IGESDefs_GeneralModule::IGESDefs_GeneralModule () { } diff --git a/src/IGESDefs/IGESDefs_ReadWriteModule.cxx b/src/IGESDefs/IGESDefs_ReadWriteModule.cxx index 845fa9715b..58e1940be5 100644 --- a/src/IGESDefs/IGESDefs_ReadWriteModule.cxx +++ b/src/IGESDefs/IGESDefs_ReadWriteModule.cxx @@ -37,7 +37,7 @@ IMPLEMENT_STANDARD_RTTIEXT(IGESDefs_ReadWriteModule,IGESData_ReadWriteModule) -// Each Module is attached to a Protocol : it must interprete Case Numbers +// Each Module is attached to a Protocol : it must interpret Case Numbers // (arguments of various methods) in accordance to values returned by // the method TypeNumber from this Protocol IGESDefs_ReadWriteModule::IGESDefs_ReadWriteModule () { } diff --git a/src/IGESDefs/IGESDefs_SpecificModule.cxx b/src/IGESDefs/IGESDefs_SpecificModule.cxx index eb76d8cbf7..89c6364280 100644 --- a/src/IGESDefs/IGESDefs_SpecificModule.cxx +++ b/src/IGESDefs/IGESDefs_SpecificModule.cxx @@ -34,7 +34,7 @@ IMPLEMENT_STANDARD_RTTIEXT(IGESDefs_SpecificModule,IGESData_SpecificModule) -// Each Module is attached to a Protocol : it must interprete Case Numbers +// Each Module is attached to a Protocol : it must interpret Case Numbers // (arguments of various methods) in accordance to values returned by // the method TypeNumber from this Protocol IGESDefs_SpecificModule::IGESDefs_SpecificModule() { } diff --git a/src/IGESDefs/IGESDefs_ToolTabularData.cxx b/src/IGESDefs/IGESDefs_ToolTabularData.cxx index 4be7ee6dfd..c187b69283 100644 --- a/src/IGESDefs/IGESDefs_ToolTabularData.cxx +++ b/src/IGESDefs/IGESDefs_ToolTabularData.cxx @@ -114,7 +114,7 @@ void IGESDefs_ToolTabularData::ReadOwnParams somedeps->SetValue(i, treal); } if (nbDeps > 0) valuesDep->SetValue(1,somedeps); - else PR.AddWarning("Some Real remain while no dependent vakue is defined"); + else PR.AddWarning("Some Real remain while no dependent value is defined"); nbProps = PR.CurrentNumber() - 2; /* for (;;) { @@ -123,7 +123,7 @@ void IGESDefs_ToolTabularData::ReadOwnParams if (PR.ParamType(curnum) != Interface_ParamReal) break; PR.SetCurrentNumber (curnum+1); } */ - PR.AddWarning("Don't know exactly how to read dependant values ..."); + PR.AddWarning("Don't know exactly how to read dependent values ..."); // ?? a eclaircir DirChecker(ent).CheckTypeAndForm(PR.CCheck(),ent); ent->Init (nbProps, propType, typesInd, nbValuesInd, valuesInd, valuesDep); diff --git a/src/IGESDimen/IGESDimen_AngularDimension.hxx b/src/IGESDimen/IGESDimen_AngularDimension.hxx index 57b35476f6..7f12af97c2 100644 --- a/src/IGESDimen/IGESDimen_AngularDimension.hxx +++ b/src/IGESDimen/IGESDimen_AngularDimension.hxx @@ -73,10 +73,10 @@ public: //! returns the Second Witness Line Entity or Null Handle. Standard_EXPORT Handle(IGESDimen_WitnessLine) SecondWitnessLine() const; - //! returns the co-ordinates of the Vertex point as Pnt2d from gp. + //! returns the coordinates of the Vertex point as Pnt2d from gp. Standard_EXPORT gp_Pnt2d Vertex() const; - //! returns the co-ordinates of the Vertex point as Pnt2d from gp + //! returns the coordinates of the Vertex point as Pnt2d from gp //! after Transformation. (Z = 0.0 for Transformation) Standard_EXPORT gp_Pnt2d TransformedVertex() const; diff --git a/src/IGESDimen/IGESDimen_DiameterDimension.hxx b/src/IGESDimen/IGESDimen_DiameterDimension.hxx index 9b8224ac56..1fd75ec44b 100644 --- a/src/IGESDimen/IGESDimen_DiameterDimension.hxx +++ b/src/IGESDimen/IGESDimen_DiameterDimension.hxx @@ -63,10 +63,10 @@ public: //! returns the Second Leader Entity Standard_EXPORT Handle(IGESDimen_LeaderArrow) SecondLeader() const; - //! returns the Arc Center co-ordinates as Pnt2d from package gp + //! returns the Arc Center coordinates as Pnt2d from package gp Standard_EXPORT gp_Pnt2d Center() const; - //! returns the Arc Center co-ordinates as Pnt2d from package gp + //! returns the Arc Center coordinates as Pnt2d from package gp //! after Transformation. (Z = 0.0 for Transformation) Standard_EXPORT gp_Pnt2d TransformedCenter() const; diff --git a/src/IGESDimen/IGESDimen_GeneralModule.cxx b/src/IGESDimen/IGESDimen_GeneralModule.cxx index 493c9f9c06..35dd928001 100644 --- a/src/IGESDimen/IGESDimen_GeneralModule.cxx +++ b/src/IGESDimen/IGESDimen_GeneralModule.cxx @@ -72,7 +72,7 @@ IMPLEMENT_STANDARD_RTTIEXT(IGESDimen_GeneralModule,IGESData_GeneralModule) -// Each Module is attached to a Protocol : it must interprete Case Numbers +// Each Module is attached to a Protocol : it must interpret Case Numbers // (arguments of various methods) in accordance to values returned by // the method TypeNumber from this Protocol IGESDimen_GeneralModule::IGESDimen_GeneralModule () { } diff --git a/src/IGESDimen/IGESDimen_LeaderArrow.hxx b/src/IGESDimen/IGESDimen_LeaderArrow.hxx index 6e218c8979..8b1fe24a0d 100644 --- a/src/IGESDimen/IGESDimen_LeaderArrow.hxx +++ b/src/IGESDimen/IGESDimen_LeaderArrow.hxx @@ -72,17 +72,17 @@ public: //! returns Z depth Standard_EXPORT Standard_Real ZDepth() const; - //! returns ArrowHead co-ordinates + //! returns ArrowHead coordinates Standard_EXPORT gp_Pnt2d ArrowHead() const; - //! returns ArrowHead co-ordinates after Transformation + //! returns ArrowHead coordinates after Transformation Standard_EXPORT gp_Pnt TransformedArrowHead() const; - //! returns segment tail co-ordinates. + //! returns segment tail coordinates. //! raises exception if Index <= 0 or Index > NbSegments Standard_EXPORT gp_Pnt2d SegmentTail (const Standard_Integer Index) const; - //! returns segment tail co-ordinates after Transformation. + //! returns segment tail coordinates after Transformation. //! raises exception if Index <= 0 or Index > NbSegments Standard_EXPORT gp_Pnt TransformedSegmentTail (const Standard_Integer Index) const; diff --git a/src/IGESDimen/IGESDimen_ReadWriteModule.cxx b/src/IGESDimen/IGESDimen_ReadWriteModule.cxx index b3e0ec9d64..6c1c6be7d0 100644 --- a/src/IGESDimen/IGESDimen_ReadWriteModule.cxx +++ b/src/IGESDimen/IGESDimen_ReadWriteModule.cxx @@ -69,7 +69,7 @@ IMPLEMENT_STANDARD_RTTIEXT(IGESDimen_ReadWriteModule,IGESData_ReadWriteModule) -// Each Module is attached to a Protocol : it must interprete Case Numbers +// Each Module is attached to a Protocol : it must interpret Case Numbers // (arguments of various methods) in accordance to values returned by // the method TypeNumber from this Protocol IGESDimen_ReadWriteModule::IGESDimen_ReadWriteModule () { } diff --git a/src/IGESDimen/IGESDimen_SpecificModule.cxx b/src/IGESDimen/IGESDimen_SpecificModule.cxx index 0fd7dfaf52..184674b0c8 100644 --- a/src/IGESDimen/IGESDimen_SpecificModule.cxx +++ b/src/IGESDimen/IGESDimen_SpecificModule.cxx @@ -67,7 +67,7 @@ IMPLEMENT_STANDARD_RTTIEXT(IGESDimen_SpecificModule,IGESData_SpecificModule) -// Each Module is attached to a Protocol : it must interprete Case Numbers +// Each Module is attached to a Protocol : it must interpret Case Numbers // (arguments of various methods) in accordance to values returned by // the method TypeNumber from this Protocol IGESDimen_SpecificModule::IGESDimen_SpecificModule() { } diff --git a/src/IGESDraw/IGESDraw_GeneralModule.cxx b/src/IGESDraw/IGESDraw_GeneralModule.cxx index 7de22dfd8c..bb0cca64a8 100644 --- a/src/IGESDraw/IGESDraw_GeneralModule.cxx +++ b/src/IGESDraw/IGESDraw_GeneralModule.cxx @@ -54,7 +54,7 @@ IMPLEMENT_STANDARD_RTTIEXT(IGESDraw_GeneralModule,IGESData_GeneralModule) -// Each Module is attached to a Protocol : it must interprete Case Numbers +// Each Module is attached to a Protocol : it must interpret Case Numbers // (arguments of various methods) in accordance to values returned by // the method TypeNumber from this Protocol IGESDraw_GeneralModule::IGESDraw_GeneralModule () { } diff --git a/src/IGESDraw/IGESDraw_ReadWriteModule.cxx b/src/IGESDraw/IGESDraw_ReadWriteModule.cxx index c34ae1cc1a..3412944792 100644 --- a/src/IGESDraw/IGESDraw_ReadWriteModule.cxx +++ b/src/IGESDraw/IGESDraw_ReadWriteModule.cxx @@ -51,7 +51,7 @@ IMPLEMENT_STANDARD_RTTIEXT(IGESDraw_ReadWriteModule,IGESData_ReadWriteModule) -// Each Module is attached to a Protocol : it must interprete Case Numbers +// Each Module is attached to a Protocol : it must interpret Case Numbers // (arguments of various methods) in accordance to values returned by // the method TypeNumber from this Protocol IGESDraw_ReadWriteModule::IGESDraw_ReadWriteModule () { } diff --git a/src/IGESDraw/IGESDraw_SpecificModule.cxx b/src/IGESDraw/IGESDraw_SpecificModule.cxx index c825e096ca..fb4d24d5b9 100644 --- a/src/IGESDraw/IGESDraw_SpecificModule.cxx +++ b/src/IGESDraw/IGESDraw_SpecificModule.cxx @@ -48,7 +48,7 @@ IMPLEMENT_STANDARD_RTTIEXT(IGESDraw_SpecificModule,IGESData_SpecificModule) -// Each Module is attached to a Protocol : it must interprete Case Numbers +// Each Module is attached to a Protocol : it must interpret Case Numbers // (arguments of various methods) in accordance to values returned by // the method TypeNumber from this Protocol IGESDraw_SpecificModule::IGESDraw_SpecificModule() { } diff --git a/src/IGESFile/liriges.c b/src/IGESFile/liriges.c index 8aa063add8..827fb28385 100644 --- a/src/IGESFile/liriges.c +++ b/src/IGESFile/liriges.c @@ -50,7 +50,7 @@ int iges_lire (FILE* lefic, int *numsec, char ligne[100], int modefnes) } else { - /* PTV: 21.03.2002 it is neccessary for files that have only `\r` but no `\n` + /* PTV: 21.03.2002 it is necessary for files that have only `\r` but no `\n` examle file is 919-001-T02-04-CP-VL.iges */ while ( fgets ( ligne, 2, lefic ) && ( ligne[0] == '\r' || ligne[0] == '\n' ) ) { @@ -116,7 +116,7 @@ int iges_lire (FILE* lefic, int *numsec, char ligne[100], int modefnes) /* the column 72 is empty, try to check the neighbour*/ if(strlen(ligne)==80 && (ligne[79]=='\n' || ligne[79]=='\r') && (ligne[0]<='9' && ligne[0]>='0')) { - /*check if the case of losted .*/ + /*check in case of loss.*/ int index; for(index = 1; ligne[index]<='9' && ligne[index]>='0'; index++); if (ligne[index]=='D' || ligne[index]=='d') { diff --git a/src/IGESGeom/IGESGeom_GeneralModule.cxx b/src/IGESGeom/IGESGeom_GeneralModule.cxx index e6b95ef829..f7a887ea7d 100644 --- a/src/IGESGeom/IGESGeom_GeneralModule.cxx +++ b/src/IGESGeom/IGESGeom_GeneralModule.cxx @@ -72,7 +72,7 @@ IMPLEMENT_STANDARD_RTTIEXT(IGESGeom_GeneralModule,IGESData_GeneralModule) -// Each Module is attached to a Protocol : it must interprete Case Numbers +// Each Module is attached to a Protocol : it must interpret Case Numbers // (arguments of various methods) in accordance to values returned by // the method TypeNumber from this Protocol IGESGeom_GeneralModule::IGESGeom_GeneralModule () { } diff --git a/src/IGESGeom/IGESGeom_Point.hxx b/src/IGESGeom/IGESGeom_Point.hxx index 8f3a43a6ee..a8ea847c89 100644 --- a/src/IGESGeom/IGESGeom_Point.hxx +++ b/src/IGESGeom/IGESGeom_Point.hxx @@ -47,10 +47,10 @@ public: //! display symbol if there exists one, or zero Standard_EXPORT void Init (const gp_XYZ& aPoint, const Handle(IGESBasic_SubfigureDef)& aSymbol); - //! returns co-ordinates of the point + //! returns coordinates of the point Standard_EXPORT gp_Pnt Value() const; - //! returns co-ordinates of the point after applying Transf. Matrix + //! returns coordinates of the point after applying Transf. Matrix Standard_EXPORT gp_Pnt TransformedValue() const; //! returns True if symbol exists diff --git a/src/IGESGeom/IGESGeom_ReadWriteModule.cxx b/src/IGESGeom/IGESGeom_ReadWriteModule.cxx index d99d7c61f9..3c2c143dd0 100644 --- a/src/IGESGeom/IGESGeom_ReadWriteModule.cxx +++ b/src/IGESGeom/IGESGeom_ReadWriteModule.cxx @@ -69,7 +69,7 @@ IMPLEMENT_STANDARD_RTTIEXT(IGESGeom_ReadWriteModule,IGESData_ReadWriteModule) -// Each Module is attached to a Protocol : it must interprete Case Numbers +// Each Module is attached to a Protocol : it must interpret Case Numbers // (arguments of various methods) in accordance to values returned by // the method TypeNumber from this Protocol IGESGeom_ReadWriteModule::IGESGeom_ReadWriteModule () { } diff --git a/src/IGESGeom/IGESGeom_SpecificModule.cxx b/src/IGESGeom/IGESGeom_SpecificModule.cxx index b04c562311..3f97407003 100644 --- a/src/IGESGeom/IGESGeom_SpecificModule.cxx +++ b/src/IGESGeom/IGESGeom_SpecificModule.cxx @@ -66,7 +66,7 @@ IMPLEMENT_STANDARD_RTTIEXT(IGESGeom_SpecificModule,IGESData_SpecificModule) -// Each Module is attached to a Protocol : it must interprete Case Numbers +// Each Module is attached to a Protocol : it must interpret Case Numbers // (arguments of various methods) in accordance to values returned by // the method TypeNumber from this Protocol IGESGeom_SpecificModule::IGESGeom_SpecificModule() { } diff --git a/src/IGESGeom/IGESGeom_SplineSurface.hxx b/src/IGESGeom/IGESGeom_SplineSurface.hxx index 1898f47b21..3df76ae517 100644 --- a/src/IGESGeom/IGESGeom_SplineSurface.hxx +++ b/src/IGESGeom/IGESGeom_SplineSurface.hxx @@ -106,7 +106,7 @@ public: Standard_EXPORT Handle(TColStd_HArray1OfReal) ZPolynomial (const Standard_Integer anIndex1, const Standard_Integer anIndex2) const; //! returns in one all the polynomial values "in bulk" - //! usefull for massive treatements + //! useful for massive treatments Standard_EXPORT void Polynomials (Handle(IGESBasic_HArray2OfHArray1OfReal)& XCoef, Handle(IGESBasic_HArray2OfHArray1OfReal)& YCoef, Handle(IGESBasic_HArray2OfHArray1OfReal)& ZCoef) const; diff --git a/src/IGESGeom/IGESGeom_ToolTransformationMatrix.cxx b/src/IGESGeom/IGESGeom_ToolTransformationMatrix.cxx index 549023ae02..fb35ebf9fb 100644 --- a/src/IGESGeom/IGESGeom_ToolTransformationMatrix.cxx +++ b/src/IGESGeom/IGESGeom_ToolTransformationMatrix.cxx @@ -183,7 +183,7 @@ void IGESGeom_ToolTransformationMatrix::OwnCheck Message_Msg Msg71("XSTEP_71"); ach->SendFail(Msg71); } -// Theses messages are transferred in the translation procedure +// These messages are transferred in the translation procedure /* if (form > 1) return; // ce qui suit : matrice orthogonale if (form == 0 && ent->Value().IsNegative()) diff --git a/src/IGESGeom/IGESGeom_TransformationMatrix.hxx b/src/IGESGeom/IGESGeom_TransformationMatrix.hxx index 5db8bd3428..f52684d266 100644 --- a/src/IGESGeom/IGESGeom_TransformationMatrix.hxx +++ b/src/IGESGeom/IGESGeom_TransformationMatrix.hxx @@ -60,7 +60,7 @@ public: Standard_EXPORT void SetFormNumber (const Standard_Integer form); //! returns individual Data - //! Errro if I not in [1-3] or J not in [1-4] + //! Error if I not in [1-3] or J not in [1-4] Standard_EXPORT Standard_Real Data (const Standard_Integer I, const Standard_Integer J) const; //! returns the transformation matrix diff --git a/src/IGESGraph/IGESGraph_GeneralModule.cxx b/src/IGESGraph/IGESGraph_GeneralModule.cxx index bb559c968a..696fc7f0e1 100644 --- a/src/IGESGraph/IGESGraph_GeneralModule.cxx +++ b/src/IGESGraph/IGESGraph_GeneralModule.cxx @@ -54,7 +54,7 @@ IMPLEMENT_STANDARD_RTTIEXT(IGESGraph_GeneralModule,IGESData_GeneralModule) -// Each Module is attached to a Protocol : it must interprete Case Numbers +// Each Module is attached to a Protocol : it must interpret Case Numbers // (arguments of various methods) in accordance to values returned by // the method TypeNumber from this Protocol IGESGraph_GeneralModule::IGESGraph_GeneralModule () { } diff --git a/src/IGESGraph/IGESGraph_ReadWriteModule.cxx b/src/IGESGraph/IGESGraph_ReadWriteModule.cxx index 0a8a939c51..997f43d69e 100644 --- a/src/IGESGraph/IGESGraph_ReadWriteModule.cxx +++ b/src/IGESGraph/IGESGraph_ReadWriteModule.cxx @@ -51,7 +51,7 @@ IMPLEMENT_STANDARD_RTTIEXT(IGESGraph_ReadWriteModule,IGESData_ReadWriteModule) -// Each Module is attached to a Protocol : it must interprete Case Numbers +// Each Module is attached to a Protocol : it must interpret Case Numbers // (arguments of various methods) in accordance to values returned by // the method TypeNumber from this Protocol IGESGraph_ReadWriteModule::IGESGraph_ReadWriteModule () { } diff --git a/src/IGESGraph/IGESGraph_SpecificModule.cxx b/src/IGESGraph/IGESGraph_SpecificModule.cxx index 5b52244b7f..2998a690d9 100644 --- a/src/IGESGraph/IGESGraph_SpecificModule.cxx +++ b/src/IGESGraph/IGESGraph_SpecificModule.cxx @@ -49,7 +49,7 @@ IMPLEMENT_STANDARD_RTTIEXT(IGESGraph_SpecificModule,IGESData_SpecificModule) -// Each Module is attached to a Protocol : it must interprete Case Numbers +// Each Module is attached to a Protocol : it must interpret Case Numbers // (arguments of various methods) in accordance to values returned by // the method TypeNumber from this Protocol IGESGraph_SpecificModule::IGESGraph_SpecificModule() { } diff --git a/src/IGESGraph/IGESGraph_ToolNominalSize.cxx b/src/IGESGraph/IGESGraph_ToolNominalSize.cxx index b7a7d71fc6..69ed53aeb2 100644 --- a/src/IGESGraph/IGESGraph_ToolNominalSize.cxx +++ b/src/IGESGraph/IGESGraph_ToolNominalSize.cxx @@ -81,7 +81,7 @@ void IGESGraph_ToolNominalSize::WriteOwnParams IW.Send( ent->NominalSizeName() ); if (ent->HasStandardName() ) - IW.Send( ent->StandardName() ); // optionnal + IW.Send( ent->StandardName() ); // optional } void IGESGraph_ToolNominalSize::OwnShared diff --git a/src/IGESSelect/IGESSelect.hxx b/src/IGESSelect/IGESSelect.hxx index 79ccf82cfc..b62c5fbf7c 100644 --- a/src/IGESSelect/IGESSelect.hxx +++ b/src/IGESSelect/IGESSelect.hxx @@ -89,8 +89,8 @@ public: //! Gives a quick analysis of an IGES Entity in the context of a //! model (i.e. a File) described by a Graph. //! Returned values are : - //! : the most meaningfull super entity, if any (else Null) - //! : meaningfull index relating to super entity, if any + //! : the most meaningful super entity, if any (else Null) + //! : meaningful index relating to super entity, if any //! : a status which helps exploitation of , by //! giving a case //! (normally, types of and should suffice to diff --git a/src/IGESSelect/IGESSelect_AddFileComment.hxx b/src/IGESSelect/IGESSelect_AddFileComment.hxx index f829277e4d..3cf8aadb19 100644 --- a/src/IGESSelect/IGESSelect_AddFileComment.hxx +++ b/src/IGESSelect/IGESSelect_AddFileComment.hxx @@ -41,7 +41,7 @@ class IGESSelect_AddFileComment : public IGESSelect_FileModifier public: - //! Creates a new emoty AddFileComment. Use AddLine to complete it + //! Creates a new empty AddFileComment. Use AddLine to complete it Standard_EXPORT IGESSelect_AddFileComment(); //! Clears the list of file comment lines already stored diff --git a/src/IGESSelect/IGESSelect_CounterOfLevelNumber.hxx b/src/IGESSelect/IGESSelect_CounterOfLevelNumber.hxx index 75aee4f77e..d5d7989bcf 100644 --- a/src/IGESSelect/IGESSelect_CounterOfLevelNumber.hxx +++ b/src/IGESSelect/IGESSelect_CounterOfLevelNumber.hxx @@ -52,7 +52,7 @@ public: //! i.e. LevelList gives "LEVEL LIST", others (no level or //! positive level) displays level number on 7 digits (C : %7d) //! Remark : an entity attached to a Level List is added for - //! " LEVEL LIST", and for each of its constituant levels + //! " LEVEL LIST", and for each of its constituent levels Standard_EXPORT virtual void AddSign (const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) Standard_OVERRIDE; //! The internal action to record a new level number, positive, diff --git a/src/IGESSelect/IGESSelect_RebuildGroups.hxx b/src/IGESSelect/IGESSelect_RebuildGroups.hxx index 4438ee2482..4105140c53 100644 --- a/src/IGESSelect/IGESSelect_RebuildGroups.hxx +++ b/src/IGESSelect/IGESSelect_RebuildGroups.hxx @@ -34,7 +34,7 @@ DEFINE_STANDARD_HANDLE(IGESSelect_RebuildGroups, IGESSelect_ModelModifier) //! If a set of entities, all put into a same IGESModel, were //! part of a same Group in the starting Model, this Modifier //! rebuilds the original group, but only with the transferred -//! entities. The distinctions (Ordered or not, "WhithoutBackP" +//! entities. The distinctions (Ordered or not, "WithoutBackP" //! or not) are renewed, also the name of the group. //! //! If the Input Selection is present, tries to rebuild groups diff --git a/src/IGESSelect/IGESSelect_SelectBasicGeom.hxx b/src/IGESSelect/IGESSelect_SelectBasicGeom.hxx index ecd97b3a93..5f98ebe97a 100644 --- a/src/IGESSelect/IGESSelect_SelectBasicGeom.hxx +++ b/src/IGESSelect/IGESSelect_SelectBasicGeom.hxx @@ -52,7 +52,7 @@ class IGESSelect_SelectBasicGeom : public IFSelect_SelectExplore public: - //! Creates a SelectBasicGeom, which allways works recursively + //! Creates a SelectBasicGeom, which always works recursively //! mode = -1 : Returns Surfaces (without trimming) //! mode = +1 : Returns Curves 3D (free or bound of surface) //! mode = +2 : Returns Basic Curves 3D : as 1 but CompositeCurves diff --git a/src/IGESSolid/IGESSolid_GeneralModule.cxx b/src/IGESSolid/IGESSolid_GeneralModule.cxx index f625aba084..ed98f4bc9b 100644 --- a/src/IGESSolid/IGESSolid_GeneralModule.cxx +++ b/src/IGESSolid/IGESSolid_GeneralModule.cxx @@ -74,7 +74,7 @@ IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_GeneralModule,IGESData_GeneralModule) -// Each Module is attached to a Protocol : it must interprete Case Numbers +// Each Module is attached to a Protocol : it must interpret Case Numbers // (arguments of various methods) in accordance to values returned by // the method TypeNumber from this Protocol IGESSolid_GeneralModule::IGESSolid_GeneralModule () { } diff --git a/src/IGESSolid/IGESSolid_ReadWriteModule.cxx b/src/IGESSolid/IGESSolid_ReadWriteModule.cxx index 7395dd614f..61954cf8f4 100644 --- a/src/IGESSolid/IGESSolid_ReadWriteModule.cxx +++ b/src/IGESSolid/IGESSolid_ReadWriteModule.cxx @@ -71,7 +71,7 @@ IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_ReadWriteModule,IGESData_ReadWriteModule) -// Each Module is attached to a Protocol : it must interprete Case Numbers +// Each Module is attached to a Protocol : it must interpret Case Numbers // (arguments of various methods) in accordance to values returned by // the method TypeNumber from this Protocol IGESSolid_ReadWriteModule::IGESSolid_ReadWriteModule () { } diff --git a/src/IGESSolid/IGESSolid_SpecificModule.cxx b/src/IGESSolid/IGESSolid_SpecificModule.cxx index e10acb77cb..b2782c5756 100644 --- a/src/IGESSolid/IGESSolid_SpecificModule.cxx +++ b/src/IGESSolid/IGESSolid_SpecificModule.cxx @@ -68,7 +68,7 @@ IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_SpecificModule,IGESData_SpecificModule) -// Each Module is attached to a Protocol : it must interprete Case Numbers +// Each Module is attached to a Protocol : it must interpret Case Numbers // (arguments of various methods) in accordance to values returned by // the method TypeNumber from this Protocol IGESSolid_SpecificModule::IGESSolid_SpecificModule() { } diff --git a/src/IGESSolid/IGESSolid_ToolSelectedComponent.cxx b/src/IGESSolid/IGESSolid_ToolSelectedComponent.cxx index 6599f01699..ff29dd6b90 100644 --- a/src/IGESSolid/IGESSolid_ToolSelectedComponent.cxx +++ b/src/IGESSolid/IGESSolid_ToolSelectedComponent.cxx @@ -112,7 +112,7 @@ void IGESSolid_ToolSelectedComponent::OwnDump // the heading for boolean tree is in BooleanTree OwnDump S << "Boolean Tree Entity :\n"; dumper.Dump(ent->Component(),S, (level <= 4) ? 0 : 1); - S << "Seleted Point : "; + S << "Selected Point : "; IGESData_DumpXYZL(S,level, ent->SelectPoint(), ent->Location()); S << std::endl; } diff --git a/src/IGESSolid/IGESSolid_TopoBuilder.hxx b/src/IGESSolid/IGESSolid_TopoBuilder.hxx index 698428fa63..50456dafbc 100644 --- a/src/IGESSolid/IGESSolid_TopoBuilder.hxx +++ b/src/IGESSolid/IGESSolid_TopoBuilder.hxx @@ -92,7 +92,7 @@ public: //! Defines an Edge(UV), to be added in the current Loop by EndEdge //! gives the type of the edge //! identifies the Edge(3D) used as support - //! The EdgeList is allways the current one + //! The EdgeList is always the current one //! NbPoints(); @@ -1478,7 +1478,7 @@ Handle(Geom2d_BSplineCurve) IGESToBRep_BasicCurve::Transfer2dCopiousData(const H if (!(FormNb==11 || FormNb==12 || FormNb==63)) { Message_Msg msg1240("IGES_1240"); SendWarning( start, msg1240); - // "Copious Data : Form number is different from 11, 12 or 63 so the vector treatement is skipped"); + // "Copious Data : Form number is different from 11, 12 or 63 so the vector treatment is skipped"); } Standard_Integer NbPoints = start->NbPoints(); diff --git a/src/IGESToBRep/IGESToBRep_BasicSurface.cxx b/src/IGESToBRep/IGESToBRep_BasicSurface.cxx index 070382b621..9caab71544 100644 --- a/src/IGESToBRep/IGESToBRep_BasicSurface.cxx +++ b/src/IGESToBRep/IGESToBRep_BasicSurface.cxx @@ -545,7 +545,7 @@ Handle(Geom_BSplineSurface) IGESToBRep_BasicSurface::TransferSplineSurface // case 3 : // AddWarning ( start, "Degree is not compatible with code boundary type , C0 is not guaranteed)"); //case 2 : - // AddWarning ( start, "Degree is not compatible with code boundary type , C0 is guaranted)"); + // AddWarning ( start, "Degree is not compatible with code boundary type , C0 is guaranteed)"); default : break; } diff --git a/src/IGESToBRep/IGESToBRep_BasicSurface.hxx b/src/IGESToBRep/IGESToBRep_BasicSurface.hxx index f9edbd76ea..ada221b011 100644 --- a/src/IGESToBRep/IGESToBRep_BasicSurface.hxx +++ b/src/IGESToBRep/IGESToBRep_BasicSurface.hxx @@ -41,7 +41,6 @@ class Geom_BSplineSurface; class IGESGeom_SplineSurface; class IGESGeom_BSplineSurface; - //! Provides methods to transfer basic geometric surface entities //! from IGES to CASCADE. //! These can be : @@ -53,7 +52,6 @@ public: DEFINE_STANDARD_ALLOC - //! Creates a tool BasicSurface ready to run, with //! epsilons set to 1.E-04, TheModeTopo to True, the //! optimization of the continuity to False. @@ -65,60 +63,31 @@ public: //! Creates a tool BasicSurface ready to run. Standard_EXPORT IGESToBRep_BasicSurface(const Standard_Real eps, const Standard_Real epsGeom, const Standard_Real epsCoeff, const Standard_Boolean mode, const Standard_Boolean modeapprox, const Standard_Boolean optimized); - - //! Returns Surface from Geom if the last transfer has - //! succeded. + + //! Returns Surface from Geom if the last transfer has succeeded. Standard_EXPORT Handle(Geom_Surface) TransferBasicSurface (const Handle(IGESData_IGESEntity)& start); - - //! Returns Plane from Geom if the transfer has - //! succeded. + + //! Returns Plane from Geom if the transfer has succeeded. Standard_EXPORT Handle(Geom_Plane) TransferPlaneSurface (const Handle(IGESSolid_PlaneSurface)& start); - - //! Returns CylindricalSurface from Geom if the transfer has - //! succeded. + + //! Returns CylindricalSurface from Geom if the transfer has succeeded. Standard_EXPORT Handle(Geom_CylindricalSurface) TransferRigthCylindricalSurface (const Handle(IGESSolid_CylindricalSurface)& start); - - //! Returns ConicalSurface from Geom if the transfer has - //! succeded. + + //! Returns ConicalSurface from Geom if the transfer has succeeded. Standard_EXPORT Handle(Geom_ConicalSurface) TransferRigthConicalSurface (const Handle(IGESSolid_ConicalSurface)& start); - - //! Returns SphericalSurface from Geom if the transfer has - //! succeded. + + //! Returns SphericalSurface from Geom if the transfer has succeeded. Standard_EXPORT Handle(Geom_SphericalSurface) TransferSphericalSurface (const Handle(IGESSolid_SphericalSurface)& start); - - //! Returns SphericalSurface from Geom if the transfer has - //! succeded. + + //! Returns SphericalSurface from Geom if the transfer has succeeded. Standard_EXPORT Handle(Geom_ToroidalSurface) TransferToroidalSurface (const Handle(IGESSolid_ToroidalSurface)& start); - - //! Returns BSplineSurface from Geom if the transfer has - //! succeded. + + //! Returns BSplineSurface from Geom if the transfer has succeeded. Standard_EXPORT Handle(Geom_BSplineSurface) TransferSplineSurface (const Handle(IGESGeom_SplineSurface)& start); - - //! Returns BSplineSurface from Geom if the transfer has - //! succeded. + + //! Returns BSplineSurface from Geom if the transfer has succeeded. Standard_EXPORT Handle(Geom_BSplineSurface) TransferBSplineSurface (const Handle(IGESGeom_BSplineSurface)& start); - - - -protected: - - - - - -private: - - - - - }; - - - - - - #endif // _IGESToBRep_BasicSurface_HeaderFile diff --git a/src/IGESToBRep/IGESToBRep_CurveAndSurface.cxx b/src/IGESToBRep/IGESToBRep_CurveAndSurface.cxx index 8ed684f351..f04f750f72 100644 --- a/src/IGESToBRep/IGESToBRep_CurveAndSurface.cxx +++ b/src/IGESToBRep/IGESToBRep_CurveAndSurface.cxx @@ -14,7 +14,7 @@ // 22.12.98 dce S3767 // 21.12.98 rln, gka S4054 //#74 rln,pdn 11.03.99 S4135: Setting minimum and maximum tolerances according to static parameters -// sln 13.06.2002 OCC448 : Correction in method TransferGeometry to avoid transfering invisiable sub entities +// sln 13.06.2002 OCC448 : Correction in method TransferGeometry to avoid transferring invisible sub entities #include #include @@ -238,7 +238,7 @@ TopoDS_Shape IGESToBRep_CurveAndSurface::TransferGeometry // Declaration of messages// // DCE 22/12/98 //Message_Msg msg1005("IGES_1005"); // Software error : start IsNull. - //Message_Msg msg1015("IGES_1015"); // invalid type or execption raising (software error). + //Message_Msg msg1015("IGES_1015"); // invalid type or exception raising (software error). //Message_Msg msg1010("IGES_1010"); // Not sameparameter. // Message_Msg msg1015("IGES_1015"); //Message_Msg msg210 ("XSTEP_210"); @@ -256,8 +256,8 @@ TopoDS_Shape IGESToBRep_CurveAndSurface::TransferGeometry Handle(TCollection_HAsciiString) label = GetModel()->StringLabel(start); //Standard_Integer typeNumber = start->TypeNumber(); - // sln 13.06.2002 OCC448: Avoid transfering invisiable sub entities which - // logicaly depend on the one + // sln 13.06.2002 OCC448: Avoid transferring invisible sub entities which + // logically depend on the one Standard_Integer onlyvisible = Interface_Static::IVal("read.iges.onlyvisible"); if (IGESToBRep::IsCurveAndSurface(start)) { diff --git a/src/IGESToBRep/IGESToBRep_Reader.cxx b/src/IGESToBRep/IGESToBRep_Reader.cxx index d0a50d1e1d..ed156074ea 100644 --- a/src/IGESToBRep/IGESToBRep_Reader.cxx +++ b/src/IGESToBRep/IGESToBRep_Reader.cxx @@ -13,7 +13,7 @@ //pdn 11.01.99 including for compilation on NT //#70 rln 03.03.99 syntax correction -// sln 11.06.2002 OCC448 : Initialize "read.onlyvisiable" parameter to control transfering invisiable sub entities which logicaly depend on the grouping entities +// sln 11.06.2002 OCC448 : Initialize "read.onlyvisiable" parameter to control transferring invisible sub entities which logically depend on the grouping entities #include #include @@ -166,7 +166,7 @@ Standard_Integer IGESToBRep_Reader::LoadFile (const Standard_CString filename) // Nb warning in global section. Standard_Integer nbWarn = 0,nbFail = 0; - // Add the number of warning on enities : + // Add the number of warning on entities : Interface_CheckTool cht (model,protocol); Interface_CheckIterator anIter = cht.CompleteCheckList(); for(anIter.Start(); anIter.More(); anIter.Next()) { @@ -316,7 +316,7 @@ static Standard_Boolean EncodeRegul (const TopoDS_Shape& sh) // shape in its internal list //======================================================================= -// coment as unused PTV 18.09.2000 +// comment as unused PTV 18.09.2000 // static void UpdateMap (const Handle(Transfer_TransientProcess)& map, // const BRepTools_Modifier& modifier) // { diff --git a/src/IMeshData/IMeshData_Edge.hxx b/src/IMeshData/IMeshData_Edge.hxx index 5a83d34412..21212fbb21 100644 --- a/src/IMeshData/IMeshData_Edge.hxx +++ b/src/IMeshData/IMeshData_Edge.hxx @@ -47,7 +47,7 @@ public: //! Returns number of pcurves assigned to current edge. Standard_EXPORT virtual Standard_Integer PCurvesNb () const = 0; - //! Adds discrete pcurve for the specifed discrete face. + //! Adds discrete pcurve for the specified discrete face. Standard_EXPORT virtual const IMeshData::IPCurveHandle& AddPCurve ( const IMeshData::IFacePtr& theDFace, const TopAbs_Orientation theOrientation) = 0; diff --git a/src/IMeshTools/IMeshTools_Context.hxx b/src/IMeshTools/IMeshTools_Context.hxx index 82cc3e3889..b1e0204c0c 100644 --- a/src/IMeshTools/IMeshTools_Context.hxx +++ b/src/IMeshTools/IMeshTools_Context.hxx @@ -41,7 +41,7 @@ public: { } - //! Builds model using assined model builder. + //! Builds model using assigned model builder. //! @return True on success, False elsewhere. virtual Standard_Boolean BuildModel () { diff --git a/src/IMeshTools/IMeshTools_MeshBuilder.hxx b/src/IMeshTools/IMeshTools_MeshBuilder.hxx index f2d46886b3..f3d8d7618c 100644 --- a/src/IMeshTools/IMeshTools_MeshBuilder.hxx +++ b/src/IMeshTools/IMeshTools_MeshBuilder.hxx @@ -62,7 +62,7 @@ public: return myContext; } - //! Performs meshing ot the shape using current context. + //! Performs meshing to the shape using current context. Standard_EXPORT virtual void Perform (const Message_ProgressRange& theRange); DEFINE_STANDARD_RTTIEXT(IMeshTools_MeshBuilder, Message_Algorithm) diff --git a/src/IMeshTools/IMeshTools_ModelBuilder.hxx b/src/IMeshTools/IMeshTools_ModelBuilder.hxx index 9d74d99b01..d82199f5b7 100644 --- a/src/IMeshTools/IMeshTools_ModelBuilder.hxx +++ b/src/IMeshTools/IMeshTools_ModelBuilder.hxx @@ -28,7 +28,7 @@ struct IMeshTools_Parameters; //! Interface class represents API for tool building discrete model. //! //! The following statuses should be used by default: -//! Message_Done1 - model has been sucessfully built. +//! Message_Done1 - model has been successfully built. //! Message_Fail1 - empty shape. //! Message_Fail2 - model has not been build due to unexpected reason. class IMeshTools_ModelBuilder : public Message_Algorithm diff --git a/src/IVtk/IVtk_IShapeMesher.cxx b/src/IVtk/IVtk_IShapeMesher.cxx index 661ede60de..10f18405ab 100644 --- a/src/IVtk/IVtk_IShapeMesher.cxx +++ b/src/IVtk/IVtk_IShapeMesher.cxx @@ -20,7 +20,7 @@ IMPLEMENT_STANDARD_RTTIEXT(IVtk_IShapeMesher,IVtk_Interface) // Handle implementation -//! Excutes the mesh generation algorithms. To be defined in implementation class. +//! Executes the mesh generation algorithms. To be defined in implementation class. void IVtk_IShapeMesher::initialize (const IVtk_IShape::Handle& theShape, const IVtk_IShapeData::Handle& theData) { diff --git a/src/IVtk/IVtk_IView.hxx b/src/IVtk/IVtk_IView.hxx index 83a5d2c5b7..8b24564ffc 100644 --- a/src/IVtk/IVtk_IView.hxx +++ b/src/IVtk/IVtk_IView.hxx @@ -56,7 +56,7 @@ public: double& theDy, double& theDz) const = 0; - //! @return Three doubles contaning scale components of the view transformation + //! @return Three doubles containing scale components of the view transformation virtual void GetScale (double& theX, double& theY, double& theZ) const = 0; //! @return The current view's zoom factor (for parallel projection) diff --git a/src/IVtkDraw/IVtkDraw.cxx b/src/IVtkDraw/IVtkDraw.cxx index 93d4a2fd1a..b3edff3b2d 100644 --- a/src/IVtkDraw/IVtkDraw.cxx +++ b/src/IVtkDraw/IVtkDraw.cxx @@ -699,7 +699,7 @@ static Standard_Integer VtkRemove (Draw_Interpretor& , IVtk_IdType aShapeID = aSrc->GetShape()->GetId(); GetPicker()->RemoveSelectableObject (aSrc->GetShape()); GetPipeline (aSrc->GetShape()->GetId())->RemoveFromRenderer (aRenderer); - GetPipelines()->UnBind (aShapeID); // Remove a pipepline + GetPipelines()->UnBind (aShapeID); // Remove a pipeline } else { diff --git a/src/IVtkDraw/IVtkDraw_Interactor.cxx b/src/IVtkDraw/IVtkDraw_Interactor.cxx index f9f68c37b6..c4deb0a89a 100644 --- a/src/IVtkDraw/IVtkDraw_Interactor.cxx +++ b/src/IVtkDraw/IVtkDraw_Interactor.cxx @@ -827,12 +827,10 @@ Standard_Integer IVtkDraw_Interactor::ViewerMainLoop (Standard_Integer theArgNum // Don't call Render when the window is resized to be larger: // // - if the window is resized to be larger, an Expose event will - // be trigged by the X server which will trigger a call to - // Render(). + // be triggered by the X server which will trigger a call to Render(). // - if the window is resized to be smaller, no Expose event will - // be trigged by the X server, as no new area become visible. - // only in this case, we need to explicitly call Render() - // in ConfigureNotify. + // be triggered by the X server, as no new area become visible. + // only in this case, we need to explicitly call Render() in ConfigureNotify. this->Render(); } } diff --git a/src/IVtkOCC/IVtkOCC_SelectableObject.cxx b/src/IVtkOCC/IVtkOCC_SelectableObject.cxx index de09a0a1ef..51656276a0 100644 --- a/src/IVtkOCC/IVtkOCC_SelectableObject.cxx +++ b/src/IVtkOCC/IVtkOCC_SelectableObject.cxx @@ -32,7 +32,7 @@ IMPLEMENT_STANDARD_RTTIEXT(IVtkOCC_SelectableObject,SelectMgr_SelectableObject) //============================================================================ // Method: Constructor -// Purpose: Constructs a selectable object initalized by the given shape +// Purpose: Constructs a selectable object initialized by the given shape //============================================================================ IVtkOCC_SelectableObject::IVtkOCC_SelectableObject (const IVtkOCC_Shape::Handle& theShape) : SelectMgr_SelectableObject (PrsMgr_TOP_AllView), diff --git a/src/IVtkOCC/IVtkOCC_ShapePickerAlgo.cxx b/src/IVtkOCC/IVtkOCC_ShapePickerAlgo.cxx index ffc2e90fca..f649d5ad5f 100644 --- a/src/IVtkOCC/IVtkOCC_ShapePickerAlgo.cxx +++ b/src/IVtkOCC/IVtkOCC_ShapePickerAlgo.cxx @@ -197,7 +197,7 @@ bool IVtkOCC_ShapePickerAlgo::Pick (const double theX, const double theY) { clearPicked(); - // Calling OCCT algortihm + // Calling OCCT algorithm myViewerSelector->Pick ((Standard_Integer)theX, (Standard_Integer)theY, myView); @@ -217,7 +217,7 @@ bool IVtkOCC_ShapePickerAlgo::Pick (const double theXMin, { clearPicked(); - // Calling OCCT algortihm + // Calling OCCT algorithm myViewerSelector->Pick ((Standard_Integer)theXMin, (Standard_Integer)theYMin, (Standard_Integer)theXMax, @@ -237,7 +237,7 @@ bool IVtkOCC_ShapePickerAlgo::Pick (double** thePoly, { clearPicked(); - // Calling OCCT algortihm + // Calling OCCT algorithm myViewerSelector->Pick (thePoly, theNbPoints, myView); // Fill the results diff --git a/src/IVtkTools/IVtkTools_ShapePicker.hxx b/src/IVtkTools/IVtkTools_ShapePicker.hxx index e7e0c1cee2..d1421355c1 100644 --- a/src/IVtkTools/IVtkTools_ShapePicker.hxx +++ b/src/IVtkTools/IVtkTools_ShapePicker.hxx @@ -164,7 +164,7 @@ private: vtkSmartPointer myRenderer; //!< VTK renderer bool myIsRectSelection;//!< Rectangle selection mode flag bool myIsPolySelection;//!< Polyline selection mode flag - float myTolerance; //!< Selectoin tolerance + float myTolerance; //!< Selection tolerance }; #ifdef _MSC_VER diff --git a/src/Image/Image_AlienPixMap.hxx b/src/Image/Image_AlienPixMap.hxx index 14b1f40378..368f1039d8 100644 --- a/src/Image/Image_AlienPixMap.hxx +++ b/src/Image/Image_AlienPixMap.hxx @@ -71,7 +71,7 @@ public: //! Initialize image plane with required dimensions. //! thePixelFormat - if specified pixel format doesn't supported by image library //! than nearest supported will be used instead! - //! theSizeRowBytes - may be ignored by this class and required alignemnt will be used instead! + //! theSizeRowBytes - may be ignored by this class and required alignment will be used instead! Standard_EXPORT virtual bool InitTrash (Image_Format thePixelFormat, const Standard_Size theSizeX, const Standard_Size theSizeY, diff --git a/src/Image/Image_Diff.hxx b/src/Image/Image_Diff.hxx index 79f2046c4e..3641a0e8bd 100644 --- a/src/Image/Image_Diff.hxx +++ b/src/Image/Image_Diff.hxx @@ -26,7 +26,7 @@ //! It uses the following methods to ignore the difference between images: //! - Black/White comparison. It makes the images 2-colored before the comparison. //! - Equality with tolerance. Colors of two pixels are considered the same if the -//! differnce of their color is less than a tolerance. +//! difference of their color is less than a tolerance. //! - Border filter. The algorithm ignores alone independent pixels, //! which are different on both images, ignores the "border effect" - //! the difference caused by triangles located at angle about 0 or 90 degrees to the user. @@ -63,7 +63,7 @@ public: //! An empty constructor. Init() should be called for initialization. Standard_EXPORT Image_Diff(); - //! Desctructor. + //! Destructor. Standard_EXPORT virtual ~Image_Diff(); //! Initialize algorithm by two images. @@ -101,10 +101,10 @@ public: //! It returns -1 if algorithm not initialized before. Standard_EXPORT Standard_Integer Compare(); - //! Saves a difference between two images as white pixels on black backgroud. + //! Saves a difference between two images as white pixels on black background. Standard_EXPORT Standard_Boolean SaveDiffImage (Image_PixMap& theDiffImage) const; - //! Saves a difference between two images as white pixels on black backgroud. + //! Saves a difference between two images as white pixels on black background. Standard_EXPORT Standard_Boolean SaveDiffImage (const TCollection_AsciiString& theDiffPath) const; protected: diff --git a/src/IntAna/IntAna_IntQuadQuad.cxx b/src/IntAna/IntAna_IntQuadQuad.cxx index 41f61cdb13..68bfabc72d 100644 --- a/src/IntAna/IntAna_IntQuadQuad.cxx +++ b/src/IntAna/IntAna_IntQuadQuad.cxx @@ -936,7 +936,7 @@ void IntAna_IntQuadQuad::Perform(const gp_Cone& Cone, // f(z,to)=B(to)*z + C(to)=0, B(to)!=0. // // z=-C(to)/B(to) is one and only - // solution inspite of the fact that D(t)>0 for any value of t. + // solution in spite of the fact that D(t)>0 for any value of t. // if(toNewMin) { //----------------------------------------------------------------- diff --git a/src/IntAna/IntAna_IntQuadQuad.hxx b/src/IntAna/IntAna_IntQuadQuad.hxx index 11b9e965ce..5c3dc74116 100644 --- a/src/IntAna/IntAna_IntQuadQuad.hxx +++ b/src/IntAna/IntAna_IntQuadQuad.hxx @@ -89,13 +89,11 @@ public: //! Returns the point of range N. Standard_EXPORT const gp_Pnt& Point (const Standard_Integer N) const; - - //! Returns the paramaters on the "explicit quadric" - //! (i.e the cylinder or the cone, the - //! first argument given to the constructor) of the - //! point of range N. + + //! Returns the parameters on the "explicit quadric" + //! (i.e the cylinder or the cone, the first argument given to the constructor) of the point of range N. Standard_EXPORT void Parameters (const Standard_Integer N, Standard_Real& U1, Standard_Real& U2) const; - + //! Returns True if the Curve I shares its last bound //! with another curve. Standard_EXPORT Standard_Boolean HasNextCurve (const Standard_Integer I) const; @@ -124,15 +122,12 @@ public: //! same point. Standard_EXPORT Standard_Integer PreviousCurve (const Standard_Integer I, Standard_Boolean& theOpposite) const; - - - protected: - //! Set the next and previous fields. Private method. Standard_EXPORT void InternalSetNextAndPrevious(); +protected: Standard_Boolean done; Standard_Boolean identical; @@ -146,20 +141,8 @@ protected: Standard_Real myEpsilon; Standard_Real myEpsilonCoeffPolyNull; - -private: - - - - - }; - #include - - - - #endif // _IntAna_IntQuadQuad_HeaderFile diff --git a/src/IntAna/IntAna_QuadQuadGeo.cxx b/src/IntAna/IntAna_QuadQuadGeo.cxx index 4621f39d6e..ada10bca50 100644 --- a/src/IntAna/IntAna_QuadQuadGeo.cxx +++ b/src/IntAna/IntAna_QuadQuadGeo.cxx @@ -1511,7 +1511,7 @@ IntAna_QuadQuadGeo::IntAna_QuadQuadGeo(const gp_Cylinder& Cyl, // 3 else if (aDA1A2 0 ) { if( Abs(SegIndex1-PtrSegIndex1[kk])< Nelarg && Abs(SegIndex2-PtrSegIndex2[kk])< Nelarg) { @@ -826,7 +826,7 @@ void IntCurve_IntPolyPolyGen::Perform(const TheCurve& C1, if(NbIter>NBITER_MAX_POLYGON) return; - // Number of samples tunning. + // Number of samples running. nbsamplesOnC1 = TheCurveTool::NbSamples(C1,D1.FirstParameter(),D1.LastParameter()); nbsamplesOnC2 = TheCurveTool::NbSamples(C2,D2.FirstParameter(),D2.LastParameter()); diff --git a/src/IntCurve/IntCurve_ProjectOnPConicTool.hxx b/src/IntCurve/IntCurve_ProjectOnPConicTool.hxx index bc326efbb1..bfca262df2 100644 --- a/src/IntCurve/IntCurve_ProjectOnPConicTool.hxx +++ b/src/IntCurve/IntCurve_ProjectOnPConicTool.hxx @@ -37,19 +37,19 @@ public: //! Returns the parameter V of the point on the //! parametric curve corresponding to the Point Pnt. The - //! Correspondance between Pnt and the point P(V) on the + //! Correspondence between Pnt and the point P(V) on the //! parametric curve must be coherent with the way of //! determination of the signed distance between a point and //! the implicit curve. Tol is the tolerance on the distance //! between a point and the parametrised curve. In that case, - //! no bounds are given. The research of the rigth parameter + //! no bounds are given. The research of the right parameter //! has to be made on the natural parametric domain of the //! curve. Standard_EXPORT static Standard_Real FindParameter (const IntCurve_PConic& C, const gp_Pnt2d& Pnt, const Standard_Real Tol); //! Returns the parameter V of the point on the //! parametric curve corresponding to the Point Pnt. The - //! Correspondance between Pnt and the point P(V) on the + //! Correspondence between Pnt and the point P(V) on the //! parametric curve must be coherent with the way of //! determination of the signed distance between a point and //! the implicit curve. Tol is the tolerance on the distance diff --git a/src/IntCurveSurface/IntCurveSurface_ThePolyhedronOfHInter.hxx b/src/IntCurveSurface/IntCurveSurface_ThePolyhedronOfHInter.hxx index ddd6e3ef1f..687a1fdea9 100644 --- a/src/IntCurveSurface/IntCurveSurface_ThePolyhedronOfHInter.hxx +++ b/src/IntCurveSurface/IntCurveSurface_ThePolyhedronOfHInter.hxx @@ -60,11 +60,11 @@ public: //! Give the number of triangles in this double array of Standard_EXPORT Standard_Integer NbTriangles() const; - //! Give the 3 points of the triangle of addresse Index in + //! Give the 3 points of the triangle of address Index in //! the double array of triangles. Standard_EXPORT void Triangle (const Standard_Integer Index, Standard_Integer& P1, Standard_Integer& P2, Standard_Integer& P3) const; - //! Give the addresse Tricon of the triangle connexe to the + //! Give the address Tricon of the triangle connexe to the //! triangle of address Triang by the edge Pivot Pedge and //! the third point of this connexe triangle. When we are //! on a free edge TriCon==0 but the function return the @@ -110,10 +110,10 @@ public: Standard_EXPORT Standard_Boolean HasVMaxSingularity() const; - //! Give the plane equation of the triangle of addresse Triang. + //! Give the plane equation of the triangle of address Triang. Standard_EXPORT void PlaneEquation (const Standard_Integer Triang, gp_XYZ& NormalVector, Standard_Real& PolarDistance) const; - //! Give the plane equation of the triangle of addresse Triang. + //! Give the plane equation of the triangle of address Triang. Standard_EXPORT Standard_Boolean Contain (const Standard_Integer Triang, const gp_Pnt& ThePnt) const; Standard_EXPORT void Parameters (const Standard_Integer Index, Standard_Real& U, Standard_Real& V) const; diff --git a/src/IntCurveSurface/IntCurveSurface_ThePolyhedronToolOfHInter.hxx b/src/IntCurveSurface/IntCurveSurface_ThePolyhedronToolOfHInter.hxx index c2ebce93b1..c937100805 100644 --- a/src/IntCurveSurface/IntCurveSurface_ThePolyhedronToolOfHInter.hxx +++ b/src/IntCurveSurface/IntCurveSurface_ThePolyhedronToolOfHInter.hxx @@ -49,17 +49,17 @@ public: //! Give the tolerance of the polygon. static Standard_Real DeflectionOverEstimation (const IntCurveSurface_ThePolyhedronOfHInter& thePolyh); - //! Give the number of triangles in this polyedral surface. + //! Give the number of triangles in this polyhedral surface. static Standard_Integer NbTriangles (const IntCurveSurface_ThePolyhedronOfHInter& thePolyh); //! Give the indices of the 3 points of the triangle of //! address Index in the PolyhedronTool. static void Triangle (const IntCurveSurface_ThePolyhedronOfHInter& thePolyh, const Standard_Integer Index, Standard_Integer& P1, Standard_Integer& P2, Standard_Integer& P3); - //! Give the point of index i in the polyedral surface. + //! Give the point of index i in the polyhedral surface. static const gp_Pnt& Point (const IntCurveSurface_ThePolyhedronOfHInter& thePolyh, const Standard_Integer Index); - //! Give the addresse Tricon of the triangle connexe to + //! Give the address Tricon of the triangle connexe to //! the triangle of address Triang by the edge Pivot Pedge //! and the third point of this connexe triangle. When we //! are on a free edge TriCon==0 but the function return diff --git a/src/IntCurvesFace/IntCurvesFace_Intersector.hxx b/src/IntCurvesFace/IntCurvesFace_Intersector.hxx index ec4f4c756c..b3b74dd59e 100644 --- a/src/IntCurvesFace/IntCurvesFace_Intersector.hxx +++ b/src/IntCurvesFace/IntCurvesFace_Intersector.hxx @@ -52,7 +52,7 @@ public: //! otherwise surface is not restricted. //! If UseBToler = false then the 2d-point of intersection is classified with null-tolerance //! (relative to face); - //! otherwise it's using maximium between input tolerance(aTol) and tolerances of face bounds (edges). + //! otherwise it's using maximum between input tolerance(aTol) and tolerances of face bounds (edges). Standard_EXPORT IntCurvesFace_Intersector(const TopoDS_Face& F, const Standard_Real aTol, const Standard_Boolean aRestr = Standard_True, const Standard_Boolean UseBToler = Standard_True); @@ -61,7 +61,7 @@ public: //! segment L and the loaded face. //! //! PInf is the smallest parameter on the line - //! PSup is the highest parmaeter on the line + //! PSup is the highest parameter on the line //! //! For an infinite line PInf and PSup can be //! +/- RealLast. @@ -102,7 +102,7 @@ public: //! The values can be either TopAbs_IN //! ( the point is in the face) //! or TopAbs_ON - //! ( the point is on a boudary of the face). + //! ( the point is on a boundary of the face). TopAbs_State State (const Standard_Integer I) const; //! Returns true if curve is parallel or belongs face surface diff --git a/src/IntCurvesFace/IntCurvesFace_ShapeIntersector.hxx b/src/IntCurvesFace/IntCurvesFace_ShapeIntersector.hxx index 6853605d7a..5f5e11fe25 100644 --- a/src/IntCurvesFace/IntCurvesFace_ShapeIntersector.hxx +++ b/src/IntCurvesFace/IntCurvesFace_ShapeIntersector.hxx @@ -100,7 +100,7 @@ public: //! The values can be either TopAbs_IN //! ( the point is in the face) //! or TopAbs_ON - //! ( the point is on a boudary of the face). + //! ( the point is on a boundary of the face). TopAbs_State State (const Standard_Integer I) const; //! Returns the significant face used to determine diff --git a/src/IntImpParGen/IntImpParGen_ImpTool.hxx b/src/IntImpParGen/IntImpParGen_ImpTool.hxx index 7db577ec2b..e9de0cf47a 100644 --- a/src/IntImpParGen/IntImpParGen_ImpTool.hxx +++ b/src/IntImpParGen/IntImpParGen_ImpTool.hxx @@ -51,7 +51,7 @@ public: //! Returns the parameter U of the point on the //! implicit curve corresponding to the point P. - //! The correspondance between P and the point P(U) on + //! The correspondence between P and the point P(U) on //! the implicit curve must be coherent with the way //! of determination of the signed distance. Standard_EXPORT Standard_Real FindParameter (const gp_Pnt2d& P) const; diff --git a/src/IntPatch/IntPatch_ALine.hxx b/src/IntPatch/IntPatch_ALine.hxx index 8e9de7322c..5f012306e0 100644 --- a/src/IntPatch/IntPatch_ALine.hxx +++ b/src/IntPatch/IntPatch_ALine.hxx @@ -63,14 +63,14 @@ public: //! Returns the first parameter on the intersection line. //! If IsIncluded returns True, Value and D1 methods can - //! be call with a parameter equal to FirstParamater. + //! be call with a parameter equal to FirstParameter. //! Otherwise, the parameter must be greater than //! FirstParameter. Standard_Real FirstParameter (Standard_Boolean& IsIncluded) const; //! Returns the last parameter on the intersection line. //! If IsIncluded returns True, Value and D1 methods can - //! be call with a parameter equal to LastParamater. + //! be call with a parameter equal to LastParameter. //! Otherwise, the parameter must be less than LastParameter. Standard_Real LastParameter (Standard_Boolean& IsIncluded) const; diff --git a/src/IntPatch/IntPatch_ALineToWLine.hxx b/src/IntPatch/IntPatch_ALineToWLine.hxx index cb736d261b..ce150e9c24 100644 --- a/src/IntPatch/IntPatch_ALineToWLine.hxx +++ b/src/IntPatch/IntPatch_ALineToWLine.hxx @@ -52,7 +52,7 @@ public: Standard_EXPORT void MakeWLine (const Handle(IntPatch_ALine)& aline, IntPatch_SequenceOfLine& theLines) const; - //! Converts aline (limitted by paraminf and paramsup) to the set of + //! Converts aline (limited by paraminf and paramsup) to the set of //! Walking-lines and adds them in theLines. Standard_EXPORT void MakeWLine (const Handle(IntPatch_ALine)& aline, const Standard_Real paraminf, diff --git a/src/IntPatch/IntPatch_GLine.hxx b/src/IntPatch/IntPatch_GLine.hxx index 8a524b4771..2eb3c92f84 100644 --- a/src/IntPatch/IntPatch_GLine.hxx +++ b/src/IntPatch/IntPatch_GLine.hxx @@ -129,19 +129,19 @@ public: //! when ArcType returns IntPatch_Line. gp_Lin Line() const; - //! Returns the Circ from gp corrsponding to the intersection + //! Returns the Circ from gp corresponding to the intersection //! when ArcType returns IntPatch_Circle. gp_Circ Circle() const; - //! Returns the Elips from gp corrsponding to the intersection + //! Returns the Elips from gp corresponding to the intersection //! when ArcType returns IntPatch_Ellipse. gp_Elips Ellipse() const; - //! Returns the Parab from gp corrsponding to the intersection + //! Returns the Parab from gp corresponding to the intersection //! when ArcType returns IntPatch_Parabola. gp_Parab Parabola() const; - //! Returns the Hypr from gp corrsponding to the intersection + //! Returns the Hypr from gp corresponding to the intersection //! when ArcType returns IntPatch_Hyperbola. gp_Hypr Hyperbola() const; diff --git a/src/IntPatch/IntPatch_ImpImpIntersection_4.gxx b/src/IntPatch/IntPatch_ImpImpIntersection_4.gxx index d30c1e22f7..c956e6c6cf 100644 --- a/src/IntPatch/IntPatch_ImpImpIntersection_4.gxx +++ b/src/IntPatch/IntPatch_ImpImpIntersection_4.gxx @@ -1458,7 +1458,7 @@ Standard_Boolean ComputationMethods::CylCylComputeParameters(const Standard_Real //Then // aPar - cos(aFI2) == -5.10703e-015 ==> cos(aFI2) == aPar. - //Theoreticaly, in this case + //Theoretically, in this case // aFI2 == +/- acos(aPar). //However, // acos(aPar) - aFI2 == 2.16362e-009. diff --git a/src/IntPatch/IntPatch_ImpImpIntersection_5.gxx b/src/IntPatch/IntPatch_ImpImpIntersection_5.gxx index df59aea0fd..bdbe126434 100644 --- a/src/IntPatch/IntPatch_ImpImpIntersection_5.gxx +++ b/src/IntPatch/IntPatch_ImpImpIntersection_5.gxx @@ -105,7 +105,7 @@ Standard_Boolean IntCoCo(const IntSurf_Quadric& Quad1, situC1=IntSurf_Inside; situC2=IntSurf_Outside; if (aR1>aR2) { // Intersection line parametrizes from Apex1 to Apex2, - situC1=IntSurf_Outside; // So the distance betwee ptbid and aLAx1 is greater than the + situC1=IntSurf_Outside; // So the distance between ptbid and aLAx1 is greater than the situC2=IntSurf_Inside; // distance between ptbid and aLAx2 and in that case Cone2 // is inside Cone 1 } @@ -446,7 +446,7 @@ Standard_Boolean IntCoCo(const IntSurf_Quadric& Quad1, } } - //When two cones have common generatrix passing trough apexes + //When two cones have common generatrix passing through apexes //it is necessary to add it is solution if(inter.HasCommonGen()) { Standard_Real para; diff --git a/src/IntPatch/IntPatch_ImpPrmIntersection.cxx b/src/IntPatch/IntPatch_ImpPrmIntersection.cxx index de22e875f0..880c532d31 100644 --- a/src/IntPatch/IntPatch_ImpPrmIntersection.cxx +++ b/src/IntPatch/IntPatch_ImpPrmIntersection.cxx @@ -3159,7 +3159,7 @@ static Standard_Boolean CheckSegmSegm(const Standard_Real theRefParF, //purpose : Check, if theLine is coincided with theArc (in 2d-space). // // Attention!!! -// Cases when theArc is not 2d-line adaptor are suppored by +// Cases when theArc is not 2d-line adaptor are supported by // TopOpeBRep classes only (i.e. are archaic). //======================================================================= Standard_Boolean IsCoincide(IntPatch_TheSurfFunction& theFunc, diff --git a/src/IntPatch/IntPatch_ImpPrmIntersection.hxx b/src/IntPatch/IntPatch_ImpPrmIntersection.hxx index 9907ea80c0..4c3ca8f93f 100644 --- a/src/IntPatch/IntPatch_ImpPrmIntersection.hxx +++ b/src/IntPatch/IntPatch_ImpPrmIntersection.hxx @@ -44,7 +44,7 @@ public: Standard_EXPORT void Perform (const Handle(Adaptor3d_Surface)& Surf1, const Handle(Adaptor3d_TopolTool)& D1, const Handle(Adaptor3d_Surface)& Surf2, const Handle(Adaptor3d_TopolTool)& D2, const Standard_Real TolArc, const Standard_Real TolTang, const Standard_Real Fleche, const Standard_Real Pas); - //! Returns true if the calculus was succesfull. + //! Returns true if the calculus was successful. Standard_Boolean IsDone() const; //! Returns true if the is no intersection. diff --git a/src/IntPatch/IntPatch_Intersection.hxx b/src/IntPatch/IntPatch_Intersection.hxx index ba0d25ea13..b73cbdaae2 100644 --- a/src/IntPatch/IntPatch_Intersection.hxx +++ b/src/IntPatch/IntPatch_Intersection.hxx @@ -71,7 +71,7 @@ public: //! compatibility with TopOpeBRep package. It shall be deleted //! after deleting TopOpeBRep. //! If theIsReqToPostWLProc == FALSE, then we will work with Walking-line - //! obtained after intersection algorithm directly (wothout any post-processing). + //! obtained after intersection algorithm directly (without any post-processing). Standard_EXPORT void Perform (const Handle(Adaptor3d_Surface)& S1, const Handle(Adaptor3d_TopolTool)& D1, const Handle(Adaptor3d_Surface)& S2, const Handle(Adaptor3d_TopolTool)& D2, const Standard_Real TolArc, const Standard_Real TolTang, const Standard_Boolean isGeomInt = Standard_True, const Standard_Boolean theIsReqToKeepRLine = Standard_False, const Standard_Boolean theIsReqToPostWLProc = Standard_True); //! If isGeomInt == Standard_False, then method diff --git a/src/IntPatch/IntPatch_LineConstructor.cxx b/src/IntPatch/IntPatch_LineConstructor.cxx index 1432dd06b6..324caaaa84 100644 --- a/src/IntPatch/IntPatch_LineConstructor.cxx +++ b/src/IntPatch/IntPatch_LineConstructor.cxx @@ -1300,7 +1300,7 @@ void IntPatch_LineConstructor::Perform(const IntPatch_SequenceOfLine& slinref, // --purpose: If on a face (lastp-firstp) == 1, // sometimes it could mean a bad parametrisation of WLine. // In this case we try to classify the "virtual" WLine point: - // the geometrical point between two vertexes. This emulates + // the geometrical point between two vertices. This emulates // situation when (lastp-firstp) != 1. if(Abs(int_lastp-int_firstp) == 1) { diff --git a/src/IntPatch/IntPatch_PointLine.cxx b/src/IntPatch/IntPatch_PointLine.cxx index 17acdbf071..6a3568f672 100644 --- a/src/IntPatch/IntPatch_PointLine.cxx +++ b/src/IntPatch/IntPatch_PointLine.cxx @@ -67,7 +67,7 @@ Standard_Real IntPatch_PointLine:: //the method, which will be changed possibly never. //However, if we do something in this method we can check its //functionality easily. For that: - // 1. Initialyze aTestID variable by the correct value; + // 1. Initialize aTestID variable by the correct value; // 2. Compile this test code fragment. int aTestID = 0; @@ -115,7 +115,7 @@ Standard_Real IntPatch_PointLine:: #endif const gp_Vec aN1(aDU1.Crossed(aDV1)), aN2(aDU2.Crossed(aDV2)); - //Tangent vactor to the intersection curve + //Tangent vector to the intersection curve const gp_Vec aCTan(aN1.Crossed(aN2)); const Standard_Real aSqMagnFDer = aCTan.SquareMagnitude(); diff --git a/src/IntPatch/IntPatch_Polyhedron.hxx b/src/IntPatch/IntPatch_Polyhedron.hxx index 96d0b9f081..bfcfc0a12c 100644 --- a/src/IntPatch/IntPatch_Polyhedron.hxx +++ b/src/IntPatch/IntPatch_Polyhedron.hxx @@ -63,11 +63,11 @@ public: //! triangles (nbdu*nbdv*2). Standard_EXPORT Standard_Integer NbTriangles() const; - //! Give the 3 points of the triangle of addresse Index in + //! Give the 3 points of the triangle of address Index in //! the double array of triangles. Standard_EXPORT void Triangle (const Standard_Integer Index, Standard_Integer& P1, Standard_Integer& P2, Standard_Integer& P3) const; - //! Give the addresse Tricon of the triangle connexe to the + //! Give the address Tricon of the triangle connexe to the //! triangle of address Triang by the edge Pivot Pedge and //! the third point of this connexe triangle. When we are //! on a free edge TriCon==0 but the function return the @@ -113,10 +113,10 @@ public: Standard_EXPORT Standard_Boolean HasVMaxSingularity() const; - //! Give the plane equation of the triangle of addresse Triang. + //! Give the plane equation of the triangle of address Triang. Standard_EXPORT void PlaneEquation (const Standard_Integer Triang, gp_XYZ& NormalVector, Standard_Real& PolarDistance) const; - //! Give the plane equation of the triangle of addresse Triang. + //! Give the plane equation of the triangle of address Triang. Standard_EXPORT Standard_Boolean Contain (const Standard_Integer Triang, const gp_Pnt& ThePnt) const; Standard_EXPORT void Parameters (const Standard_Integer Index, Standard_Real& U, Standard_Real& V) const; diff --git a/src/IntPatch/IntPatch_PolyhedronTool.hxx b/src/IntPatch/IntPatch_PolyhedronTool.hxx index 280e4580c2..7b07b8a6ac 100644 --- a/src/IntPatch/IntPatch_PolyhedronTool.hxx +++ b/src/IntPatch/IntPatch_PolyhedronTool.hxx @@ -30,7 +30,7 @@ class IntPatch_Polyhedron; class gp_Pnt; -//! Describe the signature of a polyedral surface with +//! Describe the signature of a polyhedral surface with //! only triangular facets and the necessary information //! to compute the interferences. class IntPatch_PolyhedronTool @@ -50,17 +50,17 @@ public: //! Give the tolerance of the polygon. static Standard_Real DeflectionOverEstimation (const IntPatch_Polyhedron& thePolyh); - //! Give the number of triangles in this polyedral surface. + //! Give the number of triangles in this polyhedral surface. static Standard_Integer NbTriangles (const IntPatch_Polyhedron& thePolyh); //! Give the indices of the 3 points of the triangle of //! address Index in the Polyhedron. static void Triangle (const IntPatch_Polyhedron& thePolyh, const Standard_Integer Index, Standard_Integer& P1, Standard_Integer& P2, Standard_Integer& P3); - //! Give the point of index i in the polyedral surface. + //! Give the point of index i in the polyhedral surface. static const gp_Pnt& Point (const IntPatch_Polyhedron& thePolyh, const Standard_Integer Index); - //! Gives the addresse Tricon of the triangle connexe to + //! Gives the address Tricon of the triangle connexe to //! the triangle of address Triang by the edge Pivot Pedge //! and the third point of this connexe triangle. When we //! are on a free edge TriCon==0 but the function return diff --git a/src/IntPatch/IntPatch_PrmPrmIntersection.hxx b/src/IntPatch/IntPatch_PrmPrmIntersection.hxx index 99890e4d80..60b0611f5f 100644 --- a/src/IntPatch/IntPatch_PrmPrmIntersection.hxx +++ b/src/IntPatch/IntPatch_PrmPrmIntersection.hxx @@ -26,13 +26,11 @@ class IntPatch_Polyhedron; class IntPatch_PrmPrmIntersection_T3Bits; class IntSurf_LineOn2S; -//! Implementation of the Intersection between two -//! bi-parametrised surfaces. +//! Implementation of the Intersection between two bi-parametrised surfaces. //! -//! To avoid multiple constructions of the approximated -//! polyhedron of the surfaces, the algorithm can be -//! called whith the two surfaces and their associated -//! polyhedron. +//! To avoid multiple constructions of the approximated +//! polyhedron of the surfaces, the algorithm can be +//! called with the two surfaces and their associated polyhedron. class IntPatch_PrmPrmIntersection { public: @@ -86,7 +84,7 @@ public: //! computed. Standard_EXPORT void Perform (const Handle(Adaptor3d_Surface)& Caro1, const IntPatch_Polyhedron& Polyhedron1, const Handle(Adaptor3d_TopolTool)& Domain1, const Handle(Adaptor3d_Surface)& Caro2, const Handle(Adaptor3d_TopolTool)& Domain2, const Standard_Real TolTangency, const Standard_Real Epsilon, const Standard_Real Deflection, const Standard_Real Increment); - //! Returns true if the calculus was succesfull. + //! Returns true if the calculus was successful. Standard_Boolean IsDone() const; //! Returns true if the is no intersection. diff --git a/src/IntPatch/IntPatch_RstInt.cxx b/src/IntPatch/IntPatch_RstInt.cxx index 5946bc943d..c40fd552f3 100644 --- a/src/IntPatch/IntPatch_RstInt.cxx +++ b/src/IntPatch/IntPatch_RstInt.cxx @@ -301,7 +301,7 @@ static Standard_Boolean FindParameter(const Handle(IntPatch_Line)& L, Standard_Integer inf[3],sup[3]; // first search inside close bounding around ParamApproche; // then search to the nearest end of line; - // and then search to the farest end of line. + // and then search to the farthest end of line. inf[0] = ParamSearchInf; sup[0] = ParamSearchSup; if (ParamSearchInf-1 < nbpt-ParamSearchSup) { inf[1] = 1; sup[1] = ParamSearchInf; diff --git a/src/IntPatch/IntPatch_SpecialPoints.cxx b/src/IntPatch/IntPatch_SpecialPoints.cxx index f0ea9388c5..f58dcb9fb0 100644 --- a/src/IntPatch/IntPatch_SpecialPoints.cxx +++ b/src/IntPatch/IntPatch_SpecialPoints.cxx @@ -30,7 +30,7 @@ #include // The function for searching intersection point, which -// lies in the seam-edge of the quadric definetely. +// lies in the seam-edge of the quadric definitely. class FuncPreciseSeam: public math_FunctionSetWithDerivatives { public: @@ -397,7 +397,7 @@ Then (indeterminate form is evaluated in accordance of L'Hospital rule), {\mathrm{d} V_{s}}+\frac{\partial S_{x}} {\partial V_{s}}). -Analogicaly for @\sin (U_{q})@ (@S_{x}@ is substituted to @S_{y}@). +Analogically for @\sin (U_{q})@ (@S_{x}@ is substituted to @S_{y}@). Let mean, that \cos (U_{q}) \left | _{V_{q} \to (-\pi /2+0)} = \cos (U_{q}) \left | _{V_{q} \to (\pi /2-0)} @@ -451,7 +451,7 @@ Standard_Boolean IntPatch_SpecialPoints::ProcessSphere(const IntSurf_PntOn2S& th //Example of this case is an intersection of a plane with a sphere //when the plane tangents the sphere in some pole (i.e. only one //intersection point, not line). In this case, U-coordinate of the - //sphere is undefined (can be realy anything). + //sphere is undefined (can be really anything). //Another reason is that we have tangent zone around the pole //(see bug #26576). //Computation of correct value of theUquad is impossible. diff --git a/src/IntPatch/IntPatch_WLineTool.cxx b/src/IntPatch/IntPatch_WLineTool.cxx index b3f90229ba..4ebe1e4136 100644 --- a/src/IntPatch/IntPatch_WLineTool.cxx +++ b/src/IntPatch/IntPatch_WLineTool.cxx @@ -306,7 +306,7 @@ static Handle(IntPatch_WLine) return theWLine; } - // Build new line and modify geometry of necessary vertexes. + // Build new line and modify geometry of necessary vertices. Handle(IntPatch_WLine) aLocalWLine = MakeNewWLine(theWLine, aDelOuterPointsHash, Standard_True); if (aChangedFirst) diff --git a/src/IntPolyh/IntPolyh_MaillageAffinage.cxx b/src/IntPolyh/IntPolyh_MaillageAffinage.cxx index 74666da6a6..f565421d72 100644 --- a/src/IntPolyh/IntPolyh_MaillageAffinage.cxx +++ b/src/IntPolyh/IntPolyh_MaillageAffinage.cxx @@ -1525,7 +1525,7 @@ Standard_Integer IntPolyh_MaillageAffinage::StartingPointsResearch //======================================================================= //function : NextStartingPointsResearch //purpose : from two triangles and an intersection point I -// seach the other point (if it exist). +// search the other point (if it exist). // This function is used by StartPointChain //======================================================================= Standard_Integer IntPolyh_MaillageAffinage::NextStartingPointsResearch diff --git a/src/IntPolyh/IntPolyh_MaillageAffinage.hxx b/src/IntPolyh/IntPolyh_MaillageAffinage.hxx index ee3d387104..1b7841cf1b 100644 --- a/src/IntPolyh/IntPolyh_MaillageAffinage.hxx +++ b/src/IntPolyh/IntPolyh_MaillageAffinage.hxx @@ -142,7 +142,7 @@ public: Standard_EXPORT Standard_Integer StartingPointsResearch (const Standard_Integer T1, const Standard_Integer T2, IntPolyh_StartPoint& SP1, IntPolyh_StartPoint& SP2) const; //! from two triangles and an intersection point I - //! seach the other point (if it exist). + //! search the other point (if it exist). //! This function is used by StartPointChain Standard_EXPORT Standard_Integer NextStartingPointsResearch (const Standard_Integer T1, const Standard_Integer T2, const IntPolyh_StartPoint& SPInit, IntPolyh_StartPoint& SPNext) const; diff --git a/src/IntSurf/IntSurf_InteriorPointTool.hxx b/src/IntSurf/IntSurf_InteriorPointTool.hxx index 17262d368f..aa7b34310c 100644 --- a/src/IntSurf/IntSurf_InteriorPointTool.hxx +++ b/src/IntSurf/IntSurf_InteriorPointTool.hxx @@ -30,7 +30,7 @@ class IntSurf_InteriorPoint; //! This class provides a tool on the "interior point" //! that can be used to instantiates the Walking -//! algorithmes (see package IntWalk). +//! algorithms (see package IntWalk). class IntSurf_InteriorPointTool { public: diff --git a/src/IntSurf/IntSurf_QuadricTool.hxx b/src/IntSurf/IntSurf_QuadricTool.hxx index 6e85637691..e8e9e7429e 100644 --- a/src/IntSurf/IntSurf_QuadricTool.hxx +++ b/src/IntSurf/IntSurf_QuadricTool.hxx @@ -27,7 +27,7 @@ class gp_Vec; //! This class provides a tool on a quadric that can be -//! used to instantiates the Walking algorithmes (see +//! used to instantiates the Walking algorithms (see //! package IntWalk) with a Quadric from IntSurf //! as implicit surface. class IntSurf_QuadricTool diff --git a/src/IntTools/IntTools_BeanFaceIntersector.cxx b/src/IntTools/IntTools_BeanFaceIntersector.cxx index c69691371b..93deb28bfd 100644 --- a/src/IntTools/IntTools_BeanFaceIntersector.cxx +++ b/src/IntTools/IntTools_BeanFaceIntersector.cxx @@ -1157,7 +1157,7 @@ void IntTools_BeanFaceIntersector::ComputeRangeFromStartPoint(const Standard_Boo BoundaryCondition = Standard_False; } - Standard_Integer loopcounter = 0; // neccesary as infinite loop restricter + Standard_Integer loopcounter = 0; // necessary as infinite loop restricter Standard_Real U = theUParameter; Standard_Real V = theVParameter; Standard_Boolean anotherSolutionFound = Standard_False; diff --git a/src/IntTools/IntTools_BeanFaceIntersector.hxx b/src/IntTools/IntTools_BeanFaceIntersector.hxx index 23284c0020..694646027a 100644 --- a/src/IntTools/IntTools_BeanFaceIntersector.hxx +++ b/src/IntTools/IntTools_BeanFaceIntersector.hxx @@ -101,11 +101,11 @@ public: Standard_EXPORT void Init (const BRepAdaptor_Curve& theCurve, const BRepAdaptor_Surface& theSurface, const Standard_Real theFirstParOnCurve, const Standard_Real theLastParOnCurve, const Standard_Real theUMinParameter, const Standard_Real theUMaxParameter, const Standard_Real theVMinParameter, const Standard_Real theVMaxParameter, const Standard_Real theBeanTolerance, const Standard_Real theFaceTolerance); - //! Sets the intersecton context + //! Sets the intersection context Standard_EXPORT void SetContext (const Handle(IntTools_Context)& theContext); - //! Gets the intersecton context + //! Gets the intersection context Standard_EXPORT const Handle(IntTools_Context)& Context() const; diff --git a/src/IntTools/IntTools_CArray1OfInteger.hxx b/src/IntTools/IntTools_CArray1OfInteger.hxx index 24b23938ff..fe0501d46e 100644 --- a/src/IntTools/IntTools_CArray1OfInteger.hxx +++ b/src/IntTools/IntTools_CArray1OfInteger.hxx @@ -104,7 +104,7 @@ Standard_Integer& operator () (const Standard_Integer Index) } - //! Applys the == operator on each array item + //! Applyies the == operator on each array item Standard_EXPORT Standard_Boolean IsEqual (const IntTools_CArray1OfInteger& Other) const; Standard_Boolean operator == (const IntTools_CArray1OfInteger& Other) const { diff --git a/src/IntTools/IntTools_CArray1OfReal.hxx b/src/IntTools/IntTools_CArray1OfReal.hxx index 9c6f7edfa2..076cce5952 100644 --- a/src/IntTools/IntTools_CArray1OfReal.hxx +++ b/src/IntTools/IntTools_CArray1OfReal.hxx @@ -105,7 +105,7 @@ Standard_Real& operator () (const Standard_Integer Index) } - //! Applys the == operator on each array item + //! Applies the == operator on each array item Standard_EXPORT Standard_Boolean IsEqual (const IntTools_CArray1OfReal& Other) const; Standard_Boolean operator == (const IntTools_CArray1OfReal& Other) const { diff --git a/src/IntTools/IntTools_EdgeEdge.cxx b/src/IntTools/IntTools_EdgeEdge.cxx index 91fadaf34a..154ce1684f 100644 --- a/src/IntTools/IntTools_EdgeEdge.cxx +++ b/src/IntTools/IntTools_EdgeEdge.cxx @@ -245,7 +245,7 @@ void IntTools_EdgeEdge::Perform() IntTools_SequenceOfRanges aRanges1, aRanges2; // - //3.2. Find ranges containig solutions + //3.2. Find ranges containing solutions Standard_Boolean bSplit2; FindSolutions(aRanges1, aRanges2, bSplit2); // diff --git a/src/IntTools/IntTools_EdgeEdge.hxx b/src/IntTools/IntTools_EdgeEdge.hxx index 8dc80e35db..9f6086e52c 100644 --- a/src/IntTools/IntTools_EdgeEdge.hxx +++ b/src/IntTools/IntTools_EdgeEdge.hxx @@ -46,17 +46,17 @@ public: - //! Empty contructor + //! Empty constructor IntTools_EdgeEdge(); //! Destructor ~IntTools_EdgeEdge(); - //! Contructor + //! Constructor IntTools_EdgeEdge(const TopoDS_Edge& theEdge1, const TopoDS_Edge& theEdge2); - //! Contructor + //! Constructor IntTools_EdgeEdge(const TopoDS_Edge& theEdge1, const Standard_Real aT11, const Standard_Real aT12, const TopoDS_Edge& theEdge2, const Standard_Real aT21, const Standard_Real aT22); diff --git a/src/IntTools/IntTools_EdgeFace.cxx b/src/IntTools/IntTools_EdgeFace.cxx index bdd0887116..b152c64821 100644 --- a/src/IntTools/IntTools_EdgeFace.cxx +++ b/src/IntTools/IntTools_EdgeFace.cxx @@ -135,7 +135,7 @@ Standard_Boolean IntTools_EdgeFace::IsCoincident() //be classified. Therefore, points with indexes in //[aTreshIdxF, aTreshIdxL] range are made available //for classification. - //isClassified == TRUE if MIDDLE point has been choosen and + //isClassified == TRUE if MIDDLE point has been chosen and //classified correctly. if(((0 < i) && (i < aTreshIdxF)) || ((aTreshIdxL < i ) && (i < aNbSeg))) @@ -575,7 +575,7 @@ void IntTools_EdgeFace::Perform() MakeType (aCP); } { - // Line\Cylinder's Common Parts treatement + // Line\Cylinder's Common Parts treatment GeomAbs_CurveType aCType; GeomAbs_SurfaceType aSType; TopAbs_ShapeEnum aType; @@ -607,7 +607,7 @@ void IntTools_EdgeFace::Perform() } } - // Circle\Plane's Common Parts treatement + // Circle\Plane's Common Parts treatment if (aCType==GeomAbs_Circle && aSType==GeomAbs_Plane) { Standard_Boolean bIsCoplanar, bIsRadius; diff --git a/src/IntTools/IntTools_FaceFace.hxx b/src/IntTools/IntTools_FaceFace.hxx index dc035415cf..33204ce7cc 100644 --- a/src/IntTools/IntTools_FaceFace.hxx +++ b/src/IntTools/IntTools_FaceFace.hxx @@ -84,7 +84,7 @@ public: Standard_EXPORT void SetList (IntSurf_ListOfPntOn2S& ListOfPnts); - //! Sets the intersecton context + //! Sets the intersection context Standard_EXPORT void SetContext (const Handle(IntTools_Context)& aContext); //! Sets the Fuzzy value @@ -94,7 +94,7 @@ public: //! Returns Fuzzy value Standard_EXPORT Standard_Real FuzzyValue() const; - //! Gets the intersecton context + //! Gets the intersection context Standard_EXPORT const Handle(IntTools_Context)& Context() const; protected: diff --git a/src/IntTools/IntTools_Tools.hxx b/src/IntTools/IntTools_Tools.hxx index 5e828548a0..18f067a7f4 100644 --- a/src/IntTools/IntTools_Tools.hxx +++ b/src/IntTools/IntTools_Tools.hxx @@ -123,11 +123,11 @@ public: Standard_EXPORT static void RejectLines (const IntTools_SequenceOfCurves& aSIn, IntTools_SequenceOfCurves& aSOut); - //! Returns True if D1 and D2 coinside + //! Returns True if D1 and D2 coincide Standard_EXPORT static Standard_Boolean IsDirsCoinside (const gp_Dir& D1, const gp_Dir& D2); - //! Returns True if D1 and D2 coinside with given tolerance + //! Returns True if D1 and D2 coincide with given tolerance Standard_EXPORT static Standard_Boolean IsDirsCoinside (const gp_Dir& D1, const gp_Dir& D2, const Standard_Real aTol); diff --git a/src/IntTools/IntTools_TopolTool.hxx b/src/IntTools/IntTools_TopolTool.hxx index b02df09593..2a5bcc6fbf 100644 --- a/src/IntTools/IntTools_TopolTool.hxx +++ b/src/IntTools/IntTools_TopolTool.hxx @@ -78,7 +78,7 @@ public: //! by adaptive algorithm for BSpline surfaces. For other surfaces algorithm //! is the same as in method ComputeSamplePoints(), but only fill arrays of U //! and V sample parameters; - //! theDefl is a requred deflection + //! theDefl is a required deflection //! theNUmin, theNVmin are minimal nb points for U and V. Standard_EXPORT virtual void SamplePnts (const Standard_Real theDefl, const Standard_Integer theNUmin, const Standard_Integer theNVmin) Standard_OVERRIDE; diff --git a/src/IntTools/IntTools_WLineTool.cxx b/src/IntTools/IntTools_WLineTool.cxx index 8840fa1453..8e589ffcc8 100644 --- a/src/IntTools/IntTools_WLineTool.cxx +++ b/src/IntTools/IntTools_WLineTool.cxx @@ -1325,7 +1325,7 @@ Standard_Boolean IntTools_WLineTool:: if(!bIsFirstInside && !bIsLastInside) { if((ifprm < iFirst) && (ilprm > iLast)) { - // append whole line, and boundaries if neccesary + // append whole line, and boundaries if necessary if(bhasfirstpoint) { pit = aListOfFLIndex.First(); const IntSurf_PntOn2S& aP = aSeqOfPntOn2S->Value(pit); diff --git a/src/IntWalk/IntWalk_IWalking_3.gxx b/src/IntWalk/IntWalk_IWalking_3.gxx index 1faa75ca9d..67273e5a49 100644 --- a/src/IntWalk/IntWalk_IWalking_3.gxx +++ b/src/IntWalk/IntWalk_IWalking_3.gxx @@ -56,7 +56,7 @@ void IntWalk_IWalking::ComputeOpenLine(const TColStd_SequenceOfReal& Umult, // calculation of step) // 2) calculation of the point // 3) if the point is not found the step is divided -// 4) stpo tests +// 4) stop tests // 5) calculation of the step depending on the arrow and the max step, // (TestDeflection) // stop possible. diff --git a/src/IntWalk/IntWalk_IWalking_4.gxx b/src/IntWalk/IntWalk_IWalking_4.gxx index 2add80f20e..692df6b703 100644 --- a/src/IntWalk/IntWalk_IWalking_4.gxx +++ b/src/IntWalk/IntWalk_IWalking_4.gxx @@ -228,7 +228,7 @@ void IntWalk_IWalking::ComputeCloseLine(const TColStd_SequenceOfReal& Umult, else { // there is a solution Rsnld.Root(Uvap); - // Avoid unitialized memory access. + // Avoid uninitialized memory access. if (CurrentLine->NbPoints() > 2) { for(Standard_Integer aCoordIdx = 1; aCoordIdx <= 2; aCoordIdx++) diff --git a/src/IntWalk/IntWalk_IWalking_5.gxx b/src/IntWalk/IntWalk_IWalking_5.gxx index 30d426c992..ebc381f547 100644 --- a/src/IntWalk/IntWalk_IWalking_5.gxx +++ b/src/IntWalk/IntWalk_IWalking_5.gxx @@ -115,7 +115,7 @@ IntWalk_StatusDeflection IntWalk_IWalking::TestDeflection //If aMinTolU==0.0 then (Abs(Du) < aMinTolU) is equivalent of (Abs(Du) < 0.0). //It is impossible. Therefore, this case should be processed separately. - //Analogicaly for aMinTolV. + //Analogically for aMinTolV. if ((Abs(Du) < aTolU) && (Abs(Dv) < aTolV)) { diff --git a/src/IntWalk/IntWalk_PWalking.cxx b/src/IntWalk/IntWalk_PWalking.cxx index 2b022876da..e9f1efade3 100644 --- a/src/IntWalk/IntWalk_PWalking.cxx +++ b/src/IntWalk/IntWalk_PWalking.cxx @@ -1521,7 +1521,7 @@ void IntWalk_PWalking::Perform(const TColStd_Array1OfReal& ParDep, if(aSQMCurS1 < gp::Resolution()) { - //We came back to the one of previos point. + //We came back to the one of previous point. //Therefore, we must break; anAngleS1 = M_PI; @@ -1539,7 +1539,7 @@ void IntWalk_PWalking::Perform(const TColStd_Array1OfReal& ParDep, if(aSQMCurS2 < gp::Resolution()) { - //We came back to the one of previos point. + //We came back to the one of previous point. //Therefore, we must break; anAngleS2 = M_PI; @@ -1564,7 +1564,7 @@ void IntWalk_PWalking::Perform(const TColStd_Array1OfReal& ParDep, { //Check singularity. //I.e. check if we are walking along direction, which does not - //result in comming to any point (i.e. derivative + //result in coming to any point (i.e. derivative //3D-intersection curve along this direction is equal to 0). //A sphere with direction {dU=1, dV=0} from point //(U=0, V=M_PI/2) can be considered as example for diff --git a/src/Interface/Interface_Category.hxx b/src/Interface/Interface_Category.hxx index e26a90bf2c..2329504d53 100644 --- a/src/Interface/Interface_Category.hxx +++ b/src/Interface/Interface_Category.hxx @@ -40,7 +40,7 @@ class Interface_InterfaceModel; //! //! Basically, the system provides the following categories : //! Shape (Geometry, BRep, CSG, Features, etc...) -//! Drawing (Drawing, Views, Annotations, Pictures, Scketches ...) +//! Drawing (Drawing, Views, Annotations, Pictures, Sketches ...) //! Structure (Component & Part, Groups & Patterns ...) //! Description (Meta-Data : Relations, Properties, Product ...) //! Auxiliary (those which do not enter in the above list) diff --git a/src/Interface/Interface_CheckTool.hxx b/src/Interface/Interface_CheckTool.hxx index 61b6dedcc8..98408c0c80 100644 --- a/src/Interface/Interface_CheckTool.hxx +++ b/src/Interface/Interface_CheckTool.hxx @@ -84,7 +84,7 @@ public: //! Checks if any Error has been detected (CheckList not empty) //! Returns normally if none, raises exception if some exists. //! It reuses the last computations from other checking methods, - //! unless the argument is given True + //! unless the argument is given True Standard_EXPORT void CheckSuccess (const Standard_Boolean reset = Standard_False); //! Returns list of all "remarkable" information, which include : @@ -102,7 +102,7 @@ public: //! AnalyseCheckList + VerifyCheckList Standard_EXPORT Interface_CheckIterator CheckList(); - //! Returns list of errors dectected at Analyse time (syntactic) + //! Returns list of errors detected at Analyse time (syntactic) //! (note that GlobalCheck is not in this list) Standard_EXPORT Interface_CheckIterator AnalyseCheckList(); diff --git a/src/Interface/Interface_EntityList.hxx b/src/Interface/Interface_EntityList.hxx index 7e90474a81..1ba4a3ce9c 100644 --- a/src/Interface/Interface_EntityList.hxx +++ b/src/Interface/Interface_EntityList.hxx @@ -55,7 +55,7 @@ public: DEFINE_STANDARD_ALLOC - //! Creates a List as beeing empty + //! Creates a List as being empty Standard_EXPORT Interface_EntityList(); //! Clears the List diff --git a/src/Interface/Interface_FileReaderData.hxx b/src/Interface/Interface_FileReaderData.hxx index f9a9a6ed77..c8caeaffc8 100644 --- a/src/Interface/Interface_FileReaderData.hxx +++ b/src/Interface/Interface_FileReaderData.hxx @@ -140,7 +140,7 @@ public: Standard_EXPORT const Handle(Standard_Transient)& ParamEntity (const Standard_Integer num, const Standard_Integer nump) const; //! Returns the absolute rank of the beginning of a record - //! (its lsit is from ParamFirstRank+1 to ParamFirstRank+NbParams) + //! (its list is from ParamFirstRank+1 to ParamFirstRank+NbParams) Standard_EXPORT Standard_Integer ParamFirstRank (const Standard_Integer num) const; //! Returns the entity bound to a record, set by SetEntities @@ -190,7 +190,7 @@ protected: //! must be the maximum number of records to get (no way to //! extend it at run-time) : count entities and sub-entities ... //! is the total count of parameters (if it is not exact, - //! it will be extented as necessary) + //! it will be extended as necessary) //! //! Hence, to each record can be bound an Entity and a list of //! Parameters. Each kind of FileReaderData can add other data, by diff --git a/src/Interface/Interface_FileReaderTool.hxx b/src/Interface/Interface_FileReaderTool.hxx index 216bb4aec9..3f78edab8b 100644 --- a/src/Interface/Interface_FileReaderTool.hxx +++ b/src/Interface/Interface_FileReaderTool.hxx @@ -181,7 +181,7 @@ public: //! default is doing nothing; redefinable as necessary Standard_EXPORT virtual void EndRead (const Handle(Interface_InterfaceModel)& amodel); - //! Clear filelds + //! Clear fields Standard_EXPORT void Clear(); diff --git a/src/Interface/Interface_FloatWriter.hxx b/src/Interface/Interface_FloatWriter.hxx index cc86f44464..d7dcf8cbe4 100644 --- a/src/Interface/Interface_FloatWriter.hxx +++ b/src/Interface/Interface_FloatWriter.hxx @@ -28,11 +28,11 @@ #include -//! This class converts a floting number (Real) to a string +//! This class converts a floating number (Real) to a string //! It can be used if the standard C-C++ output functions //! (sprintf or std::cout<<) are not convenient. That is to say : //! - to suppress trailing '0' and 'E+00' (if desired) -//! - to control exponant output and floating point output +//! - to control exponent output and floating point output //! //! Formats are given in the form used by printf-sprintf class Interface_FloatWriter @@ -66,7 +66,7 @@ public: Standard_EXPORT void SetFormatForRange (const Standard_CString form, const Standard_Real R1, const Standard_Real R2); //! Sets Sending Real Parameters to suppress trailing Zeros and - //! Null Exponant ("E+00"), if is given True, Resets this + //! Null Exponent ("E+00"), if is given True, Resets this //! mode if is False (in addition to Real Forms) //! A call to SetRealFrom resets this mode to False ig is //! given True (Default from Creation is True) @@ -97,7 +97,7 @@ public: Standard_EXPORT Standard_Integer Write (const Standard_Real val, const Standard_CString text) const; //! This class method converts a Real Value to a string, given - //! options given as arguments. It can be called independantly. + //! options given as arguments. It can be called independently. //! Warning : even if declared in, content of will be modified Standard_EXPORT static Standard_Integer Convert (const Standard_Real val, const Standard_CString text, const Standard_Boolean zerosup, const Standard_Real Range1, const Standard_Real Range2, const Standard_CString mainform, const Standard_CString rangeform); diff --git a/src/Interface/Interface_GeneralModule.hxx b/src/Interface/Interface_GeneralModule.hxx index 7ba9ad2741..ba69bba5b0 100644 --- a/src/Interface/Interface_GeneralModule.hxx +++ b/src/Interface/Interface_GeneralModule.hxx @@ -161,7 +161,7 @@ public: //! coherence with Dispatch //! Dispatch can either copy or not. //! If it copies the entity, this one should be deleted - //! If it doesnt (i.e. duplicates the handle) nothing to do + //! If it doesn't (i.e. duplicates the handle) nothing to do //! //! If is False, normal deletion is to be performed Standard_EXPORT virtual void WhenDeleteCase (const Standard_Integer CN, const Handle(Standard_Transient)& ent, const Standard_Boolean dispatched) const; diff --git a/src/Interface/Interface_GlobalNodeOfGeneralLib.hxx b/src/Interface/Interface_GlobalNodeOfGeneralLib.hxx index 713425ef7c..67a43ec614 100644 --- a/src/Interface/Interface_GlobalNodeOfGeneralLib.hxx +++ b/src/Interface/Interface_GlobalNodeOfGeneralLib.hxx @@ -44,7 +44,7 @@ public: //! Adds a Module bound with a Protocol to the list : does //! nothing if already in the list, THAT IS, Same Type (exact //! match) and Same State (that is, IsEqual is not required) - //! Once added, stores its attached Protocol in correspondance + //! Once added, stores its attached Protocol in correspondence Standard_EXPORT void Add (const Handle(Interface_GeneralModule)& amodule, const Handle(Interface_Protocol)& aprotocol); //! Returns the Module stored in a given GlobalNode diff --git a/src/Interface/Interface_GlobalNodeOfReaderLib.hxx b/src/Interface/Interface_GlobalNodeOfReaderLib.hxx index 6d6c9eac51..2998e074e8 100644 --- a/src/Interface/Interface_GlobalNodeOfReaderLib.hxx +++ b/src/Interface/Interface_GlobalNodeOfReaderLib.hxx @@ -44,7 +44,7 @@ public: //! Adds a Module bound with a Protocol to the list : does //! nothing if already in the list, THAT IS, Same Type (exact //! match) and Same State (that is, IsEqual is not required) - //! Once added, stores its attached Protocol in correspondance + //! Once added, stores its attached Protocol in correspondence Standard_EXPORT void Add (const Handle(Interface_ReaderModule)& amodule, const Handle(Interface_Protocol)& aprotocol); //! Returns the Module stored in a given GlobalNode diff --git a/src/Interface/Interface_Graph.hxx b/src/Interface/Interface_Graph.hxx index 480f3188bd..b7e6d8d3f1 100644 --- a/src/Interface/Interface_Graph.hxx +++ b/src/Interface/Interface_Graph.hxx @@ -230,7 +230,7 @@ public: //! another Graph from Standard_EXPORT const Handle(TColStd_HArray1OfListOfInteger)& SharingTable() const; - //! Returns mode resposible for computation of statuses; + //! Returns mode responsible for computation of statuses; Standard_EXPORT Standard_Boolean ModeStat() const; diff --git a/src/Interface/Interface_GraphContent.hxx b/src/Interface/Interface_GraphContent.hxx index 49c235305c..f50a280dcc 100644 --- a/src/Interface/Interface_GraphContent.hxx +++ b/src/Interface/Interface_GraphContent.hxx @@ -63,7 +63,7 @@ public: //! Returns Result under the exact form of an EntityIterator : //! Can be used when EntityIterator itself is required (as a - //! returned value for instance), whitout way for a sub-class + //! returned value for instance), without way for a sub-class Standard_EXPORT Interface_EntityIterator Result(); //! Does the Evaluation before starting the iteration itself diff --git a/src/Interface/Interface_HGraph.hxx b/src/Interface/Interface_HGraph.hxx index 1985bb1808..7f88b46f93 100644 --- a/src/Interface/Interface_HGraph.hxx +++ b/src/Interface/Interface_HGraph.hxx @@ -35,7 +35,7 @@ class Interface_HGraph; DEFINE_STANDARD_HANDLE(Interface_HGraph, Standard_Transient) //! This class allows to store a redefinable Graph, via a Handle -//! (usefull for an Object which can work on several successive +//! (useful for an Object which can work on several successive //! Models, with the same general conditions) class Interface_HGraph : public Standard_Transient { @@ -64,7 +64,7 @@ public: //! Returns the Graph contained in , for Read Only Operations //! Remark that it is returns as "const &" //! Getting it in a new variable instead of a reference would be - //! a pitty, because all the graph's content would be duplicated + //! a pity, because all the graph's content would be duplicated Standard_EXPORT const Interface_Graph& Graph() const; //! Same as above, but for Read-Write Operations diff --git a/src/Interface/Interface_IntList.hxx b/src/Interface/Interface_IntList.hxx index cccbfb5713..271c0baf41 100644 --- a/src/Interface/Interface_IntList.hxx +++ b/src/Interface/Interface_IntList.hxx @@ -25,7 +25,6 @@ #include #include - //! This class detains the data which describe a Graph. A Graph //! has two lists, one for shared refs, one for sharing refs //! (the reverses). Each list comprises, for each Entity of the @@ -111,11 +110,11 @@ public: //! Returns the count of refs attached to current entity number Standard_EXPORT Standard_Integer Length() const; - - //! Returns True if the list for a number (default is taken as - //! current) is "redefined" (usefull for empty list) + + //! Returns True if the list for a number + //! (default is taken as current) is "redefined" (useful for empty list) Standard_EXPORT Standard_Boolean IsRedefined (const Standard_Integer num = 0) const; - + //! Returns a reference number in the list for current number, //! according to its rank Standard_EXPORT Standard_Integer Value (const Standard_Integer num) const; @@ -131,19 +130,8 @@ public: //! margin can be added. Standard_EXPORT void AdjustSize (const Standard_Integer margin = 0); - - - -protected: - - - - - private: - - Standard_Integer thenbe; Standard_Integer thenbr; Standard_Integer thenum; @@ -152,13 +140,6 @@ private: Handle(TColStd_HArray1OfInteger) theents; Handle(TColStd_HArray1OfInteger) therefs; - }; - - - - - - #endif // _Interface_IntList_HeaderFile diff --git a/src/Interface/Interface_InterfaceModel.hxx b/src/Interface/Interface_InterfaceModel.hxx index 5dc28b66d5..583fbbf46c 100644 --- a/src/Interface/Interface_InterfaceModel.hxx +++ b/src/Interface/Interface_InterfaceModel.hxx @@ -199,12 +199,12 @@ public: //! Removes the ReportEntity attached to Entity . Returns //! True if done, False if no ReportEntity was attached to . - //! Warning : the caller must assume that this clearing is meaningfull + //! Warning : the caller must assume that this clearing is meaningful Standard_EXPORT Standard_Boolean ClearReportEntity (const Standard_Integer num); //! Sets or Replaces a ReportEntity for the Entity . Returns //! True if Report is replaced, False if it has been replaced - //! Warning : the caller must assume that this setting is meaningfull + //! Warning : the caller must assume that this setting is meaningful Standard_EXPORT Standard_Boolean SetReportEntity (const Standard_Integer num, const Handle(Interface_ReportEntity)& rep); //! Adds a ReportEntity as such. Returns False if the concerned @@ -319,7 +319,7 @@ public: //! (each item has to be casted to Report Entity then it can be //! queried for Concerned Entity, Content, Check ...) //! By default, returns the main reports, is is True it - //! returns the list for sematic checks + //! returns the list for semantic checks Standard_EXPORT Interface_EntityIterator Reports (const Standard_Boolean semantic = Standard_False) const; //! Returns the list of ReportEntities which redefine data diff --git a/src/Interface/Interface_MSG.hxx b/src/Interface/Interface_MSG.hxx index 11a2b43a73..6d6032b735 100644 --- a/src/Interface/Interface_MSG.hxx +++ b/src/Interface/Interface_MSG.hxx @@ -184,7 +184,7 @@ operator Standard_CString() const; //! Codes a date as a text, from its numeric value (-> seconds) : //! YYYY-MM-DD:HH-MN-SS fixed format, completed by leading zeros //! Another format can be provided, as follows : - //! C:%d ... C like format, preceeded by C: + //! C:%d ... C like format, preceded by C: //! S:... format to call system (not yet implemented) Standard_EXPORT static void TDate (const Standard_CString text, const Standard_Integer yy, const Standard_Integer mm, const Standard_Integer dd, const Standard_Integer hh, const Standard_Integer mn, const Standard_Integer ss, const Standard_CString format = ""); @@ -214,7 +214,7 @@ operator Standard_CString() const; Standard_EXPORT static Standard_CString Blanks (const Standard_Integer count); //! Prints a String on an Output Stream, as follows : - //! Accompagned with blanks, to give up to charis at all, + //! Accompanied with blanks, to give up to charis at all, //! justified according just : //! -1 (D) : left 0 : center 1 : right //! Maximum 76 characters diff --git a/src/Interface/Interface_ParamList.hxx b/src/Interface/Interface_ParamList.hxx index cdc9a6de7a..8f1bd6441e 100644 --- a/src/Interface/Interface_ParamList.hxx +++ b/src/Interface/Interface_ParamList.hxx @@ -38,7 +38,7 @@ class Interface_ParamList : public Standard_Transient public: - //! Creates an vector with size of memmory blok equal to theIncrement + //! Creates an vector with size of memory block equal to theIncrement Standard_EXPORT Interface_ParamList(const Standard_Integer theIncrement = 256); //! Returns the number of elements of . diff --git a/src/Interface/Interface_ParamSet.hxx b/src/Interface/Interface_ParamSet.hxx index 103e34e78d..ae12e83d34 100644 --- a/src/Interface/Interface_ParamSet.hxx +++ b/src/Interface/Interface_ParamSet.hxx @@ -48,11 +48,11 @@ public: Standard_EXPORT Interface_ParamSet(const Standard_Integer nres, const Standard_Integer nst = 1); //! Adds a parameter defined as its Value (CString and length) and - //! Type. Optionnal EntityNumber (for FileReaderData) can be given + //! Type. Optional EntityNumber (for FileReaderData) can be given //! Allows a better memory management than Appending a //! complete FileParameter //! If < 0, is assumed to be managed elsewhere : its - //! adress is stored as such. Else, is copied in a locally + //! address is stored as such. Else, is copied in a locally //! (quickly) managed Page of Characters //! Returns new count of recorded Parameters Standard_EXPORT Standard_Integer Append (const Standard_CString val, const Standard_Integer lnval, const Interface_ParamType typ, const Standard_Integer nument); @@ -74,7 +74,7 @@ public: //! Changes a parameter identified by its number Standard_EXPORT void SetParam (const Standard_Integer num, const Interface_FileParameter& FP); - //! Builds and returns the sub-list correspinding to parameters, + //! Builds and returns the sub-list corresponding to parameters, //! from "num" included, with count "nb" //! If and are zero, returns the whole list Standard_EXPORT Handle(Interface_ParamList) Params (const Standard_Integer num, const Standard_Integer nb) const; diff --git a/src/Interface/Interface_ReportEntity.hxx b/src/Interface/Interface_ReportEntity.hxx index 0eff46b44b..9b4d520a9a 100644 --- a/src/Interface/Interface_ReportEntity.hxx +++ b/src/Interface/Interface_ReportEntity.hxx @@ -45,7 +45,7 @@ DEFINE_STANDARD_HANDLE(Interface_ReportEntity, Standard_Transient) //! the ReportEntity is an "Error Entity", the Concerned Entity is //! an "Erroneous Entity". Else it is a "Correction Entity", the //! Concerned Entity is a "Corrected Entity". With no Check -//! message and if Concerened and Content are equal, it reports +//! message and if Concerned and Content are equal, it reports //! for an "Unknown Entity". //! //! Each norm must produce its own type of Unknown Entity, but can diff --git a/src/Interface/Interface_STAT.hxx b/src/Interface/Interface_STAT.hxx index d040af91e8..28ce8af414 100644 --- a/src/Interface/Interface_STAT.hxx +++ b/src/Interface/Interface_STAT.hxx @@ -147,7 +147,7 @@ public: //! Hence, NextItem is available to directly count Standard_EXPORT static void StartCount (const Standard_Integer items, const Standard_CString title = ""); - //! Commands to resume the preceeding phase and start a new one + //! Commands to resume the preceding phase and start a new one //! and as for Start, but for this new phase //! Ignored if count of phases is already passed //! If is more than one, the first Cycle must then be @@ -160,7 +160,7 @@ public: //! Can be used by an operator which has to reajust counts on run Standard_EXPORT static void SetPhase (const Standard_Integer items, const Standard_Integer cycles = 1); - //! Commands to resume the preceeding cycle and start a new one, + //! Commands to resume the preceding cycle and start a new one, //! with a count of items //! Ignored if count of cycles is already passed //! Then, first step is started (or default one) @@ -168,7 +168,7 @@ public: //! to the next one Standard_EXPORT static void NextCycle (const Standard_Integer items); - //! Commands to resume the preceeding step of the cycle + //! Commands to resume the preceding step of the cycle //! Ignored if count of steps is already passed //! NextItem can be called for this step, NextStep passes to next Standard_EXPORT static void NextStep(); diff --git a/src/Interface/Interface_ShareTool.hxx b/src/Interface/Interface_ShareTool.hxx index 9b7f3c0a87..5664cefbfb 100644 --- a/src/Interface/Interface_ShareTool.hxx +++ b/src/Interface/Interface_ShareTool.hxx @@ -29,12 +29,12 @@ class Interface_Protocol; class Interface_Graph; class Interface_EntityIterator; -//! Builds the Graph of Dependancies, from the General Service +//! Builds the Graph of Dependencies, from the General Service //! "Shared" -> builds for each Entity of a Model, the Shared and //! Sharing Lists, and gives access to them. //! Allows to complete with Implied References (which are not //! regarded as Shared Entities, but are nevertheless Referenced), -//! this can be usefull for Reference Checking +//! this can be useful for Reference Checking class Interface_ShareTool { public: diff --git a/src/Interface/Interface_Static.hxx b/src/Interface/Interface_Static.hxx index b7e307ecd0..32df5b64b2 100644 --- a/src/Interface/Interface_Static.hxx +++ b/src/Interface/Interface_Static.hxx @@ -39,7 +39,7 @@ class Interface_InterfaceError; class Interface_Static; DEFINE_STANDARD_HANDLE(Interface_Static, Interface_TypedValue) -//! This class gives a way to manage meaningfull static variables, +//! This class gives a way to manage meaningful static variables, //! used as "global" parameters in various procedures. //! //! A Static brings a specification (its type, constraints if any) diff --git a/src/Interface/Interface_Statics.hxx b/src/Interface/Interface_Statics.hxx index 929c899748..91e432685f 100644 --- a/src/Interface/Interface_Statics.hxx +++ b/src/Interface/Interface_Statics.hxx @@ -17,7 +17,7 @@ // Only the pointer is declared static, and initialized to NULL : then, // there is no routine to call for static construction -// Remember that the objet designated by a static Handle should not be created +// Remember that the object designated by a static Handle should not be created // in the static declaration, but must anyway be created, during main run, // once before its first use : this is the initialization step. @@ -44,7 +44,7 @@ // *************************************************** // Old statement (in a routine, not static) : // if (object.IsNull()) object = new pk_class (..args if any..); -// can be maintained, but preceeded by an initialization : +// can be maintained, but preceded by an initialization : // InitHandle(pk_class,object); // -> Null Handle // *************************************************** diff --git a/src/Interface/Interface_TypedValue.hxx b/src/Interface/Interface_TypedValue.hxx index 453712e459..153d4cfd78 100644 --- a/src/Interface/Interface_TypedValue.hxx +++ b/src/Interface/Interface_TypedValue.hxx @@ -68,17 +68,15 @@ public: Standard_EXPORT Interface_TypedValue(const Standard_CString name, const Interface_ParamType type = Interface_ParamText, const Standard_CString init = ""); //! Returns the type - //! I.E. calls ValueType then makes correspondance between + //! I.E. calls ValueType then makes correspondence between //! ParamType from Interface (which remains for compatibility //! reasons) and ValueType from MoniTool Standard_EXPORT Interface_ParamType Type() const; - //! Correspondance ParamType from Interface to - //! ValueType from MoniTool + //! Correspondence ParamType from Interface to ValueType from MoniTool Standard_EXPORT static MoniTool_ValueType ParamTypeToValueType (const Interface_ParamType typ); - //! Correspondance ParamType from Interface to - //! ValueType from MoniTool + //! Correspondence ParamType from Interface to ValueType from MoniTool Standard_EXPORT static Interface_ParamType ValueTypeToParamType (const MoniTool_ValueType typ); diff --git a/src/Intf/Intf_SectionPoint.hxx b/src/Intf/Intf_SectionPoint.hxx index 6e5257e41a..d0164c109e 100644 --- a/src/Intf/Intf_SectionPoint.hxx +++ b/src/Intf/Intf_SectionPoint.hxx @@ -38,7 +38,6 @@ public: DEFINE_STANDARD_ALLOC - //! Returns the location of the SectionPoint. Standard_EXPORT const gp_Pnt& Pnt() const; @@ -58,17 +57,15 @@ public: Intf_PIType TypeOnSecond() const; Standard_EXPORT void InfoFirst (Intf_PIType& Dim, Standard_Integer& Add1, Standard_Integer& Add2, Standard_Real& Param) const; - - //! Gives the datas about the first argument of the - //! Interference. + + //! Gives the data about the first argument of the Interference. Standard_EXPORT void InfoFirst (Intf_PIType& Dim, Standard_Integer& Addr, Standard_Real& Param) const; - + Standard_EXPORT void InfoSecond (Intf_PIType& Dim, Standard_Integer& Add1, Standard_Integer& Add2, Standard_Real& Param) const; - - //! Gives the datas about the second argument of the - //! Interference. + + //! Gives the data about the second argument of the Interference. Standard_EXPORT void InfoSecond (Intf_PIType& Dim, Standard_Integer& Addr, Standard_Real& Param) const; - + //! Gives the incidence at this section point. The incidence //! between the two triangles is given by the cosine. The best //! incidence is 0. (PI/2). The worst is 1. (null angle). @@ -103,19 +100,8 @@ public: Standard_EXPORT void Dump (const Standard_Integer Indent) const; - - - -protected: - - - - - private: - - gp_Pnt myPnt; Intf_PIType DimenObje; Standard_Integer IndexO1; @@ -127,14 +113,8 @@ private: Standard_Real ParamTool; Standard_Real Incide; - }; - #include - - - - #endif // _Intf_SectionPoint_HeaderFile