summaryrefslogtreecommitdiff
path: root/inc/TopOpeBRepDS_Check.hxx
blob: db36b6e1ecf302cb5688521c7ae60588fc6bbef1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _TopOpeBRepDS_Check_HeaderFile
#define _TopOpeBRepDS_Check_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_TopOpeBRepDS_Check_HeaderFile
#include <Handle_TopOpeBRepDS_Check.hxx>
#endif

#ifndef _Handle_TopOpeBRepDS_HDataStructure_HeaderFile
#include <Handle_TopOpeBRepDS_HDataStructure.hxx>
#endif
#ifndef _TopOpeBRepDS_DataMapOfCheckStatus_HeaderFile
#include <TopOpeBRepDS_DataMapOfCheckStatus.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _MMgt_TShared_HeaderFile
#include <MMgt_TShared.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _TopOpeBRepDS_Kind_HeaderFile
#include <TopOpeBRepDS_Kind.hxx>
#endif
#ifndef _Standard_OStream_HeaderFile
#include <Standard_OStream.hxx>
#endif
#ifndef _Standard_CString_HeaderFile
#include <Standard_CString.hxx>
#endif
#ifndef _TopOpeBRepDS_CheckStatus_HeaderFile
#include <TopOpeBRepDS_CheckStatus.hxx>
#endif
#ifndef _TopAbs_ShapeEnum_HeaderFile
#include <TopAbs_ShapeEnum.hxx>
#endif
class TopOpeBRepDS_HDataStructure;
class TopOpeBRepDS_ListOfInterference;
class TopTools_ListOfShape;
class TopOpeBRepDS_DataMapOfCheckStatus;


//! a tool verifing integrity and structure of DS <br>
class TopOpeBRepDS_Check : public MMgt_TShared {

public:

  
  Standard_EXPORT   TopOpeBRepDS_Check();
  
  Standard_EXPORT   TopOpeBRepDS_Check(const Handle(TopOpeBRepDS_HDataStructure)& HDS);
  //! Check integrition of DS <br>
  Standard_EXPORT     Standard_Boolean ChkIntg() ;
  //! Check integrition of interferences <br>
//!          (les supports et les geometries de LI) <br>
  Standard_EXPORT     Standard_Boolean ChkIntgInterf(const TopOpeBRepDS_ListOfInterference& LI) ;
  //! Verifie que le ieme element de la DS existe, et <br>
//!          pour un K de type topologique, verifie qu'il est du <br>
//!          bon type (VERTEX, EDGE, WIRE, FACE, SHELL ou SOLID) <br>
  Standard_EXPORT     Standard_Boolean CheckDS(const Standard_Integer i,const TopOpeBRepDS_Kind K) ;
  //! Check integrition des champs SameDomain de la DS <br>
  Standard_EXPORT     Standard_Boolean ChkIntgSamDom() ;
  //! Verifie que les Shapes existent bien dans la DS <br>
//!          Utile pour les Shapes SameDomain <br>
//!          si la liste est vide, renvoie vrai <br>
  Standard_EXPORT     Standard_Boolean CheckShapes(const TopTools_ListOfShape& LS) const;
  //!    Verifie que les Vertex   non   SameDomain sont bien <br>
//!           nonSameDomain, que  les  vertex sameDomain sont  bien <br>
//!          SameDomain,  que    les  Points sont  non    confondus <br>
//!           ni entre eux, ni avec des Vertex. <br>
  Standard_EXPORT     Standard_Boolean OneVertexOnPnt() ;
  
  Standard_EXPORT    const Handle_TopOpeBRepDS_HDataStructure& HDS() const;
  
  Standard_EXPORT     Handle_TopOpeBRepDS_HDataStructure& ChangeHDS() ;
  
  Standard_EXPORT     Standard_OStream& PrintIntg(Standard_OStream& S) ;
  //! Prints the name  of CheckStatus  <stat>  as  a String <br>
  Standard_EXPORT     Standard_OStream& Print(const TopOpeBRepDS_CheckStatus stat,Standard_OStream& S) ;
  //! Prints the name  of CheckStatus  <stat>  as  a String <br>
  Standard_EXPORT     Standard_OStream& PrintShape(const TopAbs_ShapeEnum SE,Standard_OStream& S) ;
  //! Prints the name  of CheckStatus  <stat>  as  a String <br>
  Standard_EXPORT     Standard_OStream& PrintShape(const Standard_Integer index,Standard_OStream& S) ;




  DEFINE_STANDARD_RTTI(TopOpeBRepDS_Check)

protected:




private: 

  
  Standard_EXPORT     Standard_OStream& PrintMap(TopOpeBRepDS_DataMapOfCheckStatus& MapStat,const Standard_CString eltstr,Standard_OStream& S) ;
  
  Standard_EXPORT     Standard_OStream& PrintElts(TopOpeBRepDS_DataMapOfCheckStatus& MapStat,const TopOpeBRepDS_CheckStatus Stat,Standard_Boolean& b,Standard_OStream& S) ;

Handle_TopOpeBRepDS_HDataStructure myHDS;
TopOpeBRepDS_DataMapOfCheckStatus myMapSurfaceStatus;
Standard_Boolean mySurfaceDone;
TopOpeBRepDS_DataMapOfCheckStatus myMapCurveStatus;
Standard_Boolean myCurveDone;
TopOpeBRepDS_DataMapOfCheckStatus myMapPointStatus;
Standard_Boolean myPointDone;
TopOpeBRepDS_DataMapOfCheckStatus myMapShapeStatus;
Standard_Boolean myShapeDone;
Standard_Boolean myDone;


};





// other Inline functions and methods (like "C++: function call" methods)


#endif