ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/geometrie/src/mg_sommet.h
Revision: 5
Committed: Tue Jun 12 20:26:34 2007 UTC (17 years, 11 months ago)
Content type: text/plain
Original Path: magic/lib/geometrie/geometrie/src/mg_sommet.h
File size: 2106 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     // 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