0022048: Visualization, AIS_InteractiveContext - single object selection should alway...
[occt.git] / src / BOPTools / BOPTools.hxx
1 // Created by: Peter KURNEV
2 // Copyright (c) 2000-2014 OPEN CASCADE SAS
3 //
4 // This file is part of Open CASCADE Technology software library.
5 //
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License version 2.1 as published
8 // by the Free Software Foundation, with special exception defined in the file
9 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 // distribution for complete text of the license and disclaimer of any warranty.
11 //
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
14
15 #ifndef _BOPTools_HeaderFile
16 #define _BOPTools_HeaderFile
17
18 #include <Standard.hxx>
19 #include <Standard_DefineAlloc.hxx>
20 #include <Standard_Handle.hxx>
21
22 #include <BOPCol_MapOfShape.hxx>
23 #include <BOPCol_IndexedMapOfShape.hxx>
24 #include <TopAbs_ShapeEnum.hxx>
25 #include <BOPCol_IndexedDataMapOfShapeListOfShape.hxx>
26 class TopoDS_Shape;
27 class BOPTools_ShapeSet;
28 class BOPTools_EdgeSet;
29 class BOPTools_AlgoTools;
30 class BOPTools_Set;
31 class BOPTools_SetMapHasher;
32 class BOPTools_AlgoTools2D;
33 class BOPTools_AlgoTools3D;
34
35
36
37 class BOPTools 
38 {
39 public:
40
41   DEFINE_STANDARD_ALLOC
42
43   
44   Standard_EXPORT static void MapShapes (const TopoDS_Shape& S, BOPCol_MapOfShape& M);
45   
46   Standard_EXPORT static void MapShapes (const TopoDS_Shape& S, BOPCol_IndexedMapOfShape& M);
47   
48   Standard_EXPORT static void MapShapes (const TopoDS_Shape& S, const TopAbs_ShapeEnum T, BOPCol_IndexedMapOfShape& M);
49   
50   Standard_EXPORT static void MapShapesAndAncestors (const TopoDS_Shape& S, const TopAbs_ShapeEnum TS, const TopAbs_ShapeEnum TA, BOPCol_IndexedDataMapOfShapeListOfShape& M);
51
52
53
54
55 protected:
56
57
58
59
60
61 private:
62
63
64
65
66 friend class BOPTools_ShapeSet;
67 friend class BOPTools_EdgeSet;
68 friend class BOPTools_AlgoTools;
69 friend class BOPTools_Set;
70 friend class BOPTools_SetMapHasher;
71 friend class BOPTools_AlgoTools2D;
72 friend class BOPTools_AlgoTools3D;
73
74 };
75
76
77
78
79
80
81
82 #endif // _BOPTools_HeaderFile