1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-09 18:50:54 +03:00

0031939: Coding - correction of spelling errors in comments [part 9]

Fix various typos via codespell.
This commit is contained in:
luz paz 2021-04-01 20:18:10 +03:00 committed by bugmaster
parent 00e9052bee
commit 5e6e59146f
59 changed files with 288 additions and 512 deletions

View File

@ -217,7 +217,7 @@ void OCC_2dView::OnUpdateBUTTONGridCancel(CCmdUI* pCmdUI)
void OCC_2dView::OnSize(UINT nType, int cx, int cy) void OCC_2dView::OnSize(UINT nType, int cx, int cy)
{ {
OCC_BaseView::OnSize (nType, cx, 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()) if (!myView.IsNull())
myView->MustBeResized(); myView->MustBeResized();
} }

View File

@ -193,7 +193,7 @@ static Standard_Boolean Connect (const Handle(ShapeAnalysis_Wire)& theSAW,
GTranslate2d = Standard_False; GTranslate2d = Standard_False;
if (GTranslate3d && GTranslate2d) { 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; if (surfcurv == 2) Preferred3d = Standard_False;
else if (surfcurv == 3) Preferred2d = Standard_False; else if (surfcurv == 3) Preferred2d = Standard_False;
else if (myfilepreference == 2) Preferred3d = Standard_False; else if (myfilepreference == 2) Preferred3d = Standard_False;

View File

@ -108,7 +108,7 @@ public:
Standard_EXPORT gp_Dir TransformedAxis() const; Standard_EXPORT gp_Dir TransformedAxis() const;
//! Returns a Definition computed from equation, easier to use //! 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) //! a parabola) (defined with Z displacement)
//! <MainAxis> : the Main Axis of the conic (for a Circle, //! <MainAxis> : the Main Axis of the conic (for a Circle,
//! arbitrary the X Axis) //! arbitrary the X Axis)

View File

@ -59,7 +59,7 @@ public:
//! Sets Main Format to a new value //! Sets Main Format to a new value
//! Remark : SetFormat, SetZeroSuppress and SetFormatForRange are //! Remark : SetFormat, SetZeroSuppress and SetFormatForRange are
//! independant //! independent
Standard_EXPORT void SetFormat (const Standard_CString format = "%E"); Standard_EXPORT void SetFormat (const Standard_CString format = "%E");
//! Sets Format for Range to a new value with its range of //! Sets Format for Range to a new value with its range of

View File

@ -48,7 +48,7 @@ public:
Standard_EXPORT IGESSelect_SelectPCurves(const Standard_Boolean basic); Standard_EXPORT IGESSelect_SelectPCurves(const Standard_Boolean basic);
//! Explores an entity, to take its contained PCurves //! 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; 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 //! Returns a text defining the criterium : "Basic PCurves" or

View File

@ -37,14 +37,14 @@ DEFINE_STANDARD_HANDLE(IGESSelect_SelectSubordinate, IFSelect_SelectExtract)
//! This selections uses Subordinate Status as sort criterium //! This selections uses Subordinate Status as sort criterium
//! It is an integer number which can be : //! It is an integer number which can be :
//! 0 Independant //! 0 Independent
//! 1 Physically Dependant //! 1 Physically Dependent
//! 2 Logically Dependant //! 2 Logically Dependent
//! 3 Both (recorded) //! 3 Both (recorded)
//! + to sort : //! + to sort :
//! 4 : 1 or 3 -> at least Physically //! 4 : 1 or 3 -> at least Physically
//! 5 : 2 or 3 -> at least Logically //! 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) //! (corresponds to 0 reversed)
class IGESSelect_SelectSubordinate : public IFSelect_SelectExtract class IGESSelect_SelectSubordinate : public IFSelect_SelectExtract
{ {
@ -62,7 +62,7 @@ public:
//! Status matching the criterium //! 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; 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... //! etc...
Standard_EXPORT TCollection_AsciiString ExtractLabel() const Standard_OVERRIDE; Standard_EXPORT TCollection_AsciiString ExtractLabel() const Standard_OVERRIDE;

View File

@ -172,7 +172,7 @@ IGESToBRep_IGESBoundary::IGESToBRep_IGESBoundary(const IGESToBRep_CurveAndSurfac
GTranslate2d = Standard_False; GTranslate2d = Standard_False;
if (GTranslate3d && GTranslate2d) { 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; if (myfilepreference == 2) Preferred3d = Standard_False;
else if (myfilepreference == 3) Preferred2d = Standard_False; else if (myfilepreference == 3) Preferred2d = Standard_False;
else Preferred3d = Standard_False; else Preferred3d = Standard_False;

View File

@ -72,7 +72,7 @@ public:
//! and may contain pcurves) //! and may contain pcurves)
Handle(ShapeExtend_WireData) WireData3d() const; 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) //! only)
Handle(ShapeExtend_WireData) WireData2d() const; Handle(ShapeExtend_WireData) WireData2d() const;

View File

@ -1227,8 +1227,8 @@ Standard_Integer project6(const IntPolyh_Point &ax,
} }
//======================================================================= //=======================================================================
//function : TriContact //function : TriContact
//purpose : This fonction Check if two triangles are in //purpose : This function checks if two triangles are in
// contact or no, return 1 if yes, return 0 // contact or not, return 1 if yes, return 0
// if no. // if no.
//======================================================================= //=======================================================================
Standard_Integer IntPolyh_MaillageAffinage::TriContact Standard_Integer IntPolyh_MaillageAffinage::TriContact

View File

@ -129,27 +129,25 @@ public:
//! compared to the other) //! compared to the other)
Standard_EXPORT void TrianglesDeflectionsRefinementBSB(); Standard_EXPORT void TrianglesDeflectionsRefinementBSB();
//! This fonction Check if two triangles are in //! This function checks if two triangles are in contact or not,
//! contact or no, return 1 if yes, return 0 //! return 1 if yes, return 0 if not.
//! if no.
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 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; 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. //! From two triangles compute intersection points.
//! If I found more than two intersection points //! If we found more than two intersection points
//! that's mean that those triangle are coplanar //! 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; 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 //! from two triangles and an intersection point I
//! search the other point (if it exist). //! search the other point (if it exists).
//! This function is used by StartPointChain //! 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; 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 -- //! Analyse each couple of triangles from the two -- array of triangles,
//! array of triangles, to see if they are in //! to see if they are in contact, and compute the incidence.
//! contact, and compute the incidence. Then put //! Then put couples in contact in the array of couples
//! couples in contact in the array of couples
Standard_EXPORT Standard_Integer TriangleCompare(); Standard_EXPORT Standard_Integer TriangleCompare();
//! Loop on the array of couples. Compute StartPoints. //! Loop on the array of couples. Compute StartPoints.
@ -187,13 +185,8 @@ public:
//! returns FlecheMax //! returns FlecheMax
Standard_EXPORT Standard_Real GetMaxDeflection (const Standard_Integer SurfID) const; Standard_EXPORT Standard_Real GetMaxDeflection (const Standard_Integer SurfID) const;
protected:
private: private:
Handle(Adaptor3d_Surface) MaSurface1; Handle(Adaptor3d_Surface) MaSurface1;
Handle(Adaptor3d_Surface) MaSurface2; Handle(Adaptor3d_Surface) MaSurface2;
Bnd_Box MyBox1; Bnd_Box MyBox1;

View File

@ -128,10 +128,10 @@ void IntRes2d_Intersection::SetValues(const IntRes2d_Intersection& Other) {
//-- parameter of the bounds of the composite Curve //-- parameter of the bounds of the composite Curve
//-- Merge of two Intersection Segments S1 and S2 when : //-- Merge of two Intersection Segments S1 and S2 when :
//-- //--
//-- S1 : U1First,PosU1Fisrt --> U1Last,PosU1Last //-- S1 : U1First,PosU1First --> U1Last,PosU1Last
//-- V1First,PosV1Fisrt --> V1Last,PosV1Last //-- V1First,PosV1First --> V1Last,PosV1Last
//-- S2 : U2First,PosU2Fisrt --> U2Last,PosU2Last //-- S2 : U2First,PosU2First --> U2Last,PosU2Last
//-- V2First,PosV2Fisrt --> V2Last,PosV2Last //-- V2First,PosV2First --> V2Last,PosV2Last
//-- //--
//-- 1 U : X------1-------E H-----2-------X U --> //-- 1 U : X------1-------E H-----2-------X U -->
//-- V : X------1-------X X-----2-------X <- V -> ? //-- V : X------1-------X X-----2-------X <- V -> ?

View File

@ -73,12 +73,9 @@ public:
//! Returns True if faces are tangent //! Returns True if faces are tangent
Standard_EXPORT Standard_Boolean TangentFaces() const; Standard_EXPORT Standard_Boolean TangentFaces() const;
//! Provides post-processing the result lines. //! Provides post-processing the result lines.
//! <bToSplit> - the flag. //! @param bToSplit [in] split the closed 3D-curves on parts when TRUE,
//! In case of <bToSplit> is true the closed 3D-curves will be splitted //! remain untouched otherwise
//! on parts.
//! In case of <bToSplit> is false the closed 3D-curves remain untouched.
Standard_EXPORT void PrepareLines3D (const Standard_Boolean bToSplit = Standard_True); Standard_EXPORT void PrepareLines3D (const Standard_Boolean bToSplit = Standard_True);
Standard_EXPORT void SetList (IntSurf_ListOfPntOn2S& ListOfPnts); Standard_EXPORT void SetList (IntSurf_ListOfPntOn2S& ListOfPnts);

View 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); 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 //! 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 //! NulOnTheRight is false) and that is like a
//! t*(1-t)(1-t) curve on the left side of Knots(Index) //! 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 //! curve is C1 with a derivative equal to 1. at first
//! parameter (-1 at last parameter if NulOnTheRight is //! parameter (-1 at last parameter if NulOnTheRight is
//! false). //! false).

View File

@ -42,7 +42,6 @@ class Law_BSpFunc : public Law_Function
public: public:
Standard_EXPORT Law_BSpFunc(); Standard_EXPORT Law_BSpFunc();
Standard_EXPORT Law_BSpFunc(const Handle(Law_BSpline)& C, const Standard_Real First, const Standard_Real Last); Standard_EXPORT Law_BSpFunc(const Handle(Law_BSpline)& C, const Standard_Real First, const Standard_Real Last);
@ -53,11 +52,8 @@ public:
//! <S>. May be one if Continuity(me) >= <S> //! <S>. May be one if Continuity(me) >= <S>
Standard_EXPORT Standard_Integer NbIntervals (const GeomAbs_Shape S) const Standard_OVERRIDE; Standard_EXPORT Standard_Integer NbIntervals (const GeomAbs_Shape S) const Standard_OVERRIDE;
//! Stores in <T> the parameters bounding the intervals //! Stores in <T> the parameters bounding the intervals of continuity <S>.
//! of continuity <S>. //! The array must provide enough room to accommodate for the parameters, i.e. T.Length() > NbIntervals()
//!
//! The array must provide enough room to accomodate
//! for the parameters. i.e. T.Length() > NbIntervals()
Standard_EXPORT void Intervals (TColStd_Array1OfReal& T, const GeomAbs_Shape S) const Standard_OVERRIDE; 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 Standard_Real Value (const Standard_Real X) Standard_OVERRIDE;
@ -80,30 +76,14 @@ public:
Standard_EXPORT void SetCurve (const Handle(Law_BSpline)& C); Standard_EXPORT void SetCurve (const Handle(Law_BSpline)& C);
DEFINE_STANDARD_RTTIEXT(Law_BSpFunc,Law_Function) DEFINE_STANDARD_RTTIEXT(Law_BSpFunc,Law_Function)
protected:
private: private:
Handle(Law_BSpline) curv; Handle(Law_BSpline) curv;
Standard_Real first; Standard_Real first;
Standard_Real last; Standard_Real last;
}; };
#endif // _Law_BSpFunc_HeaderFile #endif // _Law_BSpFunc_HeaderFile

View File

@ -68,7 +68,7 @@ DEFINE_STANDARD_HANDLE(Law_BSpline, Standard_Transient)
//! - Quasi-uniform if all multiplicities are 1 //! - Quasi-uniform if all multiplicities are 1
//! but the first and the last which are Degree+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 but the first and the last which are
//! Degree+1. //! Degree+1.
//! //!
@ -518,7 +518,7 @@ public:
//! StartingCondition = 1 means the first point and tangent cannot move //! StartingCondition = 1 means the first point and tangent cannot move
//! EndingCondition = 1 means the last point and tangent cannot move //! EndingCondition = 1 means the last point and tangent cannot move
//! and so forth //! 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 //! 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); 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);

View File

@ -52,7 +52,7 @@ public:
//! Construct an empty Law //! Construct an empty Law
Standard_EXPORT Law_Composite(); 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 Law_Composite(const Standard_Real First, const Standard_Real Last, const Standard_Real Tol);
Standard_EXPORT GeomAbs_Shape Continuity() const Standard_OVERRIDE; Standard_EXPORT GeomAbs_Shape Continuity() const Standard_OVERRIDE;
@ -61,11 +61,9 @@ public:
//! <S>. May be one if Continuity(me) >= <S> //! <S>. May be one if Continuity(me) >= <S>
Standard_EXPORT Standard_Integer NbIntervals (const GeomAbs_Shape S) const Standard_OVERRIDE; Standard_EXPORT Standard_Integer NbIntervals (const GeomAbs_Shape S) const Standard_OVERRIDE;
//! Stores in <T> the parameters bounding the intervals //! Stores in <T> the parameters bounding the intervals of continuity <S>.
//! of continuity <S>. //! The array must provide enough room to accommodate for the parameters,
//! //! i.e. T.Length() > NbIntervals()
//! The array must provide enough room to accomodate
//! for the parameters. i.e. T.Length() > NbIntervals()
Standard_EXPORT void Intervals (TColStd_Array1OfReal& T, const GeomAbs_Shape S) const Standard_OVERRIDE; Standard_EXPORT void Intervals (TColStd_Array1OfReal& T, const GeomAbs_Shape S) const Standard_OVERRIDE;
//! Returns the value at parameter X. //! Returns the value at parameter X.
@ -99,19 +97,10 @@ public:
Standard_EXPORT void SetPeriodic(); Standard_EXPORT void SetPeriodic();
DEFINE_STANDARD_RTTIEXT(Law_Composite,Law_Function) DEFINE_STANDARD_RTTIEXT(Law_Composite,Law_Function)
protected:
private: private:
//! Set the current function. //! Set the current function.
Standard_EXPORT void Prepare (Standard_Real& W); Standard_EXPORT void Prepare (Standard_Real& W);
@ -124,13 +113,6 @@ private:
Standard_Real TLast; Standard_Real TLast;
Standard_Real PTol; Standard_Real PTol;
}; };
#endif // _Law_Composite_HeaderFile #endif // _Law_Composite_HeaderFile

