File indexing completed on 2025-01-18 10:03:14
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
0029 Standard_EXPORT virtual ~BRepMesh_DiscretRoot();
0030
0031
0032 void SetShape(const TopoDS_Shape& theShape)
0033 {
0034 myShape = theShape;
0035 }
0036
0037 const TopoDS_Shape& Shape() const
0038 {
0039 return myShape;
0040 }
0041
0042
0043 Standard_Boolean IsDone() const
0044 {
0045 return myIsDone;
0046 }
0047
0048
0049 virtual void Perform(const Message_ProgressRange& theRange = Message_ProgressRange()) = 0;
0050
0051
0052 DEFINE_STANDARD_RTTIEXT(BRepMesh_DiscretRoot,Standard_Transient)
0053
0054 protected:
0055
0056
0057 Standard_EXPORT BRepMesh_DiscretRoot();
0058
0059
0060 void setDone()
0061 {
0062 myIsDone = Standard_True;
0063 }
0064
0065
0066 void setNotDone()
0067 {
0068 myIsDone = Standard_False;
0069 }
0070
0071 Standard_EXPORT virtual void init();
0072
0073 TopoDS_Shape myShape;
0074 Standard_Boolean myIsDone;
0075 };
0076
0077 DEFINE_STANDARD_HANDLE(BRepMesh_DiscretRoot, Standard_Transient)
0078
0079 #endif