ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/mtu/src/occ_sommet.cpp
Revision: 1158
Committed: Thu Jun 13 22:18:49 2024 UTC (11 months, 1 week ago) by francois
File size: 2152 byte(s)
Log Message:
compatibilité Ubuntu 22.04
Suppression des refeences à Windows
Ajout d'une banière

File Contents

# User Rev Content
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_sommet.cpp
15     //####//
16     //####//------------------------------------------------------------
17     //####//------------------------------------------------------------
18     //####// COPYRIGHT 2000-2024
19     //####// jeu 13 jun 2024 11:58:55 EDT
20     //####//------------------------------------------------------------
21     //####//------------------------------------------------------------
22 couturad 907 #include "gestionversion.h"
23     #ifdef ALL_OCC
24     #include "occ_sommet.h"
25    
26 couturad 951 OCC_SOMMET::OCC_SOMMET(std::string idori, MG_POINT* mgpt, TopoDS_Vertex vertex,OCC_FONCTION* occ_fonction): MG_SOMMET(idori, mgpt)
27 couturad 907 {
28     m_vertex=vertex;
29     m_occ_fonction=occ_fonction;
30     }
31    
32 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)
33 couturad 907 {
34     m_vertex=vertex;
35     m_occ_fonction=occ_fonction;
36     }
37     OCC_SOMMET::OCC_SOMMET(OCC_SOMMET& mdd): MG_SOMMET(mdd)
38     {
39     m_vertex=mdd.m_vertex;
40     m_occ_fonction=mdd.m_occ_fonction;
41     }
42    
43     OCC_SOMMET::~OCC_SOMMET()
44     {
45     if(m_occ_fonction->get_version()=="OCCV2017")
46     {
47     OCC_FONCTION_V2017* occ_fonction_v2017 = (OCC_FONCTION_V2017*)m_occ_fonction;
48     occ_fonction_v2017->supprimer_OCC_SOMMET(this);
49     }
50     }
51    
52     TopoDS_Vertex OCC_SOMMET::get_TopoDS_Vertex(void)
53     {
54     return m_vertex;
55     }
56    
57     void OCC_SOMMET::change_TopoDS_Vertex(TopoDS_Vertex vertex)
58     {
59     m_vertex=vertex;
60     }
61    
62     void OCC_SOMMET::enregistrer(ostream& o, double version)
63     {
64     MG_SOMMET::enregistrer(o,version);
65     }
66    
67    
68    
69 francois 1158 #endif