View File

@ -44,11 +44,9 @@ public:
//! <S>. May be one if Continuity(me) >= <S> //! <S>. May be one if Continuity(me) >= <S>
Standard_EXPORT virtual Standard_Integer NbIntervals (const GeomAbs_Shape S) const = 0; Standard_EXPORT virtual Standard_Integer NbIntervals (const GeomAbs_Shape S) const = 0;
//! Stores in <T> the parameters bounding the intervals //! Stores in <T> the parameters bounding the intervals of continuity <S>.
//! of continuity <S>. //! The array must provide enough room to accommodate for the parameters,
//! //! i.e. T.Length() > NbIntervals()
//! The array must provide enough room to accomodate
//! for the parameters. i.e. T.Length() > NbIntervals()
Standard_EXPORT virtual void Intervals (TColStd_Array1OfReal& T, const GeomAbs_Shape S) const = 0; 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. //! Returns the value of the function at the point of parameter X.

View File

@ -50,7 +50,6 @@ LocOpe_SequenceOfLin.hxx
LocOpe_SequenceOfPntFace.hxx LocOpe_SequenceOfPntFace.hxx
LocOpe_SplitDrafts.cxx LocOpe_SplitDrafts.cxx
LocOpe_SplitDrafts.hxx LocOpe_SplitDrafts.hxx
LocOpe_SplitDrafts.lxx
LocOpe_Spliter.cxx LocOpe_Spliter.cxx
LocOpe_Spliter.hxx LocOpe_Spliter.hxx
LocOpe_Spliter.lxx LocOpe_Spliter.lxx

