Пример #1
0
    def onMachineSettings(self, event):
        if sys.isWindows():
            self.simpleScan.stop()
            self.textureScan.stop()
            self.laserTriangulation.cancel()
            self.platformExtrinsics.cancel()
            self.controlWorkbench.videoView.stop()
            self.calibrationWorkbench.videoView.stop()
            self.calibrationWorkbench.cameraIntrinsicsMainPage.videoView.stop()
            self.calibrationWorkbench.laserTriangulationMainPage.videoView.stop()
            self.calibrationWorkbench.platformExtrinsicsMainPage.videoView.stop()
            self.scanningWorkbench.videoView.stop()
            self.driver.board.setUnplugCallback(None)
            self.driver.camera.setUnplugCallback(None)
            self.controlWorkbench.updateStatus(False)
            self.calibrationWorkbench.updateStatus(False)
            self.scanningWorkbench.updateStatus(False)
            self.driver.disconnect()
            waitCursor = wx.BusyCursor()

        MachineDialog = MachineSettingsDialog(self)
        ret = MachineDialog.ShowModal()

        if ret == wx.ID_OK:
            self.scanningWorkbench.sceneView._drawMachine()
            profile.saveMachineSettings(os.path.join(profile.getBasePath(), profile.getMachineSettingFileName()))
            self.scanningWorkbench.controls.panels["point_cloud_generation"].updateProfile()

        self.controlWorkbench.updateCallbacks()
        self.calibrationWorkbench.updateCallbacks()
        self.scanningWorkbench.updateCallbacks()
Пример #2
0
    def __init__(self):
        super(HorusApp, self).__init__(redirect=False)

        self.basePath = profile.getBasePath()

        if sys.isDarwin():
            self.afterSplashCallback()
        else:
            SplashScreen(self.afterSplashCallback)
Пример #3
0
	def __init__(self):
		super(HorusApp, self).__init__(redirect=False)

		self.basePath = profile.getBasePath()

		if sys.isDarwin():
			self.afterSplashCallback()
		else:
			SplashScreen(self.afterSplashCallback)
Пример #4
0
 def onComboBoxWorkbenchSelected(self, event):
     """ """
     if _(profile.getPreference(
             'workbench')) != event.GetEventObject().GetValue():
         profile.putPreference(
             'workbench',
             self.workbenchDict[event.GetEventObject().GetValue()])
         profile.saveProfile(
             os.path.join(profile.getBasePath(), 'current-profile.ini'))
         self.workbenchUpdate()
Пример #5
0
 def onComboBoxWorkbenchSelected(self, event):
     """ """
     currentWorkbench = profile.getPreference('workbench')
     for key in self.workbenchList:
         if self.workbenchList[key] == str(
                 event.GetEventObject().GetValue()):
             if key is not None:
                 profile.putPreference('workbench', key)
                 if key != currentWorkbench:
                     profile.saveProfile(
                         os.path.join(profile.getBasePath(),
                                      'current-profile.ini'))
             self.workbenchUpdate()
Пример #6
0
 def onScanningPageNextClicked(self):
     self.driver.board.setLeftLaserOff()
     self.driver.board.setRightLaserOff()
     profile.saveProfile(os.path.join(profile.getBasePath(), 'current-profile.ini'))
     dlg = wx.MessageDialog(self, _("You have finished the wizard.\nPress Play button to start scanning."), _("Ready to scan!"), wx.OK | wx.ICON_INFORMATION)
     result = dlg.ShowModal() == wx.ID_OK
     dlg.Destroy()
     if result:
         self.connectionPage.videoView.stop()
         self.calibrationPage.videoView.stop()
         self.scanningPage.videoView.stop()
         profile.putPreference('workbench', 'Scanning workbench')
         self.parent.updatePCGProfile()
         self.parent.updateCalibrationProfile()
         self.parent.workbenchUpdate()
         self.Destroy()
Пример #7
0
 def onScanningPageNextClicked(self):
     self.driver.board.setLeftLaserOff()
     self.driver.board.setRightLaserOff()
     profile.saveProfile(
         os.path.join(profile.getBasePath(), 'current-profile.ini'))
     dlg = wx.MessageDialog(
         self,
         _("You have finished the wizard.\nPress Play button to start scanning."
           ), _("Ready to scan!"), wx.OK | wx.ICON_INFORMATION)
     result = dlg.ShowModal() == wx.ID_OK
     dlg.Destroy()
     if result:
         self.connectionPage.videoView.stop()
         self.calibrationPage.videoView.stop()
         self.scanningPage.videoView.stop()
         profile.putPreference('workbench', 'Scanning workbench')
         self.parent.updatePCGProfile()
         self.parent.updateCalibrationProfile()
         self.parent.workbenchUpdate()
         self.Destroy()
Пример #8
0
	def __init__(self):
		super(HorusApp, self).__init__(redirect=False)

		self.basePath = profile.getBasePath()

		SplashScreen(self.afterSplashCallback)
Пример #9
0
    def __init__(self):
        super(HorusApp, self).__init__(redirect=False)

        self.basePath = profile.getBasePath()

        SplashScreen(self.afterSplashCallback)
Пример #10
0
 def onComboBoxWorkbenchSelected(self, event):
     """ """
     if _(profile.getPreference('workbench')) != event.GetEventObject().GetValue():
         profile.putPreference('workbench', self.workbenchDict[event.GetEventObject().GetValue()])
         profile.saveProfile(os.path.join(profile.getBasePath(), 'current-profile.ini'))
         self.workbenchUpdate()