ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/mailleur/src/m3d_noeud.cpp
Revision: 1158
Committed: Thu Jun 13 22:18:49 2024 UTC (11 months ago) by francois
File size: 2162 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     //####// m3d_noeud.cpp
15     //####//
16     //####//------------------------------------------------------------
17     //####//------------------------------------------------------------
18     //####// COPYRIGHT 2000-2024
19     //####// jeu 13 jun 2024 11:58:55 EDT
20     //####//------------------------------------------------------------
21     //####//------------------------------------------------------------
22 francois 283
23    
24     #include "gestionversion.h"
25    
26    
27     #include "m3d_noeud.h"
28 francois 1149 #include "mg_definition.h"
29 francois 283
30    
31    
32    
33    
34    
35 francois 1149 M3D_NOEUD::M3D_NOEUD(unsigned long num,MG_ELEMENT_TOPOLOGIQUE* topo,double xx,double yy,double zz,int origine):MG_NOEUD(num,topo,xx,yy,zz,origine),etat(MAGIC::MAILLEURFRONTALETAT::ACTIF)
36 francois 283 {
37     }
38    
39 francois 1149 M3D_NOEUD::M3D_NOEUD(MG_ELEMENT_TOPOLOGIQUE* topo,double xx,double yy,double zz,int origine):MG_NOEUD(topo,xx,yy,zz,origine),etat(MAGIC::MAILLEURFRONTALETAT::ACTIF)
40 francois 283 {
41     }
42    
43    
44     M3D_NOEUD::M3D_NOEUD(M3D_NOEUD& mdd):MG_NOEUD(mdd),etat(mdd.etat)
45     {
46     }
47    
48    
49     M3D_NOEUD::~M3D_NOEUD()
50     {
51     }
52    
53    
54     int M3D_NOEUD::get_type_entite()
55     {
56 francois 1150 return MAGIC::TYPE_ENTITE::IDM3D_NOEUD;
57 francois 283 }
58    
59    
60     void M3D_NOEUD::etat_detruit(void)
61     {
62 francois 1149 etat=MAGIC::MAILLEURFRONTALETAT::DETRUIT;
63 francois 283 }
64    
65 francois 287 void M3D_NOEUD::etat_inactif(void)
66     {
67 francois 1149 etat=MAGIC::MAILLEURFRONTALETAT::INACTIF;
68 francois 287 }
69 francois 283 void M3D_NOEUD::etat_actif(void)
70     {
71 francois 1149 etat=MAGIC::MAILLEURFRONTALETAT::ACTIF;
72 francois 283 }
73    
74     int M3D_NOEUD::get_etat(void)
75     {
76    
77     return etat;
78     }
79 francois 763 void M3D_NOEUD::enregistrer(std::ostream& o,double version)
80 francois 551 {
81 francois 1149 if (etat!=MAGIC::MAILLEURFRONTALETAT::DETRUIT) MG_NOEUD::enregistrer(o,version);
82 francois 551 }