View File

@ -78,7 +78,7 @@ public:
//! On the element of range <I>, searches the first //! On the element of range <I>, searches the first
//! intersection point located after the parameter //! 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 //! If found, returns <Standard_True>. <Or> contains
//! the orientation of the point, <IndFrom> and //! the orientation of the point, <IndFrom> and
//! <IndTo> represents the interval of index in the //! <IndTo> represents the interval of index in the
@ -91,7 +91,7 @@ public:
//! On the element of range <I>, searches the first //! On the element of range <I>, searches the first
//! intersection point located before the parameter //! 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 //! If found, returns <Standard_True>. <Or> contains
//! the orientation of the point, <IndFrom> and //! the orientation of the point, <IndFrom> and
//! <IndTo> represents the interval of index in the //! <IndTo> represents the interval of index in the
@ -104,7 +104,7 @@ public:
//! On the element of range <I>, searches the first //! On the element of range <I>, searches the first
//! intersection point located after the index //! intersection point located after the index
//! <FromInd> ( >= FromInd + 1), wich orientation is //! <FromInd> ( >= FromInd + 1), which orientation is
//! not TopAbs_EXTERNAL. If found, returns //! not TopAbs_EXTERNAL. If found, returns
//! <Standard_True>. <Or> contains the orientation of //! <Standard_True>. <Or> contains the orientation of
//! the point, <IndFrom> and <IndTo> represents the //! the point, <IndFrom> and <IndTo> represents the
@ -118,7 +118,7 @@ public:
//! On the element of range <I>, searches the first //! On the element of range <I>, searches the first
//! intersection point located before the index //! intersection point located before the index
//! <FromInd> ( <= FromInd -1), wich orientation is //! <FromInd> ( <= FromInd -1), which orientation is
//! not TopAbs_EXTERNAL. If found, returns //! not TopAbs_EXTERNAL. If found, returns
//! <Standard_True>. <Or> contains the orientation of //! <Standard_True>. <Or> contains the orientation of
//! the point, <IndFrom> and <IndTo> represents the //! the point, <IndFrom> and <IndTo> represents the

View File

@ -75,7 +75,7 @@ public:
const LocOpe_PntFace& Point (const Standard_Integer Index) const; const LocOpe_PntFace& Point (const Standard_Integer Index) const;
//! Searches the first intersection point located //! 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 //! not TopAbs_EXTERNAL. If found, returns
//! <Standard_True>. <Or> contains the orientation of //! <Standard_True>. <Or> contains the orientation of
//! the point, <IndFrom> and <IndTo> represents the //! 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; 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 //! 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 //! not TopAbs_EXTERNAL. If found, returns
//! <Standard_True>. <Or> contains the orientation of //! <Standard_True>. <Or> contains the orientation of
//! the point, <IndFrom> and <IndTo> represents the //! 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; 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 //! 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, //! orientation is not TopAbs_EXTERNAL. If found,
//! returns <Standard_True>. <Or> contains the //! returns <Standard_True>. <Or> contains the
//! orientation of the point, <IndFrom> and <IndTo> //! 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; 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 //! 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, //! orientation is not TopAbs_EXTERNAL. If found,
//! returns <Standard_True>. <Or> contains the //! returns <Standard_True>. <Or> contains the
//! orientation of the point, <IndFrom> and <IndTo> //! orientation of the point, <IndFrom> and <IndTo>

View File

@ -14,7 +14,7 @@
// Alternatively, this file may be used under the terms of Open CASCADE // Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement. // commercial license or contractual agreement.
// Modifed: Portage NT 7-5-97 DPF (return NewParameter) #include <LocOpe_Generator.hxx>
#include <BRep_Builder.hxx> #include <BRep_Builder.hxx>
#include <BRep_Tool.hxx> #include <BRep_Tool.hxx>
@ -35,7 +35,6 @@
#include <gp_Pln.hxx> #include <gp_Pln.hxx>
#include <LocOpe_BuildShape.hxx> #include <LocOpe_BuildShape.hxx>
#include <LocOpe_GeneratedShape.hxx> #include <LocOpe_GeneratedShape.hxx>
#include <LocOpe_Generator.hxx>
#include <Precision.hxx> #include <Precision.hxx>
#include <Standard_NoSuchObject.hxx> #include <Standard_NoSuchObject.hxx>
#include <Standard_NullObject.hxx> #include <Standard_NullObject.hxx>

View File

