ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/geometrie/src/mg_triangle.h
Revision: 283
Committed: Tue Sep 13 21:11:20 2011 UTC (13 years, 8 months ago) by francois
Content type: text/plain
File size: 3112 byte(s)
Log Message:
structure de l'écriture

File Contents

# User Rev Content
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_triangle.h
16     //
17     //------------------------------------------------------------
18     //------------------------------------------------------------
19     // COPYRIGHT 2000
20     // Version du 02/03/2006 � 11H22
21     //------------------------------------------------------------
22     //------------------------------------------------------------
23     #ifndef _MGTRIANGLE_
24     #define _MGTRIANGLE_
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_maillage.h"
39     #include "mg_segment.h"
40     #include "mg_noeud.h"
41     #include "ot_reference.h"
42     #include "ot_boite_2D.h"
43     #include "ot_boite_3D.h"
44    
45     const unsigned int IDMG_TRIANGLE=300;
46    
47    
48    
49     class DLLPORTGEOMETRIE MG_TRIANGLE : public MG_ELEMENT_MAILLAGE , public OT_REFERENCE
50     {
51     public:
52     MG_TRIANGLE(unsigned long num,MG_ELEMENT_TOPOLOGIQUE* topo,class MG_NOEUD *mgnoeud1,class MG_NOEUD *mgnoeud2,class MG_NOEUD *mgnoeud3,class MG_SEGMENT* mgsegment1,class MG_SEGMENT* mgsegment2,class MG_SEGMENT* mgsegment3,int origine );
53     MG_TRIANGLE(MG_ELEMENT_TOPOLOGIQUE* topo,class MG_NOEUD *mgnoeud1,class MG_NOEUD *mgnoeud2,class MG_NOEUD *mgnoeud3,class MG_SEGMENT* mgsegment1,class MG_SEGMENT* mgsegment2,class MG_SEGMENT* mgsegment3,int origine);
54     MG_TRIANGLE(MG_TRIANGLE& mdd);
55     virtual ~MG_TRIANGLE();
56     virtual MG_TRIANGLE* dupliquer(class MG_MAILLAGE *mgmai,long decalage);
57    
58    
59     virtual int get_type_entite(void);
60    
61     virtual MG_NOEUD* get_noeud1(void);
62     virtual MG_NOEUD* get_noeud2(void);
63     virtual MG_NOEUD* get_noeud3(void);
64     virtual MG_SEGMENT* get_segment1(void);
65     virtual MG_SEGMENT* get_segment2(void);
66     virtual MG_SEGMENT* get_segment3(void);
67    
68     virtual class BOITE_2D get_boite_2D(double periodeu,double periodev);
69     virtual class BOITE_3D get_boite_3D(void);
70     virtual int get_dimension(void);
71     virtual void enregistrer(std::ostream& o);
72    
73     virtual double get_longueur(void);
74     TPL_LISTE_ENTITE<class MG_TETRA*> *get_lien_tetra(void);
75    
76     virtual void extrapoler_solution_noeud(void);
77    
78     protected:
79    
80     void init_triangle(void);
81     class MG_NOEUD* noeud1;
82     class MG_NOEUD* noeud2;
83     class MG_NOEUD* noeud3;
84    
85     class MG_SEGMENT* segment1;
86     class MG_SEGMENT* segment2;
87     class MG_SEGMENT* segment3;
88    
89     double longueur;
90     TPL_LISTE_ENTITE<class MG_TETRA*> tetra;
91    
92     };
93    
94    
95    
96    
97    
98    
99     #endif
100    
101