ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/mailleur/src/m3d_noeud.cpp
Revision: 551
Committed: Fri Sep 26 19:32:11 2014 UTC (10 years, 7 months ago) by francois
File size: 2010 byte(s)
Log Message:
Preparation pour Mailleur3D apres une erreur

File Contents

# User Rev Content
1 francois 283 //------------------------------------------------------------
2     //------------------------------------------------------------
3     // MAGiC
4     // Jean Christophe Cuilli�re et Vincent FRANCOIS
5     // D�partement de G�nie M�canique - UQTR
6     //------------------------------------------------------------
7     // Le projet MAGIC est un projet de recherche du d�partement
8     // de g�nie m�canique de l'Universit� du Qu�bec �
9     // Trois Rivi�res
10     // Les librairies ne peuvent �tre utilis�es sans l'accord
11     // des auteurs (contact : francois@uqtr.ca)
12     //------------------------------------------------------------
13     //------------------------------------------------------------
14     //
15     // m3d_noeud.cpp
16     //
17     //------------------------------------------------------------
18     //------------------------------------------------------------
19     // COPYRIGHT 2000
20     // Version du 02/03/2006 � 11H23
21     //------------------------------------------------------------
22     //------------------------------------------------------------
23    
24    
25     #include "gestionversion.h"
26    
27     //#pragma hdrstop
28    
29     #include "m3d_noeud.h"
30     #include "const.h"
31     //---------------------------------------------------------------------------
32    
33     //#pragma package(smart_init)
34    
35    
36    
37    
38    
39     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(ACTIF)
40     {
41     }
42    
43     M3D_NOEUD::M3D_NOEUD(MG_ELEMENT_TOPOLOGIQUE* topo,double xx,double yy,double zz,int origine):MG_NOEUD(topo,xx,yy,zz,origine),etat(ACTIF)
44     {
45     }
46    
47    
48     M3D_NOEUD::M3D_NOEUD(M3D_NOEUD& mdd):MG_NOEUD(mdd),etat(mdd.etat)
49     {
50     }
51    
52    
53     M3D_NOEUD::~M3D_NOEUD()
54     {
55     }
56    
57    
58     int M3D_NOEUD::get_type_entite()
59     {
60     return IDM3D_NOEUD;
61     }
62    
63    
64     void M3D_NOEUD::etat_detruit(void)
65     {
66     etat=DETRUIT;
67     }
68    
69 francois 287 void M3D_NOEUD::etat_inactif(void)
70     {
71     etat=INACTIF;
72     }
73 francois 283 void M3D_NOEUD::etat_actif(void)
74     {
75     etat=ACTIF;
76     }
77    
78     int M3D_NOEUD::get_etat(void)
79     {
80    
81     return etat;
82     }
83 francois 551 void M3D_NOEUD::enregistrer(std::ostream& o)
84     {
85     if (etat!=DETRUIT) MG_NOEUD::enregistrer(o);
86     }