ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/reconstruction/src/sq_interface.cpp
Revision: 1158
Committed: Thu Jun 13 22:18:49 2024 UTC (11 months, 1 week ago) by francois
File size: 3004 byte(s)
Log Message:
compatibilité Ubuntu 22.04
Suppression des refeences à Windows
Ajout d'une banière

File Contents

# User Rev Content
1 francois 1158 //####//------------------------------------------------------------
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 amroune 1090 #include "sq_interface.h"
23    
24     SQ_INTERFACE::SQ_INTERFACE()
25     {
26     }
27    
28    
29    
30     SQ_INTERFACE::SQ_INTERFACE(SQ_JONCTION* Jonc,SQ_BRANCHE* Bran)
31     {
32     Jonction=Jonc;
33     Branche=Bran;
34     NbBranchements=Jonction->get_nb_branches()-1;
35     }
36    
37    
38    
39     SQ_INTERFACE::SQ_INTERFACE(SQ_INTERFACE& mdd)
40     {
41     Jonction=mdd.Jonction;
42     Branche=mdd.Branche;
43     NoCentral=mdd.NoCentral;
44     NbBranchements=mdd.NbBranchements;
45     LstDir=mdd.LstDir;
46     LstSections=mdd.LstSections;
47     LstAretes=mdd.LstAretes;
48     }
49    
50    
51    
52     SQ_INTERFACE::~SQ_INTERFACE()
53     {
54     }
55    
56    
57    
58     SQ_JONCTION* SQ_INTERFACE::get_jonction()
59     {
60     return Jonction;
61     }
62    
63    
64    
65     SQ_BRANCHE* SQ_INTERFACE::get_branche()
66     {
67     return Branche;
68     }
69    
70    
71    
72    
73     SQ_NOEUD* SQ_INTERFACE::get_no_central()
74     {
75     return NoCentral;
76     }
77    
78    
79    
80     int SQ_INTERFACE::get_nb_branchements()
81     {
82     return NbBranchements;
83     }
84    
85    
86    
87     OT_VECTEUR_3D SQ_INTERFACE::get_dir(int i)
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    
101     int SQ_INTERFACE::get_nb_sections()
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    
115     int SQ_INTERFACE::get_nb_aretes()
116     {
117     return LstAretes.size();
118     }
119    
120    
121    
122     SQ_INTERFACE* SQ_INTERFACE::get_lien_interface(int i)
123     {
124     return LstLiens[i].second;
125     }
126    
127    
128    
129     double* SQ_INTERFACE::get_lien_projection(int i)
130     {
131     return LstLiens[i].first;
132     }
133    
134    
135    
136     int SQ_INTERFACE::get_nb_liens()
137     {
138     return LstLiens.size();
139     }
140    
141    
142    
143     void SQ_INTERFACE::change_no_central(SQ_NOEUD* NoCntrl)
144     {
145     NoCentral=NoCntrl;
146     }
147    
148    
149    
150     void SQ_INTERFACE::ajouter_dir(OT_VECTEUR_3D vec)
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 francois 1158 }