1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0025116: BRepTools - do not force Message_ProgressIndicator updates on each minor iteration

This commit is contained in:
kgv
2014-07-31 16:12:45 +04:00
committed by apv
parent 2d7b28ac98
commit 616d8d0a78
6 changed files with 1 additions and 57 deletions

View File

@@ -504,13 +504,9 @@ void GeomTools_Curve2dSet::Write(Standard_OStream& OS)const
//OCC19559
Handle(Message_ProgressIndicator) progress = GetProgress();
Message_ProgressSentry PS(progress, "2D Curves", 0, nbsurf, 1);
for (i = 1; i <= nbsurf && PS.More(); i++, PS.Next()) {
if ( !myProgress.IsNull() )
progress->Show();
PrintCurve2d(Handle(Geom2d_Curve)::DownCast(myMap(i)),OS,Standard_True);
}
OS.precision(prec);
}
@@ -851,11 +847,7 @@ void GeomTools_Curve2dSet::Read(Standard_IStream& IS)
//OCC19559
Handle(Message_ProgressIndicator) progress = GetProgress();
Message_ProgressSentry PS(progress, "2D Curves", 0, nbcurve, 1);
for (i = 1; i <= nbcurve && PS.More(); i++, PS.Next()) {
if ( !myProgress.IsNull() )
progress->Show();
GeomTools_Curve2dSet::ReadCurve2d(IS,C);
myMap.Add(C);
}

View File

@@ -521,14 +521,9 @@ void GeomTools_CurveSet::Write(Standard_OStream& OS)const
//OCC19559
Handle(Message_ProgressIndicator) progress = GetProgress();
Message_ProgressSentry PS(progress, "3D Curves", 0, nbcurve, 1);
for (i = 1; i <= nbcurve && PS.More(); i++, PS.Next()) {
if ( !progress.IsNull() )
progress->Show();
PrintCurve(Handle(Geom_Curve)::DownCast(myMap(i)),OS,Standard_True);
}
OS.precision(prec);
}
@@ -872,9 +867,6 @@ void GeomTools_CurveSet::Read(Standard_IStream& IS)
Handle(Message_ProgressIndicator) progress = GetProgress();
Message_ProgressSentry PS(progress, "3D Curves", 0, nbcurve, 1);
for (i = 1; i <= nbcurve && PS.More(); i++, PS.Next()) {
if ( !progress.IsNull() )
progress->Show();
GeomTools_CurveSet::ReadCurve(IS,C);
myMap.Add(C);
}

View File

@@ -641,14 +641,9 @@ void GeomTools_SurfaceSet::Write(Standard_OStream& OS)const
//OCC19559
Handle(Message_ProgressIndicator) progress = GetProgress();
Message_ProgressSentry PS(progress, "Surfaces", 0, nbsurf, 1);
for (i = 1; i <= nbsurf && PS.More(); i++, PS.Next()) {
if ( !progress.IsNull() )
progress->Show();
PrintSurface(Handle(Geom_Surface)::DownCast(myMap(i)),OS,Standard_True);
}
OS.precision(prec);
}
@@ -1062,9 +1057,6 @@ void GeomTools_SurfaceSet::Read(Standard_IStream& IS)
Handle(Message_ProgressIndicator) progress = GetProgress();
Message_ProgressSentry PS(progress, "Surfaces", 0, nbsurf, 1);
for (i = 1; i <= nbsurf && PS.More(); i++, PS.Next()) {
if ( !progress.IsNull() )
progress->Show();
GeomTools_SurfaceSet::ReadSurface(IS,S);
myMap.Add(S);
}