ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/app/VMM/win32/visu.h
Revision: 253
Committed: Tue Jul 13 19:40:46 2010 UTC (15 years, 2 months ago) by francois
Content type: text/plain
File size: 5260 byte(s)
Log Message:
changement de hiearchie et utilisation de ccmake + mise a jour

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     // visu.h
16     //
17     //------------------------------------------------------------
18     //------------------------------------------------------------
19     // COPYRIGHT 2000
20     // Version du 02/03/2006 à 11H25
21     //------------------------------------------------------------
22     //------------------------------------------------------------
23    
24     #ifndef visuH
25     #define visuH
26     //---------------------------------------------------------------------------
27     #include <Classes.hpp>
28     #include <Controls.hpp>
29     #include <StdCtrls.hpp>
30     #include <Forms.hpp>
31     #include <ExtCtrls.hpp>
32     #include <ComCtrls.hpp>
33     #include <ToolWin.hpp>
34     #include <Menus.hpp>
35     #include <Dialogs.hpp>
36     #include <gl\gl.h>
37     #include <gl\glu.h>
38 francois 62 #include "tpl_map_entite.h"
39     #include <vector.h>
40 5 //---------------------------------------------------------------------------
41 francois 62
42     class noeud
43 5 {
44 francois 62 public:
45     noeud() {};
46     ~noeud() {};
47 5
48 francois 62 unsigned long get_id() {return id;};
49    
50 5 double x;
51     double y;
52     double z;
53 francois 62 unsigned long id;
54 5 };
55    
56 francois 62
57     class segment
58 5 {
59 francois 62 public:
60     segment() {};
61     ~segment() {};
62    
63     noeud *n1;
64     noeud *n2;
65     unsigned long id;
66     unsigned long get_id() {return id;};
67 5 };
68    
69 francois 62
70     class triangle
71     {
72     public:
73     triangle() {};
74     ~triangle() {};
75    
76     noeud *n1;
77     noeud *n2;
78     noeud *n3;
79     unsigned long id;
80     unsigned long get_id() {return id;};
81     int active;
82     };
83    
84    
85    
86 5 class TVisufront : public TForm
87     {
88     __published: // IDE-managed Components
89     TTimer *Timer1;
90     TMainMenu *MainMenu1;
91     TOpenDialog *OpenDialog1;
92     TMenuItem *Visualisateurdefront1;
93     TMenuItem *Fichier1;
94     TMenuItem *Ouvrir1;
95     TMenuItem *Quitter1;
96     TMenuItem *N2;
97     TMenuItem *Front1;
98     TMenuItem *N1;
99     TMenuItem *Etat1;
100     TMenuItem *N3;
101     TMenuItem *Lecture2;
102     TMenuItem *N2D1;
103     TMenuItem *N3D1;
104     TMenuItem *Axe1;
105     TMenuItem *Arte1;
106     TMenuItem *Vitesse1;
107     TMenuItem *rapide1;
108     TMenuItem *moyen1;
109     TMenuItem *lent1;
110     TMenuItem *extrementlent1;
111     TMenuItem *Pause1;
112     TMenuItem *Continue1;
113     TMenuItem *Reprendre1;
114     TMenuItem *Arrt1;
115 francois 62 TMenuItem *FondBlanc1;
116 5 void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
117     void __fastcall FormCreate(TObject *Sender);
118     void __fastcall FormResize(TObject *Sender);
119     void __fastcall dessineaxe(void);
120     void __fastcall FormPaint(TObject *Sender);
121     void __fastcall transformation(TObject *Sender, WORD &Key,TShiftState Shift);
122     void __fastcall FormKeyDown(TObject *Sender, WORD &Key,
123     TShiftState Shift);
124     void __fastcall Timer1Timer(TObject *Sender);
125     void __fastcall Axe1Click(TObject *Sender);
126     void __fastcall Arte1Click(TObject *Sender);
127     void __fastcall Quitter1Click(TObject *Sender);
128     void __fastcall rapide1Click(TObject *Sender);
129     void __fastcall moyen1Click(TObject *Sender);
130     void __fastcall lent1Click(TObject *Sender);
131     void __fastcall extrementlent1Click(TObject *Sender);
132     void __fastcall Pause1Click(TObject *Sender);
133     void __fastcall Continue1Click(TObject *Sender);
134     void __fastcall Reprendre1Click(TObject *Sender);
135     void __fastcall Ouvrir1Click(TObject *Sender);
136     void __fastcall N2D1Click(TObject *Sender);
137     void __fastcall N3D1Click(TObject *Sender);
138     void __fastcall Arrt1Click(TObject *Sender);
139 francois 62 void __fastcall FondBlanc1Click(TObject *Sender);
140 5
141    
142    
143     private: // User declarations
144     public: // User declarations
145     __fastcall TVisufront(TComponent* Owner);
146     void __fastcall SetPixelFormatDescriptor(void);
147     void __fastcall recadre(double dx,double dy,int etat);
148     void __fastcall redess(void);
149     void __fastcall initvue(void);
150 francois 62 TPL_MAP_ENTITE<triangle*> lsttriangle;
151     TPL_MAP_ENTITE<noeud*> lstnoeud;
152     TPL_MAP_ENTITE<segment*> lstsegment;
153     vector<triangle*> lsttriaff;
154 5 HDC hdc;
155     HGLRC hrc;
156     double xmin,ymin,zmin;
157     double xmax,ymax,zmax;
158     double dx,dy;
159     int zoom;
160     int lire;
161     int numnoeud,numtriangle,numsegment,numtriangle2d,arretdemande;
162     AnsiString chemin;
163     static int nombre;
164 francois 62 int couche;
165     int RGB_r[14],RGB_g[14],RGB_b[14];
166 5 };
167     //---------------------------------------------------------------------------
168     extern PACKAGE TVisufront *Visufront;
169     //---------------------------------------------------------------------------
170     #endif