Fix build warning with OCC 7.6

This commit is contained in:
Zheng, Lei
2022-10-18 22:27:15 +08:00
parent c28d5659a0
commit d2d0b7f018
8 changed files with 37 additions and 2 deletions
@@ -102,10 +102,17 @@ void BRepOffsetAPI_MakeOffsetFix::Perform (const Standard_Real Offset, const Sta
mkOffset.Perform(Offset, Alt);
}
#if OCC_VERSION_HEX >= 0x070600
void BRepOffsetAPI_MakeOffsetFix::Build(const Message_ProgressRange& theRange)
{
mkOffset.Build(theRange);
}
#else
void BRepOffsetAPI_MakeOffsetFix::Build()
{
mkOffset.Build();
}
#endif
void BRepOffsetAPI_MakeOffsetFix::Init(const TopoDS_Face& Spine, const GeomAbs_JoinType Join,
const Standard_Boolean IsOpenResult)
@@ -54,7 +54,11 @@ public:
void Perform (const Standard_Real Offset, const Standard_Real Alt = 0.0);
//! Builds the resulting shape (redefined from MakeShape).
void Build();
#if OCC_VERSION_HEX >= 0x070600
virtual void Build(const Message_ProgressRange& theRange = Message_ProgressRange());
#else
virtual void Build();
#endif
//! Initializes the algorithm to construct parallels to the spine Spine.
//! Join defines the type of parallel generated by the
+4
View File
@@ -108,7 +108,11 @@ const Part::TopoShape &Part::FaceMaker::getTopoShape() const{
return this->myTopoShape;
}
#if OCC_VERSION_HEX >= 0x070600
void Part::FaceMaker::Build(const Message_ProgressRange&)
#else
void Part::FaceMaker::Build()
#endif
{
this->NotDone();
this->myShapesToReturn = this->myInputFaces;
+4
View File
@@ -84,7 +84,11 @@ public:
*/
virtual const TopoDS_Face& Face();
#if OCC_VERSION_HEX >= 0x070600
virtual void Build(const Message_ProgressRange& theRange = Message_ProgressRange());
#else
virtual void Build();
#endif
//fails to compile, huh!
//virtual const TopTools_ListOfShape& Generated(const TopoDS_Shape &S) override {throwNotImplemented();}
+4
View File
@@ -390,7 +390,11 @@ std::string FaceMakerExtrusion::getBriefExplanation() const
return std::string(QT_TRANSLATE_NOOP("Part_FaceMaker", "Supports making faces with holes, does not support nesting."));
}
#if OCC_VERSION_HEX >= 0x070600
void FaceMakerExtrusion::Build(const Message_ProgressRange&)
#else
void FaceMakerExtrusion::Build()
#endif
{
this->NotDone();
this->myGenerated.Clear();
+4
View File
@@ -118,7 +118,11 @@ public:
virtual std::string getUserFriendlyName() const override;
virtual std::string getBriefExplanation() const override;
#if OCC_VERSION_HEX >= 0x070600
virtual void Build(const Message_ProgressRange& theRange = Message_ProgressRange()) override;
#else
virtual void Build() override;
#endif
protected:
virtual void Build_Essence() override {}
};
+4
View File
@@ -1228,7 +1228,11 @@ Part::BRepBuilderAPI_RefineModel::BRepBuilderAPI_RefineModel(const TopoDS_Shape&
Build();
}
#if OCC_VERSION_HEX >= 0x070600
void Part::BRepBuilderAPI_RefineModel::Build(const Message_ProgressRange&)
#else
void Part::BRepBuilderAPI_RefineModel::Build()
#endif
{
if (myShape.IsNull())
Standard_Failure::Raise("Cannot remove splitter from empty shape");
+5 -1
View File
@@ -198,7 +198,11 @@ class PartExport BRepBuilderAPI_RefineModel : public BRepBuilderAPI_MakeShape
{
public:
BRepBuilderAPI_RefineModel(const TopoDS_Shape&);
void Build();
#if OCC_VERSION_HEX >= 0x070600
virtual void Build(const Message_ProgressRange& theRange = Message_ProgressRange());
#else
virtual void Build();
#endif
const TopTools_ListOfShape& Modified(const TopoDS_Shape& S);
Standard_Boolean IsDeleted(const TopoDS_Shape& S);