1 // Created on: 2000-08-31
2 // Created by: Andrey BETENEV
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 _ShapeProcess_OperLibrary_HeaderFile
17 #define _ShapeProcess_OperLibrary_HeaderFile
19 #include <Standard.hxx>
20 #include <Standard_DefineAlloc.hxx>
21 #include <Standard_Handle.hxx>
23 #include <TopTools_DataMapOfShapeShape.hxx>
25 class ShapeProcess_ShapeContext;
26 class BRepTools_Modification;
27 class ShapeExtend_MsgRegistrator;
30 //! Provides a set of following operators
37 //! BSplineRestriction
38 //! ElementaryToRevolution
48 class ShapeProcess_OperLibrary
55 //! Registers all the operators
56 Standard_EXPORT static void Init();
58 //! Applies BRepTools_Modification to a shape,
59 //! taking into account sharing of components of compounds.
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);
92 #endif // _ShapeProcess_OperLibrary_HeaderFile