42cf5bc1 |
1 | // Created on: 2000-08-31 |
2 | // Created by: Andrey BETENEV |
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 _ShapeProcess_OperLibrary_HeaderFile |
17 | #define _ShapeProcess_OperLibrary_HeaderFile |
18 | |
19 | #include <Standard.hxx> |
20 | #include <Standard_DefineAlloc.hxx> |
21 | #include <Standard_Handle.hxx> |
22 | |
23 | #include <TopTools_DataMapOfShapeShape.hxx> |
24 | class TopoDS_Shape; |
25 | class ShapeProcess_ShapeContext; |
26 | class BRepTools_Modification; |
27 | class ShapeExtend_MsgRegistrator; |
28 | |
29 | |
30 | //! Provides a set of following operators |
31 | //! |
32 | //! DirectFaces |
33 | //! FixShape |
34 | //! SameParameter |
35 | //! SetTolerance |
36 | //! SplitAngle |
37 | //! BSplineRestriction |
38 | //! ElementaryToRevolution |
39 | //! SurfaceToBSpline |
40 | //! ToBezier |
41 | //! SplitContinuity |
42 | //! SplitClosedFaces |
43 | //! FixWireGaps |
44 | //! FixFaceSize |
45 | //! DropSmallEdges |
46 | //! FixShape |
47 | //! SplitClosedEdges |
48 | class ShapeProcess_OperLibrary |
49 | { |
50 | public: |
51 | |
52 | DEFINE_STANDARD_ALLOC |
53 | |
54 | |
55 | //! Registers all the operators |
56 | Standard_EXPORT static void Init(); |
57 | |
58 | //! Applies BRepTools_Modification to a shape, |
59 | //! taking into account sharing of components of compounds. |
b47bcd7e |
60 | //! if theMutableInput vat is set to true then imput shape S |
61 | //! can be modified during the modification process. |
62 | Standard_EXPORT static TopoDS_Shape ApplyModifier (const TopoDS_Shape& S, |
63 | const Handle(ShapeProcess_ShapeContext)& context, |
64 | const Handle(BRepTools_Modification)& M, |
65 | TopTools_DataMapOfShapeShape& map, |
66 | const Handle(ShapeExtend_MsgRegistrator)& msg = 0, |
67 | Standard_Boolean theMutableInput = Standard_False); |
42cf5bc1 |
68 | |
69 | |
70 | |
71 | |
72 | protected: |
73 | |
74 | |
75 | |
76 | |
77 | |
78 | private: |
79 | |
80 | |
81 | |
82 | |
83 | |
84 | }; |
85 | |
86 | |
87 | |
88 | |
89 | |
90 | |
91 | |
92 | #endif // _ShapeProcess_OperLibrary_HeaderFile |