Beispiel #1
0
 def onButtonDefaultPressed(self, event):
     dlg = wx.MessageDialog(self, _("This will reset platform extrinsics profile settings to defaults.\nUnless you have saved your current profile, all settings will be lost! Do you really want to reset?"), _("Platform Extrinsics reset"), wx.YES_NO | wx.ICON_QUESTION)
     result = dlg.ShowModal() == wx.ID_YES
     dlg.Destroy()
     if result:
         profile.resetProfileSetting('rotation_matrix')
         profile.resetProfileSetting('translation_vector')
         self.updateProfile()
Beispiel #2
0
 def onButtonDefaultPressed(self, event):
     dlg = wx.MessageDialog(self, _("This will reset platform extrinsics profile settings to defaults.\nUnless you have saved your current profile, all settings will be lost! Do you really want to reset?"), _("Platform Extrinsics reset"), wx.YES_NO | wx.ICON_QUESTION)
     result = dlg.ShowModal() == wx.ID_YES
     dlg.Destroy()
     if result:
         profile.resetProfileSetting('rotation_matrix')
         profile.resetProfileSetting('translation_vector')
         self.updateProfile()
Beispiel #3
0
 def onButtonDefaultPressed(self, event):
     dlg = wx.MessageDialog(self, _("This will reset laser triangulation profile settings to defaults.\nUnless you have saved your current profile, all settings will be lost! Do you really want to reset?"), _("Laser Triangulation reset"), wx.YES_NO | wx.ICON_QUESTION)
     result = dlg.ShowModal() == wx.ID_YES
     dlg.Destroy()
     if result:
         profile.resetProfileSetting('distance_left')
         profile.resetProfileSetting('normal_left')
         profile.resetProfileSetting('distance_right')
         profile.resetProfileSetting('normal_right')
         self.updateProfile()
Beispiel #4
0
 def onButtonDefaultPressed(self, event):
     dlg = wx.MessageDialog(self, _("This will reset laser triangulation profile settings to defaults.\nUnless you have saved your current profile, all settings will be lost! Do you really want to reset?"), _("Laser Triangulation reset"), wx.YES_NO | wx.ICON_QUESTION)
     result = dlg.ShowModal() == wx.ID_YES
     dlg.Destroy()
     if result:
         profile.resetProfileSetting('distance_left')
         profile.resetProfileSetting('normal_left')
         profile.resetProfileSetting('distance_right')
         profile.resetProfileSetting('normal_right')
         self.updateProfile()
Beispiel #5
0
	def resetProfile(self):
		profile.resetProfileSetting(self.name)
		del self.undoValues[:]
		self.updateProfile()
Beispiel #6
0
	def resetProfile(self):
		profile.resetProfileSetting(self.name)
		del self.undoValues[:]
		self.updateProfile()