File indexing completed on 2026-09-27 09:18:59
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _ShapeUpgrade_ShapeConvertToBezier_HeaderFile
0018 #define _ShapeUpgrade_ShapeConvertToBezier_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <Standard_Integer.hxx>
0025 #include <ShapeUpgrade_ShapeDivide.hxx>
0026 class TopoDS_Shape;
0027 class ShapeUpgrade_FaceDivide;
0028 class Message_Msg;
0029
0030
0031
0032
0033
0034
0035 class ShapeUpgrade_ShapeConvertToBezier : public ShapeUpgrade_ShapeDivide
0036 {
0037 public:
0038 DEFINE_STANDARD_ALLOC
0039
0040
0041 Standard_EXPORT ShapeUpgrade_ShapeConvertToBezier();
0042
0043
0044 Standard_EXPORT ShapeUpgrade_ShapeConvertToBezier(const TopoDS_Shape& S);
0045
0046
0047 void Set2dConversion(const bool mode);
0048
0049
0050 bool Get2dConversion() const;
0051
0052
0053 void Set3dConversion(const bool mode);
0054
0055
0056 bool Get3dConversion() const;
0057
0058
0059
0060 void SetSurfaceConversion(const bool mode);
0061
0062
0063 bool GetSurfaceConversion() const;
0064
0065
0066 void Set3dLineConversion(const bool mode);
0067
0068
0069 bool Get3dLineConversion() const;
0070
0071
0072 void Set3dCircleConversion(const bool mode);
0073
0074
0075 bool Get3dCircleConversion() const;
0076
0077
0078 void Set3dConicConversion(const bool mode);
0079
0080
0081 bool Get3dConicConversion() const;
0082
0083
0084 void SetPlaneMode(const bool mode);
0085
0086
0087 bool GetPlaneMode() const;
0088
0089
0090 void SetRevolutionMode(const bool mode);
0091
0092
0093 bool GetRevolutionMode() const;
0094
0095
0096 void SetExtrusionMode(const bool mode);
0097
0098
0099 bool GetExtrusionMode() const;
0100
0101
0102 void SetBSplineMode(const bool mode);
0103
0104
0105 bool GetBSplineMode() const;
0106
0107
0108 Standard_EXPORT bool Perform(const bool newContext = true) override;
0109
0110 protected:
0111
0112 Standard_EXPORT occ::handle<ShapeUpgrade_FaceDivide> GetSplitFaceTool() const override;
0113
0114 Standard_EXPORT Message_Msg GetFaceMsg() const override;
0115
0116 Standard_EXPORT Message_Msg GetWireMsg() const override;
0117
0118
0119 Standard_EXPORT Message_Msg GetEdgeMsg() const override;
0120
0121 private:
0122 bool my2dMode;
0123 bool my3dMode;
0124 bool mySurfaceMode;
0125 bool my3dLineMode;
0126 bool my3dCircleMode;
0127 bool my3dConicMode;
0128 bool myPlaneMode;
0129 bool myRevolutionMode;
0130 bool myExtrusionMode;
0131 bool myBSplineMode;
0132 int myLevel;
0133 };
0134
0135 #include <ShapeUpgrade_ShapeConvertToBezier.lxx>
0136
0137 #endif