0027961: Visualization - remove unused and no more working OpenGl_AVIWriter
[occt.git] / src / ShapeUpgrade / ShapeUpgrade_ShellSewing.hxx
1 // Created on: 1998-06-03
2 // Created by: data exchange team
3 // Copyright (c) 1998-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #ifndef _ShapeUpgrade_ShellSewing_HeaderFile
18 #define _ShapeUpgrade_ShellSewing_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
23
24 #include <TopTools_IndexedMapOfShape.hxx>
25 #include <Standard_Real.hxx>
26 #include <Standard_Integer.hxx>
27 class ShapeBuild_ReShape;
28 class TopoDS_Shape;
29
30
31 //! This class provides a tool for applying sewing algorithm from
32 //! BRepBuilderAPI: it takes a shape, calls sewing for each shell,
33 //! and then replaces sewed shells with use of ShapeBuild_ReShape
34 class ShapeUpgrade_ShellSewing 
35 {
36 public:
37
38   DEFINE_STANDARD_ALLOC
39
40   
41   //! Creates a ShellSewing, empty
42   Standard_EXPORT ShapeUpgrade_ShellSewing();
43   
44   //! Builds a new shape from a former one, by calling Sewing from
45   //! BRepBuilderAPI. Rebuilt solids are oriented to be "not infinite"
46   //!
47   //! If <tol> is not given (i.e. value 0. by default), it is
48   //! computed as the mean tolerance recorded in <shape>
49   //!
50   //! If no shell has been sewed, this method returns the input
51   //! shape
52   Standard_EXPORT TopoDS_Shape ApplySewing (const TopoDS_Shape& shape, const Standard_Real tol = 0.0);
53
54
55
56
57 protected:
58
59
60
61
62
63 private:
64
65   
66   Standard_EXPORT void Init (const TopoDS_Shape& shape);
67   
68   Standard_EXPORT Standard_Integer Prepare (const Standard_Real tol);
69   
70   Standard_EXPORT TopoDS_Shape Apply (const TopoDS_Shape& shape, const Standard_Real tol);
71
72
73   TopTools_IndexedMapOfShape myShells;
74   Handle(ShapeBuild_ReShape) myReShape;
75
76
77 };
78
79
80
81
82
83
84
85 #endif // _ShapeUpgrade_ShellSewing_HeaderFile