| 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_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 |
|
|
virtual VCT& get_vectorisation(void); |
| 58 |
|
|
virtual void get_topologie_sousjacente(TPL_MAP_ENTITE<MG_ELEMENT_TOPOLOGIQUE*> *lst); |
| 59 |
francois |
526 |
virtual bool est_un_sommet_noeud(void); |
| 60 |
francois |
283 |
virtual int get_dimension(void); |
| 61 |
francois |
763 |
virtual void enregistrer(std::ostream& o,double version); |
| 62 |
francois |
283 |
private: |
| 63 |
|
|
MG_POINT* point; |
| 64 |
|
|
std::vector<class MG_COSOMMET*> lst_cosommet; |
| 65 |
|
|
class VCT_SOMMET* vect; |
| 66 |
|
|
|
| 67 |
|
|
}; |
| 68 |
|
|
|
| 69 |
|
|
|
| 70 |
|
|
|
| 71 |
|
|
#endif |
| 72 |
|
|
|