@ -20,23 +20,16 @@
#include <Standard.hxx> #include <Standard.hxx>
#include <Standard_DefineAlloc.hxx> #include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx> #include <Standard_Handle.hxx>
#include <Standard_Real.hxx>
#include <TopoDS_Shape.hxx> #include <TopoDS_Shape.hxx>
#include <TopTools_DataMapOfShapeListOfShape.hxx> #include <TopTools_DataMapOfShapeListOfShape.hxx>
#include <Standard_Real.hxx>
#include <Standard_Boolean.hxx>
#include <TopTools_ListOfShape.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_Face;
class TopoDS_Wire; class TopoDS_Wire;
class gp_Dir; class gp_Dir;
class gp_Pln; class gp_Pln;
//! This class provides a tool to realize the //! This class provides a tool to realize the
//! following operations on a shape : //! following operations on a shape :
//! - split a face of the shape with a wire, //! - split a face of the shape with a wire,
@ -48,14 +41,13 @@ public:
DEFINE_STANDARD_ALLOC DEFINE_STANDARD_ALLOC
//! Empty constructor. //! Empty constructor.
LocOpe_SplitDrafts(); LocOpe_SplitDrafts() {}
//! Creates the algoritm on the shape <S>. //! Creates the algorithm on the shape <S>.
LocOpe_SplitDrafts(const TopoDS_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); Standard_EXPORT void Init (const TopoDS_Shape& S);
//! Splits the face <F> of the former given shape with //! Splits the face <F> of the former given shape with
@ -85,11 +77,10 @@ public:
//! angle. //! 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); 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 //! Returns <Standard_True> if the modification has been successfully performed.
//! been succesfully performed. Standard_Boolean IsDone() const { return !myResult.IsNull(); }
Standard_Boolean IsDone() const;
const TopoDS_Shape& OriginalShape() const; const TopoDS_Shape& OriginalShape() const { return myShape; }
//! Returns the modified shape. //! Returns the modified shape.
Standard_EXPORT const TopoDS_Shape& Shape() const; Standard_EXPORT const TopoDS_Shape& Shape() const;
@ -97,31 +88,12 @@ public:
//! Manages the descendant shapes. //! Manages the descendant shapes.
Standard_EXPORT const TopTools_ListOfShape& ShapesFromShape (const TopoDS_Shape& S) const; Standard_EXPORT const TopTools_ListOfShape& ShapesFromShape (const TopoDS_Shape& S) const;
protected:
private: private:
TopoDS_Shape myShape; TopoDS_Shape myShape;
TopoDS_Shape myResult; TopoDS_Shape myResult;
TopTools_DataMapOfShapeListOfShape myMap; TopTools_DataMapOfShapeListOfShape myMap;
}; };
#include <LocOpe_SplitDrafts.lxx>
#endif // _LocOpe_SplitDrafts_HeaderFile #endif // _LocOpe_SplitDrafts_HeaderFile

View File

@ -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;
}

View File

@ -53,7 +53,7 @@ public:
Standard_EXPORT void Init (const TopoDS_Shape& S); Standard_EXPORT void Init (const TopoDS_Shape& S);
//! Add splitting edges or wires for whole initial shape //! 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 //! This method puts edge on the corresponding faces from initial shape
Standard_EXPORT Standard_Boolean Add(const TopTools_SequenceOfShape& theEdges); Standard_EXPORT Standard_Boolean Add(const TopTools_SequenceOfShape& theEdges);

View File

@ -20,15 +20,13 @@
#include <Standard.hxx> #include <Standard.hxx>
#include <Standard_DefineAlloc.hxx> #include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx> #include <Standard_Handle.hxx>
#include <Standard_OStream.hxx> #include <Standard_OStream.hxx>
class LocalAnalysis_SurfaceContinuity; class LocalAnalysis_SurfaceContinuity;
class LocalAnalysis_CurveContinuity; class LocalAnalysis_CurveContinuity;
class LocalAnalysis_SurfaceContinuity; class LocalAnalysis_SurfaceContinuity;
class LocalAnalysis_CurveContinuity; class LocalAnalysis_CurveContinuity;
//! This package gives tools to check the local continuity //! This package gives tools to check the local continuity
//! between two points situated on two curves or two surfaces. //! between two points situated on two curves or two surfaces.
class LocalAnalysis class LocalAnalysis
@ -37,42 +35,21 @@ public:
DEFINE_STANDARD_ALLOC 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); 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); Standard_EXPORT static void Dump (const LocalAnalysis_CurveContinuity& curvconti, Standard_OStream& o);
protected:
private: private:
friend class LocalAnalysis_SurfaceContinuity; friend class LocalAnalysis_SurfaceContinuity;
friend class LocalAnalysis_CurveContinuity; friend class LocalAnalysis_CurveContinuity;
}; };
#endif // _LocalAnalysis_HeaderFile #endif // _LocalAnalysis_HeaderFile

View File

@ -60,10 +60,10 @@ public:
//! Returns geometry information about node or element //! Returns geometry information about node or element
//! ID is the numerical identificator of 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 ) //! 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 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 //! 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. //! 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 //! Type is type of node or element (from enumeration). It is recommended this parameter to be set to
//! MeshVS_ET_Node for node. //! MeshVS_ET_Node for node.
@ -101,7 +101,7 @@ public:
//! There is default method, for advance reflection this method can be redefined. //! There is default method, for advance reflection this method can be redefined.
//! Id is the numerical identificator of only element! //! Id is the numerical identificator of only element!
//! Max is maximal number of nodes an element can consist of //! 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 //! 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 //! the appearance of element will be more bright than usual. For ordinary brightness you must return
//! normal with length 1 //! normal with length 1
@ -160,7 +160,7 @@ public:
//! Returns maps of entities (nodes and elements) detected //! Returns maps of entities (nodes and elements) detected
//! by mouse selection with rectangular box (XMin, YMin, XMax, YMax) //! 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. //! Returns True if something is detected.
//! It should be redefined if the advanced mesh selection is //! It should be redefined if the advanced mesh selection is
//! activated. Default implementation returns False. //! activated. Default implementation returns False.
@ -168,7 +168,7 @@ public:
//! Returns maps of entities (nodes and elements) detected //! Returns maps of entities (nodes and elements) detected
//! by mouse selection with the polyline <Polyline> //! 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. //! Returns True if something is detected.
//! It should be redefined if the advanced mesh selection is //! It should be redefined if the advanced mesh selection is
//! activated. Default implementation returns False. //! activated. Default implementation returns False.
@ -182,27 +182,8 @@ public:
//! activated. Default implementation returns False. //! activated. Default implementation returns False.
Standard_EXPORT virtual Standard_Boolean GetDetectedEntities (const Handle(MeshVS_Mesh)& Prs, Handle(TColStd_HPackedMapOfInteger)& Nodes, Handle(TColStd_HPackedMapOfInteger)& Elements); 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) DEFINE_STANDARD_RTTIEXT(MeshVS_DataSource,Standard_Transient)
protected:
private:
}; };
#endif // _MeshVS_DataSource_HeaderFile #endif // _MeshVS_DataSource_HeaderFile

View File

