mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0024814: Avoid using explicit names of Handle classes
Sources corrected replacing Handle_XXX by Handle(XXX)
This commit is contained in:
@@ -175,7 +175,7 @@ void GeomFill_BoundWithSurf::Reparametrize(const Standard_Real First,
|
||||
HasDF,HasDL,DF,DL,
|
||||
Rev,30);
|
||||
myPar = new Law_BSpFunc();
|
||||
(*((Handle_Law_BSpFunc*) &myPar))->SetCurve(curve);
|
||||
(*((Handle(Law_BSpFunc)*) &myPar))->SetCurve(curve);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
@@ -394,8 +394,8 @@ void GeomFill_ConstrainedFilling::Init(const Handle(GeomFill_Boundary)& B1,
|
||||
if(!CheckTgte(i)) {
|
||||
Handle(Law_Function) fu1,fu2;
|
||||
ptch->Func(fu1,fu2);
|
||||
fu1 = Law::MixBnd(*((Handle_Law_Linear*) &fu1));
|
||||
fu2 = Law::MixBnd(*((Handle_Law_Linear*) &fu2));
|
||||
fu1 = Law::MixBnd(*((Handle(Law_Linear)*) &fu1));
|
||||
fu2 = Law::MixBnd(*((Handle(Law_Linear)*) &fu2));
|
||||
ptch->Func(fu1,fu2);
|
||||
break;
|
||||
}
|
||||
@@ -475,8 +475,8 @@ void GeomFill_ConstrainedFilling::Init(const Handle(GeomFill_Boundary)& B1,
|
||||
if(!CheckTgte(i)) {
|
||||
Handle(Law_Function) fu1,fu2;
|
||||
ptch->Func(fu1,fu2);
|
||||
Handle(Law_Function) ffu1 = Law::MixBnd(*((Handle_Law_Linear*) &fu1));
|
||||
Handle(Law_Function) ffu2 = Law::MixBnd(*((Handle_Law_Linear*) &fu2));
|
||||
Handle(Law_Function) ffu1 = Law::MixBnd(*((Handle(Law_Linear)*) &fu1));
|
||||
Handle(Law_Function) ffu2 = Law::MixBnd(*((Handle(Law_Linear)*) &fu2));
|
||||
ptch->SetFunc(ffu1,ffu2);
|
||||
break;
|
||||
}
|
||||
|
@@ -33,10 +33,10 @@ GeomFill_CoonsAlgPatch::GeomFill_CoonsAlgPatch
|
||||
Standard_Real deb0, deb1, fin0, fin1;
|
||||
B2->Bounds(deb1,fin1);
|
||||
a[0] = new Law_Linear();
|
||||
(*((Handle_Law_Linear*) &a[0]))->Set(deb1,1.,fin1,0.);
|
||||
(*((Handle(Law_Linear)*) &a[0]))->Set(deb1,1.,fin1,0.);
|
||||
B1->Bounds(deb0,fin0);
|
||||
a[1] = new Law_Linear();
|
||||
(*((Handle_Law_Linear*) &a[1]))->Set(deb0,0.,fin0,1.);
|
||||
(*((Handle(Law_Linear)*) &a[1]))->Set(deb0,0.,fin0,1.);
|
||||
|
||||
gp_XYZ temp;
|
||||
temp = B4->Value(deb1).XYZ().Added(B1->Value(deb0).XYZ());
|
||||
|
@@ -147,7 +147,7 @@ Standard_Boolean verifD2(const TColgp_Array1OfVec& DP1,
|
||||
#endif
|
||||
|
||||
// fonction d'evaluation des poles et des poids de mySurface pour D1 et D2
|
||||
static void ResultEval(const Handle_Geom_BSplineSurface& surf,
|
||||
static void ResultEval(const Handle(Geom_BSplineSurface)& surf,
|
||||
const Standard_Real V,
|
||||
const Standard_Integer deriv,
|
||||
TColStd_Array1OfReal& Result)
|
||||
|
@@ -43,7 +43,7 @@ GeomFill_SectionGenerator::GeomFill_SectionGenerator()
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void GeomFill_SectionGenerator::SetParam(const Handle_TColStd_HArray1OfReal & Params)
|
||||
void GeomFill_SectionGenerator::SetParam(const Handle(TColStd_HArray1OfReal) & Params)
|
||||
{
|
||||
Standard_Integer ii, L = Params->Upper()-Params->Lower()+1;
|
||||
myParams = Params;
|
||||
|
@@ -77,7 +77,7 @@ void GeomFill_SimpleBound::Reparametrize(const Standard_Real First,
|
||||
HasDF,HasDL,DF,DL,
|
||||
Rev,30);
|
||||
myPar = new Law_BSpFunc();
|
||||
(*((Handle_Law_BSpFunc*) &myPar))->SetCurve(curve);
|
||||
(*((Handle(Law_BSpFunc)*) &myPar))->SetCurve(curve);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
Reference in New Issue
Block a user