ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/reconstruction/src/sq_interface.cpp
Revision: 1090
Committed: Sun Jan 30 13:24:27 2022 UTC (3 years, 6 months ago) by amroune
File size: 1926 byte(s)
Log Message:
Ajout de la derniere partie du code

File Contents

# Content
1 #include "sq_interface.h"
2
3 SQ_INTERFACE::SQ_INTERFACE()
4 {
5 }
6
7
8
9 SQ_INTERFACE::SQ_INTERFACE(SQ_JONCTION* Jonc,SQ_BRANCHE* Bran)
10 {
11 Jonction=Jonc;
12 Branche=Bran;
13 NbBranchements=Jonction->get_nb_branches()-1;
14 }
15
16
17
18 SQ_INTERFACE::SQ_INTERFACE(SQ_INTERFACE& mdd)
19 {
20 Jonction=mdd.Jonction;
21 Branche=mdd.Branche;
22 NoCentral=mdd.NoCentral;
23 NbBranchements=mdd.NbBranchements;
24 LstDir=mdd.LstDir;
25 LstSections=mdd.LstSections;
26 LstAretes=mdd.LstAretes;
27 }
28
29
30
31 SQ_INTERFACE::~SQ_INTERFACE()
32 {
33 }
34
35
36
37 SQ_JONCTION* SQ_INTERFACE::get_jonction()
38 {
39 return Jonction;
40 }
41
42
43
44 SQ_BRANCHE* SQ_INTERFACE::get_branche()
45 {
46 return Branche;
47 }
48
49
50
51
52 SQ_NOEUD* SQ_INTERFACE::get_no_central()
53 {
54 return NoCentral;
55 }
56
57
58
59 int SQ_INTERFACE::get_nb_branchements()
60 {
61 return NbBranchements;
62 }
63
64
65
66 OT_VECTEUR_3D SQ_INTERFACE::get_dir(int i)
67 {
68 return LstDir[i];
69 }
70
71
72
73 std::vector<MG_NOEUD*> SQ_INTERFACE::get_section(int i)
74 {
75 return LstSections[i];
76 }
77
78
79
80 int SQ_INTERFACE::get_nb_sections()
81 {
82 return LstSections.size();
83 }
84
85
86
87 TopoDS_Shape SQ_INTERFACE::get_arete(int i)
88 {
89 return LstAretes[i];
90 }
91
92
93
94 int SQ_INTERFACE::get_nb_aretes()
95 {
96 return LstAretes.size();
97 }
98
99
100
101 SQ_INTERFACE* SQ_INTERFACE::get_lien_interface(int i)
102 {
103 return LstLiens[i].second;
104 }
105
106
107
108 double* SQ_INTERFACE::get_lien_projection(int i)
109 {
110 return LstLiens[i].first;
111 }
112
113
114
115 int SQ_INTERFACE::get_nb_liens()
116 {
117 return LstLiens.size();
118 }
119
120
121
122 void SQ_INTERFACE::change_no_central(SQ_NOEUD* NoCntrl)
123 {
124 NoCentral=NoCntrl;
125 }
126
127
128
129 void SQ_INTERFACE::ajouter_dir(OT_VECTEUR_3D vec)
130 {
131 LstDir.push_back(vec);
132 }
133
134
135
136 void SQ_INTERFACE::ajouter_section(std::vector<MG_NOEUD*> Section)
137 {
138 LstSections.push_back(Section);
139 }
140
141
142
143 void SQ_INTERFACE::ajouter_arete(TopoDS_Shape Arete)
144 {
145 LstAretes.push_back(Arete);
146 }
147
148
149
150 void SQ_INTERFACE::change_arete(int i,TopoDS_Shape Arete)
151 {
152 LstAretes[i]=Arete;
153 }
154
155
156
157 void SQ_INTERFACE::ajouter_lien(double* P,SQ_INTERFACE* Interface)
158 {
159 LstLiens.push_back(std::make_pair(P,Interface));
160 }