Browse Source

SauvegardeFile

Joao Conceicao Nunes 3 years ago
parent
commit
8255846e12
44 changed files with 892 additions and 660 deletions
  1. 4
    4
      README.txt
  2. BIN
      bin/Application1/Fenetre$1.class
  3. BIN
      bin/Application1/Fenetre$2.class
  4. BIN
      bin/Application1/Fenetre$3.class
  5. BIN
      bin/Application1/Fenetre.class
  6. BIN
      bin/Application1/Main.class
  7. BIN
      bin/Application1/Pages/Page1.class
  8. BIN
      bin/Application1/Pages/Page2.class
  9. BIN
      bin/Application1/Pages/Page3$1.class
  10. BIN
      bin/Application1/Pages/Page3.class
  11. BIN
      bin/Application1/Pages/Page4.class
  12. BIN
      bin/Application1/Pages/Page5$1.class
  13. BIN
      bin/Application1/Pages/Page5.class
  14. BIN
      bin/Application1/Pages/Page6$1.class
  15. BIN
      bin/Application1/Pages/Page6$2.class
  16. BIN
      bin/Application1/Pages/Page6.class
  17. BIN
      bin/Application1/Pages/Page7$1.class
  18. BIN
      bin/Application1/Pages/Page7$2.class
  19. BIN
      bin/Application1/Pages/Page7$3.class
  20. BIN
      bin/Application1/Pages/Page7$4.class
  21. BIN
      bin/Application1/Pages/Page7$5.class
  22. BIN
      bin/Application1/Pages/Page7.class
  23. BIN
      bin/Application1/PathVar.class
  24. BIN
      bin/Application1/carte$1.class
  25. BIN
      bin/Application1/carte$2.class
  26. BIN
      bin/Application1/carte$3.class
  27. BIN
      bin/Application1/carte$4.class
  28. BIN
      bin/Application1/carte$5.class
  29. BIN
      bin/Application1/carte$6.class
  30. BIN
      bin/Application1/carte$7.class
  31. BIN
      bin/Application1/carte$8.class
  32. BIN
      bin/Application1/carte$9.class
  33. BIN
      bin/Application1/carte.class
  34. 15
    7
      src/Application1/Fenetre.java
  35. 4
    9
      src/Application1/Main.java
  36. 105
    0
      src/Application1/Pages/Page1.java
  37. 102
    0
      src/Application1/Pages/Page2.java
  38. 97
    0
      src/Application1/Pages/Page3.java
  39. 49
    0
      src/Application1/Pages/Page4.java
  40. 106
    0
      src/Application1/Pages/Page5.java
  41. 95
    0
      src/Application1/Pages/Page6.java
  42. 195
    0
      src/Application1/Pages/Page7.java
  43. 119
    0
      src/Application1/PathVar.java
  44. 1
    640
      src/Application1/carte.java

+ 4
- 4
README.txt View File

@@ -1,4 +1,4 @@
1
-Readme to be completeds
2
-Pauline
3
-Joao
4
-Laura
1
+Trinus
2
+C:\Users\Public\Desktop\Trinus Cardboard.lnk
3
+Revit
4
+C:\Users\Public\Desktop\Oracle VM VirtualBox.lnk

BIN
bin/Application1/Fenetre$1.class View File


BIN
bin/Application1/Fenetre$2.class View File


BIN
bin/Application1/Fenetre$3.class View File


BIN
bin/Application1/Fenetre.class View File


BIN
bin/Application1/Main.class View File


BIN
bin/Application1/Pages/Page1.class View File


BIN
bin/Application1/Pages/Page2.class View File


BIN
bin/Application1/Pages/Page3$1.class View File


BIN
bin/Application1/Pages/Page3.class View File


BIN
bin/Application1/Pages/Page4.class View File


BIN
bin/Application1/Pages/Page5$1.class View File


BIN
bin/Application1/Pages/Page5.class View File


BIN
bin/Application1/Pages/Page6$1.class View File


BIN
bin/Application1/Pages/Page6$2.class View File


BIN
bin/Application1/Pages/Page6.class View File


BIN
bin/Application1/Pages/Page7$1.class View File


BIN
bin/Application1/Pages/Page7$2.class View File


BIN
bin/Application1/Pages/Page7$3.class View File


BIN
bin/Application1/Pages/Page7$4.class View File


BIN
bin/Application1/Pages/Page7$5.class View File


BIN
bin/Application1/Pages/Page7.class View File


BIN
bin/Application1/PathVar.class View File


BIN
bin/Application1/carte$1.class View File


BIN
bin/Application1/carte$2.class View File


BIN
bin/Application1/carte$3.class View File


BIN
bin/Application1/carte$4.class View File


BIN
bin/Application1/carte$5.class View File


BIN
bin/Application1/carte$6.class View File


BIN
bin/Application1/carte$7.class View File


BIN
bin/Application1/carte$8.class View File


BIN
bin/Application1/carte$9.class View File


BIN
bin/Application1/carte.class View File


+ 15
- 7
src/Application1/Fenetre.java View File

@@ -25,6 +25,9 @@ import javax.swing.JTextArea;
25 25
 import javax.swing.JTextField;
26 26
 import javax.swing.border.Border;
27 27
 import javax.swing.border.EmptyBorder;
28
+import javax.swing.border.EtchedBorder;
29
+
30
+import Application1.Pages.*;
28 31
 
