1 // Created on: 2000-05-24
2 // Created by: data exchange team
3 // Copyright (c) 2000-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef _ShapeUpgrade_EdgeDivide_HeaderFile
17 #define _ShapeUpgrade_EdgeDivide_HeaderFile
19 #include <Standard.hxx>
20 #include <Standard_Type.hxx>
22 #include <TopoDS_Face.hxx>
23 #include <Standard_Boolean.hxx>
24 #include <TColStd_HSequenceOfReal.hxx>
25 #include <ShapeUpgrade_Tool.hxx>
26 class ShapeUpgrade_SplitCurve3d;
27 class ShapeUpgrade_SplitCurve2d;
32 class ShapeUpgrade_EdgeDivide;
33 DEFINE_STANDARD_HANDLE(ShapeUpgrade_EdgeDivide, ShapeUpgrade_Tool)
36 class ShapeUpgrade_EdgeDivide : public ShapeUpgrade_Tool
43 Standard_EXPORT ShapeUpgrade_EdgeDivide();
45 Standard_EXPORT void Clear();
47 //! Sets supporting surface by face
48 void SetFace (const TopoDS_Face& F);
50 Standard_EXPORT virtual Standard_Boolean Compute (const TopoDS_Edge& E);
52 Standard_Boolean HasCurve2d() const;
54 Standard_Boolean HasCurve3d() const;
56 Handle(TColStd_HSequenceOfReal) Knots2d() const;
58 Handle(TColStd_HSequenceOfReal) Knots3d() const;
60 //! Sets the tool for splitting pcurves.
61 Standard_EXPORT void SetSplitCurve2dTool (const Handle(ShapeUpgrade_SplitCurve2d)& splitCurve2dTool);
63 //! Sets the tool for splitting 3D curves.
64 Standard_EXPORT void SetSplitCurve3dTool (const Handle(ShapeUpgrade_SplitCurve3d)& splitCurve3dTool);
66 //! Returns the tool for splitting pcurves.
67 Standard_EXPORT virtual Handle(ShapeUpgrade_SplitCurve2d) GetSplitCurve2dTool() const;
69 //! Returns the tool for splitting 3D curves.
70 Standard_EXPORT virtual Handle(ShapeUpgrade_SplitCurve3d) GetSplitCurve3dTool() const;
75 DEFINE_STANDARD_RTTIEXT(ShapeUpgrade_EdgeDivide,ShapeUpgrade_Tool)
81 Standard_Boolean myHasCurve2d;
82 Standard_Boolean myHasCurve3d;
83 Handle(TColStd_HSequenceOfReal) myKnots2d;
84 Handle(TColStd_HSequenceOfReal) myKnots3d;
90 Handle(ShapeUpgrade_SplitCurve3d) mySplitCurve3dTool;
91 Handle(ShapeUpgrade_SplitCurve2d) mySplitCurve2dTool;
97 #include <ShapeUpgrade_EdgeDivide.lxx>
103 #endif // _ShapeUpgrade_EdgeDivide_HeaderFile