mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-07-06 08:47:11 +08:00
0021264: Modeling Algorithms - Progress indicator for Boolean operations
Update BOP commands to use progress indicator Deleted wrong usage of progress indicator from bop operations Added UserBreak() method to break execution boolean operation if progress indicator is used Added method AnalyzeProgress() to calculate steps of progress indicator Introduce BOPAlgo_ParallelAlgo which has myRange as a field to be used in parallel vector. Provide suitable way of keeping the progress steps of operations. Give meaningful names to progress scopes. Propagate progress indicator into deeper methods of BOA. Add progress indicator to BOPAlgo_BuilderFace and BOPAlgo_WireSplitter, BOPAlgo_BuilderSolid and BOPAlgo_ShellSplitter
This commit is contained in:
@@ -181,7 +181,7 @@ const TopoDS_Shell& BRepPrimAPI_MakeBox::Shell()
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void BRepPrimAPI_MakeBox::Build()
|
||||
void BRepPrimAPI_MakeBox::Build(const Message_ProgressRange& /*theRange*/)
|
||||
{
|
||||
Solid();
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ public:
|
||||
Standard_EXPORT BRepPrim_Wedge& Wedge();
|
||||
|
||||
//! Stores the solid in myShape.
|
||||
Standard_EXPORT virtual void Build() Standard_OVERRIDE;
|
||||
Standard_EXPORT virtual void Build(const Message_ProgressRange& theRange = Message_ProgressRange()) Standard_OVERRIDE;
|
||||
|
||||
//! Returns the constructed box as a shell.
|
||||
Standard_EXPORT const TopoDS_Shell& Shell();
|
||||
|
||||
@@ -51,7 +51,7 @@ const TopoDS_Shell& BRepPrimAPI_MakeOneAxis::Shell()
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void BRepPrimAPI_MakeOneAxis::Build()
|
||||
void BRepPrimAPI_MakeOneAxis::Build(const Message_ProgressRange& /*theRange*/)
|
||||
{
|
||||
BRep_Builder B;
|
||||
B.MakeSolid(TopoDS::Solid(myShape));
|
||||
|
||||
@@ -43,7 +43,7 @@ public:
|
||||
Standard_EXPORT virtual Standard_Address OneAxis() = 0;
|
||||
|
||||
//! Stores the solid in myShape.
|
||||
Standard_EXPORT virtual void Build() Standard_OVERRIDE;
|
||||
Standard_EXPORT virtual void Build(const Message_ProgressRange& theRange = Message_ProgressRange()) Standard_OVERRIDE;
|
||||
|
||||
//! Returns the lateral face of the rotational primitive.
|
||||
Standard_EXPORT const TopoDS_Face& Face();
|
||||
|
||||
@@ -78,7 +78,7 @@ const BRepSweep_Prism& BRepPrimAPI_MakePrism::Prism()const
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void BRepPrimAPI_MakePrism::Build()
|
||||
void BRepPrimAPI_MakePrism::Build(const Message_ProgressRange& /*theRange*/)
|
||||
{
|
||||
myShape = myPrism.Shape();
|
||||
Done();
|
||||
|
||||
@@ -72,7 +72,7 @@ public:
|
||||
Standard_EXPORT const BRepSweep_Prism& Prism() const;
|
||||
|
||||
//! Builds the resulting shape (redefined from MakeShape).
|
||||
Standard_EXPORT virtual void Build() Standard_OVERRIDE;
|
||||
Standard_EXPORT virtual void Build(const Message_ProgressRange& theRange = Message_ProgressRange()) Standard_OVERRIDE;
|
||||
|
||||
//! Returns the TopoDS Shape of the bottom of the prism.
|
||||
Standard_EXPORT TopoDS_Shape FirstShape() Standard_OVERRIDE;
|
||||
|
||||
@@ -109,7 +109,7 @@ const BRepSweep_Revol& BRepPrimAPI_MakeRevol::Revol() const
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void BRepPrimAPI_MakeRevol::Build()
|
||||
void BRepPrimAPI_MakeRevol::Build(const Message_ProgressRange& /*theRange*/)
|
||||
{
|
||||
if (myIsBuild)
|
||||
{
|
||||
|
||||
@@ -81,7 +81,7 @@ public:
|
||||
Standard_EXPORT const BRepSweep_Revol& Revol() const;
|
||||
|
||||
//! Builds the resulting shape (redefined from MakeShape).
|
||||
Standard_EXPORT virtual void Build() Standard_OVERRIDE;
|
||||
Standard_EXPORT virtual void Build(const Message_ProgressRange& theRange = Message_ProgressRange()) Standard_OVERRIDE;
|
||||
|
||||
//! Returns the first shape of the revol (coinciding with
|
||||
//! the generating shape).
|
||||
|
||||
@@ -119,7 +119,7 @@ const TopoDS_Shell& BRepPrimAPI_MakeWedge::Shell()
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void BRepPrimAPI_MakeWedge::Build()
|
||||
void BRepPrimAPI_MakeWedge::Build(const Message_ProgressRange& /*theRange*/)
|
||||
{
|
||||
BRep_Builder B;
|
||||
B.MakeSolid(TopoDS::Solid(myShape));
|
||||
|
||||
@@ -60,7 +60,7 @@ public:
|
||||
Standard_EXPORT BRepPrim_Wedge& Wedge();
|
||||
|
||||
//! Stores the solid in myShape.
|
||||
Standard_EXPORT virtual void Build() Standard_OVERRIDE;
|
||||
Standard_EXPORT virtual void Build(const Message_ProgressRange& theRange = Message_ProgressRange()) Standard_OVERRIDE;
|
||||
|
||||
//! Returns the constructed box in the form of a shell.
|
||||
Standard_EXPORT const TopoDS_Shell& Shell();
|
||||
|
||||
Reference in New Issue
Block a user