ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/mtu/src/occ_sommet.cpp
Revision: 1114
Committed: Wed May 3 18:29:42 2023 UTC (2 years ago) by francois
File size: 1076 byte(s)
Log Message:
Étape 2  : remplacement du nom geometrie par mtu pour corresponde à la publi de mtu

File Contents

# User Rev Content
1 couturad 907 #include "gestionversion.h"
2     #ifdef ALL_OCC
3     #include "occ_sommet.h"
4    
5 couturad 951 OCC_SOMMET::OCC_SOMMET(std::string idori, MG_POINT* mgpt, TopoDS_Vertex vertex,OCC_FONCTION* occ_fonction): MG_SOMMET(idori, mgpt)
6 couturad 907 {
7     m_vertex=vertex;
8     m_occ_fonction=occ_fonction;
9     }
10    
11 couturad 951 OCC_SOMMET::OCC_SOMMET(std::string idori, long unsigned int num, MG_POINT* mgpt, TopoDS_Vertex vertex,OCC_FONCTION* occ_fonction): MG_SOMMET(idori, num, mgpt)
12 couturad 907 {
13     m_vertex=vertex;
14     m_occ_fonction=occ_fonction;
15     }
16     OCC_SOMMET::OCC_SOMMET(OCC_SOMMET& mdd): MG_SOMMET(mdd)
17     {
18     m_vertex=mdd.m_vertex;
19     m_occ_fonction=mdd.m_occ_fonction;
20     }
21    
22     OCC_SOMMET::~OCC_SOMMET()
23     {
24     if(m_occ_fonction->get_version()=="OCCV2017")
25     {
26     OCC_FONCTION_V2017* occ_fonction_v2017 = (OCC_FONCTION_V2017*)m_occ_fonction;
27     occ_fonction_v2017->supprimer_OCC_SOMMET(this);
28     }
29     }
30    
31     TopoDS_Vertex OCC_SOMMET::get_TopoDS_Vertex(void)
32     {
33     return m_vertex;
34     }
35    
36     void OCC_SOMMET::change_TopoDS_Vertex(TopoDS_Vertex vertex)
37     {
38     m_vertex=vertex;
39     }
40    
41     void OCC_SOMMET::enregistrer(ostream& o, double version)
42     {
43     MG_SOMMET::enregistrer(o,version);
44     }
45    
46    
47    
48     #endif