1 |
francois |
283 |
//------------------------------------------------------------ |
2 |
|
|
//------------------------------------------------------------ |
3 |
|
|
// MAGiC |
4 |
|
|
// Jean Christophe Cuilli�re et Vincent FRANCOIS |
5 |
|
|
// D�partement de G�nie M�canique - UQTR |
6 |
|
|
//------------------------------------------------------------ |
7 |
|
|
// Le projet MAGIC est un projet de recherche du d�partement |
8 |
|
|
// de g�nie m�canique de l'Universit� du Qu�bec � |
9 |
|
|
// Trois Rivi�res |
10 |
|
|
// Les librairies ne peuvent �tre utilis�es sans l'accord |
11 |
|
|
// des auteurs (contact : francois@uqtr.ca) |
12 |
|
|
//------------------------------------------------------------ |
13 |
|
|
//------------------------------------------------------------ |
14 |
|
|
// |
15 |
|
|
// stedgeloop.cpp |
16 |
|
|
// |
17 |
|
|
//------------------------------------------------------------ |
18 |
|
|
//------------------------------------------------------------ |
19 |
|
|
// COPYRIGHT 2000 |
20 |
|
|
// Version du 02/03/2006 � 11H24 |
21 |
|
|
//------------------------------------------------------------ |
22 |
|
|
//------------------------------------------------------------ |
23 |
|
|
|
24 |
|
|
|
25 |
|
|
#include "gestionversion.h" |
26 |
|
|
|
27 |
|
|
#include <string.h> |
28 |
|
|
#include <vector> |
29 |
|
|
#include "st_ident.h" |
30 |
|
|
#include "stedgeloop.h" |
31 |
|
|
#include "st_gestionnaire.h" |
32 |
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
|
|
ST_EDGE_LOOP::ST_EDGE_LOOP(long LigneCourante,std::string idori,std::vector<long> *edge_loop):ST_IDENTIFICATEUR(LigneCourante,idori) |
36 |
|
|
{ |
37 |
|
|
nb_oriented_edge=edge_loop->size(); |
38 |
|
|
id_oriented_edge=new long[nb_oriented_edge]; |
39 |
|
|
for (long i=0;i<nb_oriented_edge;i++) |
40 |
|
|
id_oriented_edge[i]=(*edge_loop)[i]; |
41 |
|
|
} |
42 |
|
|
|
43 |
|
|
ST_EDGE_LOOP::~ST_EDGE_LOOP() |
44 |
|
|
{ |
45 |
|
|
delete [] id_oriented_edge; |
46 |
|
|
} |
47 |
|
|
|
48 |
|
|
|
49 |
|
|
long ST_EDGE_LOOP::get_nb_oriented_edge(void) |
50 |
|
|
{ |
51 |
|
|
return nb_oriented_edge; |
52 |
|
|
} |
53 |
|
|
long ST_EDGE_LOOP::get_id_oriented_edge(long numero) |
54 |
|
|
{ |
55 |
|
|
return id_oriented_edge[numero]; |
56 |
|
|
} |
57 |
|
|
|
58 |
|
|
|
59 |
|
|
void ST_EDGE_LOOP::est_util(ST_GESTIONNAIRE* gest) |
60 |
|
|
{ |
61 |
|
|
util=true; |
62 |
|
|
for (long i=0;i<nb_oriented_edge;i++) |
63 |
|
|
gest->lst_oriedge.getid(id_oriented_edge[i])->est_util(gest); |
64 |
|
|
} |