ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/carte/src/ctvol_noeud.cpp
Revision: 5
Committed: Tue Jun 12 20:26:34 2007 UTC (17 years, 11 months ago)
Original Path: magic/lib/carte/carte/src/ctvol_noeud.cpp
File size: 1832 byte(s)
Log Message:

File Contents

# User Rev Content
1 5 //------------------------------------------------------------
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     // ctvol_noeud.cpp
16     //
17     //------------------------------------------------------------
18     //------------------------------------------------------------
19     // COPYRIGHT 2000
20     // Version du 02/03/2006 à 11H21
21     //------------------------------------------------------------
22     //------------------------------------------------------------
23    
24    
25     #include "gestionversion.h"
26    
27     //#pragma hdrstop
28    
29     #include "mg_noeud.h"
30     #include "ctvol_noeud.h"
31    
32     //---------------------------------------------------------------------------
33    
34     //#pragma package(smart_init)
35    
36    
37    
38    
39     CTVOL_NOEUD::CTVOL_NOEUD(class MG_NOEUD* noeud):mgnoeud(noeud),nb_segment_connecte(0),densite(0.)
40     {
41     }
42    
43     CTVOL_NOEUD::~CTVOL_NOEUD()
44     {
45     }
46    
47     class MG_NOEUD* CTVOL_NOEUD::get_noeud(void)
48     {
49     return mgnoeud;
50     }
51    
52     double CTVOL_NOEUD::get_densite(void)
53     {
54     return densite;
55     }
56    
57     void CTVOL_NOEUD::change_densite(double dens)
58     {
59     densite=dens;
60     }
61    
62     long CTVOL_NOEUD::get_id()
63     {
64     return mgnoeud->get_id();
65     }
66    
67    
68     void CTVOL_NOEUD::incremente_nb_segment(int nb)
69     {
70     nb_segment_connecte=nb_segment_connecte+nb;
71     }
72    
73     int CTVOL_NOEUD::get_nb_segment(void)
74     {
75     return nb_segment_connecte;
76     }
77    
78