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 |
|
|
// mg_sommet.h
|
16 |
|
|
//
|
17 |
|
|
//------------------------------------------------------------
|
18 |
|
|
//------------------------------------------------------------
|
19 |
|
|
// COPYRIGHT 2000
|
20 |
|
|
// Version du 02/03/2006 à 11H22
|
21 |
|
|
//------------------------------------------------------------
|
22 |
|
|
//------------------------------------------------------------
|
23 |
|
|
#ifndef __MGSOMMET_
|
24 |
|
|
#define __MGSOMMET_
|
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 |
|
|
|
38 |
|
|
#include "mg_element_topologique.h"
|
39 |
|
|
#include "mg_point.h"
|
40 |
|
|
#include "mg_cosommet.h"
|
41 |
|
|
#include <vector>
|
42 |
|
|
#include "mg_noeud.h"
|
43 |
|
|
|
44 |
|
|
class DLLPORTGEOMETRIE MG_SOMMET:public MG_ELEMENT_TOPOLOGIQUE
|
45 |
|
|
{
|
46 |
|
|
public:
|
47 |
|
|
MG_SOMMET(std::string idori,unsigned long num,MG_POINT* mgpt);
|
48 |
|
|
MG_SOMMET(std::string idori,MG_POINT* mgpt);
|
49 |
|
|
MG_SOMMET(MG_SOMMET& mdd);
|
50 |
|
|
virtual ~MG_SOMMET();
|
51 |
|
|
|
52 |
|
|
virtual MG_POINT* get_point(void);
|
53 |
|
|
virtual void ajouter_mg_cosommet(class MG_COSOMMET* cosom);
|
54 |
|
|
virtual void supprimer_mg_cosommet(class MG_COSOMMET* cosom);
|
55 |
|
|
virtual int get_nb_mg_cosommet(void);
|
56 |
|
|
virtual MG_COSOMMET* get_mg_cosommet(int num);
|
57 |
|
|
|
58 |
|
|
|
59 |
|
|
virtual int get_dimension(void);
|
60 |
|
|
virtual void enregistrer(std::ostream& o);
|
61 |
|
|
private:
|
62 |
|
|
MG_POINT* point;
|
63 |
|
|
std::vector<class MG_COSOMMET*> lst_cosommet;
|
64 |
|
|
|
65 |
|
|
|
66 |
|
|
};
|
67 |
|
|
|
68 |
|
|
|
69 |
|
|
|
70 |
|
|
#endif
|
71 |
|
|
|