def __init__(self, gv, layout): secondary_gr, secondary_layout = create_gr() super().__init__(gv, 'viz', secondary_layout) self.gv = gv self.layout = layout self.dock_area = DockArea() self.layout.addWidget(self.dock_area, 1, 0, 1, 8) self.len_sig = 100 self.init_modify_curve_layout() self.init_viz_layout() self.electrod_sphere = Sphere(self.gv, scaling_factor=3, update_func_name='follow_plane') self.view.addItem(self.electrod_sphere.item) self.planes = self.create_planes() self.planes_pos = [plane.pos for plane in self.planes] for plane in self.planes: self.view.addItem(plane.item) self.electrod_sphere.set_element_to_follow( ele_to_follow=self.planes_pos) self.sphere = Sphere(self.gv, scaling_factor=48) self.signals = {} self.create_plot_lines() # self.on_off_button() self.timer = QtCore.QTimer() self.timer.timeout.connect(self.update)
def create_all_eeg_plot(self): """ """ grps = [] for ch in range(self.gv.N_CH): self.gr, ch_layout = create_gr() grps.append(self.gr) self.add_ch_layout(ch_layout, ch) return grps
def add_pin_settings_to_layout(self, layout): self.gr, self.ch_layout = create_gr() for i, (s_name, s) in enumerate(self.settings.items()): create_param_combobox(self.ch_layout, None, (i % 5, i // 5), s, conn_func=partial( self.change_hardware_settings, s_name), editable=False, tip=s_name) layout.addWidget(self.gr, self.ch, 0)