@ -39,7 +39,6 @@ class MeshVS_MeshPrsBuilder : public MeshVS_PrsBuilder
public: public:
//! Creates builder with certain display mode flags, data source, ID and priority //! 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); 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 //! 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); 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) DEFINE_STANDARD_RTTIEXT(MeshVS_MeshPrsBuilder,MeshVS_PrsBuilder)
protected: protected:
//! Add to array of polylines some lines representing link //! 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; Standard_EXPORT void AddLinkPrs (const TColStd_Array1OfReal& theCoords, const Handle(Graphic3d_ArrayOfSegments)& theLines, const Standard_Boolean IsShrinked, const Standard_Real ShrinkCoef) const;
@ -82,24 +77,11 @@ protected:
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; 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 //! 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 //! 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); 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 #endif // _MeshVS_MeshPrsBuilder_HeaderFile

View File

@ -76,7 +76,7 @@ public:
static void StopAlert (const Handle(Message_AlertExtended)& theAlert) { SetAlertMetrics (theAlert, Standard_False); } static void StopAlert (const Handle(Message_AlertExtended)& theAlert) { SetAlertMetrics (theAlert, Standard_False); }
//! Sets current values of default report metrics into the alert. //! 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 theAlert an alert
//! @param theStartValue flag, if true, the start value is collected otherwise stop //! @param theStartValue flag, if true, the start value is collected otherwise stop
static Standard_EXPORT void SetAlertMetrics (const Handle(Message_AlertExtended)& theAlert, static Standard_EXPORT void SetAlertMetrics (const Handle(Message_AlertExtended)& theAlert,

View File

@ -56,7 +56,6 @@ public:
DEFINE_STANDARD_ALLOC DEFINE_STANDARD_ALLOC
//! Load message file <theFileName> from directory <theDirName> //! Load message file <theFileName> from directory <theDirName>
//! or its sub-directory //! or its sub-directory
Standard_EXPORT static Standard_Boolean Load (const Standard_CString theDirName, const Standard_CString theFileName); 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); Standard_EXPORT static const TCollection_ExtendedString& Msg (const Standard_CString key);
//! Gives the text for the message identified by the keyword <key> //! Gives the text for the message identified by the keyword <key>.
//! If there are no messages with such keyword defined, //! If there are no messages with such keyword defined, the error message is returned.
//! the error message is returned. //! In that case reference to static string is returned, it can be changed with next call(s) to Msg().
//! In that case reference to static string is returned, it can
//! be chenged with next call(s) to Msg().
//! Note: The error message is constructed like 'Unknown message: <key>', and can //! Note: The error message is constructed like 'Unknown message: <key>', and can
//! itself be customized by defining message with key Message_Msg_BadKeyword. //! itself be customized by defining message with key Message_Msg_BadKeyword.
Standard_EXPORT static const TCollection_ExtendedString& Msg (const TCollection_AsciiString& key); Standard_EXPORT static const TCollection_ExtendedString& Msg (const TCollection_AsciiString& key);
protected:
private:
}; };
#endif // _Message_MsgFile_HeaderFile #endif // _Message_MsgFile_HeaderFile

View File

