42cf5bc1 |
1 | // Created on: 2002-02-07 |
2 | // Created by: Igor FEOKTISTOV |
3 | // Copyright (c) 2002-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 _QANewModTopOpe_ReShaper_HeaderFile |
17 | #define _QANewModTopOpe_ReShaper_HeaderFile |
18 | |
19 | #include <Standard.hxx> |
20 | #include <Standard_Type.hxx> |
21 | |
22 | #include <TopoDS_Shape.hxx> |
23 | #include <TopTools_MapOfShape.hxx> |
24 | #include <MMgt_TShared.hxx> |
25 | #include <TopTools_HSequenceOfShape.hxx> |
26 | class TopoDS_Shape; |
27 | |
28 | |
29 | class QANewModTopOpe_ReShaper; |
30 | DEFINE_STANDARD_HANDLE(QANewModTopOpe_ReShaper, MMgt_TShared) |
31 | |
32 | //! to remove "floating" objects from compound. |
33 | //! "floating" objects are wires, edges, vertices that do not belong |
34 | //! solids, shells or faces. |
35 | class QANewModTopOpe_ReShaper : public MMgt_TShared |
36 | { |
37 | |
38 | public: |
39 | |
40 | |
41 | Standard_EXPORT QANewModTopOpe_ReShaper(const TopoDS_Shape& TheInitialShape); |
42 | |
43 | Standard_EXPORT QANewModTopOpe_ReShaper(const TopoDS_Shape& TheInitialShape, const TopTools_MapOfShape& TheMap); |
44 | |
45 | Standard_EXPORT QANewModTopOpe_ReShaper(const TopoDS_Shape& TheInitialShape, const Handle(TopTools_HSequenceOfShape)& TheShapeToBeRemoved); |
46 | |
47 | Standard_EXPORT void Remove (const TopoDS_Shape& TheS); |
48 | |
49 | Standard_EXPORT void Perform(); |
50 | |
51 | //! to clear all added for removing shapes from inner map. |
52 | Standard_EXPORT void Clear(); |
53 | |
54 | Standard_EXPORT const TopoDS_Shape& GetResult() const; |
55 | Standard_EXPORT operator TopoDS_Shape() const; |
56 | |
57 | |
58 | |
59 | |
92efcf78 |
60 | DEFINE_STANDARD_RTTIEXT(QANewModTopOpe_ReShaper,MMgt_TShared) |
42cf5bc1 |
61 | |
62 | protected: |
63 | |
64 | |
65 | |
66 | |
67 | private: |
68 | |
69 | |
70 | TopoDS_Shape myInitShape; |
71 | TopoDS_Shape myResult; |
72 | TopTools_MapOfShape myMap; |
73 | |
74 | |
75 | }; |
76 | |
77 | |
78 | |
79 | |
80 | |
81 | |
82 | |
83 | #endif // _QANewModTopOpe_ReShaper_HeaderFile |