def _init_canvas(self, parent): layout = QtGui.QHBoxLayout() parent.addLayout(layout) self.labels = widgets.VertebraeWidget(self, self.params.vertebraes) self.labels.label = self.params.start_vertebrae layout.addWidget(self.labels) self.sagittal = widgets.SagittalCanvas(self, plot_points=True, annotate=True) self.sagittal.point_selected_signal.connect(self.on_select_point) layout.addWidget(self.sagittal)
def _init_canvas(self, parent): layout = QtWidgets.QHBoxLayout() parent.addLayout(layout) self.sagittal_canvas = widgets.SagittalCanvas(self, plot_points=True, horizontal_nav=True) self.sagittal_canvas.title(self.params.subtitle) layout.addWidget(self.sagittal_canvas) self.axial_canvas = widgets.AxialCanvas(self, plot_points=True, crosshair=True) self.axial_canvas.plot_points() layout.addWidget(self.axial_canvas) self.axial_canvas.point_selected_signal.connect(self.on_select_point) self.sagittal_canvas.point_selected_signal.connect(self.on_select_slice)
def _init_canvas(self, parent): layout = QtGui.QHBoxLayout() self.sagittal_canvas = widgets.SagittalCanvas(self, plot_points=True, plot_position=True) layout.addWidget(self.sagittal_canvas) self.axial_canvas = widgets.AxialCanvas(self, crosshair=True) self.axial_canvas.plot_points() layout.addWidget(self.axial_canvas) self.axial_canvas.point_selected_signal.connect(self.select_point) self.sagittal_canvas.point_selected_signal.connect(self.on_select_slice) parent.addLayout(layout)