@ -23,36 +23,28 @@
#include <NCollection_DefineAlloc.hxx> #include <NCollection_DefineAlloc.hxx>
#include <NCollection_StlIterator.hxx> #include <NCollection_StlIterator.hxx>
// *********************************************** Template for Array1 class //! 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".
* Purpose: The class Array1 represents unidimensional arrays //! This functionality is useful to call methods expecting an Array1.
* of fixed size known at run time. //! It allows to carry the bounds inside the arrays.
* The range of the index is user defined. //!
* An array1 can be constructed with a "C array". //! Examples:
* This functionality is useful to call methods expecting //! @code
* an Array1. It allows to carry the bounds inside the arrays. //! Item tab[100]; // an example with a C array
* //! NCollection_Array1<Item> ttab (tab[0], 1, 100);
* Examples: Item tab[100]; // An example with a C array //!
* Array1OfItem ttab (tab[0],1,100); //! NCollection_Array1<Item> tttab (ttab(10), 10, 20); // a slice of ttab
* //! @endcode
* Array1OfItem tttab (ttab(10),10,20); // a slice of ttab //! If you want to reindex an array from 1 to Length do:
* //! @code
* If you want to reindex an array from 1 to Length do : //! NCollection_Array1<Item> tab1 (tab (tab.Lower()), 1, tab.Length());
* //! @endcode
* Array1 tab1(tab(tab.Lower()),1,tab.Length()); //! 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
* Warning: Programs client of such a class must be independant //! @code
* of the range of the first element. Then, a C++ for //! for (i = A.Lower(); i <= A.Upper(); i++)
* loop must be written like this //! @endcode
*
* 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.
*/
template <class TheItemType> template <class TheItemType>
class NCollection_Array1 class NCollection_Array1
{ {

View File

@ -14,10 +14,10 @@
#include <OSD.hxx> #include <OSD.hxx>
// Convert Real to CString in format e with 16 significant digits. //=======================================================================
// The decimal point character is always a period. //function : RealToCString
// The conversion is independant from current locale database //purpose :
//=======================================================================
Standard_Boolean OSD::RealToCString(const Standard_Real aReal, Standard_Boolean OSD::RealToCString(const Standard_Real aReal,
Standard_PCharacter& aString) Standard_PCharacter& aString)
{ {

View File

@ -19,7 +19,7 @@
#include <Standard_PCharacter.hxx> #include <Standard_PCharacter.hxx>
#include <OSD_SignalMode.hxx> #include <OSD_SignalMode.hxx>
//! Set of Operating Sytem Dependent (OSD) Tools //! Set of Operating System Dependent (OSD) tools.
class OSD class OSD
{ {
public: public:
@ -118,15 +118,15 @@ public:
//! Commands the process to sleep for a number of milliseconds //! Commands the process to sleep for a number of milliseconds
Standard_EXPORT static void MilliSecSleep (const Standard_Integer theMilliseconds); Standard_EXPORT static void MilliSecSleep (const Standard_Integer theMilliseconds);
//! Converts aReal into aCstring in exponential format with a period as //! Converts aReal into aCstring in exponential format with a period as decimal point,
//! decimal point, no thousand separator and no grouping of digits. //! no thousand separator and no grouping of digits.
//! The conversion is independant from the current locale //! The conversion is independent from the current locale
Standard_EXPORT static Standard_Boolean RealToCString (const Standard_Real aReal, Standard_PCharacter& aString); Standard_EXPORT static Standard_Boolean RealToCString (const Standard_Real aReal, Standard_PCharacter& aString);
//! Converts aCstring representing a real with a period as //! Converts aCstring representing a real with a period as decimal point,
//! decimal point, no thousand separator and no grouping of digits //! no thousand separator and no grouping of digits into aReal.
//! into aReal . //!
//! The conversion is independant from the current locale. //! The conversion is independent from the current locale.
Standard_EXPORT static Standard_Boolean CStringToReal (const Standard_CString aString, Standard_Real& aReal); Standard_EXPORT static Standard_Boolean CStringToReal (const Standard_CString aString, Standard_Real& aReal);
//! since Windows NT does not support 'SIGINT' signal like UNIX, //! since Windows NT does not support 'SIGINT' signal like UNIX,

View File

@ -31,7 +31,7 @@ public:
public: public:
//! Creates Directory object. //! Creates Directory object.
//! It is initiliazed to an empty name. //! It is initialized to an empty name.
Standard_EXPORT OSD_Directory(); Standard_EXPORT OSD_Directory();
//! Creates Directory object initialized with theName. //! Creates Directory object initialized with theName.

View File

@ -289,7 +289,7 @@ TCollection_AsciiString OSD_Environment::Value()
// msvc C-runtime (_wputenv()) puts variable using WinAPI internally (calls SetEnvironmentVariableW()) // msvc C-runtime (_wputenv()) puts variable using WinAPI internally (calls SetEnvironmentVariableW())
// and also caches its value in its own map, // 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 // 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. // at once within application or WinAPI is used directly for setting environment variable.

View File

@ -57,7 +57,7 @@ public:
//! Changes environment variable value. //! Changes environment variable value.
//! Raises ConstructionError either if the string contains //! Raises ConstructionError either if the string contains
//! characters not in range of ' '...'~' or if the string //! 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); Standard_EXPORT void SetValue (const TCollection_AsciiString& Value);
//! Gets the value of an environment variable //! Gets the value of an environment variable
@ -66,7 +66,7 @@ public:
//! Changes environment variable name. //! Changes environment variable name.
//! Raises ConstructionError either if the string contains //! Raises ConstructionError either if the string contains
//! characters not in range of ' '...'~' or if the string //! 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); Standard_EXPORT void SetName (const TCollection_AsciiString& name);
//! Gets the name of <me>. //! Gets the name of <me>.

View File

@ -159,7 +159,7 @@ public:
Standard_EXPORT Standard_Boolean IsOpen() const; Standard_EXPORT Standard_Boolean IsOpen() const;
//! returns TRUE if the file exists and if the user //! 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(); Standard_EXPORT Standard_Boolean IsReadable();
//! returns TRUE if the file can be read and overwritten. //! returns TRUE if the file can be read and overwritten.
@ -170,7 +170,7 @@ public:
//! Enables to emulate unix "tail -f" command. //! Enables to emulate unix "tail -f" command.
//! If a line is available in the file <me> returns it. //! 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. //! waiting aDelay seconds between each read.
//! If meanwhile the file increases returns the next line, otherwise //! If meanwhile the file increases returns the next line, otherwise
//! returns FALSE. //! returns FALSE.

View File

@ -295,7 +295,7 @@ Quantity_Date OSD_FileNode::CreationMoment(){
// if (Failed()) Perror(); // if (Failed()) Perror();
/* Get File Informations */ /* Get File Information */
TCollection_AsciiString aBuffer; TCollection_AsciiString aBuffer;
myPath.SystemName ( aBuffer ); myPath.SystemName ( aBuffer );
@ -323,7 +323,7 @@ Quantity_Date OSD_FileNode::AccessMoment(){
// if (Failed()) Perror(); // if (Failed()) Perror();
/* Get File Informations */ /* Get File Information */
TCollection_AsciiString aBuffer; TCollection_AsciiString aBuffer;
myPath.SystemName ( aBuffer ); myPath.SystemName ( aBuffer );

View File

@ -39,7 +39,7 @@ public:
//! Default implementation create a stream from file buffer returned by OSD_FileSystem::OpenFileBuffer(). //! Default implementation create a stream from file buffer returned by OSD_FileSystem::OpenFileBuffer().
//! @param theUrl [in] path to open //! @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 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) //! -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) //! @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. //! @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. //! Opens stream buffer for specified file URL.
//! @param theUrl [in] path to open //! @param theUrl [in] path to open
//! @param theMode [in] flags describing the requested input mode for the stream //! @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) //! @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. //! @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, virtual opencascade::std::shared_ptr<std::streambuf> OpenStreamBuffer (const TCollection_AsciiString& theUrl,

View File

@ -142,7 +142,7 @@ public:
Standard_Mutex myMutex; //!< used for thread-safe access Standard_Mutex myMutex; //!< used for thread-safe access
Numbers* myArray; //!< indexed from 0 to myMaxAllocSize-1 Numbers* myArray; //!< indexed from 0 to myMaxAllocSize-1
ptrdiff_t myTotalLeftSize; //!< currently remained allocated size 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 myBreakSize; //!< user defined allocation size to debug (see place_for_breakpoint())
size_t myBreakPeak; //!< user defined peak size limit to debug size_t myBreakPeak; //!< user defined peak size limit to debug
}; };

View File

@ -205,7 +205,7 @@ void OSD_Parallel::SetUseOcctThreads (Standard_Boolean theToUseOcct)
//======================================================================= //=======================================================================
//function : NbLogicalProcessors //function : NbLogicalProcessors
//purpose : Returns number of logical proccessors. //purpose : Returns number of logical processors.
//======================================================================= //=======================================================================
Standard_Integer OSD_Parallel::NbLogicalProcessors() Standard_Integer OSD_Parallel::NbLogicalProcessors()
{ {

View File

@ -187,7 +187,7 @@ protected:
}; };
//! Interface class representing functor object. //! 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. //! enabling execution of arbitrary function in parallel mode.
class FunctorInterface class FunctorInterface
{ {

View File

@ -76,7 +76,7 @@ namespace
private: //! @name private fields 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. const OSD_Parallel::UniversalIterator& myEnd; //!< Last element of range.
mutable OSD_Parallel::UniversalIterator myIt; //!< First non processed 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. mutable Standard_Mutex myMutex; //!< Access controller for the first non processed element.

View File

@ -298,7 +298,7 @@ static void MacExtract(const TCollection_AsciiString& what,
Standard_Integer pos; Standard_Integer pos;
Standard_PCharacter p; 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; 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, void OSD_Path::SystemName (TCollection_AsciiString& FullName,
const OSD_SysType aType)const{ const OSD_SysType aType)const{

View File

@ -32,7 +32,7 @@ public:
//! i.e. current directory. //! i.e. current directory.
Standard_EXPORT OSD_Path(); 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); //! ex: OSD_Path me ("/usr/bin/myprog.sh",OSD_UnixBSD);
//! //!
//! OSD_Path me ("sys$common:[syslib]cc.exe",OSD_OSF) will //! OSD_Path me ("sys$common:[syslib]cc.exe",OSD_OSF) will

View File

@ -18,26 +18,21 @@
#include <Standard_Address.hxx> #include <Standard_Address.hxx>
// Typedef for prototype of function to be used as main //! Typedef for prototype of function to be used as main function of a thread.
// function of a thread //!
//! Note: currently we use the same prototype for thread functions on all platforms,
// Note: currently we use the same prototype for thread functions on all //! in order to make user programs less platform-dependent.
// platforms, in order to make user programs less platform-dependent. //! However, there is a distinction in returned value for the thread function
// However, there is a distinction in returned value for the thread function //! on UNIX/Linux (void*) and Windows (DWORD) systems.
// on UNIX/Linux (void*) and WIndows (DWORD) systems. //! Thus on Windows we have to encode returned void* as DWORD.
// Thus on Windows we have to encode returned void* as DWORD. It is OK for WIN32, //! It is OK for WIN32, but potentially problem on WIN64.
// but potentially problem on WIN64. //! To avoid any problems with this, for better application portability it is recommended
// To avoid any problems with this, for better application portability it is recomended //! that the thread function returns just integer (casted to void*).
// that the thread function returns just integer (casted to void*). //! This shall work on all platforms.
// This shall work on all platforms.
//#ifdef _WIN32
//#include <windows.h>
//typedef LPTHREAD_START_ROUTINE OSD_ThreadFunction;
//#else
typedef Standard_Address (*OSD_ThreadFunction) (Standard_Address data); typedef Standard_Address (*OSD_ThreadFunction) (Standard_Address data);
//#ifdef _WIN32
//typedef LPTHREAD_START_ROUTINE OSD_ThreadFunction;
//#endif //#endif
#endif #endif

View File

@ -17,8 +17,8 @@
/******************************************************************************/ /******************************************************************************/
/* File: OSD_WNT.cxx */ /* File: OSD_WNT.cxx */
/* Purpose: Security management routines ( more convinient than WIN32 */ /* Purpose: Security management routines ( more convenient than WIN32 */
/* ones ) and other convinient functions. */ /* ones ) and other convrnient functions. */
/******************************************************************************/ /******************************************************************************/
/***/ /***/
#include <OSD_WNT.hxx> #include <OSD_WNT.hxx>
@ -999,9 +999,9 @@ void SetCopyDirectoryProc ( COPY_DIR_PROC proc ) {
/******************************************************************************/ /******************************************************************************/
/* Function : SetResponseDirectoryProc */ /* Function : SetResponseDirectoryProc */
/* Purpose : Sets callback procedure which is calling by the */ /* Purpose : Sets callback procedure which is calling by the */
/* directoy processing function if an error was occur. */ /* directory processing function if an error was occur. */
/* The return value of that callback procedure determines */ /* 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 */ /* To unregister this callback function supply NULL pointer */
/******************************************************************************/ /******************************************************************************/
/***/ /***/

View File

@ -250,7 +250,7 @@ static LONG CallHandler (DWORD theExceptionCode,
} }
case EXCEPTION_PRIV_INSTRUCTION: case EXCEPTION_PRIV_INSTRUCTION:
{ {
strcat_s (aBuffer, sizeof(aBuffer), "PRIVELEGED INSTRUCTION ENCOUNTERED"); strcat_s (aBuffer, sizeof(aBuffer), "PRIVILEGED INSTRUCTION ENCOUNTERED");
break; break;
} }
case EXCEPTION_STACK_OVERFLOW: case EXCEPTION_STACK_OVERFLOW:
@ -467,7 +467,7 @@ void OSD::SetSignal (OSD_SignalMode theSignalMode,
TCollection_AsciiString val = env.Value(); TCollection_AsciiString val = env.Value();
if (!env.Failed()) if (!env.Failed())
{ {
std::cout << "Environment variable CSF_DEBUG_MODE setted.\n"; std::cout << "Environment variable CSF_DEBUG_MODE set.\n";
fMsgBox = Standard_True; fMsgBox = Standard_True;
if (OSD_SignalStackTraceLength == 0) if (OSD_SignalStackTraceLength == 0)
{ {
@ -769,7 +769,7 @@ typedef void (* SIG_PFV) (int);
//============================================================================ //============================================================================
//==== Handler //==== Handler
//==== Catche the differents signals: //==== Catch the different signals:
//==== 1- The Fatal signals, which cause the end of process: //==== 1- The Fatal signals, which cause the end of process:
//==== 2- The exceptions which are "signaled" by Raise. //==== 2- The exceptions which are "signaled" by Raise.
//==== The Fatal Signals: //==== The Fatal Signals:
@ -802,7 +802,7 @@ static void Handler (const int theSignal)
perror ("sigaction"); 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 ) if ( ADR_ACT_SIGIO_HANDLER != NULL )
(*ADR_ACT_SIGIO_HANDLER)() ; (*ADR_ACT_SIGIO_HANDLER)() ;
@ -1029,7 +1029,7 @@ void OSD::SetThreadLocalSignal (OSD_SignalMode /*theSignalMode*/,
//============================================================================ //============================================================================
//==== SetSignal //==== SetSignal
//==== Set the differents signals: //==== Set the different signals:
//============================================================================ //============================================================================
void OSD::SetSignal (OSD_SignalMode theSignalMode, void OSD::SetSignal (OSD_SignalMode theSignalMode,

View File

@ -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. * but some limit functionality to OpenGL 2.1 (e.g. OS X) when core profile is not explicitly requested.
* *
* Requires OpenGL 3.2+ drivers. * 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. * Interacts with ffpEnable option, which should be disabled within core profile.
* *
* ON by default. * ON by default.

View File

@ -2182,7 +2182,7 @@ void OpenGl_Context::ReleaseDelayed()
{ {
if (++anIter.ChangeValue() <= 2) 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(); const TCollection_AsciiString& aKey = anIter.Key();

View File

@ -188,7 +188,7 @@ Standard_ShortReal OpenGl_GraduatedTrihedron::getDistanceToCorner (const OpenGl_
Standard_ExtCharacter OpenGl_GraduatedTrihedron::getGridAxes (const Standard_ShortReal theCorners[8], Standard_ExtCharacter OpenGl_GraduatedTrihedron::getGridAxes (const Standard_ShortReal theCorners[8],
GridAxes& theGridAxes) const GridAxes& theGridAxes) const
{ {
// Find the farest corner // Find the farthest corner
Standard_Byte aMaxIndex = 0; Standard_Byte aMaxIndex = 0;
Standard_ShortReal aMax = theCorners[aMaxIndex] > 0.0f ? theCorners[aMaxIndex] : 0.0f; 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 // Get normal of the view out of user and distance corresponding to 1 pixel
OpenGl_Vec3 aNormal; 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 // (0, 0, 1), (0, 1, 0) and (0, 0, 1) directions from (myMin.x(), Ymin, Zmin) point
// are reserved for trihedron axes. // are reserved for trihedron axes.
// So for the grid here are 9 edges of cube, // 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. // if they overlap displayed model.
// Write an axes state what axes of bounding box are to be drawn // Write an axes state what axes of bounding box are to be drawn

View File

@ -163,7 +163,7 @@ private:
//! Render line from the transformed primitive array myLine //! Render line from the transformed primitive array myLine
//! @param theWorkspace [in] the OpenGl Workspace //! @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 //! translation and rotation
//! @param thaTx the X for vector of translation //! @param thaTx the X for vector of translation
//! @param thaTy the Y for vector of translation //! @param thaTy the Y for vector of translation
@ -179,7 +179,7 @@ private:
//! @param theWorkspace [in] the OpenGl Workspace //! @param theWorkspace [in] the OpenGl Workspace
//! @param theIndex [in] index of axis //! @param theIndex [in] index of axis
//! @param theGridAxes [in] grid axes //! @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 //! translation and rotation
void renderGridPlane (const Handle(OpenGl_Workspace)& theWorkspace, void renderGridPlane (const Handle(OpenGl_Workspace)& theWorkspace,
const Standard_Integer& theIndex, const Standard_Integer& theIndex,
@ -190,7 +190,7 @@ private:
//! Render the axis of input index //! Render the axis of input index
//! @param theWorkspace [in] the OpenGl Workspace //! @param theWorkspace [in] the OpenGl Workspace
//! @param theIndex [in] index of axis //! @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 //! translation and rotation
void renderAxis (const Handle(OpenGl_Workspace)& theWorkspace, void renderAxis (const Handle(OpenGl_Workspace)& theWorkspace,
const Standard_Integer& theIndex, const Standard_Integer& theIndex,
@ -198,7 +198,7 @@ private:
//! Render grid labels, tickmark lines and labels //! Render grid labels, tickmark lines and labels
//! @param theWorkspace [in] the OpenGl Workspace //! @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 //! translation and rotation
//! @param theIndex [in] index of axis //! @param theIndex [in] index of axis
//! @param theGridAxes [in] grid axes //! @param theGridAxes [in] grid axes

View File

@ -43,7 +43,7 @@ public:
NCollection_Vector<Handle(OpenGl_VertexBuffer)>& theVertsPerTexture, NCollection_Vector<Handle(OpenGl_VertexBuffer)>& theVertsPerTexture,
NCollection_Vector<Handle(OpenGl_VertexBuffer)>& theTCrdsPerTexture); 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, Standard_EXPORT void createGlyphs (const Handle(Font_TextFormatter)& theFormatter,
const Handle(OpenGl_Context)& theCtx, 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> > >& theVertsPerTexture,
NCollection_Vector< NCollection_Handle < NCollection_Vector <OpenGl_Vec2> > >& theTCrdsPerTexture); 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; NCollection_Vector<OpenGl_Font::Tile> myTileRects;
OpenGl_VertexBufferEditor<OpenGl_Vec2> myVboEditor; OpenGl_VertexBufferEditor<OpenGl_Vec2> myVboEditor;

View File

@ -221,7 +221,7 @@ public:
//! Returns background image texture map. //! Returns background image texture map.
virtual Handle(Graphic3d_TextureMap) BackgroundImage() Standard_OVERRIDE { return myBackgroundImage; } 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; //! @param theTextureMap [in] source to set a background;
//! should be either Graphic3d_Texture2D or Graphic3d_CubeMap //! should be either Graphic3d_Texture2D or Graphic3d_CubeMap
//! @param theToUpdatePBREnv [in] defines whether IBL maps will be generated or not //! @param theToUpdatePBREnv [in] defines whether IBL maps will be generated or not

View File

@ -28,7 +28,7 @@
//! This abstract class describes the virtual functions associated to //! 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 class math_FunctionSet
{ {
public: public:

View File

@ -29,7 +29,7 @@ class math_Matrix;
//! This abstract class describes the virtual functions associated //! 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 class math_FunctionSetWithDerivatives : public math_FunctionSet
{ {
public: public:

View File

@ -31,7 +31,7 @@
//! math_IntegerVector V1(-3, 5); // an IntegerVector with range [-3..5] //! math_IntegerVector V1(-3, 5); // an IntegerVector with range [-3..5]
//! @endcode //! @endcode
//! //!
//! IntegerVector is copied through assignement : //! IntegerVector is copied through assignment:
//! @code //! @code
//! math_IntegerVector V2( 1, 9); //! math_IntegerVector V2( 1, 9);
//! .... //! ....

View File

@ -42,29 +42,36 @@
//! of definition of the matrix. //! of definition of the matrix.
//! Matrix objects follow "value semantics", that is, they //! Matrix objects follow "value semantics", that is, they
//! cannot be shared and are copied through assignment //! 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); //! math_Matrix M2(1, 9, 1, 3);
//! ... //! ...
//! M2 = M1; //! M2 = M1;
//! M1(1) = 2.0;//the matrix M2 will not be modified. //! M1(1) = 2.0;//the matrix M2 will not be modified.
//! //! @endcode
//! The exception RangeError is raised when trying to access //! The exception RangeError is raised when trying to access
//! outside the range of a matrix : //! outside the range of a matrix :
//! @code
//! M1(11, 1)=0.0// --> will raise RangeError. //! M1(11, 1)=0.0// --> will raise RangeError.
//! @endcode
//! //!
//! The exception DimensionError is raised when the dimensions of //! The exception DimensionError is raised when the dimensions of
//! two matrices or vectors are not compatible. //! two matrices or vectors are not compatible.
//! @code
//! math_Matrix M3(1, 2, 1, 2); //! math_Matrix M3(1, 2, 1, 2);
//! M3 = M1; // will raise DimensionError //! M3 = M1; // will raise DimensionError
//! M1.Add(M3) // --> 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. //! It allows to carry the bounds inside the matrix.
//! Exemple : //! Example :
//! @code
//! Standard_Real tab1[10][20]; //! Standard_Real tab1[10][20];
//! Standard_Real tab2[200]; //! Standard_Real tab2[200];
//! //!
//! math_Matrix A (tab1[0][0], 1, 10, 1, 20); //! math_Matrix A (tab1[0][0], 1, 10, 1, 20);
//! math_Matrix B (tab2[0], 1, 10, 1, 20); //! math_Matrix B (tab2[0], 1, 10, 1, 20);
//! @endcode
class math_Matrix class math_Matrix
{ {
public: public:
@ -345,7 +352,7 @@ Standard_NODISCARD math_Matrix operator- (const math_Matrix& Right) const
return Value(Row,Col); return Value(Row,Col);
} }
//! Matrixes are copied through assignement. //! Matrixes are copied through assignment.
//! An exception is raised if the dimensions are different. //! An exception is raised if the dimensions are different.
Standard_EXPORT math_Matrix& Initialized (const math_Matrix& Other); Standard_EXPORT math_Matrix& Initialized (const math_Matrix& Other);
math_Matrix& operator= (const math_Matrix& Other) math_Matrix& operator= (const math_Matrix& Other)

View File

@ -57,7 +57,7 @@ public:
//! The tolerance EpsLic is fixed for the dual variable //! The tolerance EpsLic is fixed for the dual variable
//! convergence. The tolerance EpsLix is used for the //! convergence. The tolerance EpsLix is used for the
//! convergence of X. //! 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. //! 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); 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. The tolerance EpsLix is used for the
//! convergence of X. //! convergence of X.
//! There are no conditions on Nce and Nci. //! 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 //! of Cont is different from the length of Secont and from
//! Nce + Nci. //! 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); 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);

View File

@ -34,7 +34,7 @@ class math_Matrix;
//! math_Vector V1(-3, 5); // a vector with range [-3..5] //! math_Vector V1(-3, 5); // a vector with range [-3..5]
//! @endcode //! @endcode
//! //!
//! Vector are copied through assignement : //! Vector are copied through assignment:
//! @code //! @code
//! math_Vector V2( 1, 9); //! math_Vector V2( 1, 9);
//! .... //! ....