MAGiC  V5.0
Mailleurs Automatiques de Géometries intégrés à la Cao
sq_interface.cpp
Aller à la documentation de ce fichier.
1 //####//------------------------------------------------------------
2 //####//------------------------------------------------------------
3 //####// MAGiC
4 //####// Jean Christophe Cuilliere et Vincent FRANCOIS
5 //####// Departement de Genie Mecanique - UQTR
6 //####//------------------------------------------------------------
7 //####// MAGIC est un projet de recherche de l equipe ERICCA
8 //####// du departement de genie mecanique de l Universite du Quebec a Trois Rivieres
9 //####// http://www.uqtr.ca/ericca
10 //####// http://www.uqtr.ca/
11 //####//------------------------------------------------------------
12 //####//------------------------------------------------------------
13 //####//
14 //####// sq_interface.cpp
15 //####//
16 //####//------------------------------------------------------------
17 //####//------------------------------------------------------------
18 //####// COPYRIGHT 2000-2024
19 //####// jeu 13 jun 2024 11:58:56 EDT
20 //####//------------------------------------------------------------
21 //####//------------------------------------------------------------
22 #include "sq_interface.h"
23 
25 {
26 }
27 
28 
29 
31 {
32  Jonction=Jonc;
33  Branche=Bran;
35 }
36 
37 
38 
40 {
41  Jonction=mdd.Jonction;
42  Branche=mdd.Branche;
43  NoCentral=mdd.NoCentral;
45  LstDir=mdd.LstDir;
47  LstAretes=mdd.LstAretes;
48 }
49 
50 
51 
53 {
54 }
55 
56 
57 
59 {
60  return Jonction;
61 }
62 
63 
64 
66 {
67  return Branche;
68 }
69 
70 
71 
72 
74 {
75  return NoCentral;
76 }
77 
78 
79 
81 {
82  return NbBranchements;
83 }
84 
85 
86 
88 {
89  return LstDir[i];
90 }
91 
92 
93 
94 std::vector<MG_NOEUD*> SQ_INTERFACE::get_section(int i)
95 {
96  return LstSections[i];
97 }
98 
99 
100 
102 {
103  return LstSections.size();
104 }
105 
106 
107 
108 TopoDS_Shape SQ_INTERFACE::get_arete(int i)
109 {
110  return LstAretes[i];
111 }
112 
113 
114 
116 {
117  return LstAretes.size();
118 }
119 
120 
121 
123 {
124  return LstLiens[i].second;
125 }
126 
127 
128 
130 {
131  return LstLiens[i].first;
132 }
133 
134 
135 
137 {
138  return LstLiens.size();
139 }
140 
141 
142 
144 {
145  NoCentral=NoCntrl;
146 }
147 
148 
149 
151 {
152  LstDir.push_back(vec);
153 }
154 
155 
156 
157 void SQ_INTERFACE::ajouter_section(std::vector<MG_NOEUD*> Section)
158 {
159  LstSections.push_back(Section);
160 }
161 
162 
163 
164 void SQ_INTERFACE::ajouter_arete(TopoDS_Shape Arete)
165 {
166  LstAretes.push_back(Arete);
167 }
168 
169 
170 
171 void SQ_INTERFACE::change_arete(int i,TopoDS_Shape Arete)
172 {
173  LstAretes[i]=Arete;
174 }
175 
176 
177 
178 void SQ_INTERFACE::ajouter_lien(double* P,SQ_INTERFACE* Interface)
179 {
180  LstLiens.push_back(std::make_pair(P,Interface));
181 }
SQ_INTERFACE::ajouter_dir
void ajouter_dir(OT_VECTEUR_3D vec)
Definition: sq_interface.cpp:150
SQ_INTERFACE::NoCentral
SQ_NOEUD * NoCentral
Definition: sq_interface.h:59
SQ_INTERFACE::change_no_central
void change_no_central(SQ_NOEUD *NoCntrl)
Definition: sq_interface.cpp:143
SQ_INTERFACE::get_dir
OT_VECTEUR_3D get_dir(int i)
Definition: sq_interface.cpp:87
SQ_INTERFACE
Definition: sq_interface.h:27
SQ_INTERFACE::get_nb_aretes
int get_nb_aretes()
Definition: sq_interface.cpp:115
SQ_INTERFACE::ajouter_section
void ajouter_section(std::vector< MG_NOEUD * > Section)
Definition: sq_interface.cpp:157
SQ_NOEUD
Definition: sq_noeud.h:28
SQ_INTERFACE::LstSections
std::vector< std::vector< MG_NOEUD * > > LstSections
Definition: sq_interface.h:62
SQ_INTERFACE::LstAretes
std::vector< TopoDS_Shape > LstAretes
Definition: sq_interface.h:64
SQ_INTERFACE::LstDir
std::vector< OT_VECTEUR_3D > LstDir
Definition: sq_interface.h:61
SQ_BRANCHE
Definition: sq_branche.h:30
SQ_INTERFACE::get_lien_projection
double * get_lien_projection(int i)
Definition: sq_interface.cpp:129
SQ_INTERFACE::get_arete
TopoDS_Shape get_arete(int i)
Definition: sq_interface.cpp:108
SQ_INTERFACE::SQ_INTERFACE
SQ_INTERFACE()
Definition: sq_interface.cpp:24
SQ_INTERFACE::change_arete
void change_arete(int i, TopoDS_Shape Arete)
Definition: sq_interface.cpp:171
SQ_INTERFACE::get_no_central
SQ_NOEUD * get_no_central()
Definition: sq_interface.cpp:73
SQ_INTERFACE::get_nb_sections
int get_nb_sections()
Definition: sq_interface.cpp:101
sq_interface.h
SQ_INTERFACE::get_jonction
SQ_JONCTION * get_jonction()
Definition: sq_interface.cpp:58
SQ_INTERFACE::get_section
std::vector< MG_NOEUD * > get_section(int i)
Definition: sq_interface.cpp:94
SQ_INTERFACE::ajouter_arete
void ajouter_arete(TopoDS_Shape Arete)
Definition: sq_interface.cpp:164
SQ_INTERFACE::NbBranchements
int NbBranchements
Definition: sq_interface.h:60
SQ_INTERFACE::Branche
SQ_BRANCHE * Branche
Definition: sq_interface.h:58
SQ_INTERFACE::get_nb_branchements
int get_nb_branchements()
Definition: sq_interface.cpp:80
SQ_JONCTION::get_nb_branches
int get_nb_branches()
Definition: sq_jonction.cpp:60
OT_VECTEUR_3D
Definition: ot_mathematique.h:94
SQ_INTERFACE::ajouter_lien
void ajouter_lien(double *P, SQ_INTERFACE *Interface)
Definition: sq_interface.cpp:178
SQ_INTERFACE::get_nb_liens
int get_nb_liens()
Definition: sq_interface.cpp:136
SQ_JONCTION
Definition: sq_jonction.h:30
SQ_INTERFACE::get_lien_interface
SQ_INTERFACE * get_lien_interface(int i)
Definition: sq_interface.cpp:122
SQ_INTERFACE::~SQ_INTERFACE
virtual ~SQ_INTERFACE()
Definition: sq_interface.cpp:52
SQ_INTERFACE::LstLiens
std::vector< std::pair< double *, SQ_INTERFACE * > > LstLiens
Definition: sq_interface.h:63
SQ_INTERFACE::Jonction
SQ_JONCTION * Jonction
Definition: sq_interface.h:57
P
#define P(i, j)
SQ_INTERFACE::get_branche
SQ_BRANCHE * get_branche()
Definition: sq_interface.cpp:65