1 |
//------------------------------------------------------------ |
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_coquille.h |
16 |
// |
17 |
//------------------------------------------------------------ |
18 |
//------------------------------------------------------------ |
19 |
// COPYRIGHT 2000 |
20 |
// Version du 02/03/2006 � 11H22 |
21 |
//------------------------------------------------------------ |
22 |
//------------------------------------------------------------ |
23 |
#ifndef __MGCOQUILLE_ |
24 |
#define __MGCOQUILLE_ |
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_coface.h" |
40 |
#include "mg_volume.h" |
41 |
#include "mg_coque.h" |
42 |
|
43 |
|
44 |
class DLLPORTGEOMETRIE MG_COQUILLE:public MG_ELEMENT_COTOPOLOGIQUE |
45 |
{ |
46 |
public: |
47 |
MG_COQUILLE(unsigned long num,class MG_VOLUME* mgvol); |
48 |
MG_COQUILLE(unsigned long num,class MG_COQUE* mgcoq); |
49 |
MG_COQUILLE(class MG_VOLUME* mgvol); |
50 |
MG_COQUILLE(class MG_COQUE* mgcoq); |
51 |
MG_COQUILLE(MG_COQUILLE& mdd); |
52 |
virtual ~MG_COQUILLE(); |
53 |
|
54 |
virtual void ajouter_mg_coface(class MG_COFACE* mgcoface); |
55 |
virtual int get_nb_mg_coface(void); |
56 |
virtual MG_COFACE* get_mg_coface(int num); |
57 |
virtual MG_COFACE* get_mg_cofaceid(int num); |
58 |
virtual void supprimer_mg_coface(class MG_COFACE* mgcoface); |
59 |
virtual MG_VOLUME* get_mg_volume(void); |
60 |
virtual MG_COQUE* get_mg_coque(void); |
61 |
virtual void enregistrer(std::ostream& o,double version); |
62 |
|
63 |
protected: |
64 |
MG_VOLUME* volume; |
65 |
MG_COQUE* coque; |
66 |
std::vector<MG_COFACE*> lst_coface; |
67 |
}; |
68 |
|
69 |
|
70 |
|
71 |
#endif |
72 |
|
73 |
|