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 |
|
|
// mg_boucle.h |
16 |
|
|
// |
17 |
|
|
//------------------------------------------------------------ |
18 |
|
|
//------------------------------------------------------------ |
19 |
|
|
// COPYRIGHT 2000 |
20 |
|
|
// Version du 02/03/2006 � 11H22 |
21 |
|
|
//------------------------------------------------------------ |
22 |
|
|
//------------------------------------------------------------ |
23 |
|
|
#ifndef __MGBOUCLE_ |
24 |
|
|
#define __MGBOUCLE_ |
25 |
|
|
|
26 |
|
|
#ifdef WINDOWS_VERSION |
27 |
|
|
#ifdef BUILT_DLL_GEOMETRIE |
28 |
|
|
#define DLLPORTGEOMETRIE __declspec(dllexport) |
29 |
|
|
#else |
30 |
|
|
#define DLLPORTGEOMETRIE __declspec(dllimport) |
31 |
|
|
#endif |
32 |
|
|
#else |
33 |
|
|
#define DLLPORTGEOMETRIE |
34 |
|
|
#endif |
35 |
|
|
|
36 |
|
|
|
37 |
|
|
#include <vector> |
38 |
|
|
#include "mg_element_cotopologique.h" |
39 |
|
|
#include "mg_coarete.h" |
40 |
|
|
#include "mg_face.h" |
41 |
|
|
#include "mg_poutre.h" |
42 |
|
|
|
43 |
|
|
|
44 |
|
|
class DLLPORTGEOMETRIE MG_BOUCLE:public MG_ELEMENT_COTOPOLOGIQUE |
45 |
|
|
{ |
46 |
|
|
public: |
47 |
|
|
MG_BOUCLE(unsigned long num,class MG_POUTRE* mgpoutre); |
48 |
|
|
MG_BOUCLE(class MG_POUTRE* mgpoutre); |
49 |
|
|
MG_BOUCLE(unsigned long num,class MG_FACE* mgface); |
50 |
|
|
MG_BOUCLE(class MG_FACE* mgface); |
51 |
|
|
MG_BOUCLE(MG_BOUCLE& mdd); |
52 |
|
|
virtual ~MG_BOUCLE(); |
53 |
|
|
|
54 |
|
|
virtual void ajouter_mg_coarete(class MG_COARETE* mgcoarete); |
55 |
|
|
virtual int get_nb_mg_coarete(void); |
56 |
|
|
virtual MG_COARETE* get_mg_coarete(int num); |
57 |
|
|
virtual void supprimer_mg_coarete(class MG_COARETE* mgcoarete); |
58 |
|
|
virtual MG_COARETE* get_mg_coarete_suivante(MG_COARETE* coare); |
59 |
|
|
virtual MG_COARETE* get_mg_coarete_precedente(MG_COARETE* coare); |
60 |
|
|
virtual MG_FACE* get_mg_face(void); |
61 |
francois |
763 |
virtual void enregistrer(std::ostream& o,double version); |
62 |
francois |
283 |
private: |
63 |
|
|
MG_FACE* face; |
64 |
|
|
MG_POUTRE* poutre; |
65 |
|
|
std::vector<MG_COARETE*> lst_coarete; |
66 |
|
|
}; |
67 |
|
|
|
68 |
|
|
|
69 |
|
|
|
70 |
|
|
#endif |
71 |
|
|
|
72 |
|
|
|
73 |
|
|
|
74 |
|
|
|