mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0025246: Make methods Intervals and NbIntervals const in Adaptor3d_Curve and it descendants
Qualifier "const" added to NbIntervals and Intervals functions. Fixed Standard_OVERRIDE macro description Removed obsolete method declaration from Standard_Transient.cdl
This commit is contained in:
@@ -107,12 +107,12 @@ is
|
||||
Continuity(me) returns Shape from GeomAbs
|
||||
is redefined static;
|
||||
|
||||
NbIntervals(me: in out; S : Shape from GeomAbs) returns Integer
|
||||
NbIntervals(me; S : Shape from GeomAbs) returns Integer
|
||||
---Purpose: Returns the number of intervals for continuity
|
||||
-- <S>. May be one if Continuity(me) >= <S>
|
||||
is redefined static;
|
||||
|
||||
Intervals(me: in out; T : in out Array1OfReal from TColStd;
|
||||
Intervals(me; T : in out Array1OfReal from TColStd;
|
||||
S : Shape from GeomAbs)
|
||||
---Purpose: Stores in <T> the parameters bounding the intervals
|
||||
-- of continuity <S>.
|
||||
|
@@ -226,7 +226,7 @@ const TopoDS_Wire& BRepAdaptor_CompCurve::Wire() const
|
||||
return myCurves->Value(1).Continuity();
|
||||
}
|
||||
|
||||
Standard_Integer BRepAdaptor_CompCurve::NbIntervals(const GeomAbs_Shape S)
|
||||
Standard_Integer BRepAdaptor_CompCurve::NbIntervals(const GeomAbs_Shape S) const
|
||||
{
|
||||
Standard_Integer NbInt, ii;
|
||||
for (ii=1, NbInt=0; ii<=myCurves->Length(); ii++)
|
||||
@@ -236,7 +236,7 @@ const TopoDS_Wire& BRepAdaptor_CompCurve::Wire() const
|
||||
}
|
||||
|
||||
void BRepAdaptor_CompCurve::Intervals(TColStd_Array1OfReal& T,
|
||||
const GeomAbs_Shape S)
|
||||
const GeomAbs_Shape S) const
|
||||
{
|
||||
Standard_Integer ii, jj, kk, n;
|
||||
Standard_Real f, F, delta;
|
||||
|
@@ -135,12 +135,12 @@ is
|
||||
Continuity(me) returns Shape from GeomAbs
|
||||
is redefined static;
|
||||
|
||||
NbIntervals(me: in out; S : Shape from GeomAbs) returns Integer
|
||||
NbIntervals(me; S : Shape from GeomAbs) returns Integer
|
||||
---Purpose: Returns the number of intervals for continuity
|
||||
-- <S>. May be one if Continuity(me) >= <S>
|
||||
is redefined static;
|
||||
|
||||
Intervals(me: in out; T : in out Array1OfReal from TColStd;
|
||||
Intervals(me; T : in out Array1OfReal from TColStd;
|
||||
S : Shape from GeomAbs)
|
||||
---Purpose: Stores in <T> the parameters bounding the intervals
|
||||
-- of continuity <S>.
|
||||
|
@@ -236,7 +236,7 @@ GeomAbs_Shape BRepAdaptor_Curve::Continuity() const
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer BRepAdaptor_Curve::NbIntervals(const GeomAbs_Shape S)
|
||||
Standard_Integer BRepAdaptor_Curve::NbIntervals(const GeomAbs_Shape S) const
|
||||
{
|
||||
if (myConSurf.IsNull()) {
|
||||
return myCurve.NbIntervals(S);
|
||||
@@ -252,7 +252,7 @@ Standard_Integer BRepAdaptor_Curve::NbIntervals(const GeomAbs_Shape S)
|
||||
//=======================================================================
|
||||
|
||||
void BRepAdaptor_Curve::Intervals(TColStd_Array1OfReal& T,
|
||||
const GeomAbs_Shape S)
|
||||
const GeomAbs_Shape S) const
|
||||
{
|
||||
if (myConSurf.IsNull()) {
|
||||
myCurve.Intervals(T, S);
|
||||
|
Reference in New Issue
Block a user