1 // Created on: 2002-02-07
2 // Created by: Igor FEOKTISTOV
3 // Copyright (c) 2002-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 _QANewModTopOpe_ReShaper_HeaderFile
17 #define _QANewModTopOpe_ReShaper_HeaderFile
19 #include <Standard.hxx>
20 #include <Standard_Type.hxx>
22 #include <TopoDS_Shape.hxx>
23 #include <TopTools_MapOfShape.hxx>
24 #include <MMgt_TShared.hxx>
25 #include <TopTools_HSequenceOfShape.hxx>
29 class QANewModTopOpe_ReShaper;
30 DEFINE_STANDARD_HANDLE(QANewModTopOpe_ReShaper, MMgt_TShared)
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
41 Standard_EXPORT QANewModTopOpe_ReShaper(const TopoDS_Shape& TheInitialShape);
43 Standard_EXPORT QANewModTopOpe_ReShaper(const TopoDS_Shape& TheInitialShape, const TopTools_MapOfShape& TheMap);
45 Standard_EXPORT QANewModTopOpe_ReShaper(const TopoDS_Shape& TheInitialShape, const Handle(TopTools_HSequenceOfShape)& TheShapeToBeRemoved);
47 Standard_EXPORT void Remove (const TopoDS_Shape& TheS);
49 Standard_EXPORT void Perform();
51 //! to clear all added for removing shapes from inner map.
52 Standard_EXPORT void Clear();
54 Standard_EXPORT const TopoDS_Shape& GetResult() const;
55 Standard_EXPORT operator TopoDS_Shape() const;
60 DEFINE_STANDARD_RTTIEXT(QANewModTopOpe_ReShaper,MMgt_TShared)
70 TopoDS_Shape myInitShape;
71 TopoDS_Shape myResult;
72 TopTools_MapOfShape myMap;
83 #endif // _QANewModTopOpe_ReShaper_HeaderFile