File indexing completed on 2026-09-16 09:16:41
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef _BRepMesh_DiscretRoot_HeaderFile
0015 #define _BRepMesh_DiscretRoot_HeaderFile
0016
0017 #include <Standard.hxx>
0018 #include <TopoDS_Shape.hxx>
0019 #include <Standard_Transient.hxx>
0020 #include <Message_ProgressRange.hxx>
0021
0022
0023
0024 class BRepMesh_DiscretRoot : public Standard_Transient
0025 {
0026 public:
0027
0028 Standard_EXPORT ~BRepMesh_DiscretRoot() override;
0029
0030
0031 void SetShape(const TopoDS_Shape& theShape) { myShape = theShape; }
0032
0033 const TopoDS_Shape& Shape() const { return myShape; }
0034
0035
0036 bool IsDone() const { return myIsDone; }
0037
0038
0039 virtual void Perform(const Message_ProgressRange& theRange = Message_ProgressRange()) = 0;
0040
0041 DEFINE_STANDARD_RTTIEXT(BRepMesh_DiscretRoot, Standard_Transient)
0042
0043 protected:
0044
0045 Standard_EXPORT BRepMesh_DiscretRoot();
0046
0047
0048 void setDone() { myIsDone = true; }
0049
0050
0051 void setNotDone() { myIsDone = false; }
0052
0053 Standard_EXPORT virtual void init();
0054
0055 TopoDS_Shape myShape;
0056 bool myIsDone;
0057 };
0058
0059 #endif