1 |
francois |
1156 |
//####//------------------------------------------------------------ |
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 |
|
|
//####// stedgecurve.cpp |
15 |
|
|
//####// |
16 |
|
|
//####//------------------------------------------------------------ |
17 |
|
|
//####//------------------------------------------------------------ |
18 |
|
|
//####// COPYRIGHT 2000-2024 |
19 |
|
|
//####// jeu 13 jun 2024 11:53:59 EDT |
20 |
|
|
//####//------------------------------------------------------------ |
21 |
|
|
//####//------------------------------------------------------------ |
22 |
francois |
283 |
|
23 |
|
|
|
24 |
|
|
|
25 |
|
|
#include <string.h> |
26 |
|
|
#include "st_ident.h" |
27 |
|
|
#include "stedgecurve.h" |
28 |
|
|
#include "st_gestionnaire.h" |
29 |
|
|
|
30 |
|
|
|
31 |
|
|
|
32 |
|
|
ST_EDGE_CURVE::ST_EDGE_CURVE(long LigneCourante,std::string idori,long som1,long som2,long curve,int sens):ST_IDENTIFICATEUR(LigneCourante,idori),id_curve(curve),id_sommet1(som1),id_sommet2(som2),orientation(sens) |
33 |
|
|
{ |
34 |
|
|
} |
35 |
|
|
|
36 |
|
|
|
37 |
|
|
|
38 |
|
|
long ST_EDGE_CURVE::get_id_curve(void) |
39 |
|
|
{ |
40 |
|
|
return id_curve; |
41 |
|
|
} |
42 |
|
|
long ST_EDGE_CURVE::get_id_sommet1(void) |
43 |
|
|
{ |
44 |
|
|
return id_sommet1; |
45 |
|
|
} |
46 |
|
|
long ST_EDGE_CURVE::get_id_sommet2(void) |
47 |
|
|
{ |
48 |
|
|
return id_sommet2; |
49 |
|
|
} |
50 |
|
|
int ST_EDGE_CURVE::get_orientation(void) |
51 |
|
|
{ |
52 |
|
|
return orientation; |
53 |
|
|
} |
54 |
|
|
|
55 |
|
|
|
56 |
|
|
void ST_EDGE_CURVE::est_util(ST_GESTIONNAIRE* gest) |
57 |
|
|
{ |
58 |
|
|
util=true; |
59 |
|
|
gest->lst_courbe.getid(id_curve)->est_util(gest); |
60 |
|
|
gest->lst_vertex.getid(id_sommet1)->est_util(gest); |
61 |
|
|
gest->lst_vertex.getid(id_sommet2)->est_util(gest); |
62 |
|
|
} |