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 |
|
|
// mailleur.cpp |
16 |
|
|
// |
17 |
|
|
//------------------------------------------------------------ |
18 |
|
|
//------------------------------------------------------------ |
19 |
|
|
// COPYRIGHT 2000 |
20 |
|
|
// Version du 02/03/2006 � 11H23 |
21 |
|
|
//------------------------------------------------------------ |
22 |
|
|
//------------------------------------------------------------ |
23 |
|
|
|
24 |
|
|
|
25 |
|
|
#include "gestionversion.h" |
26 |
|
|
#include "mailleur.h" |
27 |
|
|
#include "ot_cpu.h" |
28 |
|
|
|
29 |
|
|
double MAILLEUR::epsilon=0.; |
30 |
|
|
double MAILLEUR::distance_maximale=0.; |
31 |
|
|
|
32 |
|
|
|
33 |
|
|
double MAILLEUR::priorite_metrique=0.65; |
34 |
|
|
|
35 |
|
|
|
36 |
|
|
MAILLEUR::MAILLEUR(OT_CPU* comp):affichageactif(0),compteur(comp) |
37 |
|
|
{ |
38 |
|
|
} |
39 |
|
|
|
40 |
|
|
|
41 |
|
|
MAILLEUR::~MAILLEUR() |
42 |
|
|
{ |
43 |
|
|
} |
44 |
|
|
|
45 |
|
|
|
46 |
|
|
void MAILLEUR::refresh(void) |
47 |
|
|
{ |
48 |
|
|
#ifdef WINDOWS_VERSION |
49 |
|
|
//Application->ProcessMessages(); |
50 |
|
|
#endif |
51 |
|
|
} |
52 |
|
|
|
53 |
|
|
|
54 |
|
|
|
55 |
|
|
void MAILLEUR::active_affichage(void (*fonc)(char*)) |
56 |
|
|
{ |
57 |
|
|
affiche=fonc; |
58 |
|
|
affichageactif=1; |
59 |
|
|
} |
60 |
|
|
|
61 |
|
|
void MAILLEUR::ajouter_etape_cpu(std::string nom) |
62 |
|
|
{ |
63 |
|
|
if (compteur!=NULL) compteur->ajouter_etape(nom); |
64 |
|
|
} |