42cf5bc1 |
1 | // Created on: 1999-02-11 |
2 | // Created by: Pavel DURANDIN |
3 | // Copyright (c) 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 _STEPSelections_Counter_HeaderFile |
18 | #define _STEPSelections_Counter_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <Standard_Integer.hxx> |
25 | #include <TColStd_MapOfTransient.hxx> |
26 | class Interface_Graph; |
27 | class Standard_Transient; |
28 | class StepShape_ConnectedFaceSet; |
29 | class StepGeom_CompositeCurve; |
30 | |
31 | |
32 | |
33 | class STEPSelections_Counter |
34 | { |
35 | public: |
36 | |
37 | DEFINE_STANDARD_ALLOC |
38 | |
39 | |
40 | Standard_EXPORT STEPSelections_Counter(); |
41 | |
42 | Standard_EXPORT void Count (const Interface_Graph& graph, const Handle(Standard_Transient)& start); |
43 | |
44 | Standard_EXPORT void Clear(); |
45 | |
46 | Standard_Integer NbInstancesOfFaces() const; |
47 | |
48 | Standard_Integer POP() const; |
49 | |
50 | Standard_Integer POP2() const; |
51 | |
52 | Standard_Integer NbInstancesOfShells() const; |
53 | |
54 | Standard_Integer NbInstancesOfSolids() const; |
55 | |
56 | Standard_Integer NbInstancesOfEdges() const; |
57 | |
58 | Standard_Integer NbInstancesOfWires() const; |
59 | |
60 | Standard_Integer NbSourceFaces() const; |
61 | |
62 | Standard_Integer NbSourceShells() const; |
63 | |
64 | Standard_Integer NbSourceSolids() const; |
65 | |
66 | Standard_Integer NbSourceEdges() const; |
67 | |
68 | Standard_Integer NbSourceWires() const; |
69 | |
70 | |
71 | |
72 | |
73 | protected: |
74 | |
75 | |
76 | |
77 | |
78 | |
79 | private: |
80 | |
81 | |
82 | Standard_EXPORT void AddShell (const Handle(StepShape_ConnectedFaceSet)& cfs); |
83 | |
84 | Standard_EXPORT void AddCompositeCurve (const Handle(StepGeom_CompositeCurve)& ccurve); |
85 | |
86 | |
87 | Standard_Integer myNbFaces; |
88 | Standard_Integer myNbShells; |
89 | Standard_Integer myNbSolids; |
90 | Standard_Integer myNbEdges; |
91 | Standard_Integer myNbWires; |
92 | TColStd_MapOfTransient myMapOfFaces; |
93 | TColStd_MapOfTransient myMapOfShells; |
94 | TColStd_MapOfTransient myMapOfSolids; |
95 | TColStd_MapOfTransient myMapOfEdges; |
96 | TColStd_MapOfTransient myMapOfWires; |
97 | |
98 | |
99 | }; |
100 | |
101 | |
102 | #include <STEPSelections_Counter.lxx> |
103 | |
104 | |
105 | |
106 | |
107 | |
108 | #endif // _STEPSelections_Counter_HeaderFile |