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 |
|
|
// ctvol_noeud.h |
16 |
|
|
// |
17 |
|
|
//------------------------------------------------------------ |
18 |
|
|
//------------------------------------------------------------ |
19 |
|
|
// COPYRIGHT 2000 |
20 |
|
|
// Version du 02/03/2006 � 11H21 |
21 |
|
|
//------------------------------------------------------------ |
22 |
|
|
//------------------------------------------------------------ |
23 |
|
|
|
24 |
|
|
#ifndef ctvol_noeudH |
25 |
|
|
#define ctvol_noeudH |
26 |
|
|
//--------------------------------------------------------------------------- |
27 |
|
|
|
28 |
|
|
|
29 |
|
|
|
30 |
|
|
class CTVOL_NOEUD |
31 |
|
|
{ |
32 |
|
|
public: |
33 |
|
|
|
34 |
|
|
CTVOL_NOEUD(class MG_NOEUD* noeud); |
35 |
|
|
~CTVOL_NOEUD(); |
36 |
|
|
|
37 |
|
|
class MG_NOEUD* get_noeud(void); |
38 |
|
|
|
39 |
|
|
double get_densite(void); |
40 |
|
|
void change_densite(double dens); |
41 |
|
|
|
42 |
|
|
long get_id(); |
43 |
|
|
void incremente_nb_segment(int nb=1); |
44 |
|
|
int get_nb_segment(void); |
45 |
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
|
|
private: |
49 |
|
|
class MG_NOEUD* mgnoeud; |
50 |
|
|
double densite; |
51 |
|
|
int nb_segment_connecte; |
52 |
|
|
|
53 |
|
|
}; |
54 |
|
|
|
55 |
|
|
|
56 |
|
|
|
57 |
|
|
#endif |