MAGiC
V5.0
Mailleurs Automatiques de Géometries intégrés à la Cao
stedgeloop.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
//####// stedgeloop.cpp
15
//####//
16
//####//------------------------------------------------------------
17
//####//------------------------------------------------------------
18
//####// COPYRIGHT 2000-2024
19
//####// jeu 13 jun 2024 11:53:59 EDT
20
//####//------------------------------------------------------------
21
//####//------------------------------------------------------------
22
23
24
25
#include <string.h>
26
#include <vector>
27
#include "
st_ident.h
"
28
#include "
stedgeloop.h
"
29
#include "
st_gestionnaire.h
"
30
31
32
33
ST_EDGE_LOOP::ST_EDGE_LOOP
(
long
LigneCourante,std::string idori,std::vector<long> *edge_loop):
ST_IDENTIFICATEUR
(LigneCourante,idori)
34
{
35
nb_oriented_edge
=edge_loop->size();
36
id_oriented_edge
=
new
long
[
nb_oriented_edge
];
37
for
(
long
i=0;i<
nb_oriented_edge
;i++)
38
id_oriented_edge
[i]=(*edge_loop)[i];
39
}
40
41
ST_EDGE_LOOP::~ST_EDGE_LOOP
()
42
{
43
delete
[]
id_oriented_edge
;
44
}
45
46
47
long
ST_EDGE_LOOP::get_nb_oriented_edge
(
void
)
48
{
49
return
nb_oriented_edge
;
50
}
51
long
ST_EDGE_LOOP::get_id_oriented_edge
(
long
numero)
52
{
53
return
id_oriented_edge
[numero];
54
}
55
56
57
void
ST_EDGE_LOOP::est_util
(
ST_GESTIONNAIRE
* gest)
58
{
59
util
=
true
;
60
for
(
long
i=0;i<
nb_oriented_edge
;i++)
61
gest->
lst_oriedge
.
getid
(
id_oriented_edge
[i])->
est_util
(gest);
62
}
ST_GESTIONNAIRE
Definition:
st_gestionnaire.h:55
ST_ORIENTED_EDGE::est_util
virtual void est_util(class ST_GESTIONNAIRE *gest)
Definition:
storiedge.cpp:48
st_gestionnaire.h
stedgeloop.h
ST_EDGE_LOOP::ST_EDGE_LOOP
ST_EDGE_LOOP(long LigneCourante, std::string idori, std::vector< long > *edge_lopp)
Definition:
stedgeloop.cpp:33
ST_EDGE_LOOP::id_oriented_edge
long * id_oriented_edge
Definition:
stedgeloop.h:46
st_ident.h
ST_EDGE_LOOP::nb_oriented_edge
long nb_oriented_edge
Definition:
stedgeloop.h:45
ST_IDENTIFICATEUR
Definition:
st_ident.h:32
ST_GESTIONNAIRE::lst_oriedge
TPL_MAP_ENTITE< class ST_ORIENTED_EDGE * > lst_oriedge
Definition:
st_gestionnaire.h:72
TPL_MAP_ENTITE::getid
virtual X getid(unsigned long num)
Definition:
tpl_map_entite.h:96
ST_EDGE_LOOP::est_util
virtual void est_util(class ST_GESTIONNAIRE *gest)
Definition:
stedgeloop.cpp:57
ST_EDGE_LOOP::get_id_oriented_edge
virtual long get_id_oriented_edge(long numero)
Definition:
stedgeloop.cpp:51
ST_IDENTIFICATEUR::util
bool util
Definition:
st_ident.h:46
ST_EDGE_LOOP::~ST_EDGE_LOOP
~ST_EDGE_LOOP()
Definition:
stedgeloop.cpp:41
ST_EDGE_LOOP::get_nb_oriented_edge
virtual long get_nb_oriented_edge(void)
Definition:
stedgeloop.cpp:47
home
francois
tmp
addin
step
src
stedgeloop.cpp
Généré le Samedi 2 Août 2025 23:00:10 pour MAGiC par
1.8.17