f57ba203c700d0b8148713b6b8cab3a9de5c4565
[occt.git] / src / ShapeProcess / ShapeProcess_OperLibrary.hxx
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.
60   Standard_EXPORT static TopoDS_Shape ApplyModifier (const TopoDS_Shape& S, const Handle(ShapeProcess_ShapeContext)& context, const Handle(BRepTools_Modification)& M, TopTools_DataMapOfShapeShape& map, const Handle(ShapeExtend_MsgRegistrator)& msg = 0);
61
62
63
64
65 protected:
66
67
68
69
70
71 private:
72
73
74
75
76
77 };
78
79
80
81
82
83
84
85 #endif // _ShapeProcess_OperLibrary_HeaderFile