summaryrefslogtreecommitdiff
path: root/inc/MAT_Graph.hxx
blob: 7d0021f75ee9457bb49cd3dcdfb74c49c739b582 (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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
// 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 _MAT_Graph_HeaderFile
#define _MAT_Graph_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_MAT_Graph_HeaderFile
#include <Handle_MAT_Graph.hxx>
#endif

#ifndef _MAT_DataMapOfIntegerArc_HeaderFile
#include <MAT_DataMapOfIntegerArc.hxx>
#endif
#ifndef _MAT_DataMapOfIntegerBasicElt_HeaderFile
#include <MAT_DataMapOfIntegerBasicElt.hxx>
#endif
#ifndef _MAT_DataMapOfIntegerNode_HeaderFile
#include <MAT_DataMapOfIntegerNode.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _MMgt_TShared_HeaderFile
#include <MMgt_TShared.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Handle_MAT_ListOfBisector_HeaderFile
#include <Handle_MAT_ListOfBisector.hxx>
#endif
#ifndef _Handle_MAT_Arc_HeaderFile
#include <Handle_MAT_Arc.hxx>
#endif
#ifndef _Handle_MAT_BasicElt_HeaderFile
#include <Handle_MAT_BasicElt.hxx>
#endif
#ifndef _Handle_MAT_Node_HeaderFile
#include <Handle_MAT_Node.hxx>
#endif
class MAT_ListOfBisector;
class MAT_Arc;
class MAT_BasicElt;
class MAT_Node;
class MAT_DataMapOfIntegerBasicElt;


//! The Class Graph permits the exploration of the <br>
//!          Bisector Locus. <br>
class MAT_Graph : public MMgt_TShared {

public:

  //! Empty constructor. <br>
  Standard_EXPORT   MAT_Graph();
  //! Construct <me> from the result of the method <br>
//!            <CreateMat> of the class <MAT> from <MAT>. <br>
//! <br>
//!            <SemiInfinite> : if some bisector are infinites. <br>
//!            <TheRoots>     : Set of the bisectors. <br>
//!            <NbBasicElts>  : Number of Basic Elements. <br>
//!            <NbArcs>       : Number of Arcs = Number of Bisectors. <br>
  Standard_EXPORT     void Perform(const Standard_Boolean SemiInfinite,const Handle(MAT_ListOfBisector)& TheRoots,const Standard_Integer NbBasicElts,const Standard_Integer NbArcs) ;
  //! Return the Arc of index <Index> in <theArcs>. <br>
  Standard_EXPORT     Handle_MAT_Arc Arc(const Standard_Integer Index) const;
  //! Return the BasicElt of index <Index> in <theBasicElts>. <br>
  Standard_EXPORT     Handle_MAT_BasicElt BasicElt(const Standard_Integer Index) const;
  //! Return the Node of index <Index> in <theNodes>. <br>
  Standard_EXPORT     Handle_MAT_Node Node(const Standard_Integer Index) const;
  //! Return the number of arcs of <me>. <br>
  Standard_EXPORT     Standard_Integer NumberOfArcs() const;
  //! Return the number of nodes of <me>. <br>
  Standard_EXPORT     Standard_Integer NumberOfNodes() const;
  //! Return the number of basic elements of <me>. <br>
  Standard_EXPORT     Standard_Integer NumberOfBasicElts() const;
  //! Return the number of infinites nodes of <me>. <br>
  Standard_EXPORT     Standard_Integer NumberOfInfiniteNodes() const;
  //! Merge two BasicElts.  The End of the BasicElt Elt1 <br>
//!          of  IndexElt1 becomes The End of the BasicElt Elt2 <br>
//!          of  IndexElt2.   Elt2 is replaced in  the  arcs  by <br>
//!          Elt1, Elt2 is eliminated. <br>
//! <br>
//!          <MergeArc1> is True  if the fusion  of the BasicElts  => <br>
//!          a fusion  of two Arcs which separated  the same  elements. <br>
//!          In this case <GeomIndexArc1> and  <GeomIndexArc2>  are the <br>
//!          Geometric  Index of this  arcs. <br>
//! <br>
//!          If the  BasicElt corresponds to a close line , <br>
//!          the StartArc and the EndArc of Elt1 can separate the same <br>
//!          elements . <br>
//!          In this case there is a fusion of this arcs, <MergeArc2> <br>
//!          is true and <GeomIndexArc3> and  <GeomIndexArc4>  are the <br>
//!          Geometric  Index of this  arcs. <br>
  Standard_EXPORT     void FusionOfBasicElts(const Standard_Integer IndexElt1,const Standard_Integer IndexElt2,Standard_Boolean& MergeArc1,Standard_Integer& GeomIndexArc1,Standard_Integer& GeomIndexArc2,Standard_Boolean& MergeArc2,Standard_Integer& GeomIndexArc3,Standard_Integer& GeomIndexArc4) ;
  
  Standard_EXPORT     void CompactArcs() ;
  
  Standard_EXPORT     void CompactNodes() ;
  
  Standard_EXPORT     void ChangeBasicElts(const MAT_DataMapOfIntegerBasicElt& NewMap) ;
  
  Standard_EXPORT     Handle_MAT_BasicElt ChangeBasicElt(const Standard_Integer Index) ;




  DEFINE_STANDARD_RTTI(MAT_Graph)

protected:




private: 

  //! Merge two Arcs.  the second node of <Arc2> becomes <br>
//!          the  first node  of <Arc1>.  Update  of the  first <br>
//!          node and the neighbours of <Arc1>. <br>
//!          <Arc2> is eliminated. <br>
  Standard_EXPORT     void FusionOfArcs(const Handle(MAT_Arc)& Arc1,const Handle(MAT_Arc)& Arc2) ;
  
  Standard_EXPORT     void UpDateNodes(Standard_Integer& Index) ;

MAT_DataMapOfIntegerArc theArcs;
MAT_DataMapOfIntegerBasicElt theBasicElts;
MAT_DataMapOfIntegerNode theNodes;
Standard_Integer numberOfArcs;
Standard_Integer numberOfNodes;
Standard_Integer numberOfBasicElts;
Standard_Integer numberOfInfiniteNodes;


};





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


#endif