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
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _STEPSelections_Counter_HeaderFile
18 #define _STEPSelections_Counter_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
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;
33 class STEPSelections_Counter
40 Standard_EXPORT STEPSelections_Counter();
42 Standard_EXPORT void Count (const Interface_Graph& graph, const Handle(Standard_Transient)& start);
44 Standard_EXPORT void Clear();
46 Standard_Integer NbInstancesOfFaces() const;
48 Standard_Integer POP() const;
50 Standard_Integer POP2() const;
52 Standard_Integer NbInstancesOfShells() const;
54 Standard_Integer NbInstancesOfSolids() const;
56 Standard_Integer NbInstancesOfEdges() const;
58 Standard_Integer NbInstancesOfWires() const;
60 Standard_Integer NbSourceFaces() const;
62 Standard_Integer NbSourceShells() const;
64 Standard_Integer NbSourceSolids() const;
66 Standard_Integer NbSourceEdges() const;
68 Standard_Integer NbSourceWires() const;
82 Standard_EXPORT void AddShell (const Handle(StepShape_ConnectedFaceSet)& cfs);
84 Standard_EXPORT void AddCompositeCurve (const Handle(StepGeom_CompositeCurve)& ccurve);
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;
102 #include <STEPSelections_Counter.lxx>
108 #endif // _STEPSelections_Counter_HeaderFile