29 32
 public class Fenetre  extends JFrame implements ActionListener{
30 33
 	
@@ -67,6 +70,11 @@ public class Fenetre  extends JFrame implements ActionListener{
67 70
 		 
68 71
 		 cl = new CardLayout();
69 72
 		 
73
+		 Border border = BorderFactory.createEtchedBorder(EtchedBorder.RAISED);
74
+			Border blackline = BorderFactory.createLineBorder(Color.black);
75
+			Border compound;
76
+			compound = BorderFactory.createCompoundBorder(border, blackline);
77
+		 
70 78
 		
71 79
 		 g=getGraphics();
72 80
 		 
@@ -82,13 +90,13 @@ public class Fenetre  extends JFrame implements ActionListener{
82 90
 
83 91
 		 //Création des pages
84 92
 		 ImagePanel card1 = new ImagePanel("test.png");
85
-		 carte card2 = new carte(2,1);
86
-		 carte card3 = new carte(3,1);
87
-		 carte card4 = new carte(4,1);
88
-		 carte card5 = new carte (5,1);
89
-		 carte card6 = new carte (6,1);
90
-		 carte card7 = new carte (7,1);
91
-		 carte card8 = new carte(8,1);
93
+		 Page1 card2 = new Page1(15,compound);
94
+		 Page2 card3 = new Page2(15,compound);
95
+		 Page3 card4 = new Page3(15,compound);
96
+		 Page4 card5 = new Page4 (15,compound);
97
+		 Page5 card6 = new Page5(15,compound);
98
+		 Page6 card7 = new Page6(15,compound);
99
+		 Page7 card8 = new Page7(15,compound);
92 100
 		 
93 101
 		 cl.setHgap(10);
94 102
 		 cl.setVgap(10);

+ 4
- 9
src/Application1/Main.java View File

@@ -7,18 +7,13 @@ import java.io.IOException;
7 7
 public class Main {
8 8
 	public static void main(String[] args) {
9 9
 		Fenetre fenetre = new Fenetre();
10
-		Desktop Starter = Desktop.getDesktop();
11 10
 		
12 11
 		
13
-		File file = new File("C:\\Users\\nunes\\Desktop\\Travail\\PIR\\Software\\Glovepie\\WiimoteScripts\\Test.PIE");
14 12
 		
15
-		/*try {
16
-			//Starter.open(file);
17
-		} catch (IOException e) {
18
-			// TODO Auto-generated catch block
19
-			e.printStackTrace();
20
-		}
21
-		*/
13
+		
14
+		
15
+		
16
+		
22 17
 		
23 18
 		
24 19
 	

+ 105
- 0
src/Application1/Pages/Page1.java View File

@@ -0,0 +1,105 @@
1
+package Application1.Pages;
2
+
3
+import java.awt.GridLayout;
4
+
5
+import javax.swing.JPanel;
6
+import javax.swing.border.Border;
7
+
8
+import Application1.TextPanel;
9
+
10
+public class Page1 extends JPanel {
11
+	
12
+	public Page1(int taillePolice, Border bordure){
13
+		//Initialitsation
14
+		TextPanel cadran1;
15
+		TextPanel cadran2;
16
+		TextPanel cadran3;
17
+		TextPanel cadran4;
18
+		GridLayout g= new GridLayout(2,2);
19
+		g.setHgap(10);
20
+		g.setVgap(10);
21
+		setLayout(g);
22
+		
23
+		
24
+		//Cadran 1 
25
+		cadran1 = new TextPanel(taillePolice);
26
+		
27
+		cadran1.AjouterParagraph("       \n");
28
+		cadran1.AjouterParagraph("                              Du BIM à la Réalité Virtuelle!  \n");
29
+		cadran1.AjouterParagraph("       \n");
30
+		cadran1.AjouterParagraph("  Projet issu d'une collaboration entre l'INSA et l'ISDAT. \n");
31
+		cadran1.AjouterParagraph(" \n");
32
+		cadran1.AjouterParagraph("  A partir d'une simulation BIM réalisée par les élèves de l'ISDAT, \n");
33
+		cadran1.AjouterParagraph("  ceux de l'INSA ont mis au point une application permettant \n");
34
+		cadran1.AjouterParagraph("  de visualiser un environnement virtuel dépendant \n");
35
+		cadran1.AjouterParagraph("  de la maquette BIM, afin d'intéragir avec \n");
36
+		cadran1.AjouterParagraph("  lui au sein de cette réalité virtuelle. \n");
37
+		
38
+		cadran1.setEditable(false);
39
+		cadran1.setBorder(bordure);
40
+		
41
+		
42
+		//Cadran 2
43
+		cadran2 = new TextPanel(taillePolice);
44
+		
45
+		cadran2.AjouterParagraph("       \n");
46
+		cadran2.AjouterParagraph("  Participants à la réalisation du projet : \n");
47
+		cadran2.AjouterParagraph("       \n");
48
+		cadran2.AjouterParagraph("  Elèves de l'INSA :            Elèves de l'ISDAT :           Tuteurs : \n");
49
+		cadran2.AjouterParagraph(" \n");
50
+		cadran2.AjouterParagraph("  AMOUR Chadi                                                          BRUYERE Nathalie \n");
51
+		cadran2.AjouterParagraph("  BERRADA El Ghali                                                   MONTEIL Thierry \n");
52
+		cadran2.AjouterParagraph("  BERTA Pauline \n");
53
+		cadran2.AjouterParagraph("  BOUOULID Ilias \n");
54
+		cadran2.AjouterParagraph("  NUNES Joao \n");
55
+		cadran2.AjouterParagraph("  POLONI Laura \n");
56
+		cadran2.AjouterParagraph("       \n");
57
+		cadran2.setEditable(false);
58
+		cadran2.setBorder(bordure);
59
+		
60
+		
61
+		//Cadran 3 
62
+		
63
+		cadran3 = new TextPanel(taillePolice);
64
+		
65
+		cadran3.AjouterParagraph("       \n");
66
+		cadran3.AjouterParagraph("  Logiciels nécessaires à la bonne réalisation du projet : \n");
67
+		cadran3.AjouterParagraph("       \n");
68
+		cadran3.AjouterParagraph("  Revit \n");
69
+		cadran3.AjouterParagraph("  GrassHopper (avec son plugin) \n");
70
+		cadran3.AjouterParagraph("  Trinus \n");
71
+		cadran3.AjouterParagraph("  GlovePie \n");
72
+		cadran3.AjouterParagraph("       \n");
73
+		cadran3.AjouterParagraph("  Nous vous expliquerons par la suite quels sont les logiciels \n");
74
+		cadran3.AjouterParagraph("  prérequis, et quels sont ceux dont nous allons guider l'installation. \n");
75
+		cadran3.setEditable(false);
76
+		cadran3.setBorder(bordure);
77
+		
78
+		
79
+		//Cadran 4
80
+		
81
+		cadran4 = new TextPanel(taillePolice);
82
+		
83
+		cadran4.AjouterParagraph("       \n");
84
+		cadran4.AjouterParagraph("  Matériel nécessaire à la bonne réalisation du projet : \n");
85
+		cadran4.AjouterParagraph("       \n");
86
+		cadran4.AjouterParagraph("  Wiimote \n");
87
+		cadran4.AjouterParagraph("  Sensor bar \n");
88
+		cadran4.AjouterParagraph("  Masque \n");
89
+		cadran4.AjouterParagraph("  Smartphone \n");
90
+		cadran4.AjouterParagraph("       \n");
91
+		cadran4.AjouterParagraph("  Nous vous expliquerons par la suite quel sera l'utilisation \n");
92
+		cadran4.AjouterParagraph("  de chaque matériel et comment les mettre en place. \n");
93
+		cadran4.setEditable(false);
94
+		cadran4.setBorder(bordure);
95
+		
96
+		//Ajouter les cadrans
97
+		add(cadran1);
98
+		add(cadran2);
99
+		add(cadran3);
100
+		add(cadran4);			
101
+		
102
+		
103
+	}
104
+
105
+}

+ 102
- 0
src/Application1/Pages/Page2.java View File

@@ -0,0 +1,102 @@
1
+package Application1.Pages;
2
+
3
+import java.awt.GridLayout;
4
+
5
+import javax.swing.JPanel;
6
+
7
+import javax.swing.border.*;
8
+
9
+import Application1.TextPanel;
10
+
11
+public class Page2 extends JPanel {
12
+	
13
+	public Page2(int taillePolice, Border bordure){
14
+		//Initialitsation
15
+		TextPanel cadran1;
16
+		TextPanel cadran2;
17
+		TextPanel cadran3;
18
+		TextPanel cadran4;
19
+		GridLayout g= new GridLayout(2,2);
20
+		g.setHgap(10);
21
+		g.setVgap(10);
22
+		setLayout(g);
23
+		
24
+		//Cadran 1 
25
+		
26
+		cadran1 = new TextPanel(taillePolice);
27
+		cadran1.setBorder(bordure);
28
+		cadran1.AjouterParagraph("  \n");
29
+		cadran1.AjouterParagraph("  Pour le bon fonctionnement du système, il faut va falloir \n");
30
+		cadran1.AjouterParagraph("  que vous installiez au préalable deux logiciels.\n");
31
+		cadran1.AjouterParagraph("     * Revit (Développement d'Objets et de Structures 3D) \n");
32
+		cadran1.AjouterParagraph("     * Grasshopper (Outil utilisé en Association avec Revit)\n");
33
+		cadran1.AjouterParagraph("  \n");
34
+		cadran1.AjouterParagraph("  Vérifier bien que la connexion bluetooth fonctionne sur votre machine, \n");
35
+		cadran1.AjouterParagraph("  elle sera nécessaire pour connecter votre wiimote à l'ordinateur. \n");
36
+		cadran1.AjouterParagraph("  \n");
37
+		cadran1.AjouterParagraph("  Lorsque tous les pré-requis précédent sont installés et vérifiés  \n");
38
+		cadran1.AjouterParagraph("  vous pouvez passez à la suite!\n");
39
+		cadran1.AjouterParagraph("  \n");
40
+		cadran1.setEditable(false);
41
+		
42
+		//Cadran 2 
43
+		
44
+		cadran2 = new TextPanel(taillePolice);
45
+	
46
+		cadran2.setBorder(bordure);
47
+		cadran2.AjouterParagraph("  \n");
48
+		cadran2.AjouterParagraph("  Avant de pouvoir utiliser l'application il reste \n");
49
+		cadran2.AjouterParagraph("  quelques étapes à parcourir. \n");
50
+		cadran2.AjouterParagraph("  \n");
51
+		cadran2.AjouterParagraph("  Nous allons vous guider dans l'installation de deux derniers \n");
52
+		cadran2.AjouterParagraph("  logiciels, tels que : \n");
53
+		cadran2.AjouterParagraph("     * GlovePie (Emulateur de Clavier et Souris) \n");
54
+		cadran2.AjouterParagraph("     * Trinus (Convertisseur d'Images Classiques en Images au format VR) \n");
55
+		cadran2.AjouterParagraph("  \n");
56
+		cadran2.AjouterParagraph("  Sur la page suivante les démarches vous sont expliquées pas-à-pas! \n");
57
+		cadran2.AjouterParagraph("  \n");
58
+		cadran2.setEditable(false);
59
+		
60
+		//Cadran 3
61
+		cadran3 = new TextPanel(taillePolice);
62
+		
63
+		cadran3.setBorder(bordure);
64
+		cadran3.AjouterParagraph("  \n");
65
+		cadran3.AjouterParagraph("  Vous pouvez remarquer plusieurs boutons à votre disposition ci-dessous. \n");
66
+		cadran3.AjouterParagraph("  \n");
67
+		cadran3.AjouterParagraph("  Vous avez la possibilité à tout moment de retourner sur la page \n");
68
+		cadran3.AjouterParagraph("  précédente avec le bouton PRECEDENT. \n");
69
+		cadran3.AjouterParagraph("  \n");
70
+		cadran3.AjouterParagraph("  De la même manière, vous avez la possibilité de passer à la \n");
71
+		cadran3.AjouterParagraph("  suivante avec le bouton SUIVANT.\n");
72
+		cadran3.AjouterParagraph("  \n");
73
+		cadran3.setEditable(false);
74
+		
75
+		//Cadran 4 
76
+		
77
+		cadran4 = new TextPanel(taillePolice);
78
+	
79
+		cadran4.setBorder(bordure);
80
+		cadran4.AjouterParagraph("  \n");
81
+		cadran4.AjouterParagraph("  Le bouton LANCER VR est là pour vous permettre de passer en un \n");
82
+		cadran4.AjouterParagraph("  clic toute la partie Installation des logiciels GlovePie et Trinus.\n");
83
+		cadran4.AjouterParagraph("  \n");
84
+		cadran4.AjouterParagraph("  ! Si vous avez déjà réaliser les installations sur votre machine \n");
85
+		cadran4.AjouterParagraph("  lors d'une précédente utilisation, il n'est pas nécessaire de \n");
86
+		cadran4.AjouterParagraph("  recommencer ! \n");
87
+		cadran4.AjouterParagraph("  \n");
88
+		cadran4.AjouterParagraph("  ! Cliquer directement sur LANCER VR ! \n");
89
+		cadran4.AjouterParagraph("  \n");
90
+		cadran4.setEditable(false);
91
+		
92
+		
93
+		//Ajouter les cadrans
94
+		add(cadran1);
95
+		add(cadran2);
96
+		add(cadran3);
97
+		add(cadran4);
98
+		
99
+		
100
+	}
101
+
102
+}

+ 97
- 0
src/Application1/Pages/Page3.java View File

@@ -0,0 +1,97 @@
1
+package Application1.Pages;
2
+
3
+import java.awt.Color;
4
+import java.awt.Font;
5
+import java.awt.GridLayout;
6
+import java.awt.event.ActionEvent;
7
+import java.awt.event.ActionListener;
8
+import java.io.IOException;
9
+
10
+import javax.swing.JButton;
11
+import javax.swing.JPanel;
12
+import javax.swing.border.*;
13
+
14
+import Application1.ImagePanel;
15
+import Application1.TextPanel;
16
+
17
+public class Page3 extends JPanel {
18
+	public Page3(int taillePolice, Border bordure){
19
+		
20
+		//Initialitsation
21
+		JPanel cadran1 = new JPanel();
22
+		TextPanel cadran1_1;
23
+		ImagePanel cadran2;
24
+		ImagePanel cadran3;
25
+		ImagePanel cadran4;
26
+		TextPanel Texte;
27
+		
28
+		JButton BoutonInstallationTrinus = new JButton("START INSTALLATION");
29
+		Font f = new Font("Serif", Font.BOLD, 45);
30
+		
31
+		BoutonInstallationTrinus.setFont(f);
32
+		BoutonInstallationTrinus.setForeground(Color.WHITE);
33
+		BoutonInstallationTrinus.setBackground(Color.LIGHT_GRAY);
34
+		
35
+		GridLayout g= new GridLayout(2,2);
36
+		GridLayout cad1 = new GridLayout(2,1);
37
+		g.setHgap(10);
38
+		g.setVgap(10);
39
+		setLayout(g);
40
+		
41
+		
42
+		//Cadran 1 
43
+		
44
+		cadran1.setLayout(cad1);
45
+		
46
+		cadran1_1 = new TextPanel(taillePolice);
47
+		cadran1_1.setBorder(bordure);
48
+		
49
+		cadran1_1.AjouterParagraph("  \n");
50
+		cadran1_1.AjouterParagraph("  L'installation du logiciel Trinus est nécessaire pour le bon \n");
51
+		cadran1_1.AjouterParagraph("  fonctionnement de notre système. \n");
52
+		cadran1_1.AjouterParagraph("  START INSTALLATION va lancer automatiquement l'installation du logiciel. \n");
53
+		cadran1_1.AjouterParagraph("  Vous devez accepter et suivre les étapes décrites sur les images suivantes. \n");
54
+		cadran1_1.AjouterParagraph("  \n");
55
+		cadran1_1.setEditable(false);
56
+		
57
+		cadran1.add(cadran1_1);
58
+		cadran1.add(BoutonInstallationTrinus);
59
+		
60
+
61
+		//Cadran 2
62
+		cadran2 = new ImagePanel("Images/Install_Trinus/1.png");
63
+		cadran2.setBorder(bordure);
64
+		
65
+		//Cadran3 
66
+		cadran3 = new ImagePanel("Images/Install_Trinus/2.png");
67
+		cadran3.setBorder(bordure);
68
+		
69
+		//Cadran 4
70
+		cadran4 = new ImagePanel("Images/Install_Trinus/3.png");
71
+		cadran4.setBorder(bordure);
72
+		
73
+		//Ajouter les cadrans
74
+		add(cadran1);
75
+		add(cadran2);
76
+		add(cadran3);
77
+		add(cadran4);
78
+		
79
+		BoutonInstallationTrinus.addActionListener(new ActionListener() {
80
+	    	public void actionPerformed(ActionEvent event) {
81
+	    		
82
+				
83
+				Runtime rt = Runtime.getRuntime();
84
+				try {
85
+					rt.exec(new String[] {"External_Software/TGsetup.exe"});
86
+					
87
+				}
88
+				catch (IOException e) {
89
+					e.printStackTrace();
90
+				}		
91
+	    	}
92
+	    }
93
+		);
94
+		
95
+	}
96
+
97
+}

+ 49
- 0
src/Application1/Pages/Page4.java View File

@@ -0,0 +1,49 @@
1
+package Application1.Pages;
2
+
3
+import java.awt.GridLayout;
4
+
5
+import javax.swing.JPanel;
6
+import javax.swing.border.*;
7
+
8
+import Application1.ImagePanel;
9
+
10
+public class Page4 extends JPanel {
11
+	
12
+	public Page4(int taillePolice, Border bordure){
13
+		//Initialitsation
14
+		ImagePanel cadran1;
15
+		ImagePanel cadran2;
16
+		ImagePanel cadran3;
17
+		ImagePanel cadran4;
18
+		GridLayout g= new GridLayout(2,2);
19
+		g.setHgap(10);
20
+		g.setVgap(10);
21
+		setLayout(g);
22
+		
23
+		//Cadran 1
24
+		cadran1 = new ImagePanel("Images/Install_Trinus/4.png");
25
+		cadran1.setBorder(bordure);
26
+		
27
+		//Cadran 2
28
+		cadran2 = new ImagePanel("Images/Install_Trinus/5.png");
29
+		cadran2.setBorder(bordure);
30
+		
31
+		//Cadran 3
32
+		cadran3 = new ImagePanel("Images/Install_Trinus/6.png");
33
+		cadran3.setBorder(bordure);
34
+		
35
+		//Cadran 4
36
+		cadran4 = new ImagePanel("Images/Install_Trinus/7.png");
37
+		cadran4.setBorder(bordure);
38
+	
39
+		
40
+		//Ajout des cadrans
41
+		add(cadran1);
42
+		add(cadran2);
43
+		add(cadran3);
44
+		add(cadran4);
45
+		
46
+		
47
+	}
48
+
49
+}

+ 106
- 0
src/Application1/Pages/Page5.java View File

@@ -0,0 +1,106 @@
1
+package Application1.Pages;
2
+
3
+import java.awt.Color;
4
+import java.awt.Font;
5
+import java.awt.GridLayout;
6
+import java.awt.event.ActionEvent;
7
+import java.awt.event.ActionListener;
8
+import java.io.IOException;
9
+
10
+import javax.swing.JButton;
11
+import javax.swing.JPanel;
12
+import javax.swing.border.*;
13
+
14
+import Application1.ImagePanel;
15
+import Application1.TextPanel;
16
+
17
+public class Page5 extends JPanel{
18
+	
19
+	public Page5(int taillePolice, Border bordure){
20
+	//Initialitsation
21
+	JPanel cadran1 = new JPanel();
22
+	TextPanel cadran1_1;
23
+	ImagePanel cadran2;
24
+	ImagePanel cadran3;
25
+	ImagePanel cadran4;
26
+	
27
+	
28
+	JButton BoutonInstallationManette = new JButton("START INSTALLATION");
29
+	Font f = new Font("Serif", Font.BOLD, 45);
30
+	
31
+	BoutonInstallationManette.setFont(f);
32
+	BoutonInstallationManette.setForeground(Color.WHITE);
33
+	BoutonInstallationManette.setBackground(Color.LIGHT_GRAY);
34
+	
35
+	GridLayout g= new GridLayout(2,2);
36
+	GridLayout cad1 = new GridLayout(2,1);
37
+	g.setHgap(10);
38
+	g.setVgap(10);
39
+	setLayout(g);
40
+	
41
+	//Cadran 1 
42
+	
43
+	cadran1.setLayout(cad1);
44
+	cadran1.setBorder(bordure);
45
+	
46
+	cadran1_1 = new TextPanel(taillePolice);
47
+
48
+	cadran1_1.setBorder(bordure);
49
+	
50
+	cadran1_1.AjouterParagraph("  \n");
51
+	cadran1_1.AjouterParagraph("  Pour finir, nous devons installer la manette Wiimote. \n");
52
+	cadran1_1.AjouterParagraph("  Pour cela nous allons l'ajouter en tant que périphérique Bluetooth. \n");
53
+	cadran1_1.AjouterParagraph("  Cliquer sur START INSTALLATION, le panneau de configuration va apparaitre.\n");
54
+	cadran1_1.AjouterParagraph("  Suivez les étapes d'installation avec les images suivantes. \n");
55
+	cadran1_1.AjouterParagraph("  \n");
56
+
57
+	cadran1_1.setEditable(false);
58
+	
59
+	cadran1.add(cadran1_1);
60
+	cadran1.add(BoutonInstallationManette);
61
+	
62
+	
63
+	//Cadran 2
64
+	cadran2 = new ImagePanel("Images/Install_Wiimote/1.png");
65
+	cadran2.setBorder(bordure);
66
+	
67
+	
68
+	//Cadran 3 
69
+	cadran3 = new ImagePanel("Images/Install_Wiimote/3.png");
70
+	cadran3.setBorder(bordure);
71
+	
72
+	
73
+	//Cadran 4 
74
+	cadran4 = new ImagePanel("Images/Install_Wiimote/4.png");
75
+	cadran4.setBorder(bordure);
76
+	
77
+	
78
+	//Ajout des cadrans
79
+	add(cadran1);
80
+	add(cadran2);
81
+	add(cadran3);
82
+	add(cadran4);
83
+	
84
+	
85
+	//BoutonInstallationManette.addActionListener(new ActionListener() {});
86
+
87
+	
88
+	BoutonInstallationManette.addActionListener(new ActionListener() {
89
+		public void actionPerformed(ActionEvent event) {
90
+    		//Lancement du panneau de configuration
91
+			
92
+			Runtime rt = Runtime.getRuntime();
93
+			try {
94
+				rt.exec(new String[] {"cmd.exe","/c","start","control"});
95
+				
96
+			}
97
+			catch (IOException e) {
98
+				e.printStackTrace();
99
+			}		
100
+    	}
101
+    }
102
+	);
103
+	
104
+
105
+}
106
+}

+ 95
- 0
src/Application1/Pages/Page6.java View File

@@ -0,0 +1,95 @@
1
+package Application1.Pages;
2
+
3
+import java.awt.Color;
4
+import java.awt.Font;
5
+import java.awt.GridLayout;
6
+import java.awt.event.ActionEvent;
7
+import java.awt.event.ActionListener;
8
+
9
+import javax.swing.JButton;
10
+import javax.swing.JPanel;
11
+import javax.swing.border.*;
12
+
13
+import Application1.PathVar;
14
+import Application1.TextPanel;
15
+import Application1.carte;
16
+
17
+public class Page6 extends JPanel {
18
+	
19
+	public Page6(int taillePolice, Border bordure) {
20
+		//Installation
21
+		TextPanel cadran1;
22
+		TextPanel cadran2;
23
+		JPanel cadran3;
24
+		JPanel cadran4;
25
+		JButton BoutonVarEnvTrinus;
26
+		JButton BoutonVarEnvRevit;
27
+		Font f = new Font("Serif", Font.BOLD, 15);
28
+		BoutonVarEnvTrinus = new JButton("Indiquer où se trouve le logiciel Trinus");
29
+		BoutonVarEnvRevit = new JButton("Indiquer où se trouve le logiciel de CAD");
30
+		BoutonVarEnvRevit.setFont(f);
31
+		BoutonVarEnvRevit.setForeground(Color.BLACK);
32
+		BoutonVarEnvRevit.setBackground(Color.LIGHT_GRAY);
33
+		BoutonVarEnvTrinus.setFont(f);
34
+		BoutonVarEnvTrinus.setForeground(Color.BLACK);
35
+		BoutonVarEnvTrinus.setBackground(Color.LIGHT_GRAY);
36
+		
37
+		GridLayout grid = new GridLayout(2,2);
38
+		grid.setHgap(10);
39
+		grid.setVgap(10);
40
+		setLayout(grid);
41
+		
42
+		
43
+		//Cadran 1
44
+		cadran1 = new TextPanel(taillePolice);
45
+		cadran1.AjouterParagraph("Veuillez indiquer ou vous avez installé le logiciel Trinus. ");
46
+		cadran1.AjouterParagraph("Vous pouvez selectionner directement le fichier de lancement présent sur votre bureau.");
47
+		cadran1.AjouterParagraph("Ou alors donner le chemin du logiciel dans la racine. Typiquement le logiciel s'installe dans le dossier \"Program Files\"");
48
+		cadran1.setEditable(false);
49
+		cadran1.setBorder(bordure);
50
+		// Cadran 2
51
+		cadran2 = new TextPanel(taillePolice);
52
+		cadran2.AjouterParagraph("Veuillez indiquer ou vous avez installé le logiciel de CAD. De préferance Revit, puisque notre système est optimisé pour l'utilisation de Revit. ");
53
+		cadran2.AjouterParagraph("Vous pouvez selectionner directement le fichier de lancement présent sur votre bureau.");
54
+		cadran2.AjouterParagraph("Ou alors donner le chemin du logiciel dans la racine. Typiquement le logiciel s'installe dans le dossier \"Program Files\"");
55
+		cadran2.setEditable(false);
56
+		cadran2.setBorder(bordure);
57
+		
58
+		//Cadran 3 
59
+		cadran3 = new JPanel();
60
+		
61
+		cadran3.add(BoutonVarEnvTrinus);
62
+		
63
+		//Cadran 4 
64
+		cadran4 = new JPanel();
65
+		
66
+		cadran4.add(BoutonVarEnvRevit);
67
+		
68
+		
69
+		
70
+		//Ajout des cadran
71
+		add(cadran1);
72
+		add(cadran2);
73
+		add(cadran3);
74
+		add(cadran4);
75
+		
76
+		PathVar pathVar = new PathVar();
77
+		BoutonVarEnvTrinus.addActionListener(new ActionListener() {
78
+	    	public void actionPerformed(ActionEvent event) {
79
+	    		pathVar.getPath("Trinus");
80
+	    			
81
+	    	}
82
+	    }
83
+		);
84
+		
85
+		BoutonVarEnvRevit.addActionListener(new ActionListener() {
86
+	    	public void actionPerformed(ActionEvent event) {
87
+	    		pathVar.getPath("Revit");
88
+	    			
89
+	    	}
90
+	    });
91
+		
92
+		
93
+	}
94
+
95
+}

+ 195
- 0
src/Application1/Pages/Page7.java View File

@@ -0,0 +1,195 @@
1
+package Application1.Pages;
2
+
3
+import java.awt.Color;
4
+import java.awt.Desktop;
5
+import java.awt.FlowLayout;
6
+import java.awt.Font;
7
+import java.awt.GridLayout;
8
+import java.awt.event.ActionEvent;
9
+import java.awt.event.ActionListener;
10
+import java.io.File;
11
+import java.io.IOException;
12
+
13
+import javax.swing.JButton;
14
+import javax.swing.JPanel;
15
+import javax.swing.border.*;
16
+
17
+import Application1.PathVar;
18
+import Application1.TextPanel;
19
+
20
+public class Page7 extends JPanel {
21
+	public Page7(int taillePolice, Border bordure) {
22
+		
23
+		
24
+		//Initialitsation
25
+		PathVar path = new PathVar();
26
+		TextPanel cadran1;
27
+		JPanel cadran2;
28
+		
29
+		Font f = new Font("Serif", Font.BOLD, 15);
30
+		
31
+		JButton BoutonGlovePie = new JButton("Lancer GLovePie");
32
+		BoutonGlovePie.setFont(f);
33
+		BoutonGlovePie.setForeground(Color.BLACK);
34
+		BoutonGlovePie.setBackground(Color.LIGHT_GRAY);
35
+		
36
+		JButton BoutonTrinus = new JButton("Lancer Trinus");
37
+		BoutonTrinus.setFont(f);
38
+		BoutonTrinus.setForeground(Color.BLACK);
39
+		BoutonTrinus.setBackground(Color.LIGHT_GRAY);
40
+	
41
+		JButton BoutonRevit = new JButton("Lancer Revit");
42
+		BoutonRevit.setFont(f);
43
+		BoutonRevit.setForeground(Color.BLACK);
44
+		BoutonRevit.setBackground(Color.LIGHT_GRAY);
45
+		
46
+		JButton BoutonInternet = new JButton("Lancer AutoDesk View");
47
+		BoutonInternet.setFont(f);
48
+		BoutonInternet.setForeground(Color.BLACK);
49
+		BoutonInternet.setBackground(Color.LIGHT_GRAY);
50
+		
51
+		JButton BoutonClavier = new JButton ("Lancer le clavier Virtuel");
52
+		BoutonClavier.setFont(f);
53
+		BoutonClavier.setForeground(Color.BLACK);
54
+		BoutonClavier.setBackground(Color.LIGHT_GRAY);
55
+		
56
+		GridLayout grid= new GridLayout(2,2);
57
+		FlowLayout flow = new FlowLayout();
58
+		grid.setHgap(10);
59
+		grid.setVgap(10);
60
+		setLayout(grid);
61
+		
62
+		//Cadran 1
63
+		cadran1 = new TextPanel(taillePolice);
64
+		cadran1.AjouterParagraph("  \n");
65
+		cadran1.AjouterParagraph("  Le système est prêt à être utilisé! \n");
66
+		cadran1.AjouterParagraph("  \n");
67
+		cadran1.AjouterParagraph("  Les logiciels suivant sont bien installés sur la machine : \n ");
68
+		cadran1.AjouterParagraph("     * GlovePie \n");
69
+		cadran1.AjouterParagraph("      * Trinus \n");
70
+		cadran1.AjouterParagraph("  La WiiMote est reliée en Bluetooth à l'ordinateur! \n");
71
+		cadran1.AjouterParagraph("  \n");
72
+		cadran1.AjouterParagraph("  Les différents boutons ci-dessous vous permettent de lancer tous les outils nécessaires. \n");
73
+		cadran1.AjouterParagraph("  \n");
74
+		cadran1.setEditable(false);
75
+		cadran1.setBorder(bordure);
76
+		
77
+		//Cadran 2
78
+		cadran2 = new JPanel();
79
+		cadran2.setLayout(flow);
80
+		cadran2.add(BoutonGlovePie);
81
+		cadran2.add(BoutonTrinus);
82
+		cadran2.add(BoutonRevit);
83
+		cadran2.add(BoutonInternet);
84
+		cadran2.add(BoutonClavier);
85
+		
86
+		//Gestion Boutons
87
+
88
+		BoutonGlovePie.addActionListener(new ActionListener() {
89
+	    	public void actionPerformed(ActionEvent event) {
90
+	    		//Lancement du panneau de configuration
91
+	    		File file = new File("External_Software/Glovepie/WiimoteScripts/WiimoteScript.PIE");
92
+	    		java.awt.Desktop desktop = Desktop.getDesktop();
93
+	    		
94
+	    		try {
95
+	    			
96
+					desktop.open(file);
97
+					
98
+				} catch (IOException e) {
99
+					// TODO Auto-generated catch block
100
+					e.printStackTrace();
101
+
102
+				}
103
+				} 
104
+	    	}
105
+	    );
106
+		
107
+		BoutonTrinus.addActionListener(new ActionListener() {
108
+	    	public void actionPerformed(ActionEvent event) {
109
+	    		try {
110
+	    			
111
+					path.readPathFile();
112
+					File file = new File(path.getPathTrinus());
113
+		    		java.awt.Desktop desktop = Desktop.getDesktop();
114
+		    		desktop.open(file);
115
+				} catch (IOException e1) {
116
+					// TODO Auto-generated catch block
117
+					e1.printStackTrace();
118
+				}
119
+					
120
+	    		
121
+	    		
122
+	    		
123
+					
124
+		    		
125
+
126
+	    	}
127
+	    });
128
+		BoutonRevit.addActionListener(new ActionListener() {
129
+	    	public void actionPerformed(ActionEvent event) {
130
+	    		try {
131
+					path.readPathFile();
132
+					File file = new File(path.getPathRevit());
133
+		    		java.awt.Desktop desktop = Desktop.getDesktop();
134
+		    		desktop.open(file);
135
+				} catch (IOException e1) {
136
+					// TODO Auto-generated catch block
137
+					e1.printStackTrace();
138
+				}
139
+					
140
+	    		
141
+	    		
142
+	    		
143
+					
144
+		    		
145
+
146
+	    	}
147
+	    });
148
+		
149
+		BoutonInternet.addActionListener(new ActionListener() {
150
+	    	public void actionPerformed(ActionEvent event) {
151
+	    		//Lancement du panneau de configuration
152
+				
153
+				Runtime rt = Runtime.getRuntime();
154
+				try {
155
+					rt.exec(new String[] {"cmd.exe","/c","start","https://viewer.autodesk.com/"});
156
+					
157
+				}catch (IOException e) {
158
+					e.printStackTrace();
159
+				}
160
+
161
+	    	}
162
+	    });
163
+		
164
+		BoutonClavier.addActionListener(new ActionListener() {
165
+	    	public void actionPerformed(ActionEvent event) {
166
+	    		//Lancement du panneau de configuration
167
+				
168
+				Runtime rt = Runtime.getRuntime();
169
+				try {
170
+					rt.exec(new String[] {"cmd.exe","/c","start","osk"});
171
+					
172
+				}catch (IOException e) {
173
+					e.printStackTrace();
174
+				}
175
+	    			
176
+	    	}
177
+	    });
178
+		
179
+		
180
+		
181
+		
182
+		
183
+		
184
+		
185
+		
186
+		//Ajout Cadran
187
+		add(cadran1);
188
+		add(cadran2);
189
+		
190
+		
191
+		
192
+		
193
+	}
194
+
195
+}

+ 119
- 0
src/Application1/PathVar.java View File

@@ -0,0 +1,119 @@
1
+package Application1;
2
+
3
+import java.io.BufferedWriter;
4
+import java.io.FileNotFoundException;
5
+import java.io.FileOutputStream;
6
+import java.io.FileReader;
7
+import java.io.FileWriter;
8
+import java.io.IOException;
9
+import java.io.Writer;
10
+import java.nio.file.Files;
11
+import java.nio.file.*;
12
+
13
+import javax.swing.JFileChooser;
14
+import javax.swing.JPanel;
15
+
16
+public class PathVar {
17
+	private String pathTrinus;
18
+	private String pathRevit;
19
+	
20
+	
21
+	public PathVar() {
22
+		pathTrinus = ".";
23
+		pathRevit = ".";
24
+		
25
+	}
26
+	
27
+	
28
+	public void readPathFile() throws IOException{
29
+		String pathData = "";
30
+		
31
+		pathData = new String(Files.readAllBytes(Paths.get("README.txt")));
32
+		String[] parts = pathData.split("\n");
33
+		if (parts[0].contentEquals("Trinus")){
34
+			pathTrinus = parts[1];
35
+			
36
+		
37
+		}else if (parts[2].contentEquals("Trinus")) {
38
+			pathTrinus = parts[3];
39
+			
40
+		}
41
+		
42
+		if (parts[2].contentEquals("Revit")) {
43
+			pathRevit = parts[3];
44
+			
45
+		}else if (parts[0].contentEquals("Revit")) {
46
+			pathRevit = parts[1];
47
+			System.out.println("Je suis la \n");
48
+		}
49
+		
50
+		
51
+		
52
+		//System.out.println(pathData);
53
+		//System.out.println(parts[3]);
54
+		}
55
+		
56
+		public void writePathFile(String pathToWrite) {
57
+			try {
58
+				BufferedWriter output;
59
+				output = new BufferedWriter(new FileWriter("README.txt",true));
60
+				output.append(pathToWrite.concat("\n"));
61
+				output.close();
62
+				
63
+			} catch (FileNotFoundException e) {
64
+				// TODO Auto-generated catch block
65
+				e.printStackTrace();
66
+			} catch (IOException e) {
67
+				// TODO Auto-generated catch block
68
+				e.printStackTrace();
69
+			}
70
+			
71
+		}
72
+	
73
+	
74
+	public void getPath (String program) {
75
+		String path = ".";
76
+		int result = -99;
77
+		JFileChooser fileChooser = new JFileChooser();
78
+		
79
+			result = fileChooser.showOpenDialog(new JPanel());
80
+			if(result == JFileChooser.APPROVE_OPTION)
81
+			{
82
+				path = fileChooser.getSelectedFile().getAbsolutePath();
83
+			}
84
+			
85
+			
86
+			if (program == "Trinus") {
87
+				writePathFile("Trinus");
88
+				writePathFile(path);
89
+				pathTrinus = path;
90
+				
91
+			}
92
+			else if (program == "Revit") {
93
+				writePathFile("Revit");
94
+				writePathFile(path);
95
+				pathRevit = path;
96
+			}
97
+		
98
+		
99
+		//??????????????????
100
+		System.out.println(pathRevit);
101
+		
102
+		
103
+	}
104
+	
105
+	public String getPathTrinus() {
106
+		return pathTrinus;
107
+	}
108
+	
109
+	public String getPathRevit() {
110
+		return pathRevit;
111
+	}
112
+	
113
+	
114
+	
115
+	
116
+	
117
+	
118
+
119
+}

+ 1
- 640
src/Application1/carte.java View File

@@ -41,24 +41,6 @@ public class carte extends JPanel{
41 41
 	protected static String pathRevit;
42 42
 	
43 43
 	
44
-	private String getPath () {
45
-		String path = ".";
46
-		int result = -99;
47
-		JFileChooser fileChooser = new JFileChooser();
48
-		
49
-			result = fileChooser.showOpenDialog(this);
50
-			if(result == JFileChooser.APPROVE_OPTION)
51
-			{
52
-				path = fileChooser.getSelectedFile().getAbsolutePath();
53
-			}
54
-		
55
-		
56
-		
57
-		System.out.println(path);
58
-		return path;
59
-		
60
-	}
61
-	
62 44
 	
63 45
 	// type:= 1 => Installation
64 46
 	// type:= 2 => Fonctionnement
@@ -74,629 +56,8 @@ public class carte extends JPanel{
74 56
 		Border blackline = BorderFactory.createLineBorder(Color.black);
75 57
 		Border compound;
76 58
 		compound = BorderFactory.createCompoundBorder(border, blackline);
77
-		
78
-		
79
-		if (i==2) {
80
-			
81
-			
82
-			//Initialitsation
83
-			TextPanel cadran1;
84
-			TextPanel cadran2;
85
-			TextPanel cadran3;
86
-			TextPanel cadran4;
87
-			GridLayout g= new GridLayout(2,2);
88
-			g.setHgap(10);
89
-			g.setVgap(10);
90
-			setLayout(g);
91
-			
92
-			
93
-			//Cadran 1 
94
-			cadran1 = new TextPanel(taille);
95
-			
96
-			cadran1.AjouterParagraph("       \n");
97
-			cadran1.AjouterParagraph("                              Du BIM à la Réalité Virtuelle!  \n");
98
-			cadran1.AjouterParagraph("       \n");
99
-			cadran1.AjouterParagraph("  Projet issu d'une collaboration entre l'INSA et l'ISDAT. \n");
100
-			cadran1.AjouterParagraph(" \n");
101
-			cadran1.AjouterParagraph("  A partir d'une simulation BIM réalisée par les élèves de l'ISDAT, \n");
102
-			cadran1.AjouterParagraph("  ceux de l'INSA ont mis au point une application permettant \n");
103
-			cadran1.AjouterParagraph("  de visualiser un environnement virtuel dépendant \n");
104
-			cadran1.AjouterParagraph("  de la maquette BIM, afin d'intéragir avec \n");
105
-			cadran1.AjouterParagraph("  lui au sein de cette réalité virtuelle. \n");
106
-			
107
-			cadran1.setEditable(false);
108
-			cadran1.setBorder(compound);
109
-			
110
-			
111
-			//Cadran 2
112
-			cadran2 = new TextPanel(taille);
113
-			
114
-			cadran2.AjouterParagraph("       \n");
115
-			cadran2.AjouterParagraph("  Participants à la réalisation du projet : \n");
116
-			cadran2.AjouterParagraph("       \n");
117
-			cadran2.AjouterParagraph("  Elèves de l'INSA :            Elèves de l'ISDAT :           Tuteurs : \n");
118
-			cadran2.AjouterParagraph(" \n");
119
-			cadran2.AjouterParagraph("  AMOUR Chadi                                                          BRUYERE Nathalie \n");
120
-			cadran2.AjouterParagraph("  BERRADA El Ghali                                                   MONTEIL Thierry \n");
121
-			cadran2.AjouterParagraph("  BERTA Pauline \n");
122
-			cadran2.AjouterParagraph("  BOUOULID Ilias \n");
123
-			cadran2.AjouterParagraph("  NUNES Joao \n");
124
-			cadran2.AjouterParagraph("  POLONI Laura \n");
125
-			cadran2.AjouterParagraph("       \n");
126
-			cadran2.setEditable(false);
127
-			cadran2.setBorder(compound);
128
-			
129
-			
130
-			//Cadran 3 
131
-			
132
-			cadran3 = new TextPanel(taille);
133
-			
134
-			cadran3.AjouterParagraph("       \n");
135
-			cadran3.AjouterParagraph("  Logiciels nécessaires à la bonne réalisation du projet : \n");
136
-			cadran3.AjouterParagraph("       \n");
137
-			cadran3.AjouterParagraph("  Revit \n");
138
-			cadran3.AjouterParagraph("  GrassHopper (avec son plugin) \n");
139
-			cadran3.AjouterParagraph("  Trinus \n");
140
-			cadran3.AjouterParagraph("  GlovePie \n");
141
-			cadran3.AjouterParagraph("       \n");
142
-			cadran3.AjouterParagraph("  Nous vous expliquerons par la suite quels sont les logiciels \n");
143
-			cadran3.AjouterParagraph("  prérequis, et quels sont ceux dont nous allons guider l'installation. \n");
144
-			cadran3.setEditable(false);
145
-			cadran3.setBorder(compound);
146
-			
147
-			
148
-			//Cadran 4
149
-			
150
-			cadran4 = new TextPanel(taille);
151
-			
152
-			cadran4.AjouterParagraph("       \n");
153
-			cadran4.AjouterParagraph("  Matériel nécessaire à la bonne réalisation du projet : \n");
154
-			cadran4.AjouterParagraph("       \n");
155
-			cadran4.AjouterParagraph("  Wiimote \n");
156
-			cadran4.AjouterParagraph("  Sensor bar \n");
157
-			cadran4.AjouterParagraph("  Masque \n");
158
-			cadran4.AjouterParagraph("  Smartphone \n");
159
-			cadran4.AjouterParagraph("       \n");
160
-			cadran4.AjouterParagraph("  Nous vous expliquerons par la suite quel sera l'utilisation \n");
161
-			cadran4.AjouterParagraph("  de chaque matériel et comment les mettre en place. \n");
162
-			cadran4.setEditable(false);
163
-			cadran4.setBorder(compound);
164
-			
165
-			//Ajouter les cadrans
166
-			add(cadran1);
167
-			add(cadran2);
168
-			add(cadran3);
169
-			add(cadran4);			
170
-			
171
-			
172
-		}
173
-		else if (i==3) {
174
-
175
-			//Initialitsation
176
-			TextPanel cadran1;
177
-			TextPanel cadran2;
178
-			TextPanel cadran3;
179
-			TextPanel cadran4;
180
-			GridLayout g= new GridLayout(2,2);
181
-			g.setHgap(10);
182
-			g.setVgap(10);
183
-			setLayout(g);
184
-			
185
-			//Cadran 1 
186
-			
187
-			cadran1 = new TextPanel(taille);
188
-			cadran1.setBorder(compound);
189
-			cadran1.AjouterParagraph("  \n");
190
-			cadran1.AjouterParagraph("  Pour le bon fonctionnement du système, il faut va falloir \n");
191
-			cadran1.AjouterParagraph("  que vous installiez au préalable deux logiciels.\n");
192
-			cadran1.AjouterParagraph("     * Revit (Développement d'Objets et de Structures 3D) \n");
193
-			cadran1.AjouterParagraph("     * Grasshopper (Outil utilisé en Association avec Revit)\n");
194
-			cadran1.AjouterParagraph("  \n");
195
-			cadran1.AjouterParagraph("  Vérifier bien que la connexion bluetooth fonctionne sur votre machine, \n");
196
-			cadran1.AjouterParagraph("  elle sera nécessaire pour connecter votre wiimote à l'ordinateur. \n");
197
-			cadran1.AjouterParagraph("  \n");
198
-			cadran1.AjouterParagraph("  Lorsque tous les pré-requis précédent sont installés et vérifiés  \n");
199
-			cadran1.AjouterParagraph("  vous pouvez passez à la suite!\n");
200
-			cadran1.AjouterParagraph("  \n");
201
-			cadran1.setEditable(false);
202
-			
203
-			//Cadran 2 
204
-			
205
-			cadran2 = new TextPanel(taille);
206
-		
207
-			cadran2.setBorder(compound);
208
-			cadran2.AjouterParagraph("  \n");
209
-			cadran2.AjouterParagraph("  Avant de pouvoir utiliser l'application il reste \n");
210
-			cadran2.AjouterParagraph("  quelques étapes à parcourir. \n");
211
-			cadran2.AjouterParagraph("  \n");
212
-			cadran2.AjouterParagraph("  Nous allons vous guider dans l'installation de deux derniers \n");
213
-			cadran2.AjouterParagraph("  logiciels, tels que : \n");
214
-			cadran2.AjouterParagraph("     * GlovePie (Emulateur de Clavier et Souris) \n");
215
-			cadran2.AjouterParagraph("     * Trinus (Convertisseur d'Images Classiques en Images au format VR) \n");
216
-			cadran2.AjouterParagraph("  \n");
217
-			cadran2.AjouterParagraph("  Sur la page suivante les démarches vous sont expliquées pas-à-pas! \n");
218
-			cadran2.AjouterParagraph("  \n");
219
-			cadran2.setEditable(false);
220
-			
221
-			//Cadran 3
222
-			cadran3 = new TextPanel(taille);
223
-			
224
-			cadran3.setBorder(compound);
225
-			cadran3.AjouterParagraph("  \n");
226
-			cadran3.AjouterParagraph("  Vous pouvez remarquer plusieurs boutons à votre disposition ci-dessous. \n");
227
-			cadran3.AjouterParagraph("  \n");
228
-			cadran3.AjouterParagraph("  Vous avez la possibilité à tout moment de retourner sur la page \n");
229
-			cadran3.AjouterParagraph("  précédente avec le bouton PRECEDENT. \n");
230
-			cadran3.AjouterParagraph("  \n");
231
-			cadran3.AjouterParagraph("  De la même manière, vous avez la possibilité de passer à la \n");
232
-			cadran3.AjouterParagraph("  suivante avec le bouton SUIVANT.\n");
233
-			cadran3.AjouterParagraph("  \n");
234
-			cadran3.setEditable(false);
235
-			
236
-			//Cadran 4 
237
-			
238
-			cadran4 = new TextPanel(taille);
239
-		
240
-			cadran4.setBorder(compound);
241
-			cadran4.AjouterParagraph("  \n");
242
-			cadran4.AjouterParagraph("  Le bouton LANCER VR est là pour vous permettre de passer en un \n");
243
-			cadran4.AjouterParagraph("  clic toute la partie Installation des logiciels GlovePie et Trinus.\n");
244
-			cadran4.AjouterParagraph("  \n");
245
-			cadran4.AjouterParagraph("  ! Si vous avez déjà réaliser les installations sur votre machine \n");
246
-			cadran4.AjouterParagraph("  lors d'une précédente utilisation, il n'est pas nécessaire de \n");
247
-			cadran4.AjouterParagraph("  recommencer ! \n");
248
-			cadran4.AjouterParagraph("  \n");
249
-			cadran4.AjouterParagraph("  ! Cliquer directement sur LANCER VR ! \n");
250
-			cadran4.AjouterParagraph("  \n");
251
-			cadran4.setEditable(false);
252
-			
253
-			
254
-			//Ajouter les cadrans
255
-			add(cadran1);
256
-			add(cadran2);
257
-			add(cadran3);
258
-			add(cadran4);
259
-			
260
-			
261
-		}
262
-		else if (i==4) {
263
-			
264
-			//Initialitsation
265
-			JPanel cadran1 = new JPanel();
266
-			TextPanel cadran1_1;
267
-			ImagePanel cadran2;
268
-			ImagePanel cadran3;
269
-			ImagePanel cadran4;
270
-			TextPanel Texte;
271
-			
272
-			JButton BoutonInstallationTrinus = new JButton("START INSTALLATION");
273
-			Font f = new Font("Serif", Font.BOLD, 45);
274
-			
275
-			BoutonInstallationTrinus.setFont(f);
276
-			BoutonInstallationTrinus.setForeground(Color.WHITE);
277
-			BoutonInstallationTrinus.setBackground(Color.LIGHT_GRAY);
278
-			
279
-			GridLayout g= new GridLayout(2,2);
280
-			GridLayout cad1 = new GridLayout(2,1);
281
-			g.setHgap(10);
282
-			g.setVgap(10);
283
-			setLayout(g);
284
-			
285
-			
286
-			//Cadran 1 
287
-			
288
-			cadran1.setLayout(cad1);
289
-			
290
-			cadran1_1 = new TextPanel(taille);
291
-			cadran1_1.setBorder(compound);
292
-			
293
-			cadran1_1.AjouterParagraph("  \n");
294
-			cadran1_1.AjouterParagraph("  L'installation du logiciel Trinus est nécessaire pour le bon \n");
295
-			cadran1_1.AjouterParagraph("  fonctionnement de notre système. \n");
296
-			cadran1_1.AjouterParagraph("  START INSTALLATION va lancer automatiquement l'installation du logiciel. \n");
297
-			cadran1_1.AjouterParagraph("  Vous devez accepter et suivre les étapes décrites sur les images suivantes. \n");
298
-			cadran1_1.AjouterParagraph("  \n");
299
-			cadran1_1.setEditable(false);
300
-			
301
-			cadran1.add(cadran1_1);
302
-			cadran1.add(BoutonInstallationTrinus);
303
-			
304
-
305
-			//Cadran 2
306
-			cadran2 = new ImagePanel("Images/Install_Trinus/1.png");
307
-			cadran2.setBorder(compound);
308
-			
309
-			//Cadran3 
310
-			cadran3 = new ImagePanel("Images/Install_Trinus/2.png");
311
-			cadran3.setBorder(compound);
312
-			
313
-			//Cadran 4
314
-			cadran4 = new ImagePanel("Images/Install_Trinus/3.png");
315
-			cadran4.setBorder(compound);
316
-			
317
-			//Ajouter les cadrans
318
-			add(cadran1);
319
-			add(cadran2);
320
-			add(cadran3);
321
-			add(cadran4);
322
-			
323
-			BoutonInstallationTrinus.addActionListener(new ActionListener() {
324
-		    	public void actionPerformed(ActionEvent event) {
325
-		    		
326
-					
327
-					Runtime rt = Runtime.getRuntime();
328
-					try {
329
-						rt.exec(new String[] {"External_Software/TGsetup.exe"});
330
-						
331
-					}
332
-					catch (IOException e) {
333
-						e.printStackTrace();
334
-					}		
335
-		    	}
336
-		    }
337
-			);
338
-			
339
-		}
340
-		else if (i==5) {
341
-
342
-			//Initialitsation
343
-			ImagePanel cadran1;
344
-			ImagePanel cadran2;
345
-			ImagePanel cadran3;
346
-			ImagePanel cadran4;
347
-			GridLayout g= new GridLayout(2,2);
348
-			g.setHgap(10);
349
-			g.setVgap(10);
350
-			setLayout(g);
351
-			
352
-			//Cadran 1
353
-			cadran1 = new ImagePanel("Images/Install_Trinus/4.png");
354
-			cadran1.setBorder(border);
355
-			
356
-			//Cadran 2
357
-			cadran2 = new ImagePanel("Images/Install_Trinus/5.png");
358
-			cadran2.setBorder(compound);
359
-			
360
-			//Cadran 3
361
-			cadran3 = new ImagePanel("Images/Install_Trinus/6.png");
362
-			cadran3.setBorder(compound);
363
-			
364
-			//Cadran 4
365
-			cadran4 = new ImagePanel("Images/Install_Trinus/7.png");
366
-			cadran4.setBorder(compound);
367
-		
368
-			
369
-			//Ajout des cadrans
370
-			add(cadran1);
371
-			add(cadran2);
372
-			add(cadran3);
373
-			add(cadran4);
374
-			
375
-		}
376
-		else if (i==6) {
59
+	 if (i==8) {
377 60
 
378
-			//Initialitsation
379
-			JPanel cadran1 = new JPanel();
380
-			TextPanel cadran1_1;
381
-			ImagePanel cadran2;
382
-			ImagePanel cadran3;
383
-			ImagePanel cadran4;
384
-			
385
-			
386
-			JButton BoutonInstallationManette = new JButton("START INSTALLATION");
387
-			Font f = new Font("Serif", Font.BOLD, 45);
388
-			
389
-			BoutonInstallationManette.setFont(f);
390
-			BoutonInstallationManette.setForeground(Color.WHITE);
391
-			BoutonInstallationManette.setBackground(Color.LIGHT_GRAY);
392
-			
393
-			GridLayout g= new GridLayout(2,2);
394
-			GridLayout cad1 = new GridLayout(2,1);
395
-			g.setHgap(10);
396
-			g.setVgap(10);
397
-			setLayout(g);
398
-			
399
-			//Cadran 1 
400
-			
401
-			cadran1.setLayout(cad1);
402
-			cadran1.setBorder(compound);
403
-			
404
-			cadran1_1 = new TextPanel(taille);
405
-
406
-			cadran1_1.setBorder(compound);
407
-			
408
-			cadran1_1.AjouterParagraph("  \n");
409
-			cadran1_1.AjouterParagraph("  Pour finir, nous devons installer la manette Wiimote. \n");
410
-			cadran1_1.AjouterParagraph("  Pour cela nous allons l'ajouter en tant que périphérique Bluetooth. \n");
411
-			cadran1_1.AjouterParagraph("  Cliquer sur START INSTALLATION, le panneau de configuration va apparaitre.\n");
412
-			cadran1_1.AjouterParagraph("  Suivez les étapes d'installation avec les images suivantes. \n");
413
-			cadran1_1.AjouterParagraph("  \n");
414
-
415
-			cadran1_1.setEditable(false);
416
-			
417
-			cadran1.add(cadran1_1);
418
-			cadran1.add(BoutonInstallationManette);
419
-			
420
-			
421
-			//Cadran 2
422
-			cadran2 = new ImagePanel("Images/Install_Wiimote/1.png");
423
-			cadran2.setBorder(compound);
424
-			
425
-			
426
-			//Cadran 3 
427
-			cadran3 = new ImagePanel("Images/Install_Wiimote/3.png");
428
-			cadran3.setBorder(compound);
429
-			
430
-			
431
-			//Cadran 4 
432
-			cadran4 = new ImagePanel("Images/Install_Wiimote/4.png");
433
-			cadran4.setBorder(compound);
434
-			
435
-			
436
-			//Ajout des cadrans
437
-			add(cadran1);
438
-			add(cadran2);
439
-			add(cadran3);
440
-			add(cadran4);
441
-			
442
-			
443
-			//BoutonInstallationManette.addActionListener(new ActionListener() {});
444
-		
445
-			
446
-			BoutonInstallationManette.addActionListener(new ActionListener() {
447
-				public void actionPerformed(ActionEvent event) {
448
-		    		//Lancement du panneau de configuration
449
-					
450
-					Runtime rt = Runtime.getRuntime();
451
-					try {
452
-						rt.exec(new String[] {"cmd.exe","/c","start","control"});
453
-						
454
-					}
455
-					catch (IOException e) {
456
-						e.printStackTrace();
457
-					}		
458
-		    	}
459
-		    }
460
-			);
461
-			
462
-			
463
-		
464
-	}
465
-	
466
-	else if (i==7) {
467
-
468
-			//Installation
469
-			TextPanel cadran1;
470
-			TextPanel cadran2;
471
-			JPanel cadran3;
472
-			JPanel cadran4;
473
-			JButton BoutonVarEnvTrinus;
474
-			JButton BoutonVarEnvRevit;
475
-			
476
-			GridLayout grid = new GridLayout(2,2);
477
-			grid.setHgap(10);
478
-			grid.setVgap(10);
479
-			setLayout(grid);
480
-			
481
-			
482
-			//Cadran 1
483
-			cadran1 = new TextPanel(taille);
484
-			cadran1.AjouterParagraph("Veuillez indiquer ou vous avez installé le logiciel Trinus. ");
485
-			cadran1.AjouterParagraph("Vous pouvez selectionner directement le fichier de lancement présent sur votre bureau.");
486
-			cadran1.AjouterParagraph("Ou alors donner le chemin du logiciel dans la racine. Typiquement le logiciel s'installe dans le dossier \"Program Files\"");
487
-			cadran1.setEditable(false);
488
-			cadran1.setBorder(compound);
489
-			// Cadran 2
490
-			cadran2 = new TextPanel(taille);
491
-			cadran2.AjouterParagraph("Veuillez indiquer ou vous avez installé le logiciel de CAD. De préferance Revit, puisque notre système est optimisé pour l'utilisation de Revit. ");
492
-			cadran2.AjouterParagraph("Vous pouvez selectionner directement le fichier de lancement présent sur votre bureau.");
493
-			cadran2.AjouterParagraph("Ou alors donner le chemin du logiciel dans la racine. Typiquement le logiciel s'installe dans le dossier \"Program Files\"");
494
-			cadran2.setEditable(false);
495
-			cadran2.setBorder(compound);
496
-			
497
-			//Cadran 3 
498
-			cadran3 = new JPanel();
499
-			BoutonVarEnvTrinus = new JButton("Indiquer où se trouve le logiciel Trinus");
500
-			cadran3.add(BoutonVarEnvTrinus);
501
-			
502
-			//Cadran 4 
503
-			cadran4 = new JPanel();
504
-			BoutonVarEnvRevit = new JButton("Indiquer où se trouve le logiciel de CAD");
505
-			cadran4.add(BoutonVarEnvRevit);
506
-			
507
-			
508
-			
509
-			//Ajout des cadran
510
-			add(cadran1);
511
-			add(cadran2);
512
-			add(cadran3);
513
-			add(cadran4);
514
-					
515
-			BoutonVarEnvTrinus.addActionListener(new ActionListener() {
516
-		    	public void actionPerformed(ActionEvent event) {
517
-		    	 carte.pathTrinus = getPath();
518
-		    		System.out.println(pathTrinus);
519
-		    			
520
-		    	}
521
-		    }
522
-			);
523
-			
524
-			BoutonVarEnvRevit.addActionListener(new ActionListener() {
525
-		    	public void actionPerformed(ActionEvent event) {
526
-		    		carte.pathRevit = getPath();
527
-		    		System.out.println(pathRevit);
528
-		    			
529
-		    	}
530
-		    });
531
-			
532
-			
533
-				
534
-		}
535
-		else if (i==8) {
536
-
537
-			//Initialitsation
538
-			TextPanel cadran1;
539
-			JPanel cadran2;
540
-			
541
-			Font f = new Font("Serif", Font.BOLD, 15);
542
-			
543
-			JButton BoutonGlovePie = new JButton("Lancer GLovePie");
544
-			BoutonGlovePie.setFont(f);
545
-			BoutonGlovePie.setForeground(Color.BLACK);
546
-			BoutonGlovePie.setBackground(Color.LIGHT_GRAY);
547
-			
548
-			JButton BoutonTrinus = new JButton("Lancer Trinus");
549
-			BoutonTrinus.setFont(f);
550
-			BoutonTrinus.setForeground(Color.BLACK);
551
-			BoutonTrinus.setBackground(Color.LIGHT_GRAY);
552
-		
553
-			JButton BoutonRevit = new JButton("Lancer Revit");
554
-			BoutonRevit.setFont(f);
555
-			BoutonRevit.setForeground(Color.BLACK);
556
-			BoutonRevit.setBackground(Color.LIGHT_GRAY);
557
-			
558
-			JButton BoutonInternet = new JButton("Lancer AutoDesk View");
559
-			BoutonInternet.setFont(f);
560
-			BoutonInternet.setForeground(Color.BLACK);
561
-			BoutonInternet.setBackground(Color.LIGHT_GRAY);
562
-			
563
-			JButton BoutonClavier = new JButton ("Lancer le clavier Virtuel");
564
-			BoutonClavier.setFont(f);
565
-			BoutonClavier.setForeground(Color.BLACK);
566
-			BoutonClavier.setBackground(Color.LIGHT_GRAY);
567
-			
568
-			GridLayout grid= new GridLayout(2,2);
569
-			FlowLayout flow = new FlowLayout();
570
-			grid.setHgap(10);
571
-			grid.setVgap(10);
572
-			setLayout(grid);
573
-			
574
-			//Cadran 1
575
-			cadran1 = new TextPanel(taille);
576
-			cadran1.AjouterParagraph("  \n");
577
-			cadran1.AjouterParagraph("  Le système est prêt à être utilisé! \n");
578
-			cadran1.AjouterParagraph("  \n");
579
-			cadran1.AjouterParagraph("  Les logiciels suivant sont bien installés sur la machine : \n ");
580
-			cadran1.AjouterParagraph("     * GlovePie \n");
581
-			cadran1.AjouterParagraph("      * Trinus \n");
582
-			cadran1.AjouterParagraph("  La WiiMote est reliée en Bluetooth à l'ordinateur! \n");
583
-			cadran1.AjouterParagraph("  \n");
584
-			cadran1.AjouterParagraph("  Les différents boutons ci-dessous vous permettent de lancer tous les outils nécessaires. \n");
585
-			cadran1.AjouterParagraph("  \n");
586
-			cadran1.setEditable(false);
587
-			cadran1.setBorder(compound);
588
-			
589
-			//Cadran 2
590
-			cadran2 = new JPanel();
591
-			cadran2.setLayout(flow);
592
-			cadran2.add(BoutonGlovePie);
593
-			cadran2.add(BoutonTrinus);
594
-			cadran2.add(BoutonRevit);
595
-			cadran2.add(BoutonInternet);
596
-			cadran2.add(BoutonClavier);
597
-			
598
-			//Gestion Boutons
599
-
600
-			BoutonGlovePie.addActionListener(new ActionListener() {
601
-		    	public void actionPerformed(ActionEvent event) {
602
-		    		//Lancement du panneau de configuration
603
-		    		File file = new File("External_Software/Glovepie/WiimoteScripts/WiimoteScript.PIE");
604
-		    		java.awt.Desktop desktop = Desktop.getDesktop();
605
-		    		
606
-		    		try {
607
-		    			
608
-						desktop.open(file);
609
-						
610
-					} catch (IOException e) {
611
-						// TODO Auto-generated catch block
612
-						e.printStackTrace();
613
-
614
-					}
615
-					} 
616
-		    	}
617
-		    );
618
-			
619
-			BoutonTrinus.addActionListener(new ActionListener() {
620
-		    	public void actionPerformed(ActionEvent event) {
621
-		    		//Lancement du panneau de configuration
622
-		    		System.out.println(pathTrinus);
623
-						File file = new File(pathTrinus);
624
-			    		java.awt.Desktop desktop = Desktop.getDesktop();
625
-			    		
626
-			    		try {
627
-			    		
628
-							desktop.open(file);
629
-							
630
-						} catch (IOException e) {
631
-							// TODO Auto-generated catch block
632
-							e.printStackTrace();
633
-						}
634
-							
635
-
636
-		    	}
637
-		    });
638
-			
639
-			BoutonRevit.addActionListener(new ActionListener() {
640
-		    	public void actionPerformed(ActionEvent event) {
641
-		    		//Lancement du panneau de configuration
642
-					
643
-
644
-					File file = new File(pathRevit);
645
-		    		java.awt.Desktop desktop = Desktop.getDesktop();
646
-		    		
647
-		    		try {
648
-		    		
649
-						desktop.open(file);
650
-						
651
-					} catch (IOException e) {
652
-						// TODO Auto-generated catch block
653
-						e.printStackTrace();
654
-		    	}
655
-		    	}}
656
-		    	);
657
-			
658
-			BoutonInternet.addActionListener(new ActionListener() {
659
-		    	public void actionPerformed(ActionEvent event) {
660
-		    		//Lancement du panneau de configuration
661
-					
662
-					Runtime rt = Runtime.getRuntime();
663
-					try {
664
-						rt.exec(new String[] {"cmd.exe","/c","start","https://viewer.autodesk.com/"});
665
-						
666
-					}catch (IOException e) {
667
-						e.printStackTrace();
668
-					}
669
-	
670
-		    	}
671
-		    });
672
-			
673
-			BoutonClavier.addActionListener(new ActionListener() {
674
-		    	public void actionPerformed(ActionEvent event) {
675
-		    		//Lancement du panneau de configuration
676
-					
677
-					Runtime rt = Runtime.getRuntime();
678
-					try {
679
-						rt.exec(new String[] {"cmd.exe","/c","start","osk"});
680
-						
681
-					}catch (IOException e) {
682
-						e.printStackTrace();
683
-					}
684
-		    			
685
-		    	}
686
-		    });
687
-			
688
-			
689
-			
690
-			
691
-			
692
-			
693
-			
694
-			
695
-			//Ajout Cadran
696
-			add(cadran1);
697
-			add(cadran2);
698
-			
699
-			
700 61
 			
701 62
 			
702 63
 		

Loading…
Cancel
Save