0026936: Drawbacks of inlining in new type system in OCCT 7.0 -- automatic
[occt.git] / src / BRepCheck / BRepCheck_Shell.hxx
1 // Created on: 1996-01-02
2 // Created by: Jacques GOUSSARD
3 // Copyright (c) 1996-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 _BRepCheck_Shell_HeaderFile
18 #define _BRepCheck_Shell_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
22
23 #include <Standard_Integer.hxx>
24 #include <Standard_Boolean.hxx>
25 #include <BRepCheck_Status.hxx>
26 #include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
27 #include <BRepCheck_Result.hxx>
28 #include <TopTools_ListOfShape.hxx>
29 class TopoDS_Shell;
30 class TopoDS_Shape;
31
32
33 class BRepCheck_Shell;
34 DEFINE_STANDARD_HANDLE(BRepCheck_Shell, BRepCheck_Result)
35
36
37 class BRepCheck_Shell : public BRepCheck_Result
38 {
39
40 public:
41
42   
43   Standard_EXPORT BRepCheck_Shell(const TopoDS_Shell& S);
44   
45   Standard_EXPORT void InContext (const TopoDS_Shape& ContextShape) Standard_OVERRIDE;
46   
47   Standard_EXPORT void Minimum() Standard_OVERRIDE;
48   
49   Standard_EXPORT void Blind() Standard_OVERRIDE;
50   
51   //! Checks if the oriented  faces of the shell  give a
52   //! closed shell.    If the  wire is  closed,  returns
53   //! BRepCheck_NoError.If      <Update>     is  set  to
54   //! Standard_True, registers the status in the list.
55   Standard_EXPORT BRepCheck_Status Closed (const Standard_Boolean Update = Standard_False);
56   
57   //! Checks if the   oriented faces  of  the shell  are
58   //! correctly oriented.  An internal  call is  made to
59   //! the  method  Closed.   If  <Update>    is set   to
60   //! Standard_True, registers the status in the list.
61   Standard_EXPORT BRepCheck_Status Orientation (const Standard_Boolean Update = Standard_False);
62   
63   Standard_EXPORT void SetUnorientable();
64   
65   Standard_EXPORT Standard_Boolean IsUnorientable() const;
66   
67   Standard_EXPORT Standard_Integer NbConnectedSet (TopTools_ListOfShape& theSets);
68
69
70
71
72   DEFINE_STANDARD_RTTIEXT(BRepCheck_Shell,BRepCheck_Result)
73
74 protected:
75
76
77
78
79 private:
80
81
82   Standard_Integer myNbori;
83   Standard_Boolean myCdone;
84   BRepCheck_Status myCstat;
85   Standard_Boolean myOdone;
86   BRepCheck_Status myOstat;
87   TopTools_IndexedDataMapOfShapeListOfShape myMapEF;
88
89
90 };
91
92
93
94
95
96
97
98 #endif // _BRepCheck_Shell_HeaderFile