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 |
|
|
//####// occ_arete.cpp |
15 |
|
|
//####// |
16 |
|
|
//####//------------------------------------------------------------ |
17 |
|
|
//####//------------------------------------------------------------ |
18 |
|
|
//####// COPYRIGHT 2000-2024 |
19 |
|
|
//####// jeu 13 jun 2024 11:58:54 EDT |
20 |
|
|
//####//------------------------------------------------------------ |
21 |
|
|
//####//------------------------------------------------------------ |
22 |
couturad |
907 |
#include "gestionversion.h" |
23 |
|
|
#ifdef ALL_OCC |
24 |
|
|
#include "occ_arete.h" |
25 |
|
|
|
26 |
couturad |
951 |
OCC_ARETE::OCC_ARETE(std::string idori, MG_COURBE* crb, int sens, TopoDS_Edge edge,OCC_FONCTION* occ_fonction): MG_ARETE(idori, crb, sens) |
27 |
couturad |
907 |
{ |
28 |
|
|
m_edge=edge; |
29 |
|
|
m_occ_fonction=occ_fonction; |
30 |
|
|
} |
31 |
|
|
|
32 |
couturad |
951 |
OCC_ARETE::OCC_ARETE(std::string idori, long unsigned int num, MG_COURBE* crb, int sens, TopoDS_Edge edge,OCC_FONCTION* occ_fonction): MG_ARETE(idori, num, crb, sens) |
33 |
couturad |
907 |
{ |
34 |
|
|
m_edge=edge; |
35 |
|
|
m_occ_fonction=occ_fonction; |
36 |
|
|
} |
37 |
|
|
|
38 |
couturad |
951 |
OCC_ARETE::OCC_ARETE(std::string idori, long unsigned int num, MG_COSOMMET* mgcosom1, MG_COSOMMET* mgcosom2, MG_COURBE* crb, int sens, TopoDS_Edge edge,OCC_FONCTION* occ_fonction): MG_ARETE(idori, num, mgcosom1, mgcosom2, crb, sens) |
39 |
couturad |
907 |
{ |
40 |
|
|
m_edge=edge; |
41 |
|
|
m_occ_fonction=occ_fonction; |
42 |
|
|
} |
43 |
|
|
|
44 |
couturad |
951 |
OCC_ARETE::OCC_ARETE(std::string idori, MG_COSOMMET* mgcosom1, MG_COSOMMET* mgcosom2, MG_COURBE* crb, int sens, TopoDS_Edge edge,OCC_FONCTION* occ_fonction): MG_ARETE(idori, mgcosom1, mgcosom2, crb, sens) |
45 |
couturad |
907 |
{ |
46 |
|
|
m_edge=edge; |
47 |
|
|
m_occ_fonction=occ_fonction; |
48 |
|
|
} |
49 |
|
|
|
50 |
|
|
OCC_ARETE::OCC_ARETE(OCC_ARETE& mdd): MG_ARETE(mdd) |
51 |
|
|
{ |
52 |
|
|
m_edge=mdd.m_edge; |
53 |
|
|
m_occ_fonction=mdd.m_occ_fonction; |
54 |
|
|
} |
55 |
|
|
|
56 |
|
|
OCC_ARETE::~OCC_ARETE() |
57 |
|
|
{ |
58 |
|
|
if(m_occ_fonction->get_version()=="OCCV2017") |
59 |
|
|
{ |
60 |
|
|
OCC_FONCTION_V2017* occ_fonction_v2017 = (OCC_FONCTION_V2017*)m_occ_fonction; |
61 |
|
|
occ_fonction_v2017->supprimer_OCC_ARETE(this); |
62 |
|
|
} |
63 |
|
|
} |
64 |
|
|
|
65 |
|
|
TopoDS_Edge OCC_ARETE::get_TopoDS_Edge(void) |
66 |
|
|
{ |
67 |
|
|
return m_edge; |
68 |
|
|
} |
69 |
|
|
|
70 |
|
|
void OCC_ARETE::change_TopoDS_Edge(TopoDS_Edge edge) |
71 |
|
|
{ |
72 |
|
|
m_edge=edge; |
73 |
|
|
} |
74 |
|
|
|
75 |
|
|
void OCC_ARETE::enregistrer(ostream& o, double version) |
76 |
|
|
{ |
77 |
|
|
MG_ARETE::enregistrer(o,version); |
78 |
|
|
} |
79 |
|
|
|
80 |
|
|
|
81 |
|
|
|
82 |
|
|
|
83 |
francois |
1158 |
#endif |