42cf5bc1 |
1 | // Created on: 1995-12-07 |
2 | // Created by: Jacques GOUSSARD |
3 | // Copyright (c) 1995-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_Result_HeaderFile |
18 | #define _BRepCheck_Result_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_Type.hxx> |
22 | |
23 | #include <TopoDS_Shape.hxx> |
24 | #include <Standard_Boolean.hxx> |
25 | #include <BRepCheck_DataMapOfShapeListOfStatus.hxx> |
26 | #include <BRepCheck_DataMapIteratorOfDataMapOfShapeListOfStatus.hxx> |
27 | #include <MMgt_TShared.hxx> |
28 | #include <BRepCheck_ListOfStatus.hxx> |
29 | class Standard_NoSuchObject; |
30 | class TopoDS_Shape; |
31 | |
32 | |
33 | class BRepCheck_Result; |
34 | DEFINE_STANDARD_HANDLE(BRepCheck_Result, MMgt_TShared) |
35 | |
36 | |
37 | class BRepCheck_Result : public MMgt_TShared |
38 | { |
39 | |
40 | public: |
41 | |
42 | |
43 | Standard_EXPORT void Init (const TopoDS_Shape& S); |
44 | |
45 | Standard_EXPORT virtual void InContext (const TopoDS_Shape& ContextShape) = 0; |
46 | |
47 | Standard_EXPORT virtual void Minimum() = 0; |
48 | |
49 | Standard_EXPORT virtual void Blind() = 0; |
50 | |
51 | Standard_EXPORT void SetFailStatus (const TopoDS_Shape& S); |
52 | |
53 | const BRepCheck_ListOfStatus& Status() const; |
54 | |
55 | Standard_Boolean IsMinimum() const; |
56 | |
57 | Standard_Boolean IsBlind() const; |
58 | |
59 | //! If not already done, performs the InContext |
60 | //! control and returns the list of status. |
61 | Standard_EXPORT const BRepCheck_ListOfStatus& StatusOnShape (const TopoDS_Shape& S); |
62 | |
63 | Standard_EXPORT void InitContextIterator(); |
64 | |
65 | Standard_Boolean MoreShapeInContext() const; |
66 | |
67 | const TopoDS_Shape& ContextualShape() const; |
68 | |
69 | const BRepCheck_ListOfStatus& StatusOnShape() const; |
70 | |
71 | Standard_EXPORT void NextShapeInContext(); |
72 | |
73 | |
74 | |
75 | |
92efcf78 |
76 | DEFINE_STANDARD_RTTIEXT(BRepCheck_Result,MMgt_TShared) |
42cf5bc1 |
77 | |
78 | protected: |
79 | |
80 | |
81 | Standard_EXPORT BRepCheck_Result(); |
82 | |
83 | TopoDS_Shape myShape; |
84 | Standard_Boolean myMin; |
85 | Standard_Boolean myBlind; |
86 | BRepCheck_DataMapOfShapeListOfStatus myMap; |
87 | |
88 | |
89 | private: |
90 | |
91 | |
92 | BRepCheck_DataMapIteratorOfDataMapOfShapeListOfStatus myIter; |
93 | |
94 | |
95 | }; |
96 | |
97 | |
98 | #include <BRepCheck_Result.lxx> |
99 | |
100 | |
101 | |
102 | |
103 | |
104 | #endif // _BRepCheck_Result_HeaderFile |