Qualifier "const" added to NbIntervals and Intervals functions.
Fixed Standard_OVERRIDE macro description
Removed obsolete method declaration from Standard_Transient.cdl
---Purpose:
is virtual;
- 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 virtual;
- 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>.
//purpose :
//=======================================================================
-//Standard_Integer Adaptor3d_Curve::NbIntervals(const GeomAbs_Shape S) const
-Standard_Integer Adaptor3d_Curve::NbIntervals(const GeomAbs_Shape )
+Standard_Integer Adaptor3d_Curve::NbIntervals(const GeomAbs_Shape ) const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::NbIntervals");
return 0;
//purpose :
//=======================================================================
-//void Adaptor3d_Curve::Intervals(TColStd_Array1OfReal& T, const GeomAbs_Shape S) const
-void Adaptor3d_Curve::Intervals(TColStd_Array1OfReal& , const GeomAbs_Shape )
+void Adaptor3d_Curve::Intervals(TColStd_Array1OfReal& , const GeomAbs_Shape ) const
{
Standard_NotImplemented::Raise("Adaptor3d_Curve::Intervals");
}
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>.
//purpose :
//=======================================================================
-Standard_Integer Adaptor3d_CurveOnSurface::NbIntervals
-(const GeomAbs_Shape S)
+Standard_Integer Adaptor3d_CurveOnSurface::NbIntervals (const GeomAbs_Shape S) const
{
if(S == myIntCont && !myIntervals.IsNull())
return myIntervals->Length()-1;
// sorted sequence of parameters defining continuity intervals;
// started with own intervals of curve and completed by
// additional points coming from surface discontinuities
- myIntervals = new TColStd_HSequenceOfReal;
+ Handle(TColStd_HSequenceOfReal) aIntervals = new TColStd_HSequenceOfReal;
for (Standard_Integer i = 1; i <= nc + 1; i++)
{
- myIntervals->Append(TabC(i));
+ aIntervals->Append(TabC(i));
}
if (nu>1)
U = TabU.Value(iu);
Adaptor3d_InterFunc Func(myCurve,U,1);
math_FunctionRoots Resol(Func,Tdeb,Tfin,NbSample,Tol,Tol,Tol,0.);
- AddIntervals (myIntervals, Resol, Tol);
+ AddIntervals (aIntervals, Resol, Tol);
}
}
if (nv>1)
V = TabV.Value(iv);
Adaptor3d_InterFunc Func(myCurve,V,2);
math_FunctionRoots Resol(Func,Tdeb,Tfin,NbSample,Tol,Tol,Tol,0.);
- AddIntervals (myIntervals, Resol, Tol);
+ AddIntervals (aIntervals, Resol, Tol);
}
}
// for case intervals==1 and first point == last point SequenceOfReal
// contains only one value, therefore it is necessary to add second
- // value into myIntervals which will be equal first value.
- if (myIntervals->Length() == 1)
- myIntervals->Append (myIntervals->Value(1));
+ // value into aIntervals which will be equal first value.
+ if (aIntervals->Length() == 1)
+ aIntervals->Append (aIntervals->Value(1));
- myIntCont = S;
+ const_cast<Adaptor3d_CurveOnSurface*>(this)->myIntervals = aIntervals;
+ const_cast<Adaptor3d_CurveOnSurface*>(this)->myIntCont = S;
return myIntervals->Length() - 1;
}
//=======================================================================
void Adaptor3d_CurveOnSurface::Intervals(TColStd_Array1OfReal& T,
- const GeomAbs_Shape S)
+ const GeomAbs_Shape S) const
{
NbIntervals(S);
Standard_ASSERT_RAISE (T.Length() == myIntervals->Length(), "Error: Wrong size of array buffer in call to Adaptor3d_CurveOnSurface::Intervals");
Continuity(me) returns Shape from GeomAbs ;
---C++: inline
- NbIntervals(me: mutable; S : Shape from GeomAbs) returns Integer;
+ NbIntervals(me; S : Shape from GeomAbs) returns Integer;
---C++: inline
- Intervals(me: mutable; 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>.
//purpose :
//=======================================================================
- inline Standard_Integer Adaptor3d_HCurve::NbIntervals(const GeomAbs_Shape S)
+ inline Standard_Integer Adaptor3d_HCurve::NbIntervals(const GeomAbs_Shape S) const
{
- return GetCurve().NbIntervals(S);
+ return Curve().NbIntervals(S);
}
//=======================================================================
//=======================================================================
inline void Adaptor3d_HCurve::Intervals(TColStd_Array1OfReal& T,
- const GeomAbs_Shape S)
+ const GeomAbs_Shape S) const
{
- GetCurve().Intervals(T,S);
+ Curve().Intervals(T,S);
}
//=======================================================================
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>.
//purpose :
//=======================================================================
-Standard_Integer Adaptor3d_IsoCurve::NbIntervals(const GeomAbs_Shape S)
+Standard_Integer Adaptor3d_IsoCurve::NbIntervals(const GeomAbs_Shape S) const
{
if (myIso == GeomAbs_NoneIso) Standard_NoSuchObject::Raise();
Standard_Boolean UIso = (myIso == GeomAbs_IsoU);
//=======================================================================
void Adaptor3d_IsoCurve::Intervals(TColStd_Array1OfReal& TI,
- const GeomAbs_Shape S)
+ const GeomAbs_Shape S) const
{
if (myIso == GeomAbs_NoneIso) Standard_NoSuchObject::Raise();
Standard_Boolean UIso = (myIso == GeomAbs_IsoU);
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>.
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++)
}
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;
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>.
//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);
//=======================================================================
void BRepAdaptor_Curve::Intervals(TColStd_Array1OfReal& T,
- const GeomAbs_Shape S)
+ const GeomAbs_Shape S) const
{
if (myConSurf.IsNull()) {
myCurve.Intervals(T, S);
Continuity(me) returns Shape from GeomAbs
is redefined static;
- NbIntervals(me: in out; S : Shape from GeomAbs)
+ NbIntervals(me; S : Shape from GeomAbs)
returns Integer is redefined static;
- Intervals(me: in out;
+ Intervals(me;
T : in out Array1OfReal from TColStd;
S : Shape from GeomAbs)
is redefined static;
//purpose :
//=======================================================================
-Standard_Integer ChFiDS_ElSpine::NbIntervals(const GeomAbs_Shape S)
+Standard_Integer ChFiDS_ElSpine::NbIntervals(const GeomAbs_Shape S) const
{
return curve.NbIntervals(S);
}
//purpose :
//=======================================================================
-void ChFiDS_ElSpine::Intervals(TColStd_Array1OfReal& T,const GeomAbs_Shape S)
+void ChFiDS_ElSpine::Intervals(TColStd_Array1OfReal& T,const GeomAbs_Shape S) const
{
curve.Intervals(T,S);
}
points .Append (CurrentPoint);
// Used to detect "isLine" current bspline and in Du computation in general handling.
- Standard_Integer NbInterv = const_cast<TheCurve*>(&C)->NbIntervals(GeomAbs_CN);
+ Standard_Integer NbInterv = C.NbIntervals(GeomAbs_CN);
TColStd_Array1OfReal Intervs(1, NbInterv+1);
- const_cast<TheCurve*>(&C)->Intervals(Intervs, GeomAbs_CN);
+ C.Intervals(Intervs, GeomAbs_CN);
if (NotDone) {
//C'est soit une droite, soit une singularite :
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>.
//purpose :
//=======================================================================
-Standard_Integer GeomAdaptor_Curve::NbIntervals(const GeomAbs_Shape S)
+Standard_Integer GeomAdaptor_Curve::NbIntervals(const GeomAbs_Shape S) const
{
Standard_Integer myNbIntervals = 1;
Standard_Integer NbSplit;
//=======================================================================
void GeomAdaptor_Curve::Intervals(TColStd_Array1OfReal& T,
- const GeomAbs_Shape S )
+ const GeomAbs_Shape S ) const
{
Standard_Integer myNbIntervals = 1;
Standard_Integer NbSplit;
LastParameter(me) returns Real
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>.
return myHCurve->LastParameter();
}
- Standard_Integer GeomFill_SnglrFunc::NbIntervals(const GeomAbs_Shape S)
+ Standard_Integer GeomFill_SnglrFunc::NbIntervals(const GeomAbs_Shape S) const
{
GeomAbs_Shape HCS=GeomAbs_C0;
switch(S) {
return myHCurve->NbIntervals(HCS);
}
- void GeomFill_SnglrFunc::Intervals(TColStd_Array1OfReal& T,const GeomAbs_Shape S)
+ void GeomFill_SnglrFunc::Intervals(TColStd_Array1OfReal& T,const GeomAbs_Shape S) const
{
GeomAbs_Shape HCS=GeomAbs_C0;
switch(S) {
---Purpose:
---C++: inline
- NbIntervals(myclass; C : in out Curve from BRepAdaptor;
+ NbIntervals(myclass; C : Curve from BRepAdaptor;
S : Shape from GeomAbs)
returns Integer from Standard;
---Purpose: Returns the number of intervals for continuity
-- <S>. May be one if Continuity(myclass) >= <S>
---C++: inline
- Intervals(myclass; C : in out Curve from BRepAdaptor;
+ Intervals(myclass; C : Curve from BRepAdaptor;
T : in out Array1OfReal from TColStd;
S : Shape from GeomAbs)
---Purpose: Stores in <T> the parameters bounding the intervals
//=======================================================================
inline Standard_Integer
-HLRBRep_BCurveTool::NbIntervals(BRepAdaptor_Curve& C,
- const GeomAbs_Shape Sh)
+HLRBRep_BCurveTool::NbIntervals(const BRepAdaptor_Curve& C,
+ const GeomAbs_Shape Sh)
{ return(C.NbIntervals(Sh)); }
//=======================================================================
//=======================================================================
inline void
-HLRBRep_BCurveTool::Intervals(BRepAdaptor_Curve& C,
- TColStd_Array1OfReal& Tab,
- const GeomAbs_Shape Sh)
+HLRBRep_BCurveTool::Intervals(const BRepAdaptor_Curve& C,
+ TColStd_Array1OfReal& Tab,
+ const GeomAbs_Shape Sh)
{ C.Intervals(Tab,Sh); }
//=======================================================================
---C++: inline
is static;
- NbIntervals(me: in out; S : Shape from GeomAbs)
+ NbIntervals(me; S : Shape from GeomAbs)
returns Integer from Standard
---Purpose: If necessary, breaks the curve in intervals of
-- continuity <S>. And returns the number of
---C++: inline
is 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>.
//purpose :
//=======================================================================
-inline Standard_Integer HLRBRep_Curve::NbIntervals
- (const GeomAbs_Shape S)
+inline Standard_Integer HLRBRep_Curve::NbIntervals (const GeomAbs_Shape S) const
{ return HLRBRep_BCurveTool::NbIntervals(myCurve,S); }
//=======================================================================
//=======================================================================
inline void HLRBRep_Curve::Intervals(TColStd_Array1OfReal& Tab,
- const GeomAbs_Shape Sh)
+ const GeomAbs_Shape Sh) const
{ HLRBRep_BCurveTool::Intervals(myCurve,Tab,Sh); }
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: If necessary, breaks the curve in intervals of
-- continuity <S>. And returns the number of
-- intervals.
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>.
//purpose :
//=======================================================================
-Standard_Integer ProjLib_ProjectOnPlane::NbIntervals(const GeomAbs_Shape S)
+Standard_Integer ProjLib_ProjectOnPlane::NbIntervals(const GeomAbs_Shape S) const
{
return myCurve->NbIntervals(S) ;
}
//=======================================================================
void ProjLib_ProjectOnPlane::Intervals(TColStd_Array1OfReal& T,
- const GeomAbs_Shape S)
+ const GeomAbs_Shape S) const
{
myCurve->Intervals(T,S) ;
}
// part of C++11 standard
#define Standard_OVERRIDE override
#elif defined(_MSC_VER) && (_MSC_VER >= 1700)
- // MSVC extension since VS2005
+ // MSVC extension since VS2012
#define Standard_OVERRIDE override
#else
#define Standard_OVERRIDE
---C++: alias "Standard_Transient(const Standard_Transient&) : count(0) {}"
---C++: alias "Standard_Transient& operator= (const Standard_Transient&) { return *this; }"
- HashCode (me; Upper : Integer ) returns Integer is virtual;
- ---Purpose: Returns a hashed value denoting <me>. This value is in
- -- the range 1..<Upper>.
- ---C++: function call
- ---Level: Advanced
-
Delete(me) is virtual;
---Purpose: Memory deallocator for transient classes
---Level: Advanced