]> OCCT Git - occt.git/commitdiff
0031939: Coding - correction of spelling errors in comments [part 9]
authorluz paz <luzpaz@users.noreply.github.com>
Thu, 1 Apr 2021 17:18:10 +0000 (20:18 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 2 Apr 2021 17:01:34 +0000 (20:01 +0300)
Fix various typos via codespell.

59 files changed:
samples/mfc/standard/Common/OCC_2dView.cpp
src/IGESControl/IGESControl_IGESBoundary.cxx
src/IGESGeom/IGESGeom_ConicArc.hxx
src/IGESSelect/IGESSelect_FloatFormat.hxx
src/IGESSelect/IGESSelect_SelectPCurves.hxx
src/IGESSelect/IGESSelect_SelectSubordinate.hxx
src/IGESToBRep/IGESToBRep_IGESBoundary.cxx
src/IGESToBRep/IGESToBRep_IGESBoundary.hxx
src/IntPolyh/IntPolyh_MaillageAffinage.cxx
src/IntPolyh/IntPolyh_MaillageAffinage.hxx
src/IntRes2d/IntRes2d_Intersection.cxx
src/IntTools/IntTools_FaceFace.hxx
src/Law/Law.hxx
src/Law/Law_BSpFunc.hxx
src/Law/Law_BSpline.hxx
src/Law/Law_Composite.hxx
src/Law/Law_Function.hxx
src/LocOpe/FILES
src/LocOpe/LocOpe_CSIntersector.hxx
src/LocOpe/LocOpe_CurveShapeIntersector.hxx
src/LocOpe/LocOpe_Generator.cxx
src/LocOpe/LocOpe_SplitDrafts.hxx
src/LocOpe/LocOpe_SplitDrafts.lxx [deleted file]
src/LocOpe/LocOpe_WiresOnShape.hxx
src/LocalAnalysis/LocalAnalysis.hxx
src/MeshVS/MeshVS_DataSource.hxx
src/MeshVS/MeshVS_MeshPrsBuilder.hxx
src/Message/Message_AttributeMeter.hxx
src/Message/Message_MsgFile.hxx
src/NCollection/NCollection_Array1.hxx
src/OSD/OSD.cxx
src/OSD/OSD.hxx
src/OSD/OSD_Directory.hxx
src/OSD/OSD_Environment.cxx
src/OSD/OSD_Environment.hxx
src/OSD/OSD_File.hxx
src/OSD/OSD_FileNode.cxx
src/OSD/OSD_FileSystem.hxx
src/OSD/OSD_MAllocHook.hxx
src/OSD/OSD_Parallel.cxx
src/OSD/OSD_Parallel.hxx
src/OSD/OSD_Parallel_Threads.cxx
src/OSD/OSD_Path.cxx
src/OSD/OSD_Path.hxx
src/OSD/OSD_ThreadFunction.hxx
src/OSD/OSD_WNT.cxx
src/OSD/OSD_signal.cxx
src/OpenGl/OpenGl_Caps.hxx
src/OpenGl/OpenGl_Context.cxx
src/OpenGl/OpenGl_GraduatedTrihedron.cxx
src/OpenGl/OpenGl_GraduatedTrihedron.hxx
src/OpenGl/OpenGl_TextBuilder.hxx
src/OpenGl/OpenGl_View.hxx
src/math/math_FunctionSet.hxx
src/math/math_FunctionSetWithDerivatives.hxx
src/math/math_IntegerVector.hxx
src/math/math_Matrix.hxx
src/math/math_Uzawa.hxx
src/math/math_Vector.hxx

index 05da0188489aadebb3d9f412d3ee959e6cb0a21c..f127c5b5107d40a30fcd3b8df9915a65e8ddc1ee 100755 (executable)
@@ -217,7 +217,7 @@ void OCC_2dView::OnUpdateBUTTONGridCancel(CCmdUI* pCmdUI)
 void OCC_2dView::OnSize(UINT nType, int cx, int cy)
 {
   OCC_BaseView::OnSize (nType, cx, cy);
-  // Take care : This fonction is call before OnInitialUpdate
+  // Take care : This function is called before OnInitialUpdate
   if (!myView.IsNull())
     myView->MustBeResized(); 
 }
index 12106ba106abdd33b1681c428130080d59b4c461..3169a9a38a14f42bb060b6498d75ec9a9d9a2d38 100644 (file)
@@ -193,7 +193,7 @@ static Standard_Boolean Connect (const Handle(ShapeAnalysis_Wire)& theSAW,
     GTranslate2d = Standard_False;
  
   if (GTranslate3d && GTranslate2d) {
-    //Setting preference in the case of inconsitency between 3D and 2D
+    //Setting preference in the case of inconsistency between 3D and 2D
     if      (surfcurv == 2)         Preferred3d = Standard_False;
     else if (surfcurv == 3)         Preferred2d = Standard_False;
     else if (myfilepreference == 2) Preferred3d = Standard_False;
index bb276f7da61699c8b44e573725477782bdbcca08..df39068343506d5b032159dea37544bfe1d80b07 100644 (file)
@@ -108,7 +108,7 @@ public:
   Standard_EXPORT gp_Dir TransformedAxis() const;
   
   //! Returns a Definition computed from equation, easier to use
-  //! <Center> : the center of the the conic (meaningless for
+  //! <Center> : the center of the conic (meaningless for
   //! a parabola) (defined with Z displacement)
   //! <MainAxis> : the Main Axis of the conic (for a Circle,
   //! arbitrary the X Axis)
index 40e5d901f465f25fa7ad0049a74cdfb1607c976d..ba702ab101d8a41425f78ea37593d3733a868f09 100644 (file)
@@ -59,7 +59,7 @@ public:
   
   //! Sets Main Format to a new value
   //! Remark : SetFormat, SetZeroSuppress and SetFormatForRange are
-  //! independant
+  //! independent
   Standard_EXPORT void SetFormat (const Standard_CString format = "%E");
   
   //! Sets Format for Range to a new value with its range of
index b3967503ce23c360e7d18b4122f621a2b57b86ff..c388d93be9a0c154cb1d6129d79b147abdab28a9 100644 (file)
@@ -48,7 +48,7 @@ public:
   Standard_EXPORT IGESSelect_SelectPCurves(const Standard_Boolean basic);
   
   //! Explores an entity, to take its contained PCurves
-  //! An independant curve is IGNORED : only faces are explored
+  //! An independent curve is IGNORED : only faces are explored
   Standard_EXPORT Standard_Boolean Explore (const Standard_Integer level, const Handle(Standard_Transient)& ent, const Interface_Graph& G, Interface_EntityIterator& explored) const Standard_OVERRIDE;
   
   //! Returns a text defining the criterium : "Basic PCurves" or
index f8502d1806623a10ac5385d4412311458cb22a6d..4215a2f83b3ce00c4deaa25b216eb2e7474ed3f2 100644 (file)
@@ -37,14 +37,14 @@ DEFINE_STANDARD_HANDLE(IGESSelect_SelectSubordinate, IFSelect_SelectExtract)
 
 //! This selections uses Subordinate Status as sort criterium
 //! It is an integer number which can be :
-//! 0 Independant
-//! 1 Physically Dependant
-//! 2 Logically Dependant
+//! 0 Independent
+//! 1 Physically Dependent
+//! 2 Logically Dependent
 //! 3 Both (recorded)
 //! + to sort :
 //! 4 : 1 or 3  ->  at least Physically
 //! 5 : 2 or 3  ->  at least Logically
-//! 6 : 1 or 2 or 3 -> any kind of dependance
+//! 6 : 1 or 2 or 3 -> any kind of dependence
 //! (corresponds to 0 reversed)
 class IGESSelect_SelectSubordinate : public IFSelect_SelectExtract
 {
@@ -62,7 +62,7 @@ public:
   //! Status matching the criterium
   Standard_EXPORT Standard_Boolean Sort (const Standard_Integer rank, const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const Standard_OVERRIDE;
   
-  //! Returns the Selection criterium : "IGES Entity, Independant"
+  //! Returns the Selection criterium : "IGES Entity, Independent"
   //! etc...
   Standard_EXPORT TCollection_AsciiString ExtractLabel() const Standard_OVERRIDE;
 
index 0afd25a328ea64e20fb8964d03bfd597d3ca3ea6..21e04d07e4f233731f0704af56ac58545637edd7 100644 (file)
@@ -172,7 +172,7 @@ IGESToBRep_IGESBoundary::IGESToBRep_IGESBoundary(const IGESToBRep_CurveAndSurfac
     GTranslate2d = Standard_False;
   
   if (GTranslate3d && GTranslate2d) {
-    //Setting preference in the case of inconsitency between 3D and 2D
+    //Setting preference in the case of inconsistency between 3D and 2D
     if      (myfilepreference == 2) Preferred3d = Standard_False;
     else if (myfilepreference == 3) Preferred2d = Standard_False;
     else                            Preferred3d = Standard_False;
index 37fa4275d0d32a5ab8b2f55180bc85d0fedf3ba5..c80fbebc3402858b171d787b29d49db7a6e08822 100644 (file)
@@ -72,7 +72,7 @@ public:
   //! and may contain pcurves)
     Handle(ShapeExtend_WireData) WireData3d() const;
   
-  //! Returns the the wire from 2D curves (edges contain pcurves
+  //! Returns the wire from 2D curves (edges contain pcurves
   //! only)
     Handle(ShapeExtend_WireData) WireData2d() const;
   
index f565421d722ef549f0ceeda5d83c95770ffbc366..44ffc62bea94e7e13da1a074db473a5cea01f657 100644 (file)
@@ -1227,8 +1227,8 @@ Standard_Integer project6(const IntPolyh_Point &ax,
 }
 //=======================================================================
 //function : TriContact
-//purpose  : This fonction     Check if two triangles   are  in
-//           contact or no return 1 if yes, return 0
+//purpose  : This function checks if two triangles are in
+//           contact or not, return 1 if yes, return 0
 //           if no.
 //=======================================================================
 Standard_Integer IntPolyh_MaillageAffinage::TriContact
index 1b7841cf1ba29130c420f9bea0e77c5856adab4d..ee78cc2fd40dce66601be1cb172d3e897b8a9077 100644 (file)
@@ -39,11 +39,11 @@ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
+
   Standard_EXPORT IntPolyh_MaillageAffinage(const Handle(Adaptor3d_Surface)& S1, const Standard_Integer NbSU1, const Standard_Integer NbSV1, const Handle(Adaptor3d_Surface)& S2, const Standard_Integer NbSU2, const Standard_Integer NbSV2, const Standard_Integer PRINT);
-  
+
   Standard_EXPORT IntPolyh_MaillageAffinage(const Handle(Adaptor3d_Surface)& S1, const Handle(Adaptor3d_Surface)& S2, const Standard_Integer PRINT);
-  
+
 
   //! Makes the sampling of the surface -
   //! Fills the arrays with the parametric values of the sampling points (triangulation nodes).
@@ -54,7 +54,7 @@ public:
   //! Computes points on one surface and fills an array of points;
   //! standard (default) method
   Standard_EXPORT void FillArrayOfPnt (const Standard_Integer SurfID);
-  
+
   //! isShiftFwd flag is added. The purpose is to define shift
   //! of points along normal to the surface in this point. The
   //! shift length represents maximal deflection of triangulation.
@@ -64,7 +64,7 @@ public:
   //! advanced method
   Standard_EXPORT void FillArrayOfPnt (const Standard_Integer SurfID,
                                        const Standard_Boolean isShiftFwd);
-  
+
   //! Compute points on one surface and fill an array of points;
   //! If given, <theDeflTol> is the deflection tolerance of the given sampling.
   //! standard (default) method
@@ -72,7 +72,7 @@ public:
                                        const TColStd_Array1OfReal& Upars,
                                        const TColStd_Array1OfReal& Vpars,
                                        const Standard_Real *theDeflTol = NULL);
-  
+
   //! isShiftFwd flag is added. The purpose is to define shift
   //! of points along normal to the surface in this point. The
   //! shift length represents maximal deflection of triangulation.
@@ -103,97 +103,90 @@ public:
   //! of the two bounding boxes,  and mark the points of
   //! the two surfaces that are inside.
   Standard_EXPORT void CommonBox (const Bnd_Box& B1, const Bnd_Box& B2, Standard_Real& xMin, Standard_Real& yMin, Standard_Real& zMin, Standard_Real& xMax, Standard_Real& yMax, Standard_Real& zMax);
-  
+
   //! Compute edges from the array of points
   Standard_EXPORT void FillArrayOfEdges (const Standard_Integer SurfID);
-  
+
   //! Compute triangles from the array of points, and --
   //! mark the triangles  that use marked points by the
   //! CommonBox function.
   Standard_EXPORT void FillArrayOfTriangles (const Standard_Integer SurfID);
-  
+
   //! Refine systematicaly all marked triangles of both surfaces
   Standard_EXPORT void CommonPartRefinement();
-  
+
   //! Refine systematicaly all marked triangles of ONE surface
   Standard_EXPORT void LocalSurfaceRefinement (const Standard_Integer SurfId);
-  
+
   //! Compute deflection  for   all  triangles  of  one
   //! surface,and sort min and max of deflections
   Standard_EXPORT void ComputeDeflections (const Standard_Integer SurfID);
-  
+
   //! Refine  both  surfaces using  BoundSortBox  as --
   //! rejection.  The  criterions  used to refine a  --
   //! triangle are:  The deflection The  size of the --
   //! bounding boxes   (one surface may be   very small
   //! compared to the other)
   Standard_EXPORT void TrianglesDeflectionsRefinementBSB();
-  
-  //! This fonction     Check if two triangles   are  in
-  //! contact or no,  return 1 if yes, return 0
-  //! if no.
+
+  //! This function checks if two triangles are in contact or not,
+  //! return 1 if yes, return 0 if not.
   Standard_EXPORT Standard_Integer TriContact (const IntPolyh_Point& P1, const IntPolyh_Point& P2, const IntPolyh_Point& P3, const IntPolyh_Point& Q1, const IntPolyh_Point& Q2, const IntPolyh_Point& Q3, Standard_Real& Angle) const;
-  
+
   Standard_EXPORT Standard_Integer TriangleEdgeContact (const Standard_Integer TriSurfID, const Standard_Integer EdgeIndice, const IntPolyh_Triangle& Tri1, const IntPolyh_Triangle& Tri2, const IntPolyh_Point& P1, const IntPolyh_Point& P2, const IntPolyh_Point& P3, const IntPolyh_Point& C1, const IntPolyh_Point& C2, const IntPolyh_Point& C3, const IntPolyh_Point& Pe1, const IntPolyh_Point& Pe2, const IntPolyh_Point& E, const IntPolyh_Point& N, IntPolyh_StartPoint& SP1, IntPolyh_StartPoint& SP2) const;
-  
-  //! From  two  triangles compute intersection  points.
-  //! If I found   more  than two intersection  points
-  //! that's mean that those triangle are coplanar
+
+  //! From two triangles compute intersection points.
+  //! If we found more than two intersection points
+  //! that means that those triangles are coplanar
   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
-  //! search the other point (if it exist).
+
+  //! from two triangles and an intersection point I
+  //! search the other point (if it exists).
   //! 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;
-  
-  //! Analyse  each couple of  triangles from the two --
-  //! array  of triangles,  to   see  if they are  in
-  //! contact,  and  compute the  incidence.  Then  put
-  //! couples  in contact  in  the  array  of  couples
+
+  //! Analyse each couple of triangles from the two -- array of triangles,
+  //! to see if they are in contact, and compute the incidence.
+  //! Then put couples in contact in the array of couples
   Standard_EXPORT Standard_Integer TriangleCompare();
-  
+
   //! Loop on the array of couples. Compute StartPoints.
   //! Try to chain  the StartPoints into SectionLines or
   //! put  the  point  in  the    ArrayOfTangentZones if
   //! chaining it, is not possible.
   Standard_EXPORT Standard_Integer StartPointsChain (IntPolyh_ArrayOfSectionLines& TSectionLines, IntPolyh_ArrayOfTangentZones& TTangentZones);
-  
+
   //! Mainly  used  by StartPointsChain(), this function
   //! try to compute the next StartPoint.
   Standard_EXPORT Standard_Integer GetNextChainStartPoint (const IntPolyh_StartPoint& SPInit, IntPolyh_StartPoint& SPNext, IntPolyh_SectionLine& MySectionLine, IntPolyh_ArrayOfTangentZones& TTangentZones, const Standard_Boolean Prepend = Standard_False);
-  
+
   Standard_EXPORT const IntPolyh_ArrayOfPoints& GetArrayOfPoints (const Standard_Integer SurfID) const;
-  
+
   Standard_EXPORT const IntPolyh_ArrayOfEdges& GetArrayOfEdges (const Standard_Integer SurfID) const;
-  
+
   Standard_EXPORT const IntPolyh_ArrayOfTriangles& GetArrayOfTriangles (const Standard_Integer SurfID) const;
-  
+
   Standard_EXPORT Standard_Integer GetFinTE (const Standard_Integer SurfID) const;
-  
+
   Standard_EXPORT Standard_Integer GetFinTT (const Standard_Integer SurfID) const;
-  
+
   Standard_EXPORT Bnd_Box GetBox (const Standard_Integer SurfID) const;
-  
+
   //! This method returns list of couples of contact triangles.
   Standard_EXPORT IntPolyh_ListOfCouples& GetCouples();
-  
+
   Standard_EXPORT void SetEnlargeZone (const Standard_Boolean EnlargeZone);
-  
+
   Standard_EXPORT Standard_Boolean GetEnlargeZone() const;
-  
+
   //! returns FlecheMin
   Standard_EXPORT Standard_Real GetMinDeflection (const Standard_Integer SurfID) const;
-  
+
   //! returns FlecheMax
   Standard_EXPORT Standard_Real GetMaxDeflection (const Standard_Integer SurfID) const;
 
-
-protected:
-
-
 private:
 
-
   Handle(Adaptor3d_Surface) MaSurface1;
   Handle(Adaptor3d_Surface) MaSurface2;
   Bnd_Box MyBox1;
index 315390f695d90f4994052818cfb0ccab6058d058..a4a6e352dee4d38ed1f4adad84e6534503593304 100644 (file)
@@ -128,10 +128,10 @@ void IntRes2d_Intersection::SetValues(const IntRes2d_Intersection& Other) {
 //--  parameter of the bounds of the composite Curve
 //-- Merge of two Intersection Segments S1 and S2 when :
 //--  
-//--     S1 : U1First,PosU1Fisrt   -->  U1Last,PosU1Last
-//--          V1First,PosV1Fisrt   -->  V1Last,PosV1Last
-//--     S2 : U2First,PosU2Fisrt   -->  U2Last,PosU2Last
-//--          V2First,PosV2Fisrt   -->  V2Last,PosV2Last
+//--     S1 : U1First,PosU1First   -->  U1Last,PosU1Last
+//--          V1First,PosV1First   -->  V1Last,PosV1Last
+//--     S2 : U2First,PosU2First   -->  U2Last,PosU2Last
+//--          V2First,PosV2First   -->  V2Last,PosV2Last
 //--
 //--   1       U :      X------1-------E H-----2-------X   U -->
 //--           V :      X------1-------X X-----2-------X  <- V -> ?
index 33204ce7cc74bcdedeefdb9f2adc40e059154249..9a74f94b3987cd540761b2895e905ef7e19475de 100644 (file)
@@ -73,14 +73,11 @@ public:
   //! Returns True if faces are tangent
   Standard_EXPORT Standard_Boolean TangentFaces() const;
 
-
   //! Provides post-processing the result lines.
-  //! <bToSplit> - the flag.
-  //! In case of <bToSplit> is true the closed 3D-curves will be splitted
-  //! on parts.
-  //! In case of <bToSplit> is false the closed 3D-curves remain untouched.
+  //! @param bToSplit [in] split the closed 3D-curves on parts when TRUE,
+  //!                      remain untouched otherwise
   Standard_EXPORT void PrepareLines3D (const Standard_Boolean bToSplit = Standard_True);
-  
+
   Standard_EXPORT void SetList (IntSurf_ListOfPntOn2S& ListOfPnts);
   
 
index 28b4e0a9596b2d1202e1f00ffc755e09827275de..b23b1c24fff47de1706f4e2ab572eb1fff899046 100644 (file)
@@ -65,10 +65,10 @@ public:
   Standard_EXPORT static Handle(TColStd_HArray1OfReal) MixBnd (const Standard_Integer Degree, const TColStd_Array1OfReal& Knots, const TColStd_Array1OfInteger& Mults, const Handle(Law_Linear)& Lin);
   
   //! Builds the poles of the 1d bspline that is null on the
-  //! rigth    side   of   Knots(Index)  (on  the    left if
+  //! right    side   of   Knots(Index)  (on  the    left if
   //! NulOnTheRight  is  false)    and   that is     like  a
   //! t*(1-t)(1-t) curve  on the  left side of  Knots(Index)
-  //! (on the rigth  if NulOnTheRight is false).  The result
+  //! (on the right  if NulOnTheRight is false).  The result
   //! curve is  C1 with  a derivative  equal  to 1. at first
   //! parameter (-1 at last  parameter  if  NulOnTheRight is
   //! false).
index 755795feb55a5483d693735b1100fbae3a0d25bb..06967499e8d2082385c84fbe0749240335c20432 100644 (file)
@@ -42,7 +42,6 @@ class Law_BSpFunc : public Law_Function
 
 public:
 
-  
   Standard_EXPORT Law_BSpFunc();
   
   Standard_EXPORT Law_BSpFunc(const Handle(Law_BSpline)& C, const Standard_Real First, const Standard_Real Last);
@@ -52,14 +51,11 @@ public:
   //! Returns  the number  of  intervals for  continuity
   //! <S>. May be one if Continuity(me) >= <S>
   Standard_EXPORT Standard_Integer NbIntervals (const GeomAbs_Shape S) const Standard_OVERRIDE;
-  
-  //! Stores in <T> the  parameters bounding the intervals
-  //! of continuity <S>.
-  //!
-  //! The array must provide  enough room to  accomodate
-  //! for the parameters. i.e. T.Length() > NbIntervals()
+
+  //! Stores in <T> the parameters bounding the intervals of continuity <S>.
+  //! The array must provide enough room to accommodate for the parameters, i.e. T.Length() > NbIntervals()
   Standard_EXPORT void Intervals (TColStd_Array1OfReal& T, const GeomAbs_Shape S) const Standard_OVERRIDE;
-  
+
   Standard_EXPORT Standard_Real Value (const Standard_Real X) Standard_OVERRIDE;
   
   Standard_EXPORT void D1 (const Standard_Real X, Standard_Real& F, Standard_Real& D) Standard_OVERRIDE;
@@ -80,30 +76,14 @@ public:
   
   Standard_EXPORT void SetCurve (const Handle(Law_BSpline)& C);
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(Law_BSpFunc,Law_Function)
 
-protected:
-
-
-
-
 private:
 
-
   Handle(Law_BSpline) curv;
   Standard_Real first;
   Standard_Real last;
 
-
 };
 
-
-
-
-
-
-
 #endif // _Law_BSpFunc_HeaderFile
index 3c0cbf0217966465188301c4713b9b765a1bd996..d8548612b4bd7d26b7dbb506d506053fceb96d54 100644 (file)
@@ -68,7 +68,7 @@ DEFINE_STANDARD_HANDLE(Law_BSpline, Standard_Transient)
 //! -  Quasi-uniform if  all multiplicities are  1
 //! but the first and the last which are Degree+1.
 //!
-//! -   PiecewiseBezier if  all multiplicites  are
+//! -   PiecewiseBezier if  all multiplicities are
 //! Degree but the   first and the  last which are
 //! Degree+1.
 //!
@@ -518,7 +518,7 @@ public:
   //! StartingCondition = 1 means the first point and tangent cannot move
   //! EndingCondition   = 1 means the last point and tangent cannot move
   //! and so forth
-  //! ErrorStatus != 0 means that there are not enought degree of freedom
+  //! ErrorStatus != 0 means that there are not enough degree of freedom
   //! with the constrain to deform the curve accordingly
   Standard_EXPORT void MovePointAndTangent (const Standard_Real U, const Standard_Real NewValue, const Standard_Real Derivative, const Standard_Real Tolerance, const Standard_Integer StartingCondition, const Standard_Integer EndingCondition, Standard_Integer& ErrorStatus);
   
index 0ffcbda7e9ad74da5fcb6faa667ea6aae605afb0..ed72b6c9b9688ee4bc23ae1553448f1a9425ab09 100644 (file)
@@ -48,36 +48,34 @@ class Law_Composite : public Law_Function
 
 public:
 
-  
+
   //! Construct an empty Law
   Standard_EXPORT Law_Composite();
-  
-  //! Construct an empty, trimed Law
+
+  //! Construct an empty, trimmed Law
   Standard_EXPORT Law_Composite(const Standard_Real First, const Standard_Real Last, const Standard_Real Tol);
-  
+
   Standard_EXPORT GeomAbs_Shape Continuity() const Standard_OVERRIDE;
-  
+
   //! Returns  the number  of  intervals for  continuity
   //! <S>. May be one if Continuity(me) >= <S>
   Standard_EXPORT Standard_Integer NbIntervals (const GeomAbs_Shape S) const Standard_OVERRIDE;
-  
-  //! Stores in <T> the  parameters bounding the intervals
-  //! of continuity <S>.
-  //!
-  //! The array must provide  enough room to  accomodate
-  //! for the parameters. i.e. T.Length() > NbIntervals()
+
+  //! Stores in <T> the  parameters bounding the intervals of continuity <S>.
+  //! The array must provide enough room to accommodate for the parameters,
+  //! i.e. T.Length() > NbIntervals()
   Standard_EXPORT void Intervals (TColStd_Array1OfReal& T, const GeomAbs_Shape S) const Standard_OVERRIDE;
-  
+
   //! Returns the value at parameter X.
   Standard_EXPORT Standard_Real Value (const Standard_Real X) Standard_OVERRIDE;
-  
+
   //! Returns the value and the first derivative at parameter X.
   Standard_EXPORT void D1 (const Standard_Real X, Standard_Real& F, Standard_Real& D) Standard_OVERRIDE;
-  
+
   //! Returns the value, first and second derivatives
   //! at parameter X.
   Standard_EXPORT void D2 (const Standard_Real X, Standard_Real& F, Standard_Real& D, Standard_Real& D2) Standard_OVERRIDE;
-  
+
   //! Returns a  law equivalent of  <me>  between
   //! parameters <First>  and <Last>. <Tol>  is used  to
   //! test for 3d points confusion.
@@ -85,33 +83,24 @@ public:
   //! in these values <First> and <Last> if
   //! the Law is not Cn.
   Standard_EXPORT Handle(Law_Function) Trim (const Standard_Real PFirst, const Standard_Real PLast, const Standard_Real Tol) const Standard_OVERRIDE;
-  
+
   //! Returns the parametric bounds of the function.
   Standard_EXPORT void Bounds (Standard_Real& PFirst, Standard_Real& PLast) Standard_OVERRIDE;
-  
+
   //! Returns the elementary  function of the composite used
   //! to compute at parameter W.
   Standard_EXPORT Handle(Law_Function)& ChangeElementaryLaw (const Standard_Real W);
-  
-  Standard_EXPORT Law_Laws& ChangeLaws();
-  
-  Standard_EXPORT Standard_Boolean IsPeriodic() const;
-  
-  Standard_EXPORT void SetPeriodic();
 
+  Standard_EXPORT Law_Laws& ChangeLaws();
 
+  Standard_EXPORT Standard_Boolean IsPeriodic() const;
 
+  Standard_EXPORT void SetPeriodic();
 
   DEFINE_STANDARD_RTTIEXT(Law_Composite,Law_Function)
 
-protected:
-
-
-
-
 private:
 
-  
   //! Set the current function.
   Standard_EXPORT void Prepare (Standard_Real& W);
 
@@ -124,13 +113,6 @@ private:
   Standard_Real TLast;
   Standard_Real PTol;
 
-
 };
 
-
-
-
-
-
-
 #endif // _Law_Composite_HeaderFile
index 03e255001fc4675902ecce32ac495df335d80b74..c5305d8b25c09cfdcc99d438a376fcab36c1f32c 100644 (file)
@@ -44,11 +44,9 @@ public:
   //! <S>. May be one if Continuity(me) >= <S>
   Standard_EXPORT virtual Standard_Integer NbIntervals (const GeomAbs_Shape S) const = 0;
   
-  //! Stores in <T> the  parameters bounding the intervals
-  //! of continuity <S>.
-  //!
-  //! The array must provide  enough room to  accomodate
-  //! for the parameters. i.e. T.Length() > NbIntervals()
+  //! Stores in <T> the parameters bounding the intervals of continuity <S>.
+  //! The array must provide enough room to accommodate for the parameters,
+  //! i.e. T.Length() > NbIntervals()
   Standard_EXPORT virtual void Intervals (TColStd_Array1OfReal& T, const GeomAbs_Shape S) const = 0;
   
   //! Returns the value of the function at the point of parameter X.
index 14c1f84a45dd99b0c7dce99c041aae0326f3d9f3..8d69105694a48c9ce3e7b4971ff546723be9df64 100644 (file)
@@ -50,7 +50,6 @@ LocOpe_SequenceOfLin.hxx
 LocOpe_SequenceOfPntFace.hxx
 LocOpe_SplitDrafts.cxx
 LocOpe_SplitDrafts.hxx
-LocOpe_SplitDrafts.lxx
 LocOpe_Spliter.cxx
 LocOpe_Spliter.hxx
 LocOpe_Spliter.lxx
index e88ef821f262b1a6abfa93087b0171dd3ef04fa8..249e01ffc9ed682a5b128bdbbb7a888995f635eb 100644 (file)
@@ -78,7 +78,7 @@ public:
   
   //! On  the element of range   <I>, searches the first
   //! intersection   point  located after  the parameter
-  //! <From>,   wich orientation is not TopAbs_EXTERNAL.
+  //! <From>,  which orientation is not TopAbs_EXTERNAL.
   //! If  found, returns <Standard_True>.  <Or> contains
   //! the orientation    of  the  point,  <IndFrom>  and
   //! <IndTo> represents  the interval  of index in  the
@@ -91,7 +91,7 @@ public:
   
   //! On the element  of range  <I>, searches the  first
   //! intersection point   located before  the parameter
-  //! <From>,  wich orientation  is not TopAbs_EXTERNAL.
+  //! <From>,  which orientation is not TopAbs_EXTERNAL.
   //! If found,  returns <Standard_True>.  <Or> contains
   //! the   orientation  of   the point,  <IndFrom>  and
   //! <IndTo> represents the interval   of index in  the
@@ -104,7 +104,7 @@ public:
   
   //! On the  element of  range <I>, searches  the first
   //! intersection      point  located after the   index
-  //! <FromInd> ( >=  FromInd + 1), wich  orientation is
+  //! <FromInd> ( >=  FromInd + 1), which orientation is
   //! not    TopAbs_EXTERNAL.      If    found,  returns
   //! <Standard_True>.  <Or> contains the orientation of
   //! the  point, <IndFrom>  and <IndTo> represents  the
@@ -118,7 +118,7 @@ public:
   
   //! On  the element of  range  <I>, searches the first
   //! intersection  point    located  before  the  index
-  //! <FromInd>  (  <= FromInd -1),  wich orientation is
+  //! <FromInd>  (  <= FromInd -1), which orientation is
   //! not   TopAbs_EXTERNAL.  If    found,       returns
   //! <Standard_True>.  <Or> contains the orientation of
   //! the  point, <IndFrom>  and  <IndTo> represents the
index 7562e0518d40cc04bd7d7ff13712c29491b83218..ffdf37dae8310dba481540cd2ff54d6e8d33059d 100644 (file)
@@ -75,7 +75,7 @@ public:
     const LocOpe_PntFace& Point (const Standard_Integer Index) const;
   
   //! Searches the   first intersection  point   located
-  //! after the  parameter  <From>, wich  orientation is
+  //! after the parameter  <From>, which  orientation is
   //! not       TopAbs_EXTERNAL.      If found,  returns
   //! <Standard_True>.  <Or> contains the orientation of
   //! the  point, <IndFrom>  and  <IndTo> represents the
@@ -87,7 +87,7 @@ public:
   Standard_EXPORT Standard_Boolean LocalizeAfter (const Standard_Real From, TopAbs_Orientation& Or, Standard_Integer& IndFrom, Standard_Integer& IndTo) const;
   
   //! Searches  the first intersection point     located
-  //! before  the parameter <From>,  wich orientation is
+  //! before  the parameter <From>, which orientation is
   //! not      TopAbs_EXTERNAL.      If  found,  returns
   //! <Standard_True>.  <Or> contains the orientation of
   //! the point,  <IndFrom>  and <IndTo>  represents the
@@ -99,7 +99,7 @@ public:
   Standard_EXPORT Standard_Boolean LocalizeBefore (const Standard_Real From, TopAbs_Orientation& Or, Standard_Integer& IndFrom, Standard_Integer& IndTo) const;
   
   //! Searches  the first intersection point     located
-  //! after the index <FromInd>  ( >= FromInd + 1), wich
+  //! after the index <FromInd> ( >= FromInd + 1), which
   //! orientation   is   not TopAbs_EXTERNAL.   If found,
   //! returns   <Standard_True>.   <Or>  contains    the
   //! orientation of the  point, <IndFrom>  and  <IndTo>
@@ -111,7 +111,7 @@ public:
   Standard_EXPORT Standard_Boolean LocalizeAfter (const Standard_Integer FromInd, TopAbs_Orientation& Or, Standard_Integer& IndFrom, Standard_Integer& IndTo) const;
   
   //! Searches the  first  intersection   point  located
-  //! before the index <FromInd>  ( <= FromInd -1), wich
+  //! before the index <FromInd> ( <= FromInd -1), which
   //! orientation is   not TopAbs_EXTERNAL.   If   found,
   //! returns   <Standard_True>.  <Or>  contains     the
   //! orientation  of the  point,  <IndFrom> and <IndTo>
index 4debc420e9e07faa2270b36945cb534de8686c3a..f439bb3ea6f5e28a41cb74c1eb1b98b279a726dd 100644 (file)
@@ -14,7 +14,7 @@
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
-// Modifed:     Portage NT 7-5-97 DPF (return NewParameter)
+#include <LocOpe_Generator.hxx>
 
 #include <BRep_Builder.hxx>
 #include <BRep_Tool.hxx>
@@ -35,7 +35,6 @@
 #include <gp_Pln.hxx>
 #include <LocOpe_BuildShape.hxx>
 #include <LocOpe_GeneratedShape.hxx>
-#include <LocOpe_Generator.hxx>
 #include <Precision.hxx>
 #include <Standard_NoSuchObject.hxx>
 #include <Standard_NullObject.hxx>
index b8725fc761b56a8c2237df010525d9711b6dcb70..10c035bd132de95247a51e0110dd779c31c48962 100644 (file)
 #include <Standard.hxx>
 #include <Standard_DefineAlloc.hxx>
 #include <Standard_Handle.hxx>
-
+#include <Standard_Real.hxx>
 #include <TopoDS_Shape.hxx>
 #include <TopTools_DataMapOfShapeListOfShape.hxx>
-#include <Standard_Real.hxx>
-#include <Standard_Boolean.hxx>
 #include <TopTools_ListOfShape.hxx>
-class StdFail_NotDone;
-class Standard_NoSuchObject;
-class Standard_ConstructionError;
-class Standard_NullObject;
-class TopoDS_Shape;
+
 class TopoDS_Face;
 class TopoDS_Wire;
 class gp_Dir;
 class gp_Pln;
 
-
 //! This  class  provides  a    tool to   realize  the
 //! following operations on a shape :
 //! - split a face of the shape with a wire,
@@ -48,14 +41,13 @@ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Empty constructor.
-    LocOpe_SplitDrafts();
-  
-  //! Creates the algoritm on the shape <S>.
-    LocOpe_SplitDrafts(const TopoDS_Shape& S);
+  LocOpe_SplitDrafts() {}
+
+  //! Creates the algorithm on the shape <S>.
+  LocOpe_SplitDrafts(const TopoDS_Shape& S) : myShape (S) {}
   
-  //! Initializes the algoritm with the shape <S>.
+  //! Initializes the algorithm with the shape <S>.
   Standard_EXPORT void Init (const TopoDS_Shape& S);
   
   //! Splits the face <F> of the former given shape with
@@ -85,43 +77,23 @@ public:
   //! angle.
   Standard_EXPORT void Perform (const TopoDS_Face& F, const TopoDS_Wire& W, const gp_Dir& Extract, const gp_Pln& NPl, const Standard_Real Angle);
   
-  //! Returns <Standard_True>  if the  modification  has
-  //! been succesfully performed.
-    Standard_Boolean IsDone() const;
-  
-    const TopoDS_Shape& OriginalShape() const;
-  
+  //! Returns <Standard_True> if the modification has been successfully performed.
+  Standard_Boolean IsDone() const { return !myResult.IsNull(); }
+
+  const TopoDS_Shape& OriginalShape() const { return myShape; }
+
   //! Returns the modified shape.
   Standard_EXPORT const TopoDS_Shape& Shape() const;
-  
+
   //! Manages the descendant shapes.
   Standard_EXPORT const TopTools_ListOfShape& ShapesFromShape (const TopoDS_Shape& S) const;
 
-
-
-
-protected:
-
-
-
-
-
 private:
 
-
-
   TopoDS_Shape myShape;
   TopoDS_Shape myResult;
   TopTools_DataMapOfShapeListOfShape myMap;
 
-
 };
 
-
-#include <LocOpe_SplitDrafts.lxx>
-
-
-
-
-
 #endif // _LocOpe_SplitDrafts_HeaderFile
diff --git a/src/LocOpe/LocOpe_SplitDrafts.lxx b/src/LocOpe/LocOpe_SplitDrafts.lxx
deleted file mode 100644 (file)
index 590e85c..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-// Created on: 1996-10-02
-// Created by: Jacques GOUSSARD
-// Copyright (c) 1996-1999 Matra Datavision
-// Copyright (c) 1999-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-//=======================================================================
-//function : LocOpe_SplitDrafts
-//purpose  : 
-//=======================================================================
-
-inline LocOpe_SplitDrafts::LocOpe_SplitDrafts ()
-{}
-
-
-//=======================================================================
-//function : LocOpe_SplitDrafts
-//purpose  : 
-//=======================================================================
-
-inline LocOpe_SplitDrafts::LocOpe_SplitDrafts (const TopoDS_Shape& S):
-   myShape(S)
-{}
-
-
-//=======================================================================
-//function : IsDone
-//purpose  : 
-//=======================================================================
-
-inline Standard_Boolean LocOpe_SplitDrafts::IsDone() const 
-{
-  return (!myResult.IsNull());
-}
-
-//=======================================================================
-//function : OriginalShape
-//purpose  : 
-//=======================================================================
-
-inline const TopoDS_Shape& LocOpe_SplitDrafts::OriginalShape () const
-{
-  return myShape;
-}
index 144cb7a8fb55d5a8357ff7565069354b88dfec9b..9a51b4e9640ae4f85b5a74ebde5d8b02a9e79a31 100644 (file)
@@ -53,7 +53,7 @@ public:
   Standard_EXPORT void Init (const TopoDS_Shape& S);
 
   //! Add splitting edges or wires for whole initial shape
-  //! withot additional specification edge->face, edge->edge
+  //! without additional specification edge->face, edge->edge
   //! This method puts edge on the corresponding faces from initial shape
   Standard_EXPORT Standard_Boolean Add(const TopTools_SequenceOfShape& theEdges);
   
index 2090d4ee808dbc3c857255f2278893830538449f..bee35424216f0f289273c755b5d5af411a79be02 100644 (file)
 #include <Standard.hxx>
 #include <Standard_DefineAlloc.hxx>
 #include <Standard_Handle.hxx>
-
 #include <Standard_OStream.hxx>
+
 class LocalAnalysis_SurfaceContinuity;
 class LocalAnalysis_CurveContinuity;
 class LocalAnalysis_SurfaceContinuity;
 class LocalAnalysis_CurveContinuity;
 
-
-
 //! This package gives tools to check the local continuity
 //! between two  points situated  on two curves or two surfaces.
 class LocalAnalysis 
@@ -37,42 +35,21 @@ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
-
-  //! This  class  compute
-  //! s  and gives  tools to check  the  local
-  //! continuity  between two points situated  on 2  curves)
+  //! This  class  compute s and gives tools to check the local
+  //! continuity between two points situated on 2 curves.
   //!
-  //! This fonction gives informations  about a  variable CurveContinuity
+  //! This function gives information about a variable CurveContinuity
   Standard_EXPORT static void Dump (const LocalAnalysis_SurfaceContinuity& surfconti, Standard_OStream& o);
   
 
-  //! This fonction gives informations  about a variable SurfaceContinuity
+  //! This function gives information about a variable SurfaceContinuity
   Standard_EXPORT static void Dump (const LocalAnalysis_CurveContinuity& curvconti, Standard_OStream& o);
 
-
-
-
-protected:
-
-
-
-
-
 private:
 
-
-
-
 friend class LocalAnalysis_SurfaceContinuity;
 friend class LocalAnalysis_CurveContinuity;
 
 };
 
-
-
-
-
-
-
 #endif // _LocalAnalysis_HeaderFile
index 75a61c8c248f2d2eaa5a0e01e356152eca5d381a..0b3736a5dacc1f7ca07071c81bcae76a8193e082 100644 (file)
@@ -60,10 +60,10 @@ public:
   //! Returns geometry information about node or element
   //! ID is the numerical identificator of node or element
   //! IsElement indicates this ID describe node ( if Standard_False ) or element ( if Standard_True )
-  //! Coords is an array of co-ordinates of node(s).
+  //! Coords is an array of coordinates of node(s).
   //! For node it is only 3 numbers: X, Y, Z in the strict order
   //! For element it is 3*n numbers, where n is number of this element vertices
-  //! The order is strict also: X1, Y1, Z1, X2,...., where Xi, Yi, Zi are co-ordinates of vertices
+  //! The order is strict also: X1, Y1, Z1, X2,...., where Xi, Yi, Zi are coordinates of vertices
   //! NbNodes is number of nodes. It is recommended this parameter to be set to 1 for node.
   //! Type is type of node or element (from enumeration). It is recommended this parameter to be set to
   //! MeshVS_ET_Node for node.
@@ -101,7 +101,7 @@ public:
   //! There is default method, for advance reflection this method can be redefined.
   //! Id is the numerical identificator of only element!
   //! Max is maximal number of nodes an element can consist of
-  //! nx, ny, nz  are values whose represent co-ordinates of normal (will be returned)
+  //! nx, ny, nz  are values whose represent coordinates of normal (will be returned)
   //! In the redefined method you can return normal with length more then 1, but in this case
   //! the appearance of element will be more bright than usual. For ordinary brightness you must return
   //! normal with length 1
@@ -160,7 +160,7 @@ public:
   
   //! Returns maps of entities (nodes and elements) detected
   //! by mouse selection with rectangular box (XMin, YMin, XMax, YMax)
-  //! on the current veiw plane, with the tolerance aTol.
+  //! on the current view plane, with the tolerance aTol.
   //! Returns True if something is detected.
   //! It should be redefined if the advanced mesh selection is
   //! activated. Default implementation returns False.
@@ -168,7 +168,7 @@ public:
   
   //! Returns maps of entities (nodes and elements) detected
   //! by mouse selection with the polyline <Polyline>
-  //! on the current veiw plane, with the tolerance aTol.
+  //! on the current view plane, with the tolerance aTol.
   //! Returns True if something is detected.
   //! It should be redefined if the advanced mesh selection is
   //! activated. Default implementation returns False.
@@ -182,27 +182,8 @@ public:
   //! activated. Default implementation returns False.
   Standard_EXPORT virtual Standard_Boolean GetDetectedEntities (const Handle(MeshVS_Mesh)& Prs, Handle(TColStd_HPackedMapOfInteger)& Nodes, Handle(TColStd_HPackedMapOfInteger)& Elements);
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(MeshVS_DataSource,Standard_Transient)
 
-protected:
-
-
-
-
-private:
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _MeshVS_DataSource_HeaderFile
index 818c90c9313cdf66a77bb0518938e52d888afe88..cc55e9c951daf8361ec3c305febf2b34c21e540f 100644 (file)
@@ -39,7 +39,6 @@ class MeshVS_MeshPrsBuilder : public MeshVS_PrsBuilder
 
 public:
 
-  
   //! Creates builder with certain display mode flags, data source, ID and priority
   Standard_EXPORT MeshVS_MeshPrsBuilder(const Handle(MeshVS_Mesh)& Parent, const MeshVS_DisplayModeFlags& Flags = MeshVS_DMF_OCCMask, const Handle(MeshVS_DataSource)& DS = 0, const Standard_Integer Id = -1, const MeshVS_BuilderPriority& Priority = MeshVS_BP_Mesh);
   
@@ -61,14 +60,10 @@ public:
   //! Calculate how many polygons or polylines are necessary to draw passed topology
   Standard_EXPORT static void HowManyPrimitives (const Handle(MeshVS_HArray1OfSequenceOfInteger)& Topo, const Standard_Boolean AsPolygons, const Standard_Boolean IsSelect, const Standard_Integer NbNodes, Standard_Integer& Vertices, Standard_Integer& Bounds);
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(MeshVS_MeshPrsBuilder,MeshVS_PrsBuilder)
 
 protected:
 
-  
   //! Add to array of polylines some lines representing link
   Standard_EXPORT void AddLinkPrs (const TColStd_Array1OfReal& theCoords, const Handle(Graphic3d_ArrayOfSegments)& theLines, const Standard_Boolean IsShrinked, const Standard_Real ShrinkCoef) const;
   
@@ -80,26 +75,13 @@ protected:
   
   //! Draw array of polygons and polylines in the certain order according to transparency
   Standard_EXPORT void DrawArrays (const Handle(Prs3d_Presentation)& Prs, const Handle(Graphic3d_ArrayOfPrimitives)& thePolygons, const Handle(Graphic3d_ArrayOfPrimitives)& theLines, const Handle(Graphic3d_ArrayOfPrimitives)& theLinkLines, const Handle(Graphic3d_ArrayOfPrimitives)& theVolumesInShad, const Standard_Boolean IsPolygonsEdgesOff, const Standard_Boolean IsSelected, const Handle(Graphic3d_AspectFillArea3d)& theFillAsp, const Handle(Graphic3d_AspectLine3d)& theLineAsp) const;
-  
+
   //! Default calculation of center of face or link. This method if useful for shrink mode presentation
-  //! theCoords is array of nodes co-ordinates in the strict order X1, Y1, Z1, X2...
+  //! theCoords is array of nodes coordinates in the strict order X1, Y1, Z1, X2...
   //! NbNodes is number of nodes an element consist of
-  //! xG, yG, zG are co-ordinates of center whose will be returned
+  //! xG, yG, zG are coordinates of center whose will be returned
   Standard_EXPORT static void CalculateCenter (const TColStd_Array1OfReal& theCoords, const Standard_Integer NbNodes, Standard_Real& xG, Standard_Real& yG, Standard_Real& zG);
 
-
-
-private:
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _MeshVS_MeshPrsBuilder_HeaderFile
index 222b6b102e44e7e09ae3069418e1eb6bc7fc60cf..504a7a4eebe91d9d6be6039b990e9c0666e0bfec 100644 (file)
@@ -76,7 +76,7 @@ public:
   static void StopAlert (const Handle(Message_AlertExtended)& theAlert) { SetAlertMetrics (theAlert, Standard_False); }
 
   //! Sets current values of default report metrics into the alert.
-  //! Processed oly alert with Message_AttributeMeter attribute
+  //! Processed only alert with Message_AttributeMeter attribute
   //! @param theAlert an alert  
   //! @param theStartValue flag, if true, the start value is collected otherwise stop
   static Standard_EXPORT void SetAlertMetrics (const Handle(Message_AlertExtended)& theAlert,
index 4e9494e1380e75b3932d1da431b3ed7801cb2598..22d90d1a3520e7c295a64a80e2505b47f07afe36 100644 (file)
@@ -56,7 +56,6 @@ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Load message file <theFileName> from directory <theDirName>
   //! or its sub-directory
   Standard_EXPORT static Standard_Boolean Load (const Standard_CString theDirName, const Standard_CString theFileName);
@@ -96,36 +95,13 @@ public:
   
   Standard_EXPORT static const TCollection_ExtendedString& Msg (const Standard_CString key);
   
-  //! Gives the text for the message identified by the keyword <key>
-  //! If there are no messages with such keyword defined,
-  //! the error message is returned.
-  //! In that case reference to static string is returned, it can
-  //! be chenged with next call(s) to Msg().
+  //! Gives the text for the message identified by the keyword <key>.
+  //! If there are no messages with such keyword defined, the error message is returned.
+  //! In that case reference to static string is returned, it can be changed with next call(s) to Msg().
   //! Note: The error message is constructed like 'Unknown message: <key>', and can
   //! itself be customized by defining message with key Message_Msg_BadKeyword.
   Standard_EXPORT static const TCollection_ExtendedString& Msg (const TCollection_AsciiString& key);
 
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _Message_MsgFile_HeaderFile
index 71ec657d201a55beaf5f6ab2d83e261c8270211d..eaa47ad3e4c2197d82b434ab8d02a6c5ea75f7cb 100644 (file)
 #include <NCollection_DefineAlloc.hxx>
 #include <NCollection_StlIterator.hxx>
 
-// *********************************************** Template for Array1 class
-
-/**
-* Purpose:     The class Array1 represents unidimensional arrays 
-*              of fixed size known at run time. 
-*              The range of the index is user defined.
-*              An array1 can be constructed with a "C array".
-*              This functionality is useful to call methods expecting
-*              an Array1. It allows to carry the bounds inside the arrays.
-*              
-* Examples:    Item tab[100]; //  An example with a C array
-*              Array1OfItem ttab (tab[0],1,100);
-*              
-*              Array1OfItem tttab (ttab(10),10,20); // a slice of ttab
-*              
-*              If you want to reindex an array from 1 to Length do :
-*              
-*              Array1 tab1(tab(tab.Lower()),1,tab.Length());
-*                          
-* Warning:     Programs client of such a class must be independant
-*              of the range of the first element. Then, a C++ for
-*              loop must be written like this
-*              
-*              for (i = A.Lower(); i <= A.Upper(); i++)
-*              
-* Changes:     In  comparison  to  TCollection  the  flag  isAllocated  was
-*              renamed into myDeletable (alike in  the Array2).  For naming
-*              compatibility the method IsAllocated remained in class along
-*              with IsDeletable.
-*/              
+//! The class NCollection_Array1 represents unidimensional arrays of fixed size known at run time.
+//! The range of the index is user defined.
+//! An array1 can be constructed with a "C array".
+//! This functionality is useful to call methods expecting an Array1.
+//! It allows to carry the bounds inside the arrays.
+//!
+//! Examples:
+//! @code
+//! Item tab[100]; //  an example with a C array
+//! NCollection_Array1<Item> ttab (tab[0], 1, 100);
+//!
+//! NCollection_Array1<Item> tttab (ttab(10), 10, 20); // a slice of ttab
+//! @endcode
+//! If you want to reindex an array from 1 to Length do:
+//! @code
+//! NCollection_Array1<Item> tab1 (tab (tab.Lower()), 1, tab.Length());
+//! @endcode
+//! Warning: Programs client of such a class must be independent of the range of the first element.
+//! Then, a C++ for loop must be written like this
+//! @code
+//! for (i = A.Lower(); i <= A.Upper(); i++)
+//! @endcode
 template <class TheItemType>
 class NCollection_Array1
 {
index 3a235a1d478d6125db3b4c7006510314181c88cf..c150fe7e87aae79476d32897d47b53ee86281057 100644 (file)
 
 #include <OSD.hxx>
 
-// Convert Real to CString in format e with 16 significant digits.
-// The decimal point character is always a period.
-// The conversion is independant from current locale database
-
+//=======================================================================
+//function : RealToCString
+//purpose  :
+//=======================================================================
 Standard_Boolean OSD::RealToCString(const Standard_Real aReal,
                                    Standard_PCharacter& aString)
 {
index 7ce019500c53065afd3f823c775bb6e18eac2b67..cd077eb0e05ebbe578e0472615287753316f0b30 100644 (file)
@@ -19,8 +19,8 @@
 #include <Standard_PCharacter.hxx>
 #include <OSD_SignalMode.hxx>
 
-//! Set of Operating Sytem Dependent (OSD) Tools
-class OSD 
+//! Set of Operating System Dependent (OSD) tools.
+class OSD
 {
 public:
 
@@ -118,17 +118,17 @@ public:
   //! Commands the process to sleep for a number of milliseconds
   Standard_EXPORT static void MilliSecSleep (const Standard_Integer theMilliseconds);
 
-  //! Converts aReal into aCstring in exponential format with a period as
-  //! decimal point, no thousand separator and no grouping of digits.
-  //! The conversion is independant from the current locale
+  //! Converts aReal into aCstring in exponential format with a period as decimal point,
+  //! no thousand separator and no grouping of digits.
+  //! The conversion is independent from the current locale
   Standard_EXPORT static Standard_Boolean RealToCString (const Standard_Real aReal, Standard_PCharacter& aString);
 
-  //! Converts aCstring representing a real with a period as
-  //! decimal point, no thousand separator and no grouping of digits
-  //! into aReal .
-  //! The conversion is independant from the current locale.
+  //! Converts aCstring representing a real with a period as decimal point,
+  //! no thousand separator and no grouping of digits into aReal.
+  //!
+  //! The conversion is independent from the current locale.
   Standard_EXPORT static Standard_Boolean CStringToReal (const Standard_CString aString, Standard_Real& aReal);
-  
+
   //! since Windows NT does not support 'SIGINT' signal like UNIX,
   //! then this method checks whether Ctrl-Break keystroke was or
   //! not. If yes then raises Exception_CTRL_BREAK.
index e2bb02e311c425d4ab204d77bf2f60c63e38b6b7..32ae3e4344ce6d9cd42afefb07344439e1f215f3 100644 (file)
@@ -31,7 +31,7 @@ public:
 public:
 
   //! Creates Directory object.
-  //! It is initiliazed to an empty name.
+  //! It is initialized to an empty name.
   Standard_EXPORT OSD_Directory();
 
   //! Creates Directory object initialized with theName.
index d142f03613e147ce411f49465b2c5fe01844431e..2a8794db655a038b3456ad29415c68fcd69e696a 100644 (file)
@@ -289,7 +289,7 @@ TCollection_AsciiString OSD_Environment::Value()
 
   // msvc C-runtime (_wputenv()) puts variable using WinAPI internally (calls SetEnvironmentVariableW())
   // and also caches its value in its own map,
-  // so that _wgetenv() ignores WinAPI and retieves variable from this cache.
+  // so that _wgetenv() ignores WinAPI and retrieves variable from this cache.
   //
   // Using _wgetenv() might lead to awkward results in context when several C-runtimes are used
   // at once within application or WinAPI is used directly for setting environment variable.
index 2092362f926eb30c0ba295b780d7b34a0f4a527c..a7d05ec52e5fa5fbf1592f2232ca684b9a2115cf 100644 (file)
@@ -57,7 +57,7 @@ public:
   //! Changes environment variable value.
   //! Raises ConstructionError either if the string contains
   //! characters not in range of ' '...'~' or if the string
-  //! contains the character '$' which is forbiden.
+  //! contains the character '$' which is forbidden.
   Standard_EXPORT void SetValue (const TCollection_AsciiString& Value);
   
   //! Gets the value of an environment variable
@@ -66,7 +66,7 @@ public:
   //! Changes environment variable name.
   //! Raises ConstructionError either if the string contains
   //! characters not in range of ' '...'~' or if the string
-  //! contains the character '$' which is forbiden.
+  //! contains the character '$' which is forbidden.
   Standard_EXPORT void SetName (const TCollection_AsciiString& name);
   
   //! Gets the name of <me>.
index 10f6a71ef22c0f4844d8d4c9b43e7109c5bb73a6..122aa3c48fce50789ee0e3dee7f74e58d0d76ece 100644 (file)
@@ -159,7 +159,7 @@ public:
   Standard_EXPORT Standard_Boolean IsOpen() const;
   
   //! returns TRUE if the file exists and if the user
-  //! has the autorization to read it.
+  //! has the authorization to read it.
   Standard_EXPORT Standard_Boolean IsReadable();
   
   //! returns TRUE if the file can be read and overwritten.
@@ -170,7 +170,7 @@ public:
   
   //! Enables to emulate unix "tail -f" command.
   //! If a line is available in the file <me> returns it.
-  //! Otherwise attemps to read again aNbTries times in the file
+  //! Otherwise attempts to read again aNbTries times in the file
   //! waiting aDelay seconds between each read.
   //! If meanwhile the file increases returns the next line, otherwise
   //! returns FALSE.
index 63716b30fc9e3db9bdeda39265363c47bb1f7703..352d24e606b8edeb3d287651d07fb5b0db3b8686 100644 (file)
@@ -295,7 +295,7 @@ Quantity_Date  OSD_FileNode::CreationMoment(){
 
 // if (Failed()) Perror();
 
- /* Get File Informations */
+ /* Get File Information */
 
  TCollection_AsciiString aBuffer;
  myPath.SystemName ( aBuffer );
@@ -323,7 +323,7 @@ Quantity_Date  OSD_FileNode::AccessMoment(){
 
 // if (Failed()) Perror();
 
- /* Get File Informations */
+ /* Get File Information */
 
  TCollection_AsciiString aBuffer;
  myPath.SystemName ( aBuffer );
index f37bfdc00fb7c9d53be0b60c106caaa9fd2c6fe5..744fe8f916d63de49b5c818f07acbafdcfdcc48c 100644 (file)
@@ -39,7 +39,7 @@ public:
   //! Default implementation create a stream from file buffer returned by OSD_FileSystem::OpenFileBuffer().
   //! @param theUrl       [in] path to open
   //! @param theMode      [in] flags describing the requested input mode for the stream (std::ios_base::in will be implicitly added)
-  //! @param theOffset    [in] expected stream position from the begining of the file (beginning of the stream by default);
+  //! @param theOffset    [in] expected stream position from the beginning of the file (beginning of the stream by default);
   //!                          -1 would keep seek position undefined (in case of re-using theOldStream)
   //! @param theOldStream [in] a pointer to existing stream pointing to theUrl to be reused (without re-opening)
   //! @return pointer to newly created opened stream, to theOldStream if it can be reused or NULL in case of failure.
@@ -52,7 +52,7 @@ public:
   //! Opens stream buffer for specified file URL.
   //! @param theUrl        [in]  path to open
   //! @param theMode       [in]  flags describing the requested input mode for the stream
-  //! @param theOffset     [in]  expected stream position from the begining of the buffer (beginning of the stream buffer by default)
+  //! @param theOffset     [in]  expected stream position from the beginning of the buffer (beginning of the stream buffer by default)
   //! @param theOutBufSize [out] total buffer size (only if buffer is opened for read)
   //! @return pointer to newly created opened stream buffer or NULL in case of failure.
   virtual opencascade::std::shared_ptr<std::streambuf> OpenStreamBuffer (const TCollection_AsciiString& theUrl,
index 175a58857ac590e54b0b2d2691860ab3487c9a3f..a9a1c63a9f161c1780b98fd4151cc8c0e9e83dfa 100644 (file)
@@ -142,7 +142,7 @@ public:
     Standard_Mutex myMutex;             //!< used for thread-safe access
     Numbers*       myArray;             //!< indexed from 0 to myMaxAllocSize-1
     ptrdiff_t      myTotalLeftSize;     //!< currently remained allocated size
-    size_t         myTotalPeakSize;     //!< maxium cumulative allocated size
+    size_t         myTotalPeakSize;     //!< maximum cumulative allocated size
     size_t         myBreakSize;         //!< user defined allocation size to debug (see place_for_breakpoint())
     size_t         myBreakPeak;         //!< user defined peak size limit to debug
   };
index 30fc2ad27954076ff8f2e298a29056eefc7151b4..519518012c9af0fd3fa503a248b4658658ce75af 100644 (file)
@@ -205,7 +205,7 @@ void OSD_Parallel::SetUseOcctThreads (Standard_Boolean theToUseOcct)
 
 //=======================================================================
 //function : NbLogicalProcessors
-//purpose  : Returns number of logical proccessors.
+//purpose  : Returns number of logical processors.
 //=======================================================================
 Standard_Integer OSD_Parallel::NbLogicalProcessors()
 {
index 90708bbc97dc1391c0a67ca105d72bc2c3a5172c..0900cd4dffa847608ba87d216492ae7617a69133 100644 (file)
@@ -187,7 +187,7 @@ protected:
   };
 
   //! Interface class representing functor object.
-  //! Intended to add polymorphic behavour to For and ForEach functionality 
+  //! Intended to add polymorphic behaviour to For and ForEach functionality
   //! enabling execution of arbitrary function in parallel mode.
   class FunctorInterface
   {
index 5041dee8b7398bce6684523ee3d3f899c066734c..05066a0066572d5af0edbd48a3775eb503d69450 100644 (file)
@@ -76,7 +76,7 @@ namespace
 
     private: //! @name private fields
 
-      const   OSD_Parallel::UniversalIterator&  myBegin; //!< Fisrt element of range.
+      const   OSD_Parallel::UniversalIterator&  myBegin; //!< First element of range.
       const   OSD_Parallel::UniversalIterator&  myEnd;   //!< Last element of range.
       mutable OSD_Parallel::UniversalIterator   myIt;    //!< First non processed element of range.
       mutable Standard_Mutex                 myMutex; //!< Access controller for the first non processed element.
index 271a878508b68d1ccb65d7b491382efaa7c11e76..eab689b75bad654f69cac498fc05472b1ec2db5f 100644 (file)
@@ -298,7 +298,7 @@ static void MacExtract(const TCollection_AsciiString& what,
   Standard_Integer pos;
   Standard_PCharacter p;
   
-  // I don't know how to distingish a disk from a trek !
+  // I don't know how to distinguish a disk from a trek !
   
   trek = what;
   
@@ -612,7 +612,7 @@ static void P2DOS (TCollection_AsciiString & Way){
 
 
 
-// Convert a path to system dependant syntax
+// Convert a path to system dependent syntax
 
 void OSD_Path::SystemName (TCollection_AsciiString& FullName,
                           const OSD_SysType aType)const{
index 011b2a0aebe3408cee120f4835520ebcfd190bde..13804571ec450b8ae64734ad0ae75b7925143946 100644 (file)
@@ -32,7 +32,7 @@ public:
   //! i.e. current directory.
   Standard_EXPORT OSD_Path();
   
-  //! Creates a Path object initialized by dependant path.
+  //! Creates a Path object initialized by dependent path.
   //! ex: OSD_Path me ("/usr/bin/myprog.sh",OSD_UnixBSD);
   //!
   //! OSD_Path me ("sys$common:[syslib]cc.exe",OSD_OSF) will
index 2fd6c524ce250a5e4ac53762dee0d11fb3ffc695..9b30d160b2adf9ea93b8f32ae07f293a480d1fe1 100644 (file)
 
 #include <Standard_Address.hxx>
 
-// Typedef for prototype of function to be used as main 
-// function of a thread 
-
-// Note: currently we use the same prototype for thread functions on all 
-// platforms, in order to make user programs less platform-dependent.
-// However, there is a distinction in returned value for the thread function
-// on UNIX/Linux (void*) and WIndows (DWORD) systems. 
-// Thus on Windows we have to encode returned void* as DWORD. It is OK for WIN32,
-// but potentially problem on WIN64. 
-// To avoid any problems with this, for better application portability it is recomended 
-// that the thread function returns just integer (casted to void*). 
-// This shall work on all platforms.
+//! Typedef for prototype of function to be used as main function of a thread.
+//!
+//! Note: currently we use the same prototype for thread functions on all platforms,
+//! in order to make user programs less platform-dependent.
+//! However, there is a distinction in returned value for the thread function
+//! on UNIX/Linux (void*) and Windows (DWORD) systems.
+//! Thus on Windows we have to encode returned void* as DWORD.
+//! It is OK for WIN32, but potentially problem on WIN64.
+//! To avoid any problems with this, for better application portability it is recommended
+//! that the thread function returns just integer (casted to void*).
+//! This shall work on all platforms.
+typedef Standard_Address (*OSD_ThreadFunction) (Standard_Address data);
 
 //#ifdef _WIN32
-//#include <windows.h>
 //typedef LPTHREAD_START_ROUTINE OSD_ThreadFunction;
-//#else
-
-typedef Standard_Address (*OSD_ThreadFunction) (Standard_Address data);
-
 //#endif
 
 #endif
index f7acbd190f8b9c6d59ea806322c65462f03a698c..a44d285b7cdfde8004bfb7a42894c656093b585b 100644 (file)
@@ -17,8 +17,8 @@
 
 /******************************************************************************/
 /* File:      OSD_WNT.cxx                                                     */
-/* Purpose:   Security management routines ( more convinient than WIN32       */
-/*            ones ) and other convinient functions.                          */
+/* Purpose:   Security management routines ( more convenient than WIN32       */
+/*            ones ) and other convrnient functions.                          */
 /******************************************************************************/
 /***/
 #include <OSD_WNT.hxx>
@@ -970,7 +970,7 @@ retry:
 /***/
 /******************************************************************************/
 /* Function : SetMoveDirectoryProc                                          */
-/* Purpose  : Sets callback procedure which is calling by the               */ 
+/* Purpose  : Sets callback procedure which is calling by the               */
 /*            'MoveDirectory' after moving of each item in the              */
 /*            directory. To unregister this callback function supply NULL   */
 /*            pointer                                                       */
@@ -984,7 +984,7 @@ void SetMoveDirectoryProc ( MOVE_DIR_PROC proc ) {
 /***/
 /******************************************************************************/
 /* Function : SetCopyDirectoryProc                                          */
-/* Purpose  : Sets callback procedure which is calling by the               */ 
+/* Purpose  : Sets callback procedure which is calling by the               */
 /*            'CopyDirectory' after copying of each item in the             */
 /*            directory. To unregister this callback function supply NULL   */
 /*            pointer                                                       */
@@ -998,10 +998,10 @@ void SetCopyDirectoryProc ( COPY_DIR_PROC proc ) {
 /***/
 /******************************************************************************/
 /* Function : SetResponseDirectoryProc                                      */
-/* Purpose  : Sets callback procedure which is calling by the               */ 
-/*            directoy processing function if an error was occur.           */
+/* Purpose  : Sets callback procedure which is calling by the               */
+/*            directory processing function if an error was occur.          */
 /*            The return value of that callback procedure determines        */
-/*            behaviour of directoy processing functions in case of error.  */
+/*            behaviour of directory processing functions in case of error. */
 /*            To unregister this callback function supply NULL pointer      */
 /******************************************************************************/
 /***/
index 5c4d7b262947ef117100e29a79663f2a8b866ff3..007f5ccaa970bc1e2b9fa9b80f7598ac915c246f 100644 (file)
@@ -250,7 +250,7 @@ static LONG CallHandler (DWORD theExceptionCode,
     }
     case EXCEPTION_PRIV_INSTRUCTION:
     {
-      strcat_s (aBuffer, sizeof(aBuffer), "PRIVELEGED INSTRUCTION ENCOUNTERED");
+      strcat_s (aBuffer, sizeof(aBuffer), "PRIVILEGED INSTRUCTION ENCOUNTERED");
       break;
     }
     case EXCEPTION_STACK_OVERFLOW:
@@ -467,7 +467,7 @@ void OSD::SetSignal (OSD_SignalMode theSignalMode,
   TCollection_AsciiString val = env.Value();
   if (!env.Failed())
   {
-    std::cout << "Environment variable CSF_DEBUG_MODE setted.\n";
+    std::cout << "Environment variable CSF_DEBUG_MODE set.\n";
     fMsgBox = Standard_True;
     if (OSD_SignalStackTraceLength == 0)
     {
@@ -769,7 +769,7 @@ typedef void (* SIG_PFV) (int);
 
 //============================================================================
 //==== Handler
-//====     Catche the differents signals:
+//====     Catch the different signals:
 //====          1- The Fatal signals, which cause the end of process:
 //====          2- The exceptions which are "signaled" by Raise.
 //====     The Fatal Signals:
@@ -802,7 +802,7 @@ static void Handler (const int theSignal)
     perror ("sigaction");
   }
 
-  // std::cout << "OSD::Handler: signal " << (int) theSignal << " occured inside a try block " <<  std::endl ;
+  // std::cout << "OSD::Handler: signal " << (int) theSignal << " occurred inside a try block " <<  std::endl ;
   if ( ADR_ACT_SIGIO_HANDLER != NULL )
     (*ADR_ACT_SIGIO_HANDLER)() ;
 
@@ -1029,7 +1029,7 @@ void OSD::SetThreadLocalSignal (OSD_SignalMode /*theSignalMode*/,
 
 //============================================================================
 //==== SetSignal
-//====     Set the differents signals:
+//====     Set the different signals:
 //============================================================================
 
 void OSD::SetSignal (OSD_SignalMode theSignalMode,
index d940260811992aba2e095e6313478c19e564a05c..dc46fd5099cb5a1a5e14f0adfdfe199e1e732f52 100755 (executable)
@@ -114,7 +114,7 @@ public: //! @name context creation parameters
    * but some limit functionality to OpenGL 2.1 (e.g. OS X) when core profile is not explicitly requested.
    *
    * Requires OpenGL 3.2+ drivers.
-   * Has no effect on OpenGL ES 2.0+ drivers (which do not provie FFP compatibility).
+   * Has no effect on OpenGL ES 2.0+ drivers (which do not provide FFP compatibility).
    * Interacts with ffpEnable option, which should be disabled within core profile.
    *
    * ON by default.
index 39996e7244bc291437720233a619058707042faf..3303db61b5d8e8b3067d547a20b581b7bf0cba9c 100644 (file)
@@ -2182,7 +2182,7 @@ void OpenGl_Context::ReleaseDelayed()
   {
     if (++anIter.ChangeValue() <= 2)
     {
-      continue; // postpone release one more frame to ensure noone use it periodically
+      continue; // postpone release one more frame to ensure no one uses it periodically
     }
 
     const TCollection_AsciiString& aKey = anIter.Key();
index 78b4eea5fa9d4247608d7d24b54d0e214eded50e..d599a153e2f856ae25332c88508d95a258b9697c 100755 (executable)
@@ -188,7 +188,7 @@ Standard_ShortReal OpenGl_GraduatedTrihedron::getDistanceToCorner (const OpenGl_
 Standard_ExtCharacter OpenGl_GraduatedTrihedron::getGridAxes (const Standard_ShortReal theCorners[8],
                                                               GridAxes& theGridAxes) const
 {
-  // Find the farest corner
+  // Find the farthest corner
   Standard_Byte aMaxIndex = 0;
   Standard_ShortReal aMax = theCorners[aMaxIndex] > 0.0f ? theCorners[aMaxIndex] : 0.0f;
 
@@ -581,7 +581,7 @@ void OpenGl_GraduatedTrihedron::Render (const Handle(OpenGl_Workspace)& theWorks
     }
   }
 
-  // Find the farest point of bounding box
+  // Find the farthest point of bounding box
 
   // Get normal of the view out of user and distance corresponding to 1 pixel
   OpenGl_Vec3 aNormal;
@@ -607,7 +607,7 @@ void OpenGl_GraduatedTrihedron::Render (const Handle(OpenGl_Workspace)& theWorks
   // (0, 0, 1), (0, 1, 0) and (0, 0, 1) directions from (myMin.x(), Ymin, Zmin) point
   // are reserved for trihedron axes.
   // So for the grid here are 9 edges of cube,
-  // and, depending on the farest point, 2 or 3 of them may not be drawn
+  // and, depending on the farthest point, 2 or 3 of them may not be drawn
   // if they overlap displayed model.
   
   // Write an axes state what axes of bounding box are to be drawn
index f6b8e3149e6df03ccf86867ddb631a6549476928..c18c94efc6bb935dce2b32ee05420201a48deac4 100755 (executable)
@@ -163,7 +163,7 @@ private:
 
   //! Render line from the transformed primitive array myLine
   //! @param theWorkspace [in] the OpenGl Workspace
-  //! @param theMat [in] theMat that containes base transformation and is used for appling
+  //! @param theMat [in] theMat that contains base transformation and is used for applying
   //!        translation and rotation
   //! @param thaTx the X for vector of translation
   //! @param thaTy the Y for vector of translation
@@ -179,7 +179,7 @@ private:
   //! @param theWorkspace [in] the OpenGl Workspace
   //! @param theIndex [in] index of axis
   //! @param theGridAxes [in] grid axes
-  //! @param theMat [in] theMat that containes base transformation and is used for appling
+  //! @param theMat [in] theMat that contains base transformation and is used for applying
   //!        translation and rotation
   void renderGridPlane (const Handle(OpenGl_Workspace)& theWorkspace,
                         const Standard_Integer& theIndex,
@@ -190,7 +190,7 @@ private:
   //! Render the axis of input index
   //! @param theWorkspace [in] the OpenGl Workspace
   //! @param theIndex [in] index of axis
-  //! @param theMat [in] theMat that containes base transformation and is used for appling
+  //! @param theMat [in] theMat that contains base transformation and is used for applying
   //!        translation and rotation
   void renderAxis (const Handle(OpenGl_Workspace)& theWorkspace,
                    const Standard_Integer& theIndex,
@@ -198,7 +198,7 @@ private:
 
   //! Render grid labels, tickmark lines and labels
   //! @param theWorkspace [in] the OpenGl Workspace
-  //! @param theMat [in] theMat that containes base transformation and is used for appling
+  //! @param theMat [in] theMat that contains base transformation and is used for applying
   //!        translation and rotation
   //! @param theIndex [in] index of axis
   //! @param theGridAxes [in] grid axes
index 2fcd775e33ce5b35a65db0e66c45d768bbdc1027..caa0c7ce1420b94e962ec4c24f395e996d181e4a 100644 (file)
@@ -43,7 +43,7 @@ public:
                                 NCollection_Vector<Handle(OpenGl_VertexBuffer)>& theVertsPerTexture,
                                 NCollection_Vector<Handle(OpenGl_VertexBuffer)>& theTCrdsPerTexture);
 
-protected: //! @name class auxillary methods
+protected: //! @name class auxiliary methods
 
   Standard_EXPORT void createGlyphs (const Handle(Font_TextFormatter)&                                              theFormatter,
                                      const Handle(OpenGl_Context)&                                                  theCtx,
@@ -52,7 +52,7 @@ protected: //! @name class auxillary methods
                                      NCollection_Vector< NCollection_Handle < NCollection_Vector <OpenGl_Vec2> > >& theVertsPerTexture,
                                      NCollection_Vector< NCollection_Handle < NCollection_Vector <OpenGl_Vec2> > >& theTCrdsPerTexture);
 
-protected: //! @name class auxillary fields
+protected: //! @name class auxiliary fields
 
   NCollection_Vector<OpenGl_Font::Tile>  myTileRects;
   OpenGl_VertexBufferEditor<OpenGl_Vec2> myVboEditor;
index 583bc2cfffd14aa91b0b14274336395e7313797f..a56410944e56ad2e31d392add3e6a4fbd0a87dde 100644 (file)
@@ -221,7 +221,7 @@ public:
   //! Returns background image texture map.
   virtual Handle(Graphic3d_TextureMap) BackgroundImage() Standard_OVERRIDE { return myBackgroundImage; }
 
-  //! Sets image texture or environment cubemap as backround.
+  //! Sets image texture or environment cubemap as background.
   //! @param theTextureMap [in] source to set a background;
   //!                           should be either Graphic3d_Texture2D or Graphic3d_CubeMap
   //! @param theToUpdatePBREnv [in] defines whether IBL maps will be generated or not
index 540968b6f309badce43ba6de48c1240f78735515..7080c88d2160019cbb97a65c54c7d40618e9f6fe 100644 (file)
@@ -28,7 +28,7 @@
 
 
 //! This abstract class describes the virtual functions associated to
-//! a set on N Functions of M independant variables.
+//! a set on N Functions of M independent variables.
 class math_FunctionSet 
 {
 public:
index 9be28f80cfe4c5a6e888f809deef8a2f5f2d3cb0..0e89635f1a94d8ab082928f111b26a716568fc71 100644 (file)
@@ -29,7 +29,7 @@ class math_Matrix;
 
 
 //! This abstract class describes the virtual functions associated
-//! with a set of N Functions each of M independant variables.
+//! with a set of N Functions each of M independent variables.
 class math_FunctionSetWithDerivatives  : public math_FunctionSet
 {
 public:
index 9e223fddbb2019567cde4117a9cdd31d8e860557..3ff5d0f0172fa95efc37926ff2708282a394bc80 100644 (file)
@@ -31,7 +31,7 @@
 //!    math_IntegerVector V1(-3, 5); // an IntegerVector with range [-3..5]
 //! @endcode
 //!
-//! IntegerVector is copied through assignement :
+//! IntegerVector is copied through assignment:
 //! @code
 //!    math_IntegerVector V2( 1, 9);
 //!    ....
index 819b8ca05ba6ff8af389c271171b47e972634d73..b8cb70c5c082868a0769c573ceded2a9a950e380 100644 (file)
 //! of definition of the matrix.
 //! Matrix objects follow "value semantics", that is, they
 //! cannot be shared and are copied through assignment
-//! Matrices are copied through assignement:
+//! Matrices are copied through assignment:
+//! @code
 //! math_Matrix M2(1, 9, 1, 3);
 //! ...
 //! M2 = M1;
 //! M1(1) = 2.0;//the matrix M2 will not be modified.
-//!
+//! @endcode
 //! The exception RangeError is raised when trying to access
 //! outside the range of a matrix :
+//! @code
 //! M1(11, 1)=0.0// --> will raise RangeError.
+//! @endcode
 //!
 //! The exception DimensionError is raised when the dimensions of
 //! two matrices or vectors are not compatible.
+//! @code
 //! math_Matrix M3(1, 2, 1, 2);
 //! M3 = M1;   // will raise DimensionError
 //! M1.Add(M3) // --> will raise DimensionError.
-//! A Matrix can be constructed with a a pointer to "c array".
+//! @endcode
+//! A Matrix can be constructed with a pointer to "c array".
 //! It allows to carry the bounds inside the matrix.
-//! Exemple :
+//! Example :
+//! @code
 //! Standard_Real tab1[10][20];
 //! Standard_Real tab2[200];
 //!
 //! math_Matrix A (tab1[0][0], 1, 10, 1, 20);
 //! math_Matrix B (tab2[0],    1, 10, 1, 20);
-class math_Matrix 
+//! @endcode
+class math_Matrix
 {
 public:
 
   DEFINE_STANDARD_ALLOC
 
-  
+
   //! Constructs a non-initialized  matrix of range [LowerRow..UpperRow,
   //! LowerCol..UpperCol]
   //! For the constructed matrix:
@@ -80,24 +87,24 @@ public:
   //! -   LowerCol and UpperCol are the indexes of the
   //! lower and upper bounds of a column.
   Standard_EXPORT math_Matrix(const Standard_Integer LowerRow, const Standard_Integer UpperRow, const Standard_Integer LowerCol, const Standard_Integer UpperCol);
-  
+
   //! constructs a non-initialized matrix of range [LowerRow..UpperRow,
   //! LowerCol..UpperCol]
   //! whose values are all initialized with the value InitialValue.
   Standard_EXPORT math_Matrix(const Standard_Integer LowerRow, const Standard_Integer UpperRow, const Standard_Integer LowerCol, const Standard_Integer UpperCol, const Standard_Real InitialValue);
-  
+
   //! constructs a matrix of range [LowerRow..UpperRow,
   //! LowerCol..UpperCol]
   //! Sharing data with a "C array" pointed by Tab.
   Standard_EXPORT math_Matrix(const Standard_Address Tab, const Standard_Integer LowerRow, const Standard_Integer UpperRow, const Standard_Integer LowerCol, const Standard_Integer UpperCol);
-  
+
   //! constructs a matrix for copy in initialization.
   //! An exception is raised if the matrixes have not the same dimensions.
   Standard_EXPORT math_Matrix(const math_Matrix& Other);
-  
+
   //! Initialize all the elements of a matrix to InitialValue.
   Standard_EXPORT void Init (const Standard_Real InitialValue);
-  
+
   //! Returns the number of rows  of this matrix.
   //! Note that for a matrix A you always have the following relations:
   //! - A.RowNumber() = A.UpperRow() -   A.LowerRow() + 1
@@ -106,7 +113,7 @@ public:
   //! - the length of a column of A is equal to the number of
   //! rows of A.returns the row range of a matrix.
     Standard_Integer RowNumber() const;
-  
+
   //! Returns the number of rows  of this matrix.
   //! Note that for a matrix A you always have the following relations:
   //! - A.RowNumber() = A.UpperRow() -   A.LowerRow() + 1
@@ -115,36 +122,36 @@ public:
   //! - the length of a column of A is equal to the number of
   //! rows of A.returns the row range of a matrix.
     Standard_Integer ColNumber() const;
-  
+
   //! Returns the value of the Lower index of the row
   //! range of a matrix.
     Standard_Integer LowerRow() const;
-  
+
   //! Returns the Upper index of the row range
   //! of a matrix.
     Standard_Integer UpperRow() const;
-  
+
   //! Returns the value of the Lower index of the
   //! column range of a matrix.
     Standard_Integer LowerCol() const;
-  
+
   //! Returns the value of the upper index of the
   //! column range of a matrix.
     Standard_Integer UpperCol() const;
-  
+
   //! Computes the determinant of a matrix.
   //! An exception is raised if the matrix is not a square matrix.
   Standard_EXPORT Standard_Real Determinant() const;
-  
+
   //! Transposes a given matrix.
   //! An exception is raised if the matrix is not a square matrix.
   Standard_EXPORT void Transpose();
-  
+
   //! Inverts a matrix using Gauss algorithm.
   //! Exception NotSquare is raised if the matrix is not square.
   //! Exception SingularMatrix is raised if the matrix is singular.
   Standard_EXPORT void Invert();
-  
+
   //! Sets this matrix to the product of the matrix Left, and the matrix Right.
   //! Example
   //! math_Matrix A (1, 3, 1, 3);
@@ -167,7 +174,7 @@ void operator*= (const Standard_Real Right)
 {
   Multiply(Right);
 }
-  
+
   //! multiplies all the elements of a matrix by the
   //! value <Right>.
   Standard_NODISCARD Standard_EXPORT math_Matrix Multiplied (const Standard_Real Right) const;
@@ -175,7 +182,7 @@ Standard_NODISCARD math_Matrix operator* (const Standard_Real Right) const
 {
   return Multiplied(Right);
 }
-  
+
   //! Sets this matrix to the product of the
   //! transposed matrix TLeft, and the matrix Right.
   //! Example
@@ -196,7 +203,7 @@ Standard_NODISCARD math_Matrix operator* (const Standard_Real Right) const
   //! the number of columns of this matrix.
   Standard_NODISCARD Standard_EXPORT math_Matrix TMultiplied (const Standard_Real Right) const;
 friend math_Matrix  operator *(const Standard_Real Left,const math_Matrix& Right);
-  
+
   //! divides all the elements of a matrix by the value <Right>.
   //! An exception is raised if <Right> = 0.
   Standard_EXPORT void Divide (const Standard_Real Right);
@@ -204,7 +211,7 @@ void operator/= (const Standard_Real Right)
 {
   Divide(Right);
 }
-  
+
   //! divides all the elements of a matrix by the value <Right>.
   //! An exception is raised if <Right> = 0.
   Standard_NODISCARD Standard_EXPORT math_Matrix Divided (const Standard_Real Right) const;
@@ -212,7 +219,7 @@ Standard_NODISCARD math_Matrix operator/ (const Standard_Real Right) const
 {
   return Divided(Right);
 }
-  
+
   //! adds the matrix <Right> to a matrix.
   //! An exception is raised if the dimensions are different.
   //! Warning
@@ -224,7 +231,7 @@ void operator+= (const math_Matrix& Right)
 {
   Add(Right);
 }
-  
+
   //! adds the matrix <Right> to a matrix.
   //! An exception is raised if the dimensions are different.
   Standard_NODISCARD Standard_EXPORT math_Matrix Added (const math_Matrix& Right) const;
@@ -232,11 +239,11 @@ Standard_NODISCARD math_Matrix operator+ (const math_Matrix& Right) const
 {
   return Added(Right);
 }
-  
+
   //! sets a  matrix to the addition of <Left> and <Right>.
   //! An exception is raised if the dimensions are different.
   Standard_EXPORT void Add (const math_Matrix& Left, const math_Matrix& Right);
-  
+
   //! Subtracts the matrix <Right> from <me>.
   //! An exception is raised if the dimensions are different.
   //! Warning
@@ -248,7 +255,7 @@ void operator-= (const math_Matrix& Right)
 {
   Subtract(Right);
 }
-  
+
   //! Returns the result of the subtraction of <Right> from <me>.
   //! An exception is raised if the dimensions are different.
   Standard_NODISCARD Standard_EXPORT math_Matrix Subtracted (const math_Matrix& Right) const;
@@ -256,7 +263,7 @@ Standard_NODISCARD math_Matrix operator- (const math_Matrix& Right) const
 {
   return Subtracted(Right);
 }
-  
+
   //! Sets the values of this matrix,
   //! -   from index I1 to index I2 on the row dimension, and
   //! -   from index J1 to index J2 on the column dimension,
@@ -270,71 +277,71 @@ Standard_NODISCARD math_Matrix operator- (const math_Matrix& Right) const
   //! -   I2 - I1 + 1 is not equal to the number of rows of matrix M, or
   //! -   J2 - J1 + 1 is not equal to the number of columns of matrix M.
   Standard_EXPORT void Set (const Standard_Integer I1, const Standard_Integer I2, const Standard_Integer J1, const Standard_Integer J2, const math_Matrix& M);
-  
+
   //! Sets the row of index Row of a matrix to the vector <V>.
   //! An exception is raised if the dimensions are different.
   //! An exception is raises if <Row> is inferior to the lower
   //! row of the matrix or <Row> is superior to the upper row.
   Standard_EXPORT void SetRow (const Standard_Integer Row, const math_Vector& V);
-  
+
   //! Sets the column of index Col of a matrix to the vector <V>.
   //! An exception is raised if the dimensions are different.
   //! An exception is raises if <Col> is inferior to the lower
   //! column of the matrix or <Col> is superior to the upper
   //! column.
   Standard_EXPORT void SetCol (const Standard_Integer Col, const math_Vector& V);
-  
+
   //! Sets the diagonal of a matrix to the value <Value>.
   //! An exception is raised if the matrix is not square.
   Standard_EXPORT void SetDiag (const Standard_Real Value);
-  
+
   //! Returns the row of index Row of a matrix.
   Standard_EXPORT math_Vector Row (const Standard_Integer Row) const;
-  
+
   //! Returns the column of index <Col> of a matrix.
   Standard_EXPORT math_Vector Col (const Standard_Integer Col) const;
-  
+
   //! Swaps the rows of index Row1 and Row2.
   //! An exception is raised if <Row1> or <Row2> is out of range.
   Standard_EXPORT void SwapRow (const Standard_Integer Row1, const Standard_Integer Row2);
-  
+
   //! Swaps the columns of index <Col1> and <Col2>.
   //! An exception is raised if <Col1> or <Col2> is out of range.
   Standard_EXPORT void SwapCol (const Standard_Integer Col1, const Standard_Integer Col2);
-  
+
   //! Teturns the transposed of a matrix.
   //! An exception is raised if the matrix is not a square matrix.
   Standard_NODISCARD Standard_EXPORT math_Matrix Transposed() const;
-  
+
   //! Returns the inverse of a matrix.
   //! Exception NotSquare is raised if the matrix is not square.
   //! Exception SingularMatrix is raised if the matrix is singular.
   Standard_EXPORT math_Matrix Inverse() const;
-  
+
   //! Returns the product of the transpose of a matrix with
   //! the matrix <Right>.
   //! An exception is raised if the dimensions are different.
   Standard_EXPORT math_Matrix TMultiply (const math_Matrix& Right) const;
-  
+
   //! Computes a matrix as the product of 2 vectors.
   //! An exception is raised if the dimensions are different.
   //! <me> = <Left> * <Right>.
   Standard_EXPORT void Multiply (const math_Vector& Left, const math_Vector& Right);
-  
+
   //! Computes a matrix as the product of 2 matrixes.
   //! An exception is raised if the dimensions are different.
   Standard_EXPORT void Multiply (const math_Matrix& Left, const math_Matrix& Right);
-  
+
   //! Computes a matrix to the product of the transpose of
   //! the matrix <TLeft> with the matrix <Right>.
   //! An exception is raised if the dimensions are different.
   Standard_EXPORT void TMultiply (const math_Matrix& TLeft, const math_Matrix& Right);
-  
+
   //! Sets a matrix to the Subtraction of the matrix <Right>
   //! from the matrix <Left>.
   //! An exception is raised if the dimensions are different.
   Standard_EXPORT void Subtract (const math_Matrix& Left, const math_Matrix& Right);
-  
+
   //! Accesses (in read or write mode) the value of index <Row>
   //! and <Col> of a matrix.
   //! An exception is raised if <Row> and <Col> are not
@@ -344,15 +351,15 @@ Standard_NODISCARD math_Matrix operator- (const math_Matrix& Right) const
 {
   return Value(Row,Col);
 }
-  
-  //! Matrixes are copied through assignement.
+
+  //! Matrixes are copied through assignment.
   //! An exception is raised if the dimensions are different.
   Standard_EXPORT math_Matrix& Initialized (const math_Matrix& Other);
 math_Matrix& operator= (const math_Matrix& Other)
 {
   return Initialized(Other);
 }
-  
+
   //! Returns the product of 2 matrices.
   //! An exception is raised if the dimensions are different.
   Standard_EXPORT void Multiply (const math_Matrix& Right);
@@ -360,7 +367,7 @@ void operator*= (const math_Matrix& Right)
 {
   Multiply(Right);
 }
-  
+
   //! Returns the product of 2 matrices.
   //! An exception is raised if the dimensions are different.
   Standard_NODISCARD Standard_EXPORT math_Matrix Multiplied (const math_Matrix& Right) const;
@@ -368,7 +375,7 @@ Standard_NODISCARD math_Matrix operator* (const math_Matrix& Right) const
 {
   return Multiplied(Right);
 }
-  
+
   //! Returns the product of a matrix by a vector.
   //! An exception is raised if the dimensions are different.
   Standard_NODISCARD Standard_EXPORT math_Vector Multiplied (const math_Vector& Right) const;
@@ -376,7 +383,7 @@ Standard_NODISCARD math_Vector operator* (const math_Vector& Right) const
 {
   return Multiplied(Right);
 }
-  
+
   //! Returns the opposite of a matrix.
   //! An exception is raised if the dimensions are different.
   Standard_EXPORT math_Matrix Opposite();
@@ -384,7 +391,7 @@ math_Matrix operator-()
 {
   return Opposite();
 }
-  
+
   //! Prints information on the current state of the object.
   //! Is used to redefine the operator <<.
   Standard_EXPORT void Dump (Standard_OStream& o) const;
@@ -395,14 +402,14 @@ friend class math_Vector;
 
 protected:
 
-  
+
   //! The new lower row of the matrix is set to <LowerRow>
   Standard_EXPORT void SetLowerRow (const Standard_Integer LowerRow);
-  
+
   //! The new lower column of the matrix is set to the column
   //! of range <LowerCol>.
   Standard_EXPORT void SetLowerCol (const Standard_Integer LowerCol);
-  
+
   //! The new lower row of the matrix is set to <LowerRow>
   //! and the new lower column of the matrix is set to the column
   //! of range <LowerCol>.
index 17032030f188933f4c7a6fbe4ccd0e8c5d83abd1..025ed74f97902901ebfa958a91bfca0951eee4bb 100644 (file)
@@ -57,7 +57,7 @@ public:
   //! The tolerance EpsLic is fixed for the dual variable
   //! convergence. The tolerance EpsLix is used for the
   //! convergence of X.
-  //! Exception ConstuctionError is raised if the line number
+  //! Exception ConstructionError is raised if the line number
   //! of Cont is different from the length of Secont.
   Standard_EXPORT math_Uzawa(const math_Matrix& Cont, const math_Vector& Secont, const math_Vector& StartingPoint, const Standard_Real EpsLix = 1.0e-06, const Standard_Real EpsLic = 1.0e-06, const Standard_Integer NbIterations = 500);
   
@@ -72,7 +72,7 @@ public:
   //! convergence. The tolerance EpsLix is used for the
   //! convergence of X.
   //! There are no conditions on Nce and Nci.
-  //! Exception ConstuctionError is raised if the line number
+  //! Exception ConstructionError is raised if the line number
   //! of Cont is different from the length of Secont and from
   //! Nce + Nci.
   Standard_EXPORT math_Uzawa(const math_Matrix& Cont, const math_Vector& Secont, const math_Vector& StartingPoint, const Standard_Integer Nci, const Standard_Integer Nce, const Standard_Real EpsLix = 1.0e-06, const Standard_Real EpsLic = 1.0e-06, const Standard_Integer NbIterations = 500);
index c4d7069b48c7f6b760bfec865471a2e8df0ea887..15b86ccd34b55003e7be0c5506b65bddc86aa1a9 100644 (file)
@@ -34,7 +34,7 @@ class math_Matrix;
 //!    math_Vector V1(-3, 5); // a vector with range [-3..5]
 //! @endcode
 //!
-//! Vector are copied through assignement :
+//! Vector are copied through assignment:
 //! @code
 //!    math_Vector V2( 1, 9);
 //!    ....