Compare commits
4 commits
Author | SHA1 | Date | |
---|---|---|---|
8255846e12 | |||
516491a881 | |||
db14339dec | |||
b708efc988 |
51 changed files with 1130 additions and 685 deletions
BIN
App1.jar
Normal file
BIN
App1.jar
Normal file
Binary file not shown.
|
@ -2,12 +2,44 @@
|
||||||
var.PointerBump = KeepDown(Pressed(wiimote.A),var.ButtonFreezeTime) or KeepDown(Pressed(wiimote.B),var.ButtonFreezeTime)
|
var.PointerBump = KeepDown(Pressed(wiimote.A),var.ButtonFreezeTime) or KeepDown(Pressed(wiimote.B),var.ButtonFreezeTime)
|
||||||
Wiimote.Led1 = true
|
Wiimote.Led1 = true
|
||||||
|
|
||||||
var.MoveButton = wiimote.B
|
|
||||||
mouse.LeftButton = wiimote.A
|
|
||||||
mouse.RightButton = wiimote.Plus
|
|
||||||
mouse.MiddleButton = wiimote.Down
|
|
||||||
|
|
||||||
|
|
||||||
|
mouse.RightButton = wiimote.B ;
|
||||||
|
mouse.LeftButton = wiimote.A
|
||||||
|
Up = wiimote.Up
|
||||||
|
Down = wiimote.Down
|
||||||
|
Left = wiimote.Left
|
||||||
|
Right = wiimote.Right
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if KeepDown(Pressed(wiimote.Plus),var.ButtonFreezeTime) then
|
||||||
|
mouse.x = 0.5
|
||||||
|
mouse.y = 0.5
|
||||||
|
var.HeadMouv = True
|
||||||
|
end if
|
||||||
|
if KeepDown(Pressed(wiimote.Minus),var.ButtonFreezeTime) then
|
||||||
|
mouse.x = 0.5
|
||||||
|
mouse.y = 0.5
|
||||||
|
var.HeadMouv = false
|
||||||
|
end if
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if var.HeadMouv then
|
||||||
|
Wiimote.Led2 = true
|
||||||
|
Wiimote.Led3 = false
|
||||||
|
else
|
||||||
|
Wiimote.Led3 = true
|
||||||
|
Wiimote.Led2 = false
|
||||||
if wiimote.PointerVisible but not var.PointerBump then
|
if wiimote.PointerVisible but not var.PointerBump then
|
||||||
mouse.x = wiimote.PointerX
|
mouse.x = wiimote.PointerX
|
||||||
mouse.y = wiimote.PointerY
|
mouse.y = wiimote.PointerY
|
||||||
end if
|
end if
|
||||||
|
end if
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,67 +1,67 @@
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PieLog
|
(0, 07-mai-2020 11:32:54) Initializing PieLog
|
||||||
(0, 06-mai-2020 10:24:44) Initializing filemode variable
|
(0, 07-mai-2020 11:32:54) Initializing filemode variable
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PieSpeech
|
(0, 07-mai-2020 11:32:54) Initializing PieSpeech
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PieVariables
|
(0, 07-mai-2020 11:32:54) Initializing PieVariables
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PieCursorUnit
|
(0, 07-mai-2020 11:32:54) Initializing PieCursorUnit
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PieMouse
|
(0, 07-mai-2020 11:32:54) Initializing PieMouse
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PieKeyboard
|
(0, 07-mai-2020 11:32:54) Initializing PieKeyboard
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PieInput
|
(0, 07-mai-2020 11:32:54) Initializing PieInput
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PieOSC
|
(0, 07-mai-2020 11:32:54) Initializing PieOSC
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PiePie
|
(0, 07-mai-2020 11:32:54) Initializing PiePie
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PieFunction
|
(0, 07-mai-2020 11:32:54) Initializing PieFunction
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PieStatement
|
(0, 07-mai-2020 11:32:54) Initializing PieStatement
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PieExpression
|
(0, 07-mai-2020 11:32:54) Initializing PieExpression
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PieJoystick
|
(0, 07-mai-2020 11:32:54) Initializing PieJoystick
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PieP5
|
(0, 07-mai-2020 11:32:54) Initializing PieP5
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PieMidi
|
(0, 07-mai-2020 11:32:54) Initializing PieMidi
|
||||||
(0, 06-mai-2020 10:24:45) Initializing PiePPJoy
|
(0, 07-mai-2020 11:32:54) Initializing PiePPJoy
|
||||||
(0, 06-mai-2020 10:24:45) Initializing PieRemote
|
(0, 07-mai-2020 11:32:54) Initializing PieRemote
|
||||||
(0, 06-mai-2020 10:24:45) Initializing Pie Speech Recognition
|
(0, 07-mai-2020 11:32:54) Initializing Pie Speech Recognition
|
||||||
(0, 06-mai-2020 10:24:45) Initializing PieScreen
|
(0, 07-mai-2020 11:32:54) Initializing PieScreen
|
||||||
(0, 06-mai-2020 10:24:45) GetMonitorEDID
|
(0, 07-mai-2020 11:32:54) GetMonitorEDID
|
||||||
(0, 06-mai-2020 10:24:45) Initializing PieWIndow
|
(0, 07-mai-2020 11:32:54) Initializing PieWIndow
|
||||||
(0, 06-mai-2020 10:24:45) Initializing PieCursors
|
(0, 07-mai-2020 11:32:54) Initializing PieCursors
|
||||||
(0, 06-mai-2020 10:24:45) Initializing PieZ800
|
(0, 07-mai-2020 11:32:54) Initializing PieZ800
|
||||||
(0, 06-mai-2020 10:24:45) Initializing PieIntersense
|
(0, 07-mai-2020 11:32:54) Initializing PieIntersense
|
||||||
(0, 06-mai-2020 10:24:45) Initializing PieFastrak
|
(0, 07-mai-2020 11:32:54) Initializing PieFastrak
|
||||||
(0, 06-mai-2020 10:24:45) Initializing PiePPT
|
(0, 07-mai-2020 11:32:54) Initializing PiePPT
|
||||||
(0, 06-mai-2020 10:24:45) Initializing PieTrackIR
|
(0, 07-mai-2020 11:32:54) Initializing PieTrackIR
|
||||||
(0, 06-mai-2020 10:24:45) Initializing PiePinch
|
(0, 07-mai-2020 11:32:54) Initializing PiePinch
|
||||||
(0, 06-mai-2020 10:24:45) Starting main
|
(0, 07-mai-2020 11:32:54) Starting main
|
||||||
(0, 06-mai-2020 10:24:45) Application object initialized
|
(0, 07-mai-2020 11:32:54) Application object initialized
|
||||||
(0, 06-mai-2020 10:24:45) Creating main window
|
(0, 07-mai-2020 11:32:54) Creating main window
|
||||||
(0, 06-mai-2020 10:24:48) EditorForm.Create
|
(0, 07-mai-2020 11:32:54) EditorForm.Create
|
||||||
(0, 06-mai-2020 10:24:51) Checking command line parameters:
|
(0, 07-mai-2020 11:32:54) Checking command line parameters:
|
||||||
(0, 06-mai-2020 10:24:51) Creating debug window
|
(0, 07-mai-2020 11:32:54) Creating debug window
|
||||||
(0, 06-mai-2020 10:24:52) Assigning exception handler
|
(0, 07-mai-2020 11:32:54) Assigning exception handler
|
||||||
(0, 06-mai-2020 10:24:52) Creating debug remote control window
|
(0, 07-mai-2020 11:32:54) Creating debug remote control window
|
||||||
(0, 06-mai-2020 10:24:52) Running application
|
(0, 07-mai-2020 11:32:54) Running application
|
||||||
(0, 06-mai-2020 10:24:54) FormCloseQuery
|
(0, 07-mai-2020 11:32:57) FormCloseQuery
|
||||||
(0, 06-mai-2020 10:24:54) Compile>Stop
|
(0, 07-mai-2020 11:32:57) Compile>Stop
|
||||||
(0, 06-mai-2020 10:24:54) Application finished
|
(0, 07-mai-2020 11:32:57) Application finished
|
||||||
(0, 06-mai-2020 10:24:54) Destroying EditorForm
|
(0, 07-mai-2020 11:32:57) Destroying EditorForm
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PiePinch
|
(0, 07-mai-2020 11:32:57) Finalizing PiePinch
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieTrackIR
|
(0, 07-mai-2020 11:32:57) Finalizing PieTrackIR
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PiePPT
|
(0, 07-mai-2020 11:32:57) Finalizing PiePPT
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieFastrak
|
(0, 07-mai-2020 11:32:57) Finalizing PieFastrak
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieIntersense
|
(0, 07-mai-2020 11:32:57) Finalizing PieIntersense
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieZ800
|
(0, 07-mai-2020 11:32:57) Finalizing PieZ800
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieCursors
|
(0, 07-mai-2020 11:32:57) Finalizing PieCursors
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieWindow
|
(0, 07-mai-2020 11:32:57) Finalizing PieWindow
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieScreen
|
(0, 07-mai-2020 11:32:57) Finalizing PieScreen
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing Pie Speech Recognition
|
(0, 07-mai-2020 11:32:57) Finalizing Pie Speech Recognition
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieRemote
|
(0, 07-mai-2020 11:32:57) Finalizing PieRemote
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PiePPJoy
|
(0, 07-mai-2020 11:32:57) Finalizing PiePPJoy
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieMidi
|
(0, 07-mai-2020 11:32:57) Finalizing PieMidi
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieP5
|
(0, 07-mai-2020 11:32:57) Finalizing PieP5
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieJoystick
|
(0, 07-mai-2020 11:32:57) Finalizing PieJoystick
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieStatement
|
(0, 07-mai-2020 11:32:57) Finalizing PieStatement
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieFunction
|
(0, 07-mai-2020 11:32:57) Finalizing PieFunction
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PiePie
|
(0, 07-mai-2020 11:32:57) Finalizing PiePie
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieOSC
|
(0, 07-mai-2020 11:32:57) Finalizing PieOSC
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieKeyboard
|
(0, 07-mai-2020 11:32:57) Finalizing PieKeyboard
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieMouse
|
(0, 07-mai-2020 11:32:57) Finalizing PieMouse
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieVariables
|
(0, 07-mai-2020 11:32:57) Finalizing PieVariables
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieSpeech
|
(0, 07-mai-2020 11:32:57) Finalizing PieSpeech
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieLog
|
(0, 07-mai-2020 11:32:57) Finalizing PieLog
|
||||||
(0, 06-mai-2020 10:24:54) Closing log file
|
(0, 07-mai-2020 11:32:57) Closing log file
|
||||||
|
|
1
External_Software/default.cfg
Normal file
1
External_Software/default.cfg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{"settingsVersion":"0","videoPortTextBox":"7777","sensorPortTextBox":"5555","hotspotSsidTextBox":"trinus","hotspotPwdTextBox":"mypassword","forcedIPCheckBox":"0","forcedIPTextBox":"192.168.42.129","fake3DComboBox":"0","fakeRollCheckBox":"0","motionBoostCheckBox":"1","qualityComboBox":"2","fastScalingCheckBox":"0","dynamicQualityCheckBox":"0","compressionTrackBar":"3","dynamicCompressionQualityCheckBox":"0","captureModeComboBoxV2":"0","captureCursorCheckBox":"0","maxFrameRateTextBox":"70","headmountComboBox":"0","sensorTypeComboBox":"0","trackIRFixCheckBox":"0","leftActionButton":"{\"actionName\":\"D1\",\"deviceId\":\"keyboard\"}","ignoreActionButton":"{\"actionName\":\"D3\",\"deviceId\":\"keyboard\"}","rightActionButton":"{\"actionName\":\"D2\",\"deviceId\":\"keyboard\"}","sensorResetActionButton":"{\"actionName\":\"D4\",\"deviceId\":\"keyboard\"}","orderYawComboBox":"0","orderPitchComboBox":"1","orderRollComboBox":"2","predictiveTrackBar":"0","scaleX":"146928","scaleY":"230000","scaleInX":"2450000","scaleInY":"1700000","screenCenterX":"500000","screenCenterY":"500000","lensCenterX":"536325","lensCenterY":"500000","warpX":"2300000","warpY":"220000","warpZ":"240000","warpW":"0","absScaleX":"0","absScaleY":"0","absScaleInX":"900","absScaleInY":"900","absScreenCenterX":"0","absScreenCenterY":"0","absLensCenterX":"0","absLensCenterY":"0","absWarpX":"0","absWarpY":"0","absWarpZ":"0","absWarpW":"0","absChroma":"0","absIpd":"500","scaleYawTrackBar":"30","scalePitchTrackBar":"15","scaleRollTrackBar":"0","invertYawCheckBox":"0","invertPitchCheckBox":"0","invertRollCheckBox":"0","previewCheckBox":"1","scaleXTrackBar":"1","scaleYTrackBar":"1","scaleZTrackBar":"1","positionPluginNameComboBox":"0","borderFixLeftTrackBar":"0","borderFixRightTrackBar":"0","borderFixTopTrackBar":"0","borderFixBottomTrackBar":"0","zoomTrackBar":"100","zoomCenterPivotCheckBox":"0","wifiHotspotCheckBox":"0","simpleMode":"0","deadZoneTrackBar":"0","dpiFixCheckBox":"0","precisionMouseCheckBox":"0","queueFramesCheckBox":"1","bruteCheckCheckBox":"1","nvidiaOptimizedCheckBox":"0","lowColorButton":"buttonface","highColorButton":"buttonface","steamVRSourceCheckBox":"0","leftTriggerComboBox":"RESET","centerTriggerComboBox":"RESET","rightTriggerComboBox":"ZOOM","useMoonlightCheckBox":"0","brightnessTrackBar":"500","contrastTrackBar":"500","nsdCheckCheckBox":"1","extSteamVRComboBox":"-1","headZOffsetTrackBar":"0","headYOffsetTrackBar":"0","driftCompensationCheckBox":"0","yawOffsetTrackBar":"0","pitchOffsetTrackBar":"0","steamVRSyncCheckBox":"0","steamVRIPDtrackBar":"600","steamVRHookCaptureCheckBox":"1"}
|
|
@ -1,4 +1,4 @@
|
||||||
Readme to be completeds
|
Trinus
|
||||||
Pauline
|
C:\Users\Public\Desktop\Trinus Cardboard.lnk
|
||||||
Joao
|
Revit
|
||||||
Laura
|
C:\Users\Public\Desktop\Oracle VM VirtualBox.lnk
|
||||||
|
|
BIN
bin/App1.jar
Normal file
BIN
bin/App1.jar
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
bin/Application1/Pages/Page1.class
Normal file
BIN
bin/Application1/Pages/Page1.class
Normal file
Binary file not shown.
BIN
bin/Application1/Pages/Page2.class
Normal file
BIN
bin/Application1/Pages/Page2.class
Normal file
Binary file not shown.
BIN
bin/Application1/Pages/Page3$1.class
Normal file
BIN
bin/Application1/Pages/Page3$1.class
Normal file
Binary file not shown.
BIN
bin/Application1/Pages/Page3.class
Normal file
BIN
bin/Application1/Pages/Page3.class
Normal file
Binary file not shown.
BIN
bin/Application1/Pages/Page4.class
Normal file
BIN
bin/Application1/Pages/Page4.class
Normal file
Binary file not shown.
BIN
bin/Application1/Pages/Page5$1.class
Normal file
BIN
bin/Application1/Pages/Page5$1.class
Normal file
Binary file not shown.
BIN
bin/Application1/Pages/Page5.class
Normal file
BIN
bin/Application1/Pages/Page5.class
Normal file
Binary file not shown.
BIN
bin/Application1/Pages/Page6$1.class
Normal file
BIN
bin/Application1/Pages/Page6$1.class
Normal file
Binary file not shown.
BIN
bin/Application1/Pages/Page6$2.class
Normal file
BIN
bin/Application1/Pages/Page6$2.class
Normal file
Binary file not shown.
BIN
bin/Application1/Pages/Page6.class
Normal file
BIN
bin/Application1/Pages/Page6.class
Normal file
Binary file not shown.
BIN
bin/Application1/Pages/Page7$1.class
Normal file
BIN
bin/Application1/Pages/Page7$1.class
Normal file
Binary file not shown.
BIN
bin/Application1/Pages/Page7$2.class
Normal file
BIN
bin/Application1/Pages/Page7$2.class
Normal file
Binary file not shown.
BIN
bin/Application1/Pages/Page7$3.class
Normal file
BIN
bin/Application1/Pages/Page7$3.class
Normal file
Binary file not shown.
BIN
bin/Application1/Pages/Page7$4.class
Normal file
BIN
bin/Application1/Pages/Page7$4.class
Normal file
Binary file not shown.
BIN
bin/Application1/Pages/Page7$5.class
Normal file
BIN
bin/Application1/Pages/Page7$5.class
Normal file
Binary file not shown.
BIN
bin/Application1/Pages/Page7.class
Normal file
BIN
bin/Application1/Pages/Page7.class
Normal file
Binary file not shown.
BIN
bin/Application1/PathVar.class
Normal file
BIN
bin/Application1/PathVar.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -2,12 +2,44 @@
|
||||||
var.PointerBump = KeepDown(Pressed(wiimote.A),var.ButtonFreezeTime) or KeepDown(Pressed(wiimote.B),var.ButtonFreezeTime)
|
var.PointerBump = KeepDown(Pressed(wiimote.A),var.ButtonFreezeTime) or KeepDown(Pressed(wiimote.B),var.ButtonFreezeTime)
|
||||||
Wiimote.Led1 = true
|
Wiimote.Led1 = true
|
||||||
|
|
||||||
var.MoveButton = wiimote.B
|
|
||||||
mouse.LeftButton = wiimote.A
|
|
||||||
mouse.RightButton = wiimote.Plus
|
|
||||||
mouse.MiddleButton = wiimote.Down
|
|
||||||
|
|
||||||
|
|
||||||
|
mouse.RightButton = wiimote.B ;
|
||||||
|
mouse.LeftButton = wiimote.A
|
||||||
|
Up = wiimote.Up
|
||||||
|
Down = wiimote.Down
|
||||||
|
Left = wiimote.Left
|
||||||
|
Right = wiimote.Right
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if KeepDown(Pressed(wiimote.Plus),var.ButtonFreezeTime) then
|
||||||
|
mouse.x = 0.5
|
||||||
|
mouse.y = 0.5
|
||||||
|
var.HeadMouv = True
|
||||||
|
end if
|
||||||
|
if KeepDown(Pressed(wiimote.Minus),var.ButtonFreezeTime) then
|
||||||
|
mouse.x = 0.5
|
||||||
|
mouse.y = 0.5
|
||||||
|
var.HeadMouv = false
|
||||||
|
end if
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if var.HeadMouv then
|
||||||
|
Wiimote.Led2 = true
|
||||||
|
Wiimote.Led3 = false
|
||||||
|
else
|
||||||
|
Wiimote.Led3 = true
|
||||||
|
Wiimote.Led2 = false
|
||||||
if wiimote.PointerVisible but not var.PointerBump then
|
if wiimote.PointerVisible but not var.PointerBump then
|
||||||
mouse.x = wiimote.PointerX
|
mouse.x = wiimote.PointerX
|
||||||
mouse.y = wiimote.PointerY
|
mouse.y = wiimote.PointerY
|
||||||
end if
|
end if
|
||||||
|
end if
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,67 +1,67 @@
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PieLog
|
(0, 07-mai-2020 11:32:54) Initializing PieLog
|
||||||
(0, 06-mai-2020 10:24:44) Initializing filemode variable
|
(0, 07-mai-2020 11:32:54) Initializing filemode variable
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PieSpeech
|
(0, 07-mai-2020 11:32:54) Initializing PieSpeech
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PieVariables
|
(0, 07-mai-2020 11:32:54) Initializing PieVariables
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PieCursorUnit
|
(0, 07-mai-2020 11:32:54) Initializing PieCursorUnit
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PieMouse
|
(0, 07-mai-2020 11:32:54) Initializing PieMouse
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PieKeyboard
|
(0, 07-mai-2020 11:32:54) Initializing PieKeyboard
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PieInput
|
(0, 07-mai-2020 11:32:54) Initializing PieInput
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PieOSC
|
(0, 07-mai-2020 11:32:54) Initializing PieOSC
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PiePie
|
(0, 07-mai-2020 11:32:54) Initializing PiePie
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PieFunction
|
(0, 07-mai-2020 11:32:54) Initializing PieFunction
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PieStatement
|
(0, 07-mai-2020 11:32:54) Initializing PieStatement
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PieExpression
|
(0, 07-mai-2020 11:32:54) Initializing PieExpression
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PieJoystick
|
(0, 07-mai-2020 11:32:54) Initializing PieJoystick
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PieP5
|
(0, 07-mai-2020 11:32:54) Initializing PieP5
|
||||||
(0, 06-mai-2020 10:24:44) Initializing PieMidi
|
(0, 07-mai-2020 11:32:54) Initializing PieMidi
|
||||||
(0, 06-mai-2020 10:24:45) Initializing PiePPJoy
|
(0, 07-mai-2020 11:32:54) Initializing PiePPJoy
|
||||||
(0, 06-mai-2020 10:24:45) Initializing PieRemote
|
(0, 07-mai-2020 11:32:54) Initializing PieRemote
|
||||||
(0, 06-mai-2020 10:24:45) Initializing Pie Speech Recognition
|
(0, 07-mai-2020 11:32:54) Initializing Pie Speech Recognition
|
||||||
(0, 06-mai-2020 10:24:45) Initializing PieScreen
|
(0, 07-mai-2020 11:32:54) Initializing PieScreen
|
||||||
(0, 06-mai-2020 10:24:45) GetMonitorEDID
|
(0, 07-mai-2020 11:32:54) GetMonitorEDID
|
||||||
(0, 06-mai-2020 10:24:45) Initializing PieWIndow
|
(0, 07-mai-2020 11:32:54) Initializing PieWIndow
|
||||||
(0, 06-mai-2020 10:24:45) Initializing PieCursors
|
(0, 07-mai-2020 11:32:54) Initializing PieCursors
|
||||||
(0, 06-mai-2020 10:24:45) Initializing PieZ800
|
(0, 07-mai-2020 11:32:54) Initializing PieZ800
|
||||||
(0, 06-mai-2020 10:24:45) Initializing PieIntersense
|
(0, 07-mai-2020 11:32:54) Initializing PieIntersense
|
||||||
(0, 06-mai-2020 10:24:45) Initializing PieFastrak
|
(0, 07-mai-2020 11:32:54) Initializing PieFastrak
|
||||||
(0, 06-mai-2020 10:24:45) Initializing PiePPT
|
(0, 07-mai-2020 11:32:54) Initializing PiePPT
|
||||||
(0, 06-mai-2020 10:24:45) Initializing PieTrackIR
|
(0, 07-mai-2020 11:32:54) Initializing PieTrackIR
|
||||||
(0, 06-mai-2020 10:24:45) Initializing PiePinch
|
(0, 07-mai-2020 11:32:54) Initializing PiePinch
|
||||||
(0, 06-mai-2020 10:24:45) Starting main
|
(0, 07-mai-2020 11:32:54) Starting main
|
||||||
(0, 06-mai-2020 10:24:45) Application object initialized
|
(0, 07-mai-2020 11:32:54) Application object initialized
|
||||||
(0, 06-mai-2020 10:24:45) Creating main window
|
(0, 07-mai-2020 11:32:54) Creating main window
|
||||||
(0, 06-mai-2020 10:24:48) EditorForm.Create
|
(0, 07-mai-2020 11:32:54) EditorForm.Create
|
||||||
(0, 06-mai-2020 10:24:51) Checking command line parameters:
|
(0, 07-mai-2020 11:32:54) Checking command line parameters:
|
||||||
(0, 06-mai-2020 10:24:51) Creating debug window
|
(0, 07-mai-2020 11:32:54) Creating debug window
|
||||||
(0, 06-mai-2020 10:24:52) Assigning exception handler
|
(0, 07-mai-2020 11:32:54) Assigning exception handler
|
||||||
(0, 06-mai-2020 10:24:52) Creating debug remote control window
|
(0, 07-mai-2020 11:32:54) Creating debug remote control window
|
||||||
(0, 06-mai-2020 10:24:52) Running application
|
(0, 07-mai-2020 11:32:54) Running application
|
||||||
(0, 06-mai-2020 10:24:54) FormCloseQuery
|
(0, 07-mai-2020 11:32:57) FormCloseQuery
|
||||||
(0, 06-mai-2020 10:24:54) Compile>Stop
|
(0, 07-mai-2020 11:32:57) Compile>Stop
|
||||||
(0, 06-mai-2020 10:24:54) Application finished
|
(0, 07-mai-2020 11:32:57) Application finished
|
||||||
(0, 06-mai-2020 10:24:54) Destroying EditorForm
|
(0, 07-mai-2020 11:32:57) Destroying EditorForm
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PiePinch
|
(0, 07-mai-2020 11:32:57) Finalizing PiePinch
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieTrackIR
|
(0, 07-mai-2020 11:32:57) Finalizing PieTrackIR
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PiePPT
|
(0, 07-mai-2020 11:32:57) Finalizing PiePPT
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieFastrak
|
(0, 07-mai-2020 11:32:57) Finalizing PieFastrak
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieIntersense
|
(0, 07-mai-2020 11:32:57) Finalizing PieIntersense
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieZ800
|
(0, 07-mai-2020 11:32:57) Finalizing PieZ800
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieCursors
|
(0, 07-mai-2020 11:32:57) Finalizing PieCursors
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieWindow
|
(0, 07-mai-2020 11:32:57) Finalizing PieWindow
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieScreen
|
(0, 07-mai-2020 11:32:57) Finalizing PieScreen
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing Pie Speech Recognition
|
(0, 07-mai-2020 11:32:57) Finalizing Pie Speech Recognition
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieRemote
|
(0, 07-mai-2020 11:32:57) Finalizing PieRemote
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PiePPJoy
|
(0, 07-mai-2020 11:32:57) Finalizing PiePPJoy
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieMidi
|
(0, 07-mai-2020 11:32:57) Finalizing PieMidi
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieP5
|
(0, 07-mai-2020 11:32:57) Finalizing PieP5
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieJoystick
|
(0, 07-mai-2020 11:32:57) Finalizing PieJoystick
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieStatement
|
(0, 07-mai-2020 11:32:57) Finalizing PieStatement
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieFunction
|
(0, 07-mai-2020 11:32:57) Finalizing PieFunction
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PiePie
|
(0, 07-mai-2020 11:32:57) Finalizing PiePie
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieOSC
|
(0, 07-mai-2020 11:32:57) Finalizing PieOSC
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieKeyboard
|
(0, 07-mai-2020 11:32:57) Finalizing PieKeyboard
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieMouse
|
(0, 07-mai-2020 11:32:57) Finalizing PieMouse
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieVariables
|
(0, 07-mai-2020 11:32:57) Finalizing PieVariables
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieSpeech
|
(0, 07-mai-2020 11:32:57) Finalizing PieSpeech
|
||||||
(0, 06-mai-2020 10:24:54) Finalizing PieLog
|
(0, 07-mai-2020 11:32:57) Finalizing PieLog
|
||||||
(0, 06-mai-2020 10:24:54) Closing log file
|
(0, 07-mai-2020 11:32:57) Closing log file
|
||||||
|
|
1
bin/External_Software/default.cfg
Normal file
1
bin/External_Software/default.cfg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{"settingsVersion":"0","videoPortTextBox":"7777","sensorPortTextBox":"5555","hotspotSsidTextBox":"trinus","hotspotPwdTextBox":"mypassword","forcedIPCheckBox":"0","forcedIPTextBox":"192.168.42.129","fake3DComboBox":"0","fakeRollCheckBox":"0","motionBoostCheckBox":"1","qualityComboBox":"2","fastScalingCheckBox":"0","dynamicQualityCheckBox":"0","compressionTrackBar":"3","dynamicCompressionQualityCheckBox":"0","captureModeComboBoxV2":"0","captureCursorCheckBox":"0","maxFrameRateTextBox":"70","headmountComboBox":"0","sensorTypeComboBox":"0","trackIRFixCheckBox":"0","leftActionButton":"{\"actionName\":\"D1\",\"deviceId\":\"keyboard\"}","ignoreActionButton":"{\"actionName\":\"D3\",\"deviceId\":\"keyboard\"}","rightActionButton":"{\"actionName\":\"D2\",\"deviceId\":\"keyboard\"}","sensorResetActionButton":"{\"actionName\":\"D4\",\"deviceId\":\"keyboard\"}","orderYawComboBox":"0","orderPitchComboBox":"1","orderRollComboBox":"2","predictiveTrackBar":"0","scaleX":"146928","scaleY":"230000","scaleInX":"2450000","scaleInY":"1700000","screenCenterX":"500000","screenCenterY":"500000","lensCenterX":"536325","lensCenterY":"500000","warpX":"2300000","warpY":"220000","warpZ":"240000","warpW":"0","absScaleX":"0","absScaleY":"0","absScaleInX":"900","absScaleInY":"900","absScreenCenterX":"0","absScreenCenterY":"0","absLensCenterX":"0","absLensCenterY":"0","absWarpX":"0","absWarpY":"0","absWarpZ":"0","absWarpW":"0","absChroma":"0","absIpd":"500","scaleYawTrackBar":"30","scalePitchTrackBar":"15","scaleRollTrackBar":"0","invertYawCheckBox":"0","invertPitchCheckBox":"0","invertRollCheckBox":"0","previewCheckBox":"1","scaleXTrackBar":"1","scaleYTrackBar":"1","scaleZTrackBar":"1","positionPluginNameComboBox":"0","borderFixLeftTrackBar":"0","borderFixRightTrackBar":"0","borderFixTopTrackBar":"0","borderFixBottomTrackBar":"0","zoomTrackBar":"100","zoomCenterPivotCheckBox":"0","wifiHotspotCheckBox":"0","simpleMode":"0","deadZoneTrackBar":"0","dpiFixCheckBox":"0","precisionMouseCheckBox":"0","queueFramesCheckBox":"1","bruteCheckCheckBox":"1","nvidiaOptimizedCheckBox":"0","lowColorButton":"buttonface","highColorButton":"buttonface","steamVRSourceCheckBox":"0","leftTriggerComboBox":"RESET","centerTriggerComboBox":"RESET","rightTriggerComboBox":"ZOOM","useMoonlightCheckBox":"0","brightnessTrackBar":"500","contrastTrackBar":"500","nsdCheckCheckBox":"1","extSteamVRComboBox":"-1","headZOffsetTrackBar":"0","headYOffsetTrackBar":"0","driftCompensationCheckBox":"0","yawOffsetTrackBar":"0","pitchOffsetTrackBar":"0","steamVRSyncCheckBox":"0","steamVRIPDtrackBar":"600","steamVRHookCaptureCheckBox":"1"}
|
|
@ -25,6 +25,9 @@ import javax.swing.JTextArea;
|
||||||
import javax.swing.JTextField;
|
import javax.swing.JTextField;
|
||||||
import javax.swing.border.Border;
|
import javax.swing.border.Border;
|
||||||
import javax.swing.border.EmptyBorder;
|
import javax.swing.border.EmptyBorder;
|
||||||
|
import javax.swing.border.EtchedBorder;
|
||||||
|
|
||||||
|
import Application1.Pages.*;
|
||||||
|
|
||||||
public class Fenetre extends JFrame implements ActionListener{
|
public class Fenetre extends JFrame implements ActionListener{
|
||||||
|
|
||||||
|
@ -37,7 +40,7 @@ public class Fenetre extends JFrame implements ActionListener{
|
||||||
private JButton boutonfininstall;
|
private JButton boutonfininstall;
|
||||||
private CardLayout cl;
|
private CardLayout cl;
|
||||||
private FlowLayout fl;
|
private FlowLayout fl;
|
||||||
String[] listContent = {"CARD_1","CARD_2","CARD_3","CARD_4","CARD_5","CARD_6","CARD_7"};
|
String[] listContent = {"CARD_1","CARD_2","CARD_3","CARD_4","CARD_5","CARD_6","CARD_7","CARD_8"};
|
||||||
|
|
||||||
public int Indice = 0;
|
public int Indice = 0;
|
||||||
public Graphics g ;
|
public Graphics g ;
|
||||||
|
@ -67,6 +70,11 @@ public class Fenetre extends JFrame implements ActionListener{
|
||||||
|
|
||||||
cl = new CardLayout();
|
cl = new CardLayout();
|
||||||
|
|
||||||
|
Border border = BorderFactory.createEtchedBorder(EtchedBorder.RAISED);
|
||||||
|
Border blackline = BorderFactory.createLineBorder(Color.black);
|
||||||
|
Border compound;
|
||||||
|
compound = BorderFactory.createCompoundBorder(border, blackline);
|
||||||
|
|
||||||
|
|
||||||
g=getGraphics();
|
g=getGraphics();
|
||||||
|
|
||||||
|
@ -82,12 +90,13 @@ public class Fenetre extends JFrame implements ActionListener{
|
||||||
|
|
||||||
//Création des pages
|
//Création des pages
|
||||||
ImagePanel card1 = new ImagePanel("test.png");
|
ImagePanel card1 = new ImagePanel("test.png");
|
||||||
carte card2 = new carte(2,1);
|
Page1 card2 = new Page1(15,compound);
|
||||||
carte card3 = new carte(3,1);
|
Page2 card3 = new Page2(15,compound);
|
||||||
carte card4 = new carte(4,1);
|
Page3 card4 = new Page3(15,compound);
|
||||||
carte card5 = new carte (5,1);
|
Page4 card5 = new Page4 (15,compound);
|
||||||
carte card6 = new carte (6,1);
|
Page5 card6 = new Page5(15,compound);
|
||||||
carte card7 = new carte (7,1);
|
Page6 card7 = new Page6(15,compound);
|
||||||
|
Page7 card8 = new Page7(15,compound);
|
||||||
|
|
||||||
cl.setHgap(10);
|
cl.setHgap(10);
|
||||||
cl.setVgap(10);
|
cl.setVgap(10);
|
||||||
|
@ -100,7 +109,8 @@ public class Fenetre extends JFrame implements ActionListener{
|
||||||
conteneurBouton.add(boutonsuiv);
|
conteneurBouton.add(boutonsuiv);
|
||||||
conteneurBouton.add(boutonfininstall);
|
conteneurBouton.add(boutonfininstall);
|
||||||
|
|
||||||
|
conteneur.setBackground(Color.white);
|
||||||
|
conteneurTitre.setBackground(Color.white);
|
||||||
conteneur.setLayout(cl);
|
conteneur.setLayout(cl);
|
||||||
conteneur.add(card1,listContent[0]);
|
conteneur.add(card1,listContent[0]);
|
||||||
conteneur.add(card2,listContent[1]);
|
conteneur.add(card2,listContent[1]);
|
||||||
|
@ -110,6 +120,11 @@ public class Fenetre extends JFrame implements ActionListener{
|
||||||
conteneur.add(card6,listContent[5]);
|
conteneur.add(card6,listContent[5]);
|
||||||
conteneur.add(card7,listContent[6]);
|
conteneur.add(card7,listContent[6]);
|
||||||
|
|
||||||
|
conteneur.add(card8,listContent[7]);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Gestion de l'action des Boutons
|
// Gestion de l'action des Boutons
|
||||||
|
|
||||||
|
@ -129,7 +144,7 @@ public class Fenetre extends JFrame implements ActionListener{
|
||||||
|
|
||||||
boutonfininstall.addActionListener(new ActionListener() {
|
boutonfininstall.addActionListener(new ActionListener() {
|
||||||
public void actionPerformed(ActionEvent event) {
|
public void actionPerformed(ActionEvent event) {
|
||||||
cl.show(conteneur,"CARD_7");
|
cl.show(conteneur,"CARD_8");
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -7,18 +7,13 @@ import java.io.IOException;
|
||||||
public class Main {
|
public class Main {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
Fenetre fenetre = new Fenetre();
|
Fenetre fenetre = new Fenetre();
|
||||||
Desktop Starter = Desktop.getDesktop();
|
|
||||||
|
|
||||||
|
|
||||||
File file = new File("C:\\Users\\nunes\\Desktop\\Travail\\PIR\\Software\\Glovepie\\WiimoteScripts\\Test.PIE");
|
|
||||||
|
|
||||||
/*try {
|
|
||||||
//Starter.open(file);
|
|
||||||
} catch (IOException e) {
|
|
||||||
// TODO Auto-generated catch block
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
105
src/Application1/Pages/Page1.java
Normal file
105
src/Application1/Pages/Page1.java
Normal file
|
@ -0,0 +1,105 @@
|
||||||
|
package Application1.Pages;
|
||||||
|
|
||||||
|
import java.awt.GridLayout;
|
||||||
|
|
||||||
|
import javax.swing.JPanel;
|
||||||
|
import javax.swing.border.Border;
|
||||||
|
|
||||||
|
import Application1.TextPanel;
|
||||||
|
|
||||||
|
public class Page1 extends JPanel {
|
||||||
|
|
||||||
|
public Page1(int taillePolice, Border bordure){
|
||||||
|
//Initialitsation
|
||||||
|
TextPanel cadran1;
|
||||||
|
TextPanel cadran2;
|
||||||
|
TextPanel cadran3;
|
||||||
|
TextPanel cadran4;
|
||||||
|
GridLayout g= new GridLayout(2,2);
|
||||||
|
g.setHgap(10);
|
||||||
|
g.setVgap(10);
|
||||||
|
setLayout(g);
|
||||||
|
|
||||||
|
|
||||||
|
//Cadran 1
|
||||||
|
cadran1 = new TextPanel(taillePolice);
|
||||||
|
|
||||||
|
cadran1.AjouterParagraph(" \n");
|
||||||
|
cadran1.AjouterParagraph(" Du BIM à la Réalité Virtuelle! \n");
|
||||||
|
cadran1.AjouterParagraph(" \n");
|
||||||
|
cadran1.AjouterParagraph(" Projet issu d'une collaboration entre l'INSA et l'ISDAT. \n");
|
||||||
|
cadran1.AjouterParagraph(" \n");
|
||||||
|
cadran1.AjouterParagraph(" A partir d'une simulation BIM réalisée par les élèves de l'ISDAT, \n");
|
||||||
|
cadran1.AjouterParagraph(" ceux de l'INSA ont mis au point une application permettant \n");
|
||||||
|
cadran1.AjouterParagraph(" de visualiser un environnement virtuel dépendant \n");
|
||||||
|
cadran1.AjouterParagraph(" de la maquette BIM, afin d'intéragir avec \n");
|
||||||
|
cadran1.AjouterParagraph(" lui au sein de cette réalité virtuelle. \n");
|
||||||
|
|
||||||
|
cadran1.setEditable(false);
|
||||||
|
cadran1.setBorder(bordure);
|
||||||
|
|
||||||
|
|
||||||
|
//Cadran 2
|
||||||
|
cadran2 = new TextPanel(taillePolice);
|
||||||
|
|
||||||
|
cadran2.AjouterParagraph(" \n");
|
||||||
|
cadran2.AjouterParagraph(" Participants à la réalisation du projet : \n");
|
||||||
|
cadran2.AjouterParagraph(" \n");
|
||||||
|
cadran2.AjouterParagraph(" Elèves de l'INSA : Elèves de l'ISDAT : Tuteurs : \n");
|
||||||
|
cadran2.AjouterParagraph(" \n");
|
||||||
|
cadran2.AjouterParagraph(" AMOUR Chadi BRUYERE Nathalie \n");
|
||||||
|
cadran2.AjouterParagraph(" BERRADA El Ghali MONTEIL Thierry \n");
|
||||||
|
cadran2.AjouterParagraph(" BERTA Pauline \n");
|
||||||
|
cadran2.AjouterParagraph(" BOUOULID Ilias \n");
|
||||||
|
cadran2.AjouterParagraph(" NUNES Joao \n");
|
||||||
|
cadran2.AjouterParagraph(" POLONI Laura \n");
|
||||||
|
cadran2.AjouterParagraph(" \n");
|
||||||
|
cadran2.setEditable(false);
|
||||||
|
cadran2.setBorder(bordure);
|
||||||
|
|
||||||
|
|
||||||
|
//Cadran 3
|
||||||
|
|
||||||
|
cadran3 = new TextPanel(taillePolice);
|
||||||
|
|
||||||
|
cadran3.AjouterParagraph(" \n");
|
||||||
|
cadran3.AjouterParagraph(" Logiciels nécessaires à la bonne réalisation du projet : \n");
|
||||||
|
cadran3.AjouterParagraph(" \n");
|
||||||
|
cadran3.AjouterParagraph(" Revit \n");
|
||||||
|
cadran3.AjouterParagraph(" GrassHopper (avec son plugin) \n");
|
||||||
|
cadran3.AjouterParagraph(" Trinus \n");
|
||||||
|
cadran3.AjouterParagraph(" GlovePie \n");
|
||||||
|
cadran3.AjouterParagraph(" \n");
|
||||||
|
cadran3.AjouterParagraph(" Nous vous expliquerons par la suite quels sont les logiciels \n");
|
||||||
|
cadran3.AjouterParagraph(" prérequis, et quels sont ceux dont nous allons guider l'installation. \n");
|
||||||
|
cadran3.setEditable(false);
|
||||||
|
cadran3.setBorder(bordure);
|
||||||
|
|
||||||
|
|
||||||
|
//Cadran 4
|
||||||
|
|
||||||
|
cadran4 = new TextPanel(taillePolice);
|
||||||
|
|
||||||
|
cadran4.AjouterParagraph(" \n");
|
||||||
|
cadran4.AjouterParagraph(" Matériel nécessaire à la bonne réalisation du projet : \n");
|
||||||
|
cadran4.AjouterParagraph(" \n");
|
||||||
|
cadran4.AjouterParagraph(" Wiimote \n");
|
||||||
|
cadran4.AjouterParagraph(" Sensor bar \n");
|
||||||
|
cadran4.AjouterParagraph(" Masque \n");
|
||||||
|
cadran4.AjouterParagraph(" Smartphone \n");
|
||||||
|
cadran4.AjouterParagraph(" \n");
|
||||||
|
cadran4.AjouterParagraph(" Nous vous expliquerons par la suite quel sera l'utilisation \n");
|
||||||
|
cadran4.AjouterParagraph(" de chaque matériel et comment les mettre en place. \n");
|
||||||
|
cadran4.setEditable(false);
|
||||||
|
cadran4.setBorder(bordure);
|
||||||
|
|
||||||
|
//Ajouter les cadrans
|
||||||
|
add(cadran1);
|
||||||
|
add(cadran2);
|
||||||
|
add(cadran3);
|
||||||
|
add(cadran4);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
102
src/Application1/Pages/Page2.java
Normal file
102
src/Application1/Pages/Page2.java
Normal file
|
@ -0,0 +1,102 @@
|
||||||
|
package Application1.Pages;
|
||||||
|
|
||||||
|
import java.awt.GridLayout;
|
||||||
|
|
||||||
|
import javax.swing.JPanel;
|
||||||
|
|
||||||
|
import javax.swing.border.*;
|
||||||
|
|
||||||
|
import Application1.TextPanel;
|
||||||
|
|
||||||
|
public class Page2 extends JPanel {
|
||||||
|
|
||||||
|
public Page2(int taillePolice, Border bordure){
|
||||||
|
//Initialitsation
|
||||||
|
TextPanel cadran1;
|
||||||
|
TextPanel cadran2;
|
||||||
|
TextPanel cadran3;
|
||||||
|
TextPanel cadran4;
|
||||||
|
GridLayout g= new GridLayout(2,2);
|
||||||
|
g.setHgap(10);
|
||||||
|
g.setVgap(10);
|
||||||
|
setLayout(g);
|
||||||
|
|
||||||
|
//Cadran 1
|
||||||
|
|
||||||
|
cadran1 = new TextPanel(taillePolice);
|
||||||
|
cadran1.setBorder(bordure);
|
||||||
|
cadran1.AjouterParagraph(" \n");
|
||||||
|
cadran1.AjouterParagraph(" Pour le bon fonctionnement du système, il faut va falloir \n");
|
||||||
|
cadran1.AjouterParagraph(" que vous installiez au préalable deux logiciels.\n");
|
||||||
|
cadran1.AjouterParagraph(" * Revit (Développement d'Objets et de Structures 3D) \n");
|
||||||
|
cadran1.AjouterParagraph(" * Grasshopper (Outil utilisé en Association avec Revit)\n");
|
||||||
|
cadran1.AjouterParagraph(" \n");
|
||||||
|
cadran1.AjouterParagraph(" Vérifier bien que la connexion bluetooth fonctionne sur votre machine, \n");
|
||||||
|
cadran1.AjouterParagraph(" elle sera nécessaire pour connecter votre wiimote à l'ordinateur. \n");
|
||||||
|
cadran1.AjouterParagraph(" \n");
|
||||||
|
cadran1.AjouterParagraph(" Lorsque tous les pré-requis précédent sont installés et vérifiés \n");
|
||||||
|
cadran1.AjouterParagraph(" vous pouvez passez à la suite!\n");
|
||||||
|
cadran1.AjouterParagraph(" \n");
|
||||||
|
cadran1.setEditable(false);
|
||||||
|
|
||||||
|
//Cadran 2
|
||||||
|
|
||||||
|
cadran2 = new TextPanel(taillePolice);
|
||||||
|
|
||||||
|
cadran2.setBorder(bordure);
|
||||||
|
cadran2.AjouterParagraph(" \n");
|
||||||
|
cadran2.AjouterParagraph(" Avant de pouvoir utiliser l'application il reste \n");
|
||||||
|
cadran2.AjouterParagraph(" quelques étapes à parcourir. \n");
|
||||||
|
cadran2.AjouterParagraph(" \n");
|
||||||
|
cadran2.AjouterParagraph(" Nous allons vous guider dans l'installation de deux derniers \n");
|
||||||
|
cadran2.AjouterParagraph(" logiciels, tels que : \n");
|
||||||
|
cadran2.AjouterParagraph(" * GlovePie (Emulateur de Clavier et Souris) \n");
|
||||||
|
cadran2.AjouterParagraph(" * Trinus (Convertisseur d'Images Classiques en Images au format VR) \n");
|
||||||
|
cadran2.AjouterParagraph(" \n");
|
||||||
|
cadran2.AjouterParagraph(" Sur la page suivante les démarches vous sont expliquées pas-à-pas! \n");
|
||||||
|
cadran2.AjouterParagraph(" \n");
|
||||||
|
cadran2.setEditable(false);
|
||||||
|
|
||||||
|
//Cadran 3
|
||||||
|
cadran3 = new TextPanel(taillePolice);
|
||||||
|
|
||||||
|
cadran3.setBorder(bordure);
|
||||||
|
cadran3.AjouterParagraph(" \n");
|
||||||
|
cadran3.AjouterParagraph(" Vous pouvez remarquer plusieurs boutons à votre disposition ci-dessous. \n");
|
||||||
|
cadran3.AjouterParagraph(" \n");
|
||||||
|
cadran3.AjouterParagraph(" Vous avez la possibilité à tout moment de retourner sur la page \n");
|
||||||
|
cadran3.AjouterParagraph(" précédente avec le bouton PRECEDENT. \n");
|
||||||
|
cadran3.AjouterParagraph(" \n");
|
||||||
|
cadran3.AjouterParagraph(" De la même manière, vous avez la possibilité de passer à la \n");
|
||||||
|
cadran3.AjouterParagraph(" suivante avec le bouton SUIVANT.\n");
|
||||||
|
cadran3.AjouterParagraph(" \n");
|
||||||
|
cadran3.setEditable(false);
|
||||||
|
|
||||||
|
//Cadran 4
|
||||||
|
|
||||||
|
cadran4 = new TextPanel(taillePolice);
|
||||||
|
|
||||||
|
cadran4.setBorder(bordure);
|
||||||
|
cadran4.AjouterParagraph(" \n");
|
||||||
|
cadran4.AjouterParagraph(" Le bouton LANCER VR est là pour vous permettre de passer en un \n");
|
||||||
|
cadran4.AjouterParagraph(" clic toute la partie Installation des logiciels GlovePie et Trinus.\n");
|
||||||
|
cadran4.AjouterParagraph(" \n");
|
||||||
|
cadran4.AjouterParagraph(" ! Si vous avez déjà réaliser les installations sur votre machine \n");
|
||||||
|
cadran4.AjouterParagraph(" lors d'une précédente utilisation, il n'est pas nécessaire de \n");
|
||||||
|
cadran4.AjouterParagraph(" recommencer ! \n");
|
||||||
|
cadran4.AjouterParagraph(" \n");
|
||||||
|
cadran4.AjouterParagraph(" ! Cliquer directement sur LANCER VR ! \n");
|
||||||
|
cadran4.AjouterParagraph(" \n");
|
||||||
|
cadran4.setEditable(false);
|
||||||
|
|
||||||
|
|
||||||
|
//Ajouter les cadrans
|
||||||
|
add(cadran1);
|
||||||
|
add(cadran2);
|
||||||
|
add(cadran3);
|
||||||
|
add(cadran4);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
97
src/Application1/Pages/Page3.java
Normal file
97
src/Application1/Pages/Page3.java
Normal file
|
@ -0,0 +1,97 @@
|
||||||
|
package Application1.Pages;
|
||||||
|
|
||||||
|
import java.awt.Color;
|
||||||
|
import java.awt.Font;
|
||||||
|
import java.awt.GridLayout;
|
||||||
|
import java.awt.event.ActionEvent;
|
||||||
|
import java.awt.event.ActionListener;
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
|
import javax.swing.JButton;
|
||||||
|
import javax.swing.JPanel;
|
||||||
|
import javax.swing.border.*;
|
||||||
|
|
||||||
|
import Application1.ImagePanel;
|
||||||
|
import Application1.TextPanel;
|
||||||
|
|
||||||
|
public class Page3 extends JPanel {
|
||||||
|
public Page3(int taillePolice, Border bordure){
|
||||||
|
|
||||||
|
//Initialitsation
|
||||||
|
JPanel cadran1 = new JPanel();
|
||||||
|
TextPanel cadran1_1;
|
||||||
|
ImagePanel cadran2;
|
||||||
|
ImagePanel cadran3;
|
||||||
|
ImagePanel cadran4;
|
||||||
|
TextPanel Texte;
|
||||||
|
|
||||||
|
JButton BoutonInstallationTrinus = new JButton("START INSTALLATION");
|
||||||
|
Font f = new Font("Serif", Font.BOLD, 45);
|
||||||
|
|
||||||
|
BoutonInstallationTrinus.setFont(f);
|
||||||
|
BoutonInstallationTrinus.setForeground(Color.WHITE);
|
||||||
|
BoutonInstallationTrinus.setBackground(Color.LIGHT_GRAY);
|
||||||
|
|
||||||
|
GridLayout g= new GridLayout(2,2);
|
||||||
|
GridLayout cad1 = new GridLayout(2,1);
|
||||||
|
g.setHgap(10);
|
||||||
|
g.setVgap(10);
|
||||||
|
setLayout(g);
|
||||||
|
|
||||||
|
|
||||||
|
//Cadran 1
|
||||||
|
|
||||||
|
cadran1.setLayout(cad1);
|
||||||
|
|
||||||
|
cadran1_1 = new TextPanel(taillePolice);
|
||||||
|
cadran1_1.setBorder(bordure);
|
||||||
|
|
||||||
|
cadran1_1.AjouterParagraph(" \n");
|
||||||
|
cadran1_1.AjouterParagraph(" L'installation du logiciel Trinus est nécessaire pour le bon \n");
|
||||||
|
cadran1_1.AjouterParagraph(" fonctionnement de notre système. \n");
|
||||||
|
cadran1_1.AjouterParagraph(" START INSTALLATION va lancer automatiquement l'installation du logiciel. \n");
|
||||||
|
cadran1_1.AjouterParagraph(" Vous devez accepter et suivre les étapes décrites sur les images suivantes. \n");
|
||||||
|
cadran1_1.AjouterParagraph(" \n");
|
||||||
|
cadran1_1.setEditable(false);
|
||||||
|
|
||||||
|
cadran1.add(cadran1_1);
|
||||||
|
cadran1.add(BoutonInstallationTrinus);
|
||||||
|
|
||||||
|
|
||||||
|
//Cadran 2
|
||||||
|
cadran2 = new ImagePanel("Images/Install_Trinus/1.png");
|
||||||
|
cadran2.setBorder(bordure);
|
||||||
|
|
||||||
|
//Cadran3
|
||||||
|
cadran3 = new ImagePanel("Images/Install_Trinus/2.png");
|
||||||
|
cadran3.setBorder(bordure);
|
||||||
|
|
||||||
|
//Cadran 4
|
||||||
|
cadran4 = new ImagePanel("Images/Install_Trinus/3.png");
|
||||||
|
cadran4.setBorder(bordure);
|
||||||
|
|
||||||
|
//Ajouter les cadrans
|
||||||
|
add(cadran1);
|
||||||
|
add(cadran2);
|
||||||
|
add(cadran3);
|
||||||
|
add(cadran4);
|
||||||
|
|
||||||
|
BoutonInstallationTrinus.addActionListener(new ActionListener() {
|
||||||
|
public void actionPerformed(ActionEvent event) {
|
||||||
|
|
||||||
|
|
||||||
|
Runtime rt = Runtime.getRuntime();
|
||||||
|
try {
|
||||||
|
rt.exec(new String[] {"External_Software/TGsetup.exe"});
|
||||||
|
|
||||||
|
}
|
||||||
|
catch (IOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
49
src/Application1/Pages/Page4.java
Normal file
49
src/Application1/Pages/Page4.java
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
package Application1.Pages;
|
||||||
|
|
||||||
|
import java.awt.GridLayout;
|
||||||
|
|
||||||
|
import javax.swing.JPanel;
|
||||||
|
import javax.swing.border.*;
|
||||||
|
|
||||||
|
import Application1.ImagePanel;
|
||||||
|
|
||||||
|
public class Page4 extends JPanel {
|
||||||
|
|
||||||
|
public Page4(int taillePolice, Border bordure){
|
||||||
|
//Initialitsation
|
||||||
|
ImagePanel cadran1;
|
||||||
|
ImagePanel cadran2;
|
||||||
|
ImagePanel cadran3;
|
||||||
|
ImagePanel cadran4;
|
||||||
|
GridLayout g= new GridLayout(2,2);
|
||||||
|
g.setHgap(10);
|
||||||
|
g.setVgap(10);
|
||||||
|
setLayout(g);
|
||||||
|
|
||||||
|
//Cadran 1
|
||||||
|
cadran1 = new ImagePanel("Images/Install_Trinus/4.png");
|
||||||
|
cadran1.setBorder(bordure);
|
||||||
|
|
||||||
|
//Cadran 2
|
||||||
|
cadran2 = new ImagePanel("Images/Install_Trinus/5.png");
|
||||||
|
cadran2.setBorder(bordure);
|
||||||
|
|
||||||
|
//Cadran 3
|
||||||
|
cadran3 = new ImagePanel("Images/Install_Trinus/6.png");
|
||||||
|
cadran3.setBorder(bordure);
|
||||||
|
|
||||||
|
//Cadran 4
|
||||||
|
cadran4 = new ImagePanel("Images/Install_Trinus/7.png");
|
||||||
|
cadran4.setBorder(bordure);
|
||||||
|
|
||||||
|
|
||||||
|
//Ajout des cadrans
|
||||||
|
add(cadran1);
|
||||||
|
add(cadran2);
|
||||||
|
add(cadran3);
|
||||||
|
add(cadran4);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
106
src/Application1/Pages/Page5.java
Normal file
106
src/Application1/Pages/Page5.java
Normal file
|
@ -0,0 +1,106 @@
|
||||||
|
package Application1.Pages;
|
||||||
|
|
||||||
|
import java.awt.Color;
|
||||||
|
import java.awt.Font;
|
||||||
|
import java.awt.GridLayout;
|
||||||
|
import java.awt.event.ActionEvent;
|
||||||
|
import java.awt.event.ActionListener;
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
|
import javax.swing.JButton;
|
||||||
|
import javax.swing.JPanel;
|
||||||
|
import javax.swing.border.*;
|
||||||
|
|
||||||
|
import Application1.ImagePanel;
|
||||||
|
import Application1.TextPanel;
|
||||||
|
|
||||||
|
public class Page5 extends JPanel{
|
||||||
|
|
||||||
|
public Page5(int taillePolice, Border bordure){
|
||||||
|
//Initialitsation
|
||||||
|
JPanel cadran1 = new JPanel();
|
||||||
|
TextPanel cadran1_1;
|
||||||
|
ImagePanel cadran2;
|
||||||
|
ImagePanel cadran3;
|
||||||
|
ImagePanel cadran4;
|
||||||
|
|
||||||
|
|
||||||
|
JButton BoutonInstallationManette = new JButton("START INSTALLATION");
|
||||||
|
Font f = new Font("Serif", Font.BOLD, 45);
|
||||||
|
|
||||||
|
BoutonInstallationManette.setFont(f);
|
||||||
|
BoutonInstallationManette.setForeground(Color.WHITE);
|
||||||
|
BoutonInstallationManette.setBackground(Color.LIGHT_GRAY);
|
||||||
|
|
||||||
|
GridLayout g= new GridLayout(2,2);
|
||||||
|
GridLayout cad1 = new GridLayout(2,1);
|
||||||
|
g.setHgap(10);
|
||||||
|
g.setVgap(10);
|
||||||
|
setLayout(g);
|
||||||
|
|
||||||
|
//Cadran 1
|
||||||
|
|
||||||
|
cadran1.setLayout(cad1);
|
||||||
|
cadran1.setBorder(bordure);
|
||||||
|
|
||||||
|
cadran1_1 = new TextPanel(taillePolice);
|
||||||
|
|
||||||
|
cadran1_1.setBorder(bordure);
|
||||||
|
|
||||||
|
cadran1_1.AjouterParagraph(" \n");
|
||||||
|
cadran1_1.AjouterParagraph(" Pour finir, nous devons installer la manette Wiimote. \n");
|
||||||
|
cadran1_1.AjouterParagraph(" Pour cela nous allons l'ajouter en tant que périphérique Bluetooth. \n");
|
||||||
|
cadran1_1.AjouterParagraph(" Cliquer sur START INSTALLATION, le panneau de configuration va apparaitre.\n");
|
||||||
|
cadran1_1.AjouterParagraph(" Suivez les étapes d'installation avec les images suivantes. \n");
|
||||||
|
cadran1_1.AjouterParagraph(" \n");
|
||||||
|
|
||||||
|
cadran1_1.setEditable(false);
|
||||||
|
|
||||||
|
cadran1.add(cadran1_1);
|
||||||
|
cadran1.add(BoutonInstallationManette);
|
||||||
|
|
||||||
|
|
||||||
|
//Cadran 2
|
||||||
|
cadran2 = new ImagePanel("Images/Install_Wiimote/1.png");
|
||||||
|
cadran2.setBorder(bordure);
|
||||||
|
|
||||||
|
|
||||||
|
//Cadran 3
|
||||||
|
cadran3 = new ImagePanel("Images/Install_Wiimote/3.png");
|
||||||
|
cadran3.setBorder(bordure);
|
||||||
|
|
||||||
|
|
||||||
|
//Cadran 4
|
||||||
|
cadran4 = new ImagePanel("Images/Install_Wiimote/4.png");
|
||||||
|
cadran4.setBorder(bordure);
|
||||||
|
|
||||||
|
|
||||||
|
//Ajout des cadrans
|
||||||
|
add(cadran1);
|
||||||
|
add(cadran2);
|
||||||
|
add(cadran3);
|
||||||
|
add(cadran4);
|
||||||
|
|
||||||
|
|
||||||
|
//BoutonInstallationManette.addActionListener(new ActionListener() {});
|
||||||
|
|
||||||
|
|
||||||
|
BoutonInstallationManette.addActionListener(new ActionListener() {
|
||||||
|
public void actionPerformed(ActionEvent event) {
|
||||||
|
//Lancement du panneau de configuration
|
||||||
|
|
||||||
|
Runtime rt = Runtime.getRuntime();
|
||||||
|
try {
|
||||||
|
rt.exec(new String[] {"cmd.exe","/c","start","control"});
|
||||||
|
|
||||||
|
}
|
||||||
|
catch (IOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
95
src/Application1/Pages/Page6.java
Normal file
95
src/Application1/Pages/Page6.java
Normal file
|
@ -0,0 +1,95 @@
|
||||||
|
package Application1.Pages;
|
||||||
|
|
||||||
|
import java.awt.Color;
|
||||||
|
import java.awt.Font;
|
||||||
|
import java.awt.GridLayout;
|
||||||
|
import java.awt.event.ActionEvent;
|
||||||
|
import java.awt.event.ActionListener;
|
||||||
|
|
||||||
|
import javax.swing.JButton;
|
||||||
|
import javax.swing.JPanel;
|
||||||
|
import javax.swing.border.*;
|
||||||
|
|
||||||
|
import Application1.PathVar;
|
||||||
|
import Application1.TextPanel;
|
||||||
|
import Application1.carte;
|
||||||
|
|
||||||
|
public class Page6 extends JPanel {
|
||||||
|
|
||||||
|
public Page6(int taillePolice, Border bordure) {
|
||||||
|
//Installation
|
||||||
|
TextPanel cadran1;
|
||||||
|
TextPanel cadran2;
|
||||||
|
JPanel cadran3;
|
||||||
|
JPanel cadran4;
|
||||||
|
JButton BoutonVarEnvTrinus;
|
||||||
|
JButton BoutonVarEnvRevit;
|
||||||
|
Font f = new Font("Serif", Font.BOLD, 15);
|
||||||
|
BoutonVarEnvTrinus = new JButton("Indiquer où se trouve le logiciel Trinus");
|
||||||
|
BoutonVarEnvRevit = new JButton("Indiquer où se trouve le logiciel de CAD");
|
||||||
|
BoutonVarEnvRevit.setFont(f);
|
||||||
|
BoutonVarEnvRevit.setForeground(Color.BLACK);
|
||||||
|
BoutonVarEnvRevit.setBackground(Color.LIGHT_GRAY);
|
||||||
|
BoutonVarEnvTrinus.setFont(f);
|
||||||
|
BoutonVarEnvTrinus.setForeground(Color.BLACK);
|
||||||
|
BoutonVarEnvTrinus.setBackground(Color.LIGHT_GRAY);
|
||||||
|
|
||||||
|
GridLayout grid = new GridLayout(2,2);
|
||||||
|
grid.setHgap(10);
|
||||||
|
grid.setVgap(10);
|
||||||
|
setLayout(grid);
|
||||||
|
|
||||||
|
|
||||||
|
//Cadran 1
|
||||||
|
cadran1 = new TextPanel(taillePolice);
|
||||||
|
cadran1.AjouterParagraph("Veuillez indiquer ou vous avez installé le logiciel Trinus. ");
|
||||||
|
cadran1.AjouterParagraph("Vous pouvez selectionner directement le fichier de lancement présent sur votre bureau.");
|
||||||
|
cadran1.AjouterParagraph("Ou alors donner le chemin du logiciel dans la racine. Typiquement le logiciel s'installe dans le dossier \"Program Files\"");
|
||||||
|
cadran1.setEditable(false);
|
||||||
|
cadran1.setBorder(bordure);
|
||||||
|
// Cadran 2
|
||||||
|
cadran2 = new TextPanel(taillePolice);
|
||||||
|
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. ");
|
||||||
|
cadran2.AjouterParagraph("Vous pouvez selectionner directement le fichier de lancement présent sur votre bureau.");
|
||||||
|
cadran2.AjouterParagraph("Ou alors donner le chemin du logiciel dans la racine. Typiquement le logiciel s'installe dans le dossier \"Program Files\"");
|
||||||
|
cadran2.setEditable(false);
|
||||||
|
cadran2.setBorder(bordure);
|
||||||
|
|
||||||
|
//Cadran 3
|
||||||
|
cadran3 = new JPanel();
|
||||||
|
|
||||||
|
cadran3.add(BoutonVarEnvTrinus);
|
||||||
|
|
||||||
|
//Cadran 4
|
||||||
|
cadran4 = new JPanel();
|
||||||
|
|
||||||
|
cadran4.add(BoutonVarEnvRevit);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//Ajout des cadran
|
||||||
|
add(cadran1);
|
||||||
|
add(cadran2);
|
||||||
|
add(cadran3);
|
||||||
|
add(cadran4);
|
||||||
|
|
||||||
|
PathVar pathVar = new PathVar();
|
||||||
|
BoutonVarEnvTrinus.addActionListener(new ActionListener() {
|
||||||
|
public void actionPerformed(ActionEvent event) {
|
||||||
|
pathVar.getPath("Trinus");
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
BoutonVarEnvRevit.addActionListener(new ActionListener() {
|
||||||
|
public void actionPerformed(ActionEvent event) {
|
||||||
|
pathVar.getPath("Revit");
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
195
src/Application1/Pages/Page7.java
Normal file
195
src/Application1/Pages/Page7.java
Normal file
|
@ -0,0 +1,195 @@
|
||||||
|
package Application1.Pages;
|
||||||
|
|
||||||
|
import java.awt.Color;
|
||||||
|
import java.awt.Desktop;
|
||||||
|
import java.awt.FlowLayout;
|
||||||
|
import java.awt.Font;
|
||||||
|
import java.awt.GridLayout;
|
||||||
|
import java.awt.event.ActionEvent;
|
||||||
|
import java.awt.event.ActionListener;
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
|
import javax.swing.JButton;
|
||||||
|
import javax.swing.JPanel;
|
||||||
|
import javax.swing.border.*;
|
||||||
|
|
||||||
|
import Application1.PathVar;
|
||||||
|
import Application1.TextPanel;
|
||||||
|
|
||||||
|
public class Page7 extends JPanel {
|
||||||
|
public Page7(int taillePolice, Border bordure) {
|
||||||
|
|
||||||
|
|
||||||
|
//Initialitsation
|
||||||
|
PathVar path = new PathVar();
|
||||||
|
TextPanel cadran1;
|
||||||
|
JPanel cadran2;
|
||||||
|
|
||||||
|
Font f = new Font("Serif", Font.BOLD, 15);
|
||||||
|
|
||||||
|
JButton BoutonGlovePie = new JButton("Lancer GLovePie");
|
||||||
|
BoutonGlovePie.setFont(f);
|
||||||
|
BoutonGlovePie.setForeground(Color.BLACK);
|
||||||
|
BoutonGlovePie.setBackground(Color.LIGHT_GRAY);
|
||||||
|
|
||||||
|
JButton BoutonTrinus = new JButton("Lancer Trinus");
|
||||||
|
BoutonTrinus.setFont(f);
|
||||||
|
BoutonTrinus.setForeground(Color.BLACK);
|
||||||
|
BoutonTrinus.setBackground(Color.LIGHT_GRAY);
|
||||||
|
|
||||||
|
JButton BoutonRevit = new JButton("Lancer Revit");
|
||||||
|
BoutonRevit.setFont(f);
|
||||||
|
BoutonRevit.setForeground(Color.BLACK);
|
||||||
|
BoutonRevit.setBackground(Color.LIGHT_GRAY);
|
||||||
|
|
||||||
|
JButton BoutonInternet = new JButton("Lancer AutoDesk View");
|
||||||
|
BoutonInternet.setFont(f);
|
||||||
|
BoutonInternet.setForeground(Color.BLACK);
|
||||||
|
BoutonInternet.setBackground(Color.LIGHT_GRAY);
|
||||||
|
|
||||||
|
JButton BoutonClavier = new JButton ("Lancer le clavier Virtuel");
|
||||||
|
BoutonClavier.setFont(f);
|
||||||
|
BoutonClavier.setForeground(Color.BLACK);
|
||||||
|
BoutonClavier.setBackground(Color.LIGHT_GRAY);
|
||||||
|
|
||||||
|
GridLayout grid= new GridLayout(2,2);
|
||||||
|
FlowLayout flow = new FlowLayout();
|
||||||
|
grid.setHgap(10);
|
||||||
|
grid.setVgap(10);
|
||||||
|
setLayout(grid);
|
||||||
|
|
||||||
|
//Cadran 1
|
||||||
|
cadran1 = new TextPanel(taillePolice);
|
||||||
|
cadran1.AjouterParagraph(" \n");
|
||||||
|
cadran1.AjouterParagraph(" Le système est prêt à être utilisé! \n");
|
||||||
|
cadran1.AjouterParagraph(" \n");
|
||||||
|
cadran1.AjouterParagraph(" Les logiciels suivant sont bien installés sur la machine : \n ");
|
||||||
|
cadran1.AjouterParagraph(" * GlovePie \n");
|
||||||
|
cadran1.AjouterParagraph(" * Trinus \n");
|
||||||
|
cadran1.AjouterParagraph(" La WiiMote est reliée en Bluetooth à l'ordinateur! \n");
|
||||||
|
cadran1.AjouterParagraph(" \n");
|
||||||
|
cadran1.AjouterParagraph(" Les différents boutons ci-dessous vous permettent de lancer tous les outils nécessaires. \n");
|
||||||
|
cadran1.AjouterParagraph(" \n");
|
||||||
|
cadran1.setEditable(false);
|
||||||
|
cadran1.setBorder(bordure);
|
||||||
|
|
||||||
|
//Cadran 2
|
||||||
|
cadran2 = new JPanel();
|
||||||
|
cadran2.setLayout(flow);
|
||||||
|
cadran2.add(BoutonGlovePie);
|
||||||
|
cadran2.add(BoutonTrinus);
|
||||||
|
cadran2.add(BoutonRevit);
|
||||||
|
cadran2.add(BoutonInternet);
|
||||||
|
cadran2.add(BoutonClavier);
|
||||||
|
|
||||||
|
//Gestion Boutons
|
||||||
|
|
||||||
|
BoutonGlovePie.addActionListener(new ActionListener() {
|
||||||
|
public void actionPerformed(ActionEvent event) {
|
||||||
|
//Lancement du panneau de configuration
|
||||||
|
File file = new File("External_Software/Glovepie/WiimoteScripts/WiimoteScript.PIE");
|
||||||
|
java.awt.Desktop desktop = Desktop.getDesktop();
|
||||||
|
|
||||||
|
try {
|
||||||
|
|
||||||
|
desktop.open(file);
|
||||||
|
|
||||||
|
} catch (IOException e) {
|
||||||
|
// TODO Auto-generated catch block
|
||||||
|
e.printStackTrace();
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
BoutonTrinus.addActionListener(new ActionListener() {
|
||||||
|
public void actionPerformed(ActionEvent event) {
|
||||||
|
try {
|
||||||
|
|
||||||
|
path.readPathFile();
|
||||||
|
File file = new File(path.getPathTrinus());
|
||||||
|
java.awt.Desktop desktop = Desktop.getDesktop();
|
||||||
|
desktop.open(file);
|
||||||
|
} catch (IOException e1) {
|
||||||
|
// TODO Auto-generated catch block
|
||||||
|
e1.printStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
BoutonRevit.addActionListener(new ActionListener() {
|
||||||
|
public void actionPerformed(ActionEvent event) {
|
||||||
|
try {
|
||||||
|
path.readPathFile();
|
||||||
|
File file = new File(path.getPathRevit());
|
||||||
|
java.awt.Desktop desktop = Desktop.getDesktop();
|
||||||
|
desktop.open(file);
|
||||||
|
} catch (IOException e1) {
|
||||||
|
// TODO Auto-generated catch block
|
||||||
|
e1.printStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
BoutonInternet.addActionListener(new ActionListener() {
|
||||||
|
public void actionPerformed(ActionEvent event) {
|
||||||
|
//Lancement du panneau de configuration
|
||||||
|
|
||||||
|
Runtime rt = Runtime.getRuntime();
|
||||||
|
try {
|
||||||
|
rt.exec(new String[] {"cmd.exe","/c","start","https://viewer.autodesk.com/"});
|
||||||
|
|
||||||
|
}catch (IOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
BoutonClavier.addActionListener(new ActionListener() {
|
||||||
|
public void actionPerformed(ActionEvent event) {
|
||||||
|
//Lancement du panneau de configuration
|
||||||
|
|
||||||
|
Runtime rt = Runtime.getRuntime();
|
||||||
|
try {
|
||||||
|
rt.exec(new String[] {"cmd.exe","/c","start","osk"});
|
||||||
|
|
||||||
|
}catch (IOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//Ajout Cadran
|
||||||
|
add(cadran1);
|
||||||
|
add(cadran2);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
119
src/Application1/PathVar.java
Normal file
119
src/Application1/PathVar.java
Normal file
|
@ -0,0 +1,119 @@
|
||||||
|
package Application1;
|
||||||
|
|
||||||
|
import java.io.BufferedWriter;
|
||||||
|
import java.io.FileNotFoundException;
|
||||||
|
import java.io.FileOutputStream;
|
||||||
|
import java.io.FileReader;
|
||||||
|
import java.io.FileWriter;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.Writer;
|
||||||
|
import java.nio.file.Files;
|
||||||
|
import java.nio.file.*;
|
||||||
|
|
||||||
|
import javax.swing.JFileChooser;
|
||||||
|
import javax.swing.JPanel;
|
||||||
|
|
||||||
|
public class PathVar {
|
||||||
|
private String pathTrinus;
|
||||||
|
private String pathRevit;
|
||||||
|
|
||||||
|
|
||||||
|
public PathVar() {
|
||||||
|
pathTrinus = ".";
|
||||||
|
pathRevit = ".";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void readPathFile() throws IOException{
|
||||||
|
String pathData = "";
|
||||||
|
|
||||||
|
pathData = new String(Files.readAllBytes(Paths.get("README.txt")));
|
||||||
|
String[] parts = pathData.split("\n");
|
||||||
|
if (parts[0].contentEquals("Trinus")){
|
||||||
|
pathTrinus = parts[1];
|
||||||
|
|
||||||
|
|
||||||
|
}else if (parts[2].contentEquals("Trinus")) {
|
||||||
|
pathTrinus = parts[3];
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if (parts[2].contentEquals("Revit")) {
|
||||||
|
pathRevit = parts[3];
|
||||||
|
|
||||||
|
}else if (parts[0].contentEquals("Revit")) {
|
||||||
|
pathRevit = parts[1];
|
||||||
|
System.out.println("Je suis la \n");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//System.out.println(pathData);
|
||||||
|
//System.out.println(parts[3]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void writePathFile(String pathToWrite) {
|
||||||
|
try {
|
||||||
|
BufferedWriter output;
|
||||||
|
output = new BufferedWriter(new FileWriter("README.txt",true));
|
||||||
|
output.append(pathToWrite.concat("\n"));
|
||||||
|
output.close();
|
||||||
|
|
||||||
|
} catch (FileNotFoundException e) {
|
||||||
|
// TODO Auto-generated catch block
|
||||||
|
e.printStackTrace();
|
||||||
|
} catch (IOException e) {
|
||||||
|
// TODO Auto-generated catch block
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void getPath (String program) {
|
||||||
|
String path = ".";
|
||||||
|
int result = -99;
|
||||||
|
JFileChooser fileChooser = new JFileChooser();
|
||||||
|
|
||||||
|
result = fileChooser.showOpenDialog(new JPanel());
|
||||||
|
if(result == JFileChooser.APPROVE_OPTION)
|
||||||
|
{
|
||||||
|
path = fileChooser.getSelectedFile().getAbsolutePath();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (program == "Trinus") {
|
||||||
|
writePathFile("Trinus");
|
||||||
|
writePathFile(path);
|
||||||
|
pathTrinus = path;
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (program == "Revit") {
|
||||||
|
writePathFile("Revit");
|
||||||
|
writePathFile(path);
|
||||||
|
pathRevit = path;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//??????????????????
|
||||||
|
System.out.println(pathRevit);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPathTrinus() {
|
||||||
|
return pathTrinus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPathRevit() {
|
||||||
|
return pathRevit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -1,14 +1,21 @@
|
||||||
package Application1;
|
package Application1;
|
||||||
|
|
||||||
|
|
||||||
import java.awt.Graphics;
|
import java.awt.Graphics;
|
||||||
import java.awt.Font;
|
import java.awt.Font;
|
||||||
|
|
||||||
|
import java.awt.AWTException;
|
||||||
|
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
|
import java.awt.Desktop;
|
||||||
import java.awt.FlowLayout;
|
import java.awt.FlowLayout;
|
||||||
import java.awt.Graphics;
|
import java.awt.Graphics;
|
||||||
import java.awt.GridLayout;
|
import java.awt.GridLayout;
|
||||||
import java.awt.Image;
|
import java.awt.Image;
|
||||||
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionEvent;
|
||||||
import java.awt.event.ActionListener;
|
import java.awt.event.ActionListener;
|
||||||
|
import java.awt.event.InputEvent;
|
||||||
|
import java.awt.event.KeyEvent;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
@ -16,24 +23,27 @@ import java.util.concurrent.TimeUnit;
|
||||||
import javax.imageio.ImageIO;
|
import javax.imageio.ImageIO;
|
||||||
import javax.swing.BorderFactory;
|
import javax.swing.BorderFactory;
|
||||||
import javax.swing.JButton;
|
import javax.swing.JButton;
|
||||||
|
import javax.swing.JFileChooser;
|
||||||
import javax.swing.JLabel;
|
import javax.swing.JLabel;
|
||||||
import javax.swing.JPanel;
|
import javax.swing.JPanel;
|
||||||
import javax.swing.JTextArea;
|
import javax.swing.JTextArea;
|
||||||
import javax.swing.border.Border;
|
import javax.swing.border.Border;
|
||||||
import javax.swing.border.EtchedBorder;
|
import javax.swing.border.EtchedBorder;
|
||||||
|
|
||||||
|
import java.awt.Robot;
|
||||||
|
|
||||||
public class carte extends JPanel{
|
public class carte extends JPanel{
|
||||||
private int numero;
|
private int numero;
|
||||||
private Color couleur; // Background Color
|
private Color couleur; // Background Color
|
||||||
|
|
||||||
private int type;
|
private int type;
|
||||||
|
protected static String pathTrinus;
|
||||||
|
protected static String pathRevit;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// type:= 1 => Installation
|
// type:= 1 => Installation
|
||||||
// type:= 2 => Fonctionnement
|
// type:= 2 => Fonctionnement
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public carte (int i, int t) {
|
public carte (int i, int t) {
|
||||||
|
|
||||||
numero = i;
|
numero = i;
|
||||||
|
@ -41,521 +51,12 @@ public class carte extends JPanel{
|
||||||
type = t;
|
type = t;
|
||||||
int taille = 17; //taille police
|
int taille = 17; //taille police
|
||||||
|
|
||||||
|
|
||||||
Border border = BorderFactory.createEtchedBorder(EtchedBorder.RAISED);
|
Border border = BorderFactory.createEtchedBorder(EtchedBorder.RAISED);
|
||||||
Border blackline = BorderFactory.createLineBorder(Color.black);
|
Border blackline = BorderFactory.createLineBorder(Color.black);
|
||||||
Border compound;
|
Border compound;
|
||||||
compound = BorderFactory.createCompoundBorder(border, blackline);
|
compound = BorderFactory.createCompoundBorder(border, blackline);
|
||||||
|
if (i==8) {
|
||||||
if (i==2) {
|
|
||||||
|
|
||||||
|
|
||||||
//Initialitsation
|
|
||||||
TextPanel cadran1;
|
|
||||||
TextPanel cadran2;
|
|
||||||
TextPanel cadran3;
|
|
||||||
TextPanel cadran4;
|
|
||||||
GridLayout g= new GridLayout(2,2);
|
|
||||||
g.setHgap(10);
|
|
||||||
g.setVgap(10);
|
|
||||||
setLayout(g);
|
|
||||||
|
|
||||||
|
|
||||||
//Cadran 1
|
|
||||||
cadran1 = new TextPanel(taille);
|
|
||||||
|
|
||||||
cadran1.AjouterParagraph(" \n");
|
|
||||||
cadran1.AjouterParagraph(" Du BIM à la Réalité Virtuelle! \n");
|
|
||||||
cadran1.AjouterParagraph(" \n");
|
|
||||||
cadran1.AjouterParagraph(" Projet issu d'une collaboration entre l'INSA et l'ISDAT. \n");
|
|
||||||
cadran1.AjouterParagraph(" \n");
|
|
||||||
cadran1.AjouterParagraph(" A partir d'une simulation BIM réalisée par les élèves de l'ISDAT, \n");
|
|
||||||
cadran1.AjouterParagraph(" ceux de l'INSA ont mis au point une application permettant \n");
|
|
||||||
cadran1.AjouterParagraph(" de visualiser un environnement virtuel dépendant \n");
|
|
||||||
cadran1.AjouterParagraph(" de la maquette BIM, afin d'intéragir avec \n");
|
|
||||||
cadran1.AjouterParagraph(" lui au sein de cette réalité virtuelle. \n");
|
|
||||||
|
|
||||||
cadran1.setEditable(false);
|
|
||||||
cadran1.setBorder(compound);
|
|
||||||
|
|
||||||
|
|
||||||
//Cadran 2
|
|
||||||
cadran2 = new TextPanel(taille);
|
|
||||||
|
|
||||||
cadran2.AjouterParagraph(" \n");
|
|
||||||
cadran2.AjouterParagraph(" Participants à la réalisation du projet : \n");
|
|
||||||
cadran2.AjouterParagraph(" \n");
|
|
||||||
cadran2.AjouterParagraph(" Elèves de l'INSA : Elèves de l'ISDAT : Tuteurs : \n");
|
|
||||||
cadran2.AjouterParagraph(" \n");
|
|
||||||
cadran2.AjouterParagraph(" AMOUR Chadi BRUYERE Nathalie \n");
|
|
||||||
cadran2.AjouterParagraph(" BERRADA El Ghali MONTEIL Thierry \n");
|
|
||||||
cadran2.AjouterParagraph(" BERTA Pauline \n");
|
|
||||||
cadran2.AjouterParagraph(" BOUOULID Ilias \n");
|
|
||||||
cadran2.AjouterParagraph(" NUNES Joao \n");
|
|
||||||
cadran2.AjouterParagraph(" POLONI Laura \n");
|
|
||||||
cadran2.AjouterParagraph(" \n");
|
|
||||||
cadran2.setEditable(false);
|
|
||||||
cadran2.setBorder(compound);
|
|
||||||
|
|
||||||
|
|
||||||
//Cadran 3
|
|
||||||
|
|
||||||
cadran3 = new TextPanel(taille);
|
|
||||||
|
|
||||||
cadran3.AjouterParagraph(" \n");
|
|
||||||
cadran3.AjouterParagraph(" Logiciels nécessaires à la bonne réalisation du projet : \n");
|
|
||||||
cadran3.AjouterParagraph(" \n");
|
|
||||||
cadran3.AjouterParagraph(" Revit \n");
|
|
||||||
cadran3.AjouterParagraph(" GrassHopper (avec son plugin) \n");
|
|
||||||
cadran3.AjouterParagraph(" Trinus \n");
|
|
||||||
cadran3.AjouterParagraph(" GlovePie \n");
|
|
||||||
cadran3.AjouterParagraph(" \n");
|
|
||||||
cadran3.AjouterParagraph(" Nous vous expliquerons par la suite quels sont les logiciels \n");
|
|
||||||
cadran3.AjouterParagraph(" prérequis, et quels sont ceux dont nous allons guider l'installation. \n");
|
|
||||||
cadran3.setEditable(false);
|
|
||||||
cadran3.setBorder(compound);
|
|
||||||
|
|
||||||
|
|
||||||
//Cadran 4
|
|
||||||
|
|
||||||
cadran4 = new TextPanel(taille);
|
|
||||||
|
|
||||||
cadran4.AjouterParagraph(" \n");
|
|
||||||
cadran4.AjouterParagraph(" Matériel nécessaire à la bonne réalisation du projet : \n");
|
|
||||||
cadran4.AjouterParagraph(" \n");
|
|
||||||
cadran4.AjouterParagraph(" Wiimote \n");
|
|
||||||
cadran4.AjouterParagraph(" Sensor bar \n");
|
|
||||||
cadran4.AjouterParagraph(" Masque \n");
|
|
||||||
cadran4.AjouterParagraph(" Smartphone \n");
|
|
||||||
cadran4.AjouterParagraph(" \n");
|
|
||||||
cadran4.AjouterParagraph(" Nous vous expliquerons par la suite quel sera l'utilisation \n");
|
|
||||||
cadran4.AjouterParagraph(" de chaque matériel et comment les mettre en place. \n");
|
|
||||||
cadran4.setEditable(false);
|
|
||||||
cadran4.setBorder(compound);
|
|
||||||
|
|
||||||
//Ajouter les cadrans
|
|
||||||
add(cadran1);
|
|
||||||
add(cadran2);
|
|
||||||
add(cadran3);
|
|
||||||
add(cadran4);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
else if (i==3) {
|
|
||||||
|
|
||||||
//Initialitsation
|
|
||||||
TextPanel cadran1;
|
|
||||||
TextPanel cadran2;
|
|
||||||
TextPanel cadran3;
|
|
||||||
TextPanel cadran4;
|
|
||||||
GridLayout g= new GridLayout(2,2);
|
|
||||||
g.setHgap(10);
|
|
||||||
g.setVgap(10);
|
|
||||||
setLayout(g);
|
|
||||||
|
|
||||||
//Cadran 1
|
|
||||||
|
|
||||||
cadran1 = new TextPanel(taille);
|
|
||||||
cadran1.setBorder(compound);
|
|
||||||
cadran1.AjouterParagraph(" \n");
|
|
||||||
cadran1.AjouterParagraph(" Pour le bon fonctionnement du système, il faut va falloir \n");
|
|
||||||
cadran1.AjouterParagraph(" que vous installiez au préalable deux logiciels.\n");
|
|
||||||
cadran1.AjouterParagraph(" * Revit (Développement d'Objets et de Structures 3D) \n");
|
|
||||||
cadran1.AjouterParagraph(" * Grasshopper (Outil utilisé en Association avec Revit)\n");
|
|
||||||
cadran1.AjouterParagraph(" \n");
|
|
||||||
cadran1.AjouterParagraph(" Vérifier bien que la connexion bluetooth fonctionne sur votre machine, \n");
|
|
||||||
cadran1.AjouterParagraph(" elle sera nécessaire pour connecter votre wiimote à l'ordinateur. \n");
|
|
||||||
cadran1.AjouterParagraph(" \n");
|
|
||||||
cadran1.AjouterParagraph(" Lorsque tous les pré-requis précédent sont installés et vérifiés \n");
|
|
||||||
cadran1.AjouterParagraph(" vous pouvez passez à la suite!\n");
|
|
||||||
cadran1.AjouterParagraph(" \n");
|
|
||||||
cadran1.setEditable(false);
|
|
||||||
|
|
||||||
//Cadran 2
|
|
||||||
|
|
||||||
cadran2 = new TextPanel(taille);
|
|
||||||
|
|
||||||
cadran2.setBorder(compound);
|
|
||||||
cadran2.AjouterParagraph(" \n");
|
|
||||||
cadran2.AjouterParagraph(" Avant de pouvoir utiliser l'application il reste \n");
|
|
||||||
cadran2.AjouterParagraph(" quelques étapes à parcourir. \n");
|
|
||||||
cadran2.AjouterParagraph(" \n");
|
|
||||||
cadran2.AjouterParagraph(" Nous allons vous guider dans l'installation de deux derniers \n");
|
|
||||||
cadran2.AjouterParagraph(" logiciels, tels que : \n");
|
|
||||||
cadran2.AjouterParagraph(" * GlovePie (Emulateur de Clavier et Souris) \n");
|
|
||||||
cadran2.AjouterParagraph(" * Trinus (Convertisseur d'Images Classiques en Images au format VR) \n");
|
|
||||||
cadran2.AjouterParagraph(" \n");
|
|
||||||
cadran2.AjouterParagraph(" Sur la page suivante les démarches vous sont expliquées pas-à-pas! \n");
|
|
||||||
cadran2.AjouterParagraph(" \n");
|
|
||||||
cadran2.setEditable(false);
|
|
||||||
|
|
||||||
//Cadran 3
|
|
||||||
cadran3 = new TextPanel(taille);
|
|
||||||
|
|
||||||
cadran3.setBorder(compound);
|
|
||||||
cadran3.AjouterParagraph(" \n");
|
|
||||||
cadran3.AjouterParagraph(" Vous pouvez remarquer plusieurs boutons à votre disposition ci-dessous. \n");
|
|
||||||
cadran3.AjouterParagraph(" \n");
|
|
||||||
cadran3.AjouterParagraph(" Vous avez la possibilité à tout moment de retourner sur la page \n");
|
|
||||||
cadran3.AjouterParagraph(" précédente avec le bouton PRECEDENT. \n");
|
|
||||||
cadran3.AjouterParagraph(" \n");
|
|
||||||
cadran3.AjouterParagraph(" De la même manière, vous avez la possibilité de passer à la \n");
|
|
||||||
cadran3.AjouterParagraph(" suivante avec le bouton SUIVANT.\n");
|
|
||||||
cadran3.AjouterParagraph(" \n");
|
|
||||||
cadran3.setEditable(false);
|
|
||||||
|
|
||||||
//Cadran 4
|
|
||||||
|
|
||||||
cadran4 = new TextPanel(taille);
|
|
||||||
|
|
||||||
cadran4.setBorder(compound);
|
|
||||||
cadran4.AjouterParagraph(" \n");
|
|
||||||
cadran4.AjouterParagraph(" Le bouton LANCER VR est là pour vous permettre de passer en un \n");
|
|
||||||
cadran4.AjouterParagraph(" clic toute la partie Installation des logiciels GlovePie et Trinus.\n");
|
|
||||||
cadran4.AjouterParagraph(" \n");
|
|
||||||
cadran4.AjouterParagraph(" ! Si vous avez déjà réaliser les installations sur votre machine \n");
|
|
||||||
cadran4.AjouterParagraph(" lors d'une précédente utilisation, il n'est pas nécessaire de \n");
|
|
||||||
cadran4.AjouterParagraph(" recommencer ! \n");
|
|
||||||
cadran4.AjouterParagraph(" \n");
|
|
||||||
cadran4.AjouterParagraph(" ! Cliquer directement sur LANCER VR ! \n");
|
|
||||||
cadran4.AjouterParagraph(" \n");
|
|
||||||
cadran4.setEditable(false);
|
|
||||||
|
|
||||||
|
|
||||||
//Ajouter les cadrans
|
|
||||||
add(cadran1);
|
|
||||||
add(cadran2);
|
|
||||||
add(cadran3);
|
|
||||||
add(cadran4);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
else if (i==4) {
|
|
||||||
|
|
||||||
//Initialitsation
|
|
||||||
JPanel cadran1 = new JPanel();
|
|
||||||
TextPanel cadran1_1;
|
|
||||||
ImagePanel cadran2;
|
|
||||||
ImagePanel cadran3;
|
|
||||||
ImagePanel cadran4;
|
|
||||||
TextPanel Texte;
|
|
||||||
|
|
||||||
JButton BoutonInstallation = new JButton("START INSTALLATION");
|
|
||||||
Font f = new Font("Serif", Font.BOLD, 45);
|
|
||||||
|
|
||||||
BoutonInstallation.setFont(f);
|
|
||||||
BoutonInstallation.setForeground(Color.WHITE);
|
|
||||||
BoutonInstallation.setBackground(Color.LIGHT_GRAY);
|
|
||||||
|
|
||||||
GridLayout g= new GridLayout(2,2);
|
|
||||||
GridLayout cad1 = new GridLayout(2,1);
|
|
||||||
g.setHgap(10);
|
|
||||||
g.setVgap(10);
|
|
||||||
setLayout(g);
|
|
||||||
|
|
||||||
|
|
||||||
//Cadran 1
|
|
||||||
|
|
||||||
cadran1.setLayout(cad1);
|
|
||||||
|
|
||||||
cadran1_1 = new TextPanel(taille);
|
|
||||||
cadran1_1.setBorder(compound);
|
|
||||||
|
|
||||||
cadran1_1.AjouterParagraph(" \n");
|
|
||||||
cadran1_1.AjouterParagraph(" L'installation du logiciel Trinus est nécessaire pour le bon \n");
|
|
||||||
cadran1_1.AjouterParagraph(" fonctionnement de notre système. \n");
|
|
||||||
cadran1_1.AjouterParagraph(" START INSTALLATION va lancer automatiquement l'installation du logiciel. \n");
|
|
||||||
cadran1_1.AjouterParagraph(" Vous devez accepter et suivre les étapes décrites sur les images suivantes. \n");
|
|
||||||
cadran1_1.AjouterParagraph(" \n");
|
|
||||||
cadran1_1.setEditable(false);
|
|
||||||
|
|
||||||
cadran1.add(cadran1_1);
|
|
||||||
cadran1.add(BoutonInstallation);
|
|
||||||
|
|
||||||
|
|
||||||
//Cadran 2
|
|
||||||
cadran2 = new ImagePanel("Images/Install_Trinus/1.png");
|
|
||||||
cadran2.setBorder(compound);
|
|
||||||
|
|
||||||
//Cadran3
|
|
||||||
cadran3 = new ImagePanel("Images/Install_Trinus/2.png");
|
|
||||||
cadran3.setBorder(compound);
|
|
||||||
|
|
||||||
//Cadran 4
|
|
||||||
cadran4 = new ImagePanel("Images/Install_Trinus/3.png");
|
|
||||||
cadran4.setBorder(compound);
|
|
||||||
|
|
||||||
//Ajouter les cadrans
|
|
||||||
add(cadran1);
|
|
||||||
add(cadran2);
|
|
||||||
add(cadran3);
|
|
||||||
add(cadran4);
|
|
||||||
|
|
||||||
BoutonInstallation.addActionListener(new ActionListener() {
|
|
||||||
public void actionPerformed(ActionEvent event) {
|
|
||||||
//Lancement du panneau de configuration
|
|
||||||
|
|
||||||
Runtime rt = Runtime.getRuntime();
|
|
||||||
try {
|
|
||||||
rt.exec(new String[] {"External_Software/TGsetup.exe"});
|
|
||||||
|
|
||||||
}
|
|
||||||
catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
else if (i==5) {
|
|
||||||
|
|
||||||
//Initialitsation
|
|
||||||
ImagePanel cadran1;
|
|
||||||
ImagePanel cadran2;
|
|
||||||
ImagePanel cadran3;
|
|
||||||
ImagePanel cadran4;
|
|
||||||
GridLayout g= new GridLayout(2,2);
|
|
||||||
g.setHgap(10);
|
|
||||||
g.setVgap(10);
|
|
||||||
setLayout(g);
|
|
||||||
|
|
||||||
//Cadran 1
|
|
||||||
cadran1 = new ImagePanel("Images/Install_Trinus/4.png");
|
|
||||||
cadran1.setBorder(border);
|
|
||||||
|
|
||||||
//Cadran 2
|
|
||||||
cadran2 = new ImagePanel("Images/Install_Trinus/5.png");
|
|
||||||
cadran2.setBorder(compound);
|
|
||||||
|
|
||||||
//Cadran 3
|
|
||||||
cadran3 = new ImagePanel("Images/Install_Trinus/6.png");
|
|
||||||
cadran3.setBorder(compound);
|
|
||||||
|
|
||||||
//Cadran 4
|
|
||||||
cadran4 = new ImagePanel("Images/Install_Trinus/7.png");
|
|
||||||
cadran4.setBorder(compound);
|
|
||||||
|
|
||||||
|
|
||||||
//Ajout des cadrans
|
|
||||||
add(cadran1);
|
|
||||||
add(cadran2);
|
|
||||||
add(cadran3);
|
|
||||||
add(cadran4);
|
|
||||||
|
|
||||||
}
|
|
||||||
else if (i==6) {
|
|
||||||
|
|
||||||
//Initialitsation
|
|
||||||
JPanel cadran1 = new JPanel();
|
|
||||||
TextPanel cadran1_1;
|
|
||||||
ImagePanel cadran2;
|
|
||||||
ImagePanel cadran3;
|
|
||||||
ImagePanel cadran4;
|
|
||||||
|
|
||||||
|
|
||||||
JButton BoutonInstallation = new JButton("START INSTALLATION");
|
|
||||||
Font f = new Font("Serif", Font.BOLD, 45);
|
|
||||||
|
|
||||||
BoutonInstallation.setFont(f);
|
|
||||||
BoutonInstallation.setForeground(Color.WHITE);
|
|
||||||
BoutonInstallation.setBackground(Color.LIGHT_GRAY);
|
|
||||||
|
|
||||||
GridLayout g= new GridLayout(2,2);
|
|
||||||
GridLayout cad1 = new GridLayout(2,1);
|
|
||||||
g.setHgap(10);
|
|
||||||
g.setVgap(10);
|
|
||||||
setLayout(g);
|
|
||||||
|
|
||||||
//Cadran 1
|
|
||||||
|
|
||||||
cadran1.setLayout(cad1);
|
|
||||||
|
|
||||||
cadran1_1 = new TextPanel(taille);
|
|
||||||
cadran1_1.setBorder(compound);
|
|
||||||
|
|
||||||
cadran1_1.AjouterParagraph(" \n");
|
|
||||||
cadran1_1.AjouterParagraph(" Pour finir, nous devons installer la manette Wiimote. \n");
|
|
||||||
cadran1_1.AjouterParagraph(" Pour cela nous allons l'ajouter en tant que périphérique Bluetooth. \n");
|
|
||||||
cadran1_1.AjouterParagraph(" Cliquer sur START INSTALLATION, le panneau de configuration va apparaitre.\n");
|
|
||||||
cadran1_1.AjouterParagraph(" Suivez les étapes d'installation avec les images suivantes. \n");
|
|
||||||
cadran1_1.AjouterParagraph(" \n");
|
|
||||||
cadran1_1.setEditable(false);
|
|
||||||
|
|
||||||
cadran1.add(cadran1_1);
|
|
||||||
cadran1.add(BoutonInstallation);
|
|
||||||
|
|
||||||
|
|
||||||
//Cadran 2
|
|
||||||
cadran2 = new ImagePanel("Images/Install_Wiimote/1.png");
|
|
||||||
cadran2.setBorder(compound);
|
|
||||||
|
|
||||||
|
|
||||||
//Cadran 3
|
|
||||||
cadran3 = new ImagePanel("Images/Install_Wiimote/3.png");
|
|
||||||
cadran3.setBorder(compound);
|
|
||||||
|
|
||||||
|
|
||||||
//Cadran 4
|
|
||||||
cadran4 = new ImagePanel("Images/Install_Wiimote/4.png");
|
|
||||||
cadran4.setBorder(compound);
|
|
||||||
|
|
||||||
|
|
||||||
//Ajout des cadrans
|
|
||||||
add(cadran1);
|
|
||||||
add(cadran2);
|
|
||||||
add(cadran3);
|
|
||||||
add(cadran4);
|
|
||||||
|
|
||||||
}
|
|
||||||
else if (i==7) {
|
|
||||||
|
|
||||||
//Initialitsation
|
|
||||||
TextPanel cadran1;
|
|
||||||
JPanel cadran2;
|
|
||||||
|
|
||||||
Font f = new Font("Serif", Font.BOLD, 15);
|
|
||||||
|
|
||||||
JButton BoutonGlovePie = new JButton("Lancer GLovePie");
|
|
||||||
BoutonGlovePie.setFont(f);
|
|
||||||
BoutonGlovePie.setForeground(Color.BLACK);
|
|
||||||
BoutonGlovePie.setBackground(Color.LIGHT_GRAY);
|
|
||||||
|
|
||||||
JButton BoutonTrinus = new JButton("Lancer Trinus");
|
|
||||||
BoutonTrinus.setFont(f);
|
|
||||||
BoutonTrinus.setForeground(Color.BLACK);
|
|
||||||
BoutonTrinus.setBackground(Color.LIGHT_GRAY);
|
|
||||||
|
|
||||||
JButton BoutonRevit = new JButton("Lancer Revit");
|
|
||||||
BoutonRevit.setFont(f);
|
|
||||||
BoutonRevit.setForeground(Color.BLACK);
|
|
||||||
BoutonRevit.setBackground(Color.LIGHT_GRAY);
|
|
||||||
|
|
||||||
JButton BoutonInternet = new JButton("Lancer AutoDesk View");
|
|
||||||
BoutonInternet.setFont(f);
|
|
||||||
BoutonInternet.setForeground(Color.BLACK);
|
|
||||||
BoutonInternet.setBackground(Color.LIGHT_GRAY);
|
|
||||||
|
|
||||||
JButton BoutonClavier = new JButton ("Lancer le clavier Virtuel");
|
|
||||||
BoutonClavier.setFont(f);
|
|
||||||
BoutonClavier.setForeground(Color.BLACK);
|
|
||||||
BoutonClavier.setBackground(Color.LIGHT_GRAY);
|
|
||||||
|
|
||||||
GridLayout grid= new GridLayout(2,2);
|
|
||||||
FlowLayout flow = new FlowLayout();
|
|
||||||
grid.setHgap(10);
|
|
||||||
grid.setVgap(10);
|
|
||||||
setLayout(grid);
|
|
||||||
|
|
||||||
//Cadran 1
|
|
||||||
cadran1 = new TextPanel(taille);
|
|
||||||
cadran1.AjouterParagraph(" \n");
|
|
||||||
cadran1.AjouterParagraph(" Le système est prêt à être utilisé! \n");
|
|
||||||
cadran1.AjouterParagraph(" \n");
|
|
||||||
cadran1.AjouterParagraph(" Les logiciels suivant sont bien installés sur la machine : \n ");
|
|
||||||
cadran1.AjouterParagraph(" * GlovePie \n");
|
|
||||||
cadran1.AjouterParagraph(" * Trinus \n");
|
|
||||||
cadran1.AjouterParagraph(" La WiiMote est reliée en Bluetooth à l'ordinateur! \n");
|
|
||||||
cadran1.AjouterParagraph(" \n");
|
|
||||||
cadran1.AjouterParagraph(" Les différents boutons ci-dessous vous permettent de lancer tous les outils nécessaires. \n");
|
|
||||||
cadran1.AjouterParagraph(" \n");
|
|
||||||
cadran1.setEditable(false);
|
|
||||||
cadran1.setBorder(compound);
|
|
||||||
|
|
||||||
//Cadran 2
|
|
||||||
cadran2 = new JPanel();
|
|
||||||
cadran2.setLayout(flow);
|
|
||||||
cadran2.add(BoutonGlovePie);
|
|
||||||
cadran2.add(BoutonTrinus);
|
|
||||||
cadran2.add(BoutonRevit);
|
|
||||||
cadran2.add(BoutonInternet);
|
|
||||||
cadran2.add(BoutonClavier);
|
|
||||||
|
|
||||||
//Gestion Boutons
|
|
||||||
|
|
||||||
BoutonGlovePie.addActionListener(new ActionListener() {
|
|
||||||
public void actionPerformed(ActionEvent event) {
|
|
||||||
//Lancement du panneau de configuration
|
|
||||||
|
|
||||||
Runtime rt = Runtime.getRuntime();
|
|
||||||
try {
|
|
||||||
rt.exec(new String[] {"cmd.exe","/c","start","control"});
|
|
||||||
|
|
||||||
}catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
BoutonTrinus.addActionListener(new ActionListener() {
|
|
||||||
public void actionPerformed(ActionEvent event) {
|
|
||||||
//Lancement du panneau de configuration
|
|
||||||
|
|
||||||
Runtime rt = Runtime.getRuntime();
|
|
||||||
try {
|
|
||||||
rt.exec(new String[] {"cmd.exe","/c","start","control"});
|
|
||||||
|
|
||||||
}catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
BoutonRevit.addActionListener(new ActionListener() {
|
|
||||||
public void actionPerformed(ActionEvent event) {
|
|
||||||
//Lancement du panneau de configuration
|
|
||||||
|
|
||||||
Runtime rt = Runtime.getRuntime();
|
|
||||||
try {
|
|
||||||
rt.exec(new String[] {"cmd.exe","/c","start","control"});
|
|
||||||
|
|
||||||
}catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
BoutonInternet.addActionListener(new ActionListener() {
|
|
||||||
public void actionPerformed(ActionEvent event) {
|
|
||||||
//Lancement du panneau de configuration
|
|
||||||
|
|
||||||
Runtime rt = Runtime.getRuntime();
|
|
||||||
try {
|
|
||||||
rt.exec(new String[] {"cmd.exe","/c","start","https://viewer.autodesk.com/"});
|
|
||||||
|
|
||||||
}catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
BoutonClavier.addActionListener(new ActionListener() {
|
|
||||||
public void actionPerformed(ActionEvent event) {
|
|
||||||
//Lancement du panneau de configuration
|
|
||||||
|
|
||||||
Runtime rt = Runtime.getRuntime();
|
|
||||||
try {
|
|
||||||
rt.exec(new String[] {"cmd.exe","/c","start","osk"});
|
|
||||||
|
|
||||||
}catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//Ajout Cadran
|
|
||||||
add(cadran1);
|
|
||||||
add(cadran2);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ public class titre extends JPanel{
|
||||||
Font police = new Font("Arial", Font.BOLD, 24);
|
Font police = new Font("Arial", Font.BOLD, 24);
|
||||||
Titre.setFont(police);
|
Titre.setFont(police);
|
||||||
Titre.setForeground(Color.black);
|
Titre.setForeground(Color.black);
|
||||||
this.setBackground(Color.WHITE);
|
|
||||||
Titre.setHorizontalAlignment(JLabel.CENTER);
|
Titre.setHorizontalAlignment(JLabel.CENTER);
|
||||||
this.add(Titre, BorderLayout.CENTER);
|
this.add(Titre, BorderLayout.CENTER);
|
||||||
this.setPreferredSize(new Dimension(1200,100));
|
this.setPreferredSize(new Dimension(1200,100));
|
||||||
|
|
Loading…
Reference in a new issue