def __init__(self, parent, toolbar_scan): Workbench.__init__(self, parent, name=_('Scanning workbench')) self.scanning = False self.toolbar_scan = toolbar_scan # Elements self.play_tool = self.toolbar_scan.AddTool( wx.NewId(), _("Play"), wx.Bitmap(resources.get_path_for_image("play.png")), shortHelp=_("Play")) self.stop_tool = self.toolbar_scan.AddTool( wx.NewId(), _("Stop"), wx.Bitmap(resources.get_path_for_image("stop.png")), shortHelp=_("Stop")) self.pause_tool = self.toolbar_scan.AddTool( wx.NewId(), _("Pause"), wx.Bitmap(resources.get_path_for_image("pause.png")), shortHelp=_("Pause")) self.toolbar_scan.Realize() self.toolbar_scan.GetParent().Layout() ciclop_scan.point_cloud_callback = self.point_cloud_callback self._enable_tool_scan(self.play_tool, False) self._enable_tool_scan(self.stop_tool, False) self._enable_tool_scan(self.pause_tool, False) # Events self.toolbar_scan.GetParent().Bind(wx.EVT_TOOL, self.on_play_tool_clicked, self.play_tool) self.toolbar_scan.GetParent().Bind(wx.EVT_TOOL, self.on_stop_tool_clicked, self.stop_tool) self.toolbar_scan.GetParent().Bind(wx.EVT_TOOL, self.on_pause_tool_clicked, self.pause_tool)
def __init__(self, parent, toolbar_convert, scanning_workbench, on_normal_computing_ended=None, on_mesh_reconstruction_ended=None): Workbench.__init__(self, parent, name=_('Converting workbench')) self.toolbar_convert = toolbar_convert ToolbarConvert(parent, self.toolbar_convert, scanning_workbench, on_normal_computing_ended, on_mesh_reconstruction_ended)
def __init__(self, parent): Workbench.__init__(self, parent, name=_('Control workbench'))
def __init__(self, parent): Workbench.__init__(self, parent, name=_('Calibration workbench'))
def __init__(self, parent): Workbench.__init__(self, parent, name=_('Adjustment workbench')) self.current_video = CurrentVideo()