Warnings on vc14 were eliminated
[occt.git] / src / ShapeUpgrade / ShapeUpgrade_EdgeDivide.hxx
1 // Created on: 2000-05-24
2 // Created by: data exchange team
3 // Copyright (c) 2000-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
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.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 #ifndef _ShapeUpgrade_EdgeDivide_HeaderFile
17 #define _ShapeUpgrade_EdgeDivide_HeaderFile
18
19 #include <Standard.hxx>
20 #include <Standard_Type.hxx>
21
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;
28 class TopoDS_Face;
29 class TopoDS_Edge;
30
31
32 class ShapeUpgrade_EdgeDivide;
33 DEFINE_STANDARD_HANDLE(ShapeUpgrade_EdgeDivide, ShapeUpgrade_Tool)
34
35
36 class ShapeUpgrade_EdgeDivide : public ShapeUpgrade_Tool
37 {
38
39 public:
40
41   
42   //! Empty constructor
43   Standard_EXPORT ShapeUpgrade_EdgeDivide();
44   
45   Standard_EXPORT void Clear();
46   
47   //! Sets supporting surface by face
48     void SetFace (const TopoDS_Face& F);
49   
50   Standard_EXPORT virtual Standard_Boolean Compute (const TopoDS_Edge& E);
51   
52     Standard_Boolean HasCurve2d() const;
53   
54     Standard_Boolean HasCurve3d() const;
55   
56     Handle(TColStd_HSequenceOfReal) Knots2d() const;
57   
58     Handle(TColStd_HSequenceOfReal) Knots3d() const;
59   
60   //! Sets the tool for splitting pcurves.
61   Standard_EXPORT void SetSplitCurve2dTool (const Handle(ShapeUpgrade_SplitCurve2d)& splitCurve2dTool);
62   
63   //! Sets the tool for splitting 3D curves.
64   Standard_EXPORT void SetSplitCurve3dTool (const Handle(ShapeUpgrade_SplitCurve3d)& splitCurve3dTool);
65   
66   //! Returns the tool for splitting pcurves.
67   Standard_EXPORT virtual Handle(ShapeUpgrade_SplitCurve2d) GetSplitCurve2dTool() const;
68   
69   //! Returns the tool for splitting 3D curves.
70   Standard_EXPORT virtual Handle(ShapeUpgrade_SplitCurve3d) GetSplitCurve3dTool() const;
71
72
73
74
75   DEFINE_STANDARD_RTTIEXT(ShapeUpgrade_EdgeDivide,ShapeUpgrade_Tool)
76
77 protected:
78
79
80   TopoDS_Face myFace;
81   Standard_Boolean myHasCurve2d;
82   Standard_Boolean myHasCurve3d;
83   Handle(TColStd_HSequenceOfReal) myKnots2d;
84   Handle(TColStd_HSequenceOfReal) myKnots3d;
85
86
87 private:
88
89
90   Handle(ShapeUpgrade_SplitCurve3d) mySplitCurve3dTool;
91   Handle(ShapeUpgrade_SplitCurve2d) mySplitCurve2dTool;
92
93
94 };
95
96
97 #include <ShapeUpgrade_EdgeDivide.lxx>
98
99
100
101
102
103 #endif // _ShapeUpgrade_EdgeDivide_HeaderFile