Ejemplo n.º 1
0
class FrameContextData(object):
    def __init__(self, context, video_file_name, frames_per_second, framecount,
                 image_dimensions):
        self._context = context
        self._shareable_widget = BaseSceneviewerWidget()
        self._shareable_widget.set_context(context)
        self._frames_per_second = frames_per_second
        self._video_file_name = video_file_name
        self._image_dimensions = image_dimensions
        self._framecount = framecount

    def get_context(self):
        return self._context

    def get_shareable_open_gl_widget(self):
        return self._shareable_widget

    def get_frames_per_second(self):
        return self._frames_per_second

    def get_frame_count(self):
        return self._framecount

    def get_video_file_name(self):
        return self._video_file_name

    def get_image_dimensions(self):
        return self._image_dimensions
Ejemplo n.º 2
0
 def __init__(self, context, video_file_name, frames_per_second, framecount,
              image_dimensions):
     self._context = context
     self._shareable_widget = BaseSceneviewerWidget()
     self._shareable_widget.set_context(context)
     self._frames_per_second = frames_per_second
     self._video_file_name = video_file_name
     self._image_dimensions = image_dimensions
     self._framecount = framecount
    def setupUi(self, shared_open_gl_widget, ElectrodeArrayDetectorWidget):
        ElectrodeArrayDetectorWidget.setObjectName(
            "ElectrodeArrayDetectorWidget")
        ElectrodeArrayDetectorWidget.resize(870, 576)
        self.horizontalLayout = QtGui.QHBoxLayout(ElectrodeArrayDetectorWidget)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.controlPanel_groupBox = QtGui.QGroupBox(
            ElectrodeArrayDetectorWidget)
        self.controlPanel_groupBox.setObjectName("controlPanel_groupBox")
        self.verticalLayout = QtGui.QVBoxLayout(self.controlPanel_groupBox)
        self.verticalLayout.setObjectName("verticalLayout")
        self.time_groupBox = QtGui.QGroupBox(self.controlPanel_groupBox)
        self.time_groupBox.setObjectName("time_groupBox")
        self.gridLayout_4 = QtGui.QGridLayout(self.time_groupBox)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.timePlayStop_pushButton = QtGui.QPushButton(self.time_groupBox)
        self.timePlayStop_pushButton.setObjectName("timePlayStop_pushButton")
        self.gridLayout_4.addWidget(self.timePlayStop_pushButton, 1, 1, 1, 1)
        self.timeValue_label = QtGui.QLabel(self.time_groupBox)
        self.timeValue_label.setObjectName("timeValue_label")
        self.gridLayout_4.addWidget(self.timeValue_label, 0, 0, 1, 1)
        self.timeValue_doubleSpinBox = QtGui.QDoubleSpinBox(self.time_groupBox)
        self.timeValue_doubleSpinBox.setMaximum(12000.0)
        self.timeValue_doubleSpinBox.setObjectName("timeValue_doubleSpinBox")
        self.gridLayout_4.addWidget(self.timeValue_doubleSpinBox, 0, 1, 1, 1)
        self.timeLoop_checkBox = QtGui.QCheckBox(self.time_groupBox)
        self.timeLoop_checkBox.setObjectName("timeLoop_checkBox")
        self.gridLayout_4.addWidget(self.timeLoop_checkBox, 1, 2, 1, 1)
        self.verticalLayout.addWidget(self.time_groupBox)
        self.groupBox_2 = QtGui.QGroupBox(self.controlPanel_groupBox)
        self.groupBox_2.setObjectName("groupBox_2")
        self.formLayout = QtGui.QFormLayout(self.groupBox_2)
        self.formLayout.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setObjectName("formLayout")
        self.detectElectrodes_pushButton = QtGui.QPushButton(self.groupBox_2)
        self.detectElectrodes_pushButton.setObjectName(
            "detectElectrodes_pushButton")
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole,
                                  self.detectElectrodes_pushButton)
        self.groupBox_3 = QtGui.QGroupBox(self.groupBox_2)
        self.groupBox_3.setCheckable(True)
        self.groupBox_3.setChecked(False)
        self.groupBox_3.setObjectName("groupBox_3")
        self.horizontalLayout_4 = QtGui.QHBoxLayout(self.groupBox_3)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.trackElectrodePoints_pushButton = QtGui.QPushButton(
            self.groupBox_3)
        self.trackElectrodePoints_pushButton.setObjectName(
            "trackElectrodePoints_pushButton")
        self.horizontalLayout_4.addWidget(self.trackElectrodePoints_pushButton)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem)
        self.formLayout.setWidget(3, QtGui.QFormLayout.SpanningRole,
                                  self.groupBox_3)
        self.reset_pushButton = QtGui.QPushButton(self.groupBox_2)
        self.reset_pushButton.setObjectName("reset_pushButton")
        self.formLayout.setWidget(6, QtGui.QFormLayout.LabelRole,
                                  self.reset_pushButton)
        spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.formLayout.setItem(5, QtGui.QFormLayout.LabelRole, spacerItem1)
        self.verticalLayout.addWidget(self.groupBox_2)
        spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem2)
        self.frame_2 = QtGui.QFrame(self.controlPanel_groupBox)
        self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.horizontalLayout_5 = QtGui.QHBoxLayout(self.frame_2)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.cheat_pushButton = QtGui.QPushButton(self.frame_2)
        self.cheat_pushButton.setFlat(True)
        self.cheat_pushButton.setObjectName("cheat_pushButton")
        self.horizontalLayout_5.addWidget(self.cheat_pushButton)
        spacerItem3 = QtGui.QSpacerItem(104, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_5.addItem(spacerItem3)
        self.verticalLayout.addWidget(self.frame_2)
        self.groupBox = QtGui.QGroupBox(self.controlPanel_groupBox)
        self.groupBox.setTitle("")
        self.groupBox.setObjectName("groupBox")
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.groupBox)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.statusText_label = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.statusText_label.sizePolicy().hasHeightForWidth())
        self.statusText_label.setSizePolicy(sizePolicy)
        self.statusText_label.setObjectName("statusText_label")
        self.horizontalLayout_3.addWidget(self.statusText_label)
        self.verticalLayout.addWidget(self.groupBox)
        self.frame = QtGui.QFrame(self.controlPanel_groupBox)
        self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtGui.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.frame)
        self.horizontalLayout_2.setContentsMargins(1, 1, 1, 1)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.done_pushButton = QtGui.QPushButton(self.frame)
        self.done_pushButton.setObjectName("done_pushButton")
        self.horizontalLayout_2.addWidget(self.done_pushButton)
        spacerItem4 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem4)
        self.verticalLayout.addWidget(self.frame)
        self.horizontalLayout.addWidget(self.controlPanel_groupBox)
        self.sceneviewer_widget = BaseSceneviewerWidget(
            ElectrodeArrayDetectorWidget, shared_open_gl_widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.sceneviewer_widget.sizePolicy().hasHeightForWidth())
        self.sceneviewer_widget.setSizePolicy(sizePolicy)
        self.sceneviewer_widget.setObjectName("sceneviewer_widget")
        self.horizontalLayout.addWidget(self.sceneviewer_widget)

        self.retranslateUi(ElectrodeArrayDetectorWidget)
        QtCore.QMetaObject.connectSlotsByName(ElectrodeArrayDetectorWidget)
Ejemplo n.º 4
0
class ScaffoldRigidAlignerWidget(QtGui.QWidget):
    def __init__(self, master_model, shareable_widget, parent=None):
        super(ScaffoldRigidAlignerWidget, self).__init__(parent)

        self._model = master_model

        self._shareable_widget = shareable_widget
        self._ui = Ui_ScaffoldRigidAlignerWidget()
        self._ui.setupUi(self, self._shareable_widget)
        self._setup_handlers()
        self._model.set_shareable_widget(self._shareable_widget)
        self._ui.sceneviewerWidget.set_context(self._model.get_context())
        self._ui.overlaySceneviewerWidget.set_context(
            self._model.get_context())

        self._done_callback = None
        self._settings = {'view-parameters': {}}
        self._partial_data = dict()
        self._model.set_settings_change_callback(self._setting_display)
        self._temporal_data_flag = False
        self._model_description = None
        self._make_connections()

    def _make_connections(self):
        self._ui.sceneviewerWidget.graphics_initialized.connect(
            self._scaffold_graphics_initialized)
        self._ui.overlaySceneviewerWidget.graphics_initialized.connect(
            self._data_graphics_initialized)
        self._ui.doneButton.clicked.connect(self._done_clicked)
        self._ui.viewAllButton.clicked.connect(self._view_all)
        self._ui.timeYes_radioButton.clicked.connect(self._data_is_temporal)
        self._ui.timeNo_radioButton.clicked.connect(self._data_is_static)
        self._ui.timeSkip_pushButton.clicked.connect(self._confirm_and_load)
        self._ui.timePoint_spinBox.valueChanged.connect(self._time_changed)
        self._ui.partialData_checkBox.clicked.connect(self._data_is_partial)
        self._ui.scaffoldZ_radioButton.clicked.connect(self._scaffold_z_up)
        self._ui.scaffoldY_radioButton.clicked.connect(self._scaffold_y_up)
        self._ui.scaffoldX_radioButton.clicked.connect(self._scaffold_x_up)
        self._ui.dataZ_radioButton.clicked.connect(self._data_z_up)
        self._ui.datadY_radioButton.clicked.connect(self._data_y_up)
        self._ui.dataX_radioButton.clicked.connect(self._data_x_up)
        self._ui.upsideDown_checkBox.clicked.connect(self._data_upside_down)
        self._ui.axisDone_pushButton.clicked.connect(
            self._apply_axis_orientation)
        self._ui.yaw_doubleSpinBox.valueChanged.connect(self._yaw_clicked)
        self._ui.pitch_doubleSpinBox.valueChanged.connect(self._pitch_clicked)
        self._ui.roll_doubleSpinBox.valueChanged.connect(self._roll_clicked)
        self._ui.scaleRatio_pushButton.clicked.connect(
            self._calculate_scale_clicked)
        self._ui.saveSettingsButton.clicked.connect(self._save_settings)
        self._ui.loadSettingsButton.clicked.connect(self._load_settings)
        self._ui.alignResetButton.clicked.connect(self._reset)

    def _setting_display(self):
        self._display_real(self._ui.yaw_doubleSpinBox,
                           self._model.get_yaw_value())
        self._display_real(self._ui.pitch_doubleSpinBox,
                           self._model.get_pitch_value())
        self._display_real(self._ui.roll_doubleSpinBox,
                           self._model.get_roll_value())
        self._set_scaffold_checkbox(self._model.get_scaffold_up())
        self._set_data_checkbox(self._model.get_data_up())
        self._set_flip(self._model.get_flip())

    def _create_graphics(self):
        self._model.create_graphics()

    def _get_shareable_open_gl_widget(self):
        context = self._model.get_context()
        self._shareable_widget = BaseSceneviewerWidget()
        self._shareable_widget.set_context(context)
        return self._shareable_widget

    def _scaffold_graphics_initialized(self):
        scaffold_scene_viewer = self._ui.sceneviewerWidget.get_zinc_sceneviewer(
        )

        if scaffold_scene_viewer is not None:
            scaffold_scene = self._model.get_scaffold_scene()
            # scene = self._model.get_scaffold_region().getScene()
            self._ui.sceneviewerWidget.set_scene(scaffold_scene)

            if len(self._settings['view-parameters']) == 0:
                self._view_all()
            else:
                eye = self._settings['view-parameters']['eye']
                look_at = self._settings['view-parameters']['look_at']
                up = self._settings['view-parameters']['up']
                angle = self._settings['view-parameters']['angle']
                self._ui.sceneviewerWidget.set_view_parameters(
                    eye, look_at, up, angle)
                self._view_all()

    def _data_graphics_initialized(self):
        data_scene_viewer = self._ui.overlaySceneviewerWidget.get_zinc_sceneviewer(
        )

        if data_scene_viewer is not None:
            data_scene = self._model.get_data_scene()
            self._ui.overlaySceneviewerWidget.set_scene(data_scene)

            if len(self._settings['view-parameters']) == 0:
                self._view_all()
            else:
                eye = self._settings['view-parameters']['eye']
                look_at = self._settings['view-parameters']['look_at']
                up = self._settings['view-parameters']['up']
                angle = self._settings['view-parameters']['angle']
                self._ui.overlaySceneviewerWidget.set_view_parameters(
                    eye, look_at, up, angle)
                self._view_all()

    def register_done_execution(self, done_callback):
        self._done_callback = done_callback

    def _refresh_options(self):
        pass

    def _setup_handlers(self):
        basic_handler = SceneManipulation()
        self._ui.sceneviewerWidget.register_handler(basic_handler)
        basic_handler_overlay = SceneManipulation()
        self._ui.overlaySceneviewerWidget.register_handler(
            basic_handler_overlay)

    def _view_all(self):
        if self._ui.sceneviewerWidget.get_zinc_sceneviewer() is not None:
            self._ui.sceneviewerWidget.view_all()
        if self._ui.overlaySceneviewerWidget.get_zinc_sceneviewer(
        ) is not None:
            self._ui.overlaySceneviewerWidget.view_all()

    def _done_clicked(self):
        self._done_callback()

    def get_model_description(self):
        self._model_description = self._model.done(self._temporal_data_flag)
        return self._model_description

    def _set_scaffold_checkbox(self, value):
        if value == 'Z':
            self._ui.scaffoldZ_radioButton.setChecked(True)
        elif value == 'Y':
            self._ui.scaffoldY_radioButton.setChecked(True)
        elif value == 'X':
            self._ui.scaffoldX_radioButton.setChecked(True)

    def _set_data_checkbox(self, value):
        if value == 'Z':
            self._ui.dataZ_radioButton.setChecked(True)
        elif value == 'Y':
            self._ui.datadY_radioButton.setChecked(True)
        elif value == 'X':
            self._ui.dataX_radioButton.setChecked(True)

    def _set_flip(self, value):
        if value is not None:
            self._ui.upsideDown_checkBox.setChecked(value)

    @staticmethod
    def _display_real(widget, value):
        new_text = '{:.4g}'.format(value)
        if isinstance(widget, QtGui.QDoubleSpinBox):
            widget.setValue(value)
        else:
            widget.setText(new_text)

    def _scaffold_z_up(self):
        self._model.set_scaffold_axis('Z')

    def _scaffold_y_up(self):
        self._model.set_scaffold_axis('Y')

    def _scaffold_x_up(self):
        self._model.set_scaffold_axis('X')

    def _data_z_up(self):
        self._model.set_data_axis('Z')

    def _data_y_up(self):
        self._model.set_data_axis('Y')

    def _data_x_up(self):
        self._model.set_data_axis('X')

    def _data_upside_down(self):
        pass

    def _data_is_partial(self):
        if self._ui.partialData_checkBox.isChecked():
            self._ui.partialZ_lineEdit.setEnabled(True)
            self._ui.partialY_lineEdit.setEnabled(True)
            self._ui.partialXlineEdit.setEnabled(True)
        else:
            self._ui.partialZ_lineEdit.setEnabled(False)
            self._ui.partialY_lineEdit.setEnabled(False)
            self._ui.partialXlineEdit.setEnabled(False)

    def _check_if_data_is_partial(self):
        # Partial X:
        if self._ui.partialXlineEdit.text() is not '':
            self._partial_data['X'] = float(self._ui.partialXlineEdit.text())
            self._ui.partialY_lineEdit.setEnabled(False)
            self._ui.partialZ_lineEdit.setEnabled(False)

        # Partial Y
        if self._ui.partialY_lineEdit.text() is not '':
            self._partial_data['Y'] = float(self._ui.partialY_lineEdit.text())
            self._ui.partialXlineEdit.setEnabled(False)
            self._ui.partialZ_lineEdit.setEnabled(False)

        # Partial Z
        if self._ui.partialZ_lineEdit.text() is not '':
            self._partial_data['Z'] = float(self._ui.partialZ_lineEdit.text())
            self._ui.partialXlineEdit.setEnabled(False)
            self._ui.partialY_lineEdit.setEnabled(False)

    def _apply_axis_orientation(self):
        self._check_if_data_is_partial()
        # Apply orientation
        self._model.apply_orientation()
        self._ui.axisDone_pushButton.setEnabled(False)
        self._ui.scaleRatio_pushButton.setEnabled(True)

    def _calculate_scale_clicked(self):
        self._check_if_data_is_partial()
        self._scale_ratio_display(self._partial_data)

    def _scale_ratio_display(self, partial=None):
        mean, _ = self._model.get_scaffold_to_data_ratio(partial=partial)
        # self._model.set_generator_scale(scale)
        self._display_real(self._ui.scaleRatio_lineEdit, mean)

    def _yaw_clicked(self):
        value = self._ui.yaw_doubleSpinBox.value()
        self._model.rotate_scaffold('yaw', value)

    def _pitch_clicked(self):
        value = self._ui.pitch_doubleSpinBox.value()
        self._model.rotate_scaffold('pitch', value)

    def _roll_clicked(self):
        value = self._ui.roll_doubleSpinBox.value()
        self._model.rotate_scaffold('roll', value)

    def _save_settings(self):
        self._model.save_settings()

    def _load_settings(self):
        self._model.load_settings()
        self._ui.axisDone_pushButton.setEnabled(True)

    def _data_is_temporal(self):
        self._temporal_data_flag = True
        self._ui.timeSkip_pushButton.setEnabled(True)

    def _confirm_and_load(self):
        if self._temporal_data_flag:
            self._ui.timePoint_spinBox.setEnabled(True)
            self._ui.timePoint_label.setEnabled(True)
            self._model.load_json_data()
        else:
            self._model.load_ex_data()
        self._model.initialise_scaffold()
        self._create_graphics()
        self._model.set_time_value(0.0)
        self._model.initialise_time_graphics(0.0)
        self._view_all()
        if self._temporal_data_flag:
            self._ui.timePoint_spinBox.setMaximum(
                self._model.get_maximum_time_from_data())
        # self._set_scale(self._model.get_scale())

    def _time_changed(self):
        time_value = self._ui.timePoint_spinBox.value()
        self._model.set_time_value(time_value)

    def _skip_value_changed(self):
        self._ui.timeSkip_pushButton.setEnabled(True)

    def _data_is_static(self):
        self._temporal_data_flag = False
        self._ui.timePoint_spinBox.setEnabled(False)
        self._ui.timePoint_label.setEnabled(False)
        self._ui.timeSkip_pushButton.setEnabled(True)

    def _set_scale(self, scale):
        self._model.set_generator_scale(scale)
        self._ui.scaleRatio_lineEdit.setText(scale)

    def _reset(self):
        self._model.reset_settings()
        self._ui.scaffoldZ_radioButton.setAutoExclusive(False)
        self._ui.scaffoldY_radioButton.setAutoExclusive(False)
        self._ui.scaffoldX_radioButton.setAutoExclusive(False)
        self._ui.scaffoldZ_radioButton.setChecked(False)
        self._ui.scaffoldY_radioButton.setChecked(False)
        self._ui.scaffoldX_radioButton.setChecked(False)
        self._ui.dataZ_radioButton.setAutoExclusive(False)
        self._ui.datadY_radioButton.setAutoExclusive(False)
        self._ui.dataX_radioButton.setAutoExclusive(False)
        self._ui.dataZ_radioButton.setChecked(False)
        self._ui.datadY_radioButton.setChecked(False)
        self._ui.dataX_radioButton.setChecked(False)
        self._ui.axisDone_pushButton.setEnabled(True)
        self._ui.upsideDown_checkBox.setChecked(False)
        self._ui.scaleRatio_lineEdit.clear()
Ejemplo n.º 5
0
 def _get_shareable_open_gl_widget(self):
     context = self._model.get_context()
     self._shareable_widget = BaseSceneviewerWidget()
     self._shareable_widget.set_context(context)
     return self._shareable_widget
    def setupUi(self, shared_open_gl_widget, ImageBasedFiducialMarkersWidget):
        ImageBasedFiducialMarkersWidget.setObjectName("ImageBasedFiducialMarkersWidget")
        ImageBasedFiducialMarkersWidget.resize(870, 576)
        self.horizontalLayout = QtGui.QHBoxLayout(ImageBasedFiducialMarkersWidget)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.controlPanel_groupBox = QtGui.QGroupBox(ImageBasedFiducialMarkersWidget)
        self.controlPanel_groupBox.setObjectName("controlPanel_groupBox")
        self.verticalLayout = QtGui.QVBoxLayout(self.controlPanel_groupBox)
        self.verticalLayout.setObjectName("verticalLayout")
        self.time_groupBox = QtGui.QGroupBox(self.controlPanel_groupBox)
        self.time_groupBox.setObjectName("time_groupBox")
        self.gridLayout_4 = QtGui.QGridLayout(self.time_groupBox)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.timePlayStop_pushButton = QtGui.QPushButton(self.time_groupBox)
        self.timePlayStop_pushButton.setObjectName("timePlayStop_pushButton")
        self.gridLayout_4.addWidget(self.timePlayStop_pushButton, 1, 1, 1, 1)
        self.timeValue_label = QtGui.QLabel(self.time_groupBox)
        self.timeValue_label.setObjectName("timeValue_label")
        self.gridLayout_4.addWidget(self.timeValue_label, 0, 0, 1, 1)
        self.timeValue_doubleSpinBox = QtGui.QDoubleSpinBox(self.time_groupBox)
        self.timeValue_doubleSpinBox.setMaximum(12000.0)
        self.timeValue_doubleSpinBox.setObjectName("timeValue_doubleSpinBox")
        self.gridLayout_4.addWidget(self.timeValue_doubleSpinBox, 0, 1, 1, 1)
        self.timeLoop_checkBox = QtGui.QCheckBox(self.time_groupBox)
        self.timeLoop_checkBox.setObjectName("timeLoop_checkBox")
        self.gridLayout_4.addWidget(self.timeLoop_checkBox, 1, 2, 1, 1)
        self.verticalLayout.addWidget(self.time_groupBox)
        self.tracking_groupBox = QtGui.QGroupBox(self.controlPanel_groupBox)
        self.tracking_groupBox.setObjectName("tracking_groupBox")
        self.gridLayout = QtGui.QGridLayout(self.tracking_groupBox)
        self.gridLayout.setObjectName("gridLayout")
        self.track_pushButton = QtGui.QPushButton(self.tracking_groupBox)
        self.track_pushButton.setObjectName("track_pushButton")
        self.gridLayout.addWidget(self.track_pushButton, 0, 0, 1, 1)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 0, 1, 1, 1)
        self.reset_pushButton = QtGui.QPushButton(self.tracking_groupBox)
        self.reset_pushButton.setObjectName("reset_pushButton")
        self.gridLayout.addWidget(self.reset_pushButton, 2, 0, 1, 1)
        spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem1, 1, 0, 1, 1)
        self.verticalLayout.addWidget(self.tracking_groupBox)
        spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem2)
        self.frame_2 = QtGui.QFrame(self.controlPanel_groupBox)
        self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.horizontalLayout_6 = QtGui.QHBoxLayout(self.frame_2)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.cheat_pushButton = QtGui.QPushButton(self.frame_2)
        self.cheat_pushButton.setText("")
        self.cheat_pushButton.setFlat(True)
        self.cheat_pushButton.setObjectName("cheat_pushButton")
        self.horizontalLayout_6.addWidget(self.cheat_pushButton)
        spacerItem3 = QtGui.QSpacerItem(104, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem3)
        self.verticalLayout.addWidget(self.frame_2)
        self.groupBox = QtGui.QGroupBox(self.controlPanel_groupBox)
        self.groupBox.setTitle("")
        self.groupBox.setObjectName("groupBox")
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.groupBox)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.statusText_label = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.statusText_label.sizePolicy().hasHeightForWidth())
        self.statusText_label.setSizePolicy(sizePolicy)
        self.statusText_label.setObjectName("statusText_label")
        self.horizontalLayout_3.addWidget(self.statusText_label)
        self.verticalLayout.addWidget(self.groupBox)
        self.frame = QtGui.QFrame(self.controlPanel_groupBox)
        self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtGui.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.frame)
        self.horizontalLayout_2.setContentsMargins(1, 1, 1, 1)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.done_pushButton = QtGui.QPushButton(self.frame)
        self.done_pushButton.setObjectName("done_pushButton")
        self.horizontalLayout_2.addWidget(self.done_pushButton)
        spacerItem4 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem4)
        self.verticalLayout.addWidget(self.frame)
        self.horizontalLayout.addWidget(self.controlPanel_groupBox)
        self.sceneviewer_widget = BaseSceneviewerWidget(ImageBasedFiducialMarkersWidget, shared_open_gl_widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.sceneviewer_widget.sizePolicy().hasHeightForWidth())
        self.sceneviewer_widget.setSizePolicy(sizePolicy)
        self.sceneviewer_widget.setObjectName("sceneviewer_widget")
        self.horizontalLayout.addWidget(self.sceneviewer_widget)

        self.retranslateUi(ImageBasedFiducialMarkersWidget)
        QtCore.QMetaObject.connectSlotsByName(ImageBasedFiducialMarkersWidget)
Ejemplo n.º 7
0
    def setupUi(self, ElectrodeProjectionWidget):
        ElectrodeProjectionWidget.setObjectName("ElectrodeProjectionWidget")
        ElectrodeProjectionWidget.resize(1093, 872)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            ElectrodeProjectionWidget.sizePolicy().hasHeightForWidth())
        ElectrodeProjectionWidget.setSizePolicy(sizePolicy)
        self.gridLayout = QtGui.QGridLayout(ElectrodeProjectionWidget)
        self.gridLayout.setObjectName("gridLayout")
        self.dockWidget = QtGui.QDockWidget(ElectrodeProjectionWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.dockWidget.sizePolicy().hasHeightForWidth())
        self.dockWidget.setSizePolicy(sizePolicy)
        self.dockWidget.setMinimumSize(QtCore.QSize(353, 430))
        self.dockWidget.setFeatures(QtGui.QDockWidget.DockWidgetFloatable
                                    | QtGui.QDockWidget.DockWidgetMovable)
        self.dockWidget.setAllowedAreas(QtCore.Qt.AllDockWidgetAreas)
        self.dockWidget.setObjectName("dockWidget")
        self.dockWidgetContents = QtGui.QWidget()
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.dockWidgetContents.sizePolicy().hasHeightForWidth())
        self.dockWidgetContents.setSizePolicy(sizePolicy)
        self.dockWidgetContents.setObjectName("dockWidgetContents")
        self.verticalLayout = QtGui.QVBoxLayout(self.dockWidgetContents)
        self.verticalLayout.setObjectName("verticalLayout")
        self.identifier_frame = QtGui.QFrame(self.dockWidgetContents)
        self.identifier_frame.setMinimumSize(QtCore.QSize(0, 0))
        self.identifier_frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.identifier_frame.setFrameShadow(QtGui.QFrame.Raised)
        self.identifier_frame.setObjectName("identifier_frame")
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.identifier_frame)
        self.verticalLayout_4.setContentsMargins(-1, 5, -1, 3)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.identifier_label = QtGui.QLabel(self.identifier_frame)
        self.identifier_label.setObjectName("identifier_label")
        self.verticalLayout_4.addWidget(self.identifier_label)
        self.line = QtGui.QFrame(self.identifier_frame)
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName("line")
        self.verticalLayout_4.addWidget(self.line)
        self.verticalLayout.addWidget(self.identifier_frame)
        self.time_groupBox = QtGui.QGroupBox(self.dockWidgetContents)
        self.time_groupBox.setObjectName("time_groupBox")
        self.gridLayout_4 = QtGui.QGridLayout(self.time_groupBox)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.timePlayStop_pushButton = QtGui.QPushButton(self.time_groupBox)
        self.timePlayStop_pushButton.setObjectName("timePlayStop_pushButton")
        self.gridLayout_4.addWidget(self.timePlayStop_pushButton, 1, 1, 1, 1)
        self.timeValue_label = QtGui.QLabel(self.time_groupBox)
        self.timeValue_label.setObjectName("timeValue_label")
        self.gridLayout_4.addWidget(self.timeValue_label, 0, 0, 1, 1)
        self.timeValue_doubleSpinBox = QtGui.QDoubleSpinBox(self.time_groupBox)
        self.timeValue_doubleSpinBox.setMaximum(12000.0)
        self.timeValue_doubleSpinBox.setObjectName("timeValue_doubleSpinBox")
        self.gridLayout_4.addWidget(self.timeValue_doubleSpinBox, 0, 1, 1, 1)
        self.timeLoop_checkBox = QtGui.QCheckBox(self.time_groupBox)
        self.timeLoop_checkBox.setObjectName("timeLoop_checkBox")
        self.gridLayout_4.addWidget(self.timeLoop_checkBox, 1, 2, 1, 1)
        self.verticalLayout.addWidget(self.time_groupBox)
        self.projection_groupBox = QtGui.QGroupBox(self.dockWidgetContents)
        self.projection_groupBox.setObjectName("projection_groupBox")
        self.gridLayout_3 = QtGui.QGridLayout(self.projection_groupBox)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.projectElectrodes_label = QtGui.QLabel(self.projection_groupBox)
        self.projectElectrodes_label.setObjectName("projectElectrodes_label")
        self.gridLayout_3.addWidget(self.projectElectrodes_label, 3, 0, 1, 1)
        self.projectElectrodes_pushButton = QtGui.QPushButton(
            self.projection_groupBox)
        self.projectElectrodes_pushButton.setObjectName(
            "projectElectrodes_pushButton")
        self.gridLayout_3.addWidget(self.projectElectrodes_pushButton, 3, 2, 1,
                                    1)
        self.projectionDepth_spinBox = QtGui.QSpinBox(self.projection_groupBox)
        self.projectionDepth_spinBox.setMaximum(9999)
        self.projectionDepth_spinBox.setObjectName("projectionDepth_spinBox")
        self.gridLayout_3.addWidget(self.projectionDepth_spinBox, 1, 2, 1, 1)
        self.projectionDepth_label = QtGui.QLabel(self.projection_groupBox)
        self.projectionDepth_label.setObjectName("projectionDepth_label")
        self.gridLayout_3.addWidget(self.projectionDepth_label, 1, 0, 1, 1)
        self.projectionPointScale_label = QtGui.QLabel(
            self.projection_groupBox)
        self.projectionPointScale_label.setObjectName(
            "projectionPointScale_label")
        self.gridLayout_3.addWidget(self.projectionPointScale_label, 2, 0, 1,
                                    1)
        self.projectionPointScale_doubleSpinBox = QtGui.QDoubleSpinBox(
            self.projection_groupBox)
        self.projectionPointScale_doubleSpinBox.setMinimum(-99.99)
        self.projectionPointScale_doubleSpinBox.setSingleStep(0.1)
        self.projectionPointScale_doubleSpinBox.setObjectName(
            "projectionPointScale_doubleSpinBox")
        self.gridLayout_3.addWidget(self.projectionPointScale_doubleSpinBox, 2,
                                    2, 1, 1)
        self.verticalLayout.addWidget(self.projection_groupBox)
        spacerItem = QtGui.QSpacerItem(20, 557, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.frame = QtGui.QFrame(self.dockWidgetContents)
        self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtGui.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.frame)
        self.horizontalLayout_2.setContentsMargins(3, 3, 3, 3)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.viewAll_button = QtGui.QPushButton(self.frame)
        self.viewAll_button.setObjectName("viewAll_button")
        self.horizontalLayout_2.addWidget(self.viewAll_button)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem1)
        self.done_button = QtGui.QPushButton(self.frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.done_button.sizePolicy().hasHeightForWidth())
        self.done_button.setSizePolicy(sizePolicy)
        self.done_button.setObjectName("done_button")
        self.horizontalLayout_2.addWidget(self.done_button)
        self.verticalLayout.addWidget(self.frame)
        self.dockWidget.setWidget(self.dockWidgetContents)
        self.gridLayout.addWidget(self.dockWidget, 0, 0, 1, 1)
        self.sceneviewer_widget = BaseSceneviewerWidget(
            ElectrodeProjectionWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(4)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.sceneviewer_widget.sizePolicy().hasHeightForWidth())
        self.sceneviewer_widget.setSizePolicy(sizePolicy)
        self.sceneviewer_widget.setObjectName("sceneviewer_widget")
        self.gridLayout.addWidget(self.sceneviewer_widget, 0, 1, 1, 1)

        self.retranslateUi(ElectrodeProjectionWidget)
        QtCore.QMetaObject.connectSlotsByName(ElectrodeProjectionWidget)
Ejemplo n.º 8
0
    def setupUi(self, shared_open_gl_widget, ParametricFittingWidget):
        ParametricFittingWidget.setObjectName("ParametricFittingWidget")
        ParametricFittingWidget.resize(1093, 872)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            ParametricFittingWidget.sizePolicy().hasHeightForWidth())
        ParametricFittingWidget.setSizePolicy(sizePolicy)
        self.gridLayout = QtGui.QGridLayout(ParametricFittingWidget)
        self.gridLayout.setObjectName("gridLayout")
        self.sceneviewer_widget = BaseSceneviewerWidget(
            ParametricFittingWidget, shared_open_gl_widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(4)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.sceneviewer_widget.sizePolicy().hasHeightForWidth())
        self.sceneviewer_widget.setSizePolicy(sizePolicy)
        self.sceneviewer_widget.setObjectName("sceneviewer_widget")
        self.gridLayout.addWidget(self.sceneviewer_widget, 0, 1, 1, 1)
        self.dockWidget = QtGui.QDockWidget(ParametricFittingWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.dockWidget.sizePolicy().hasHeightForWidth())
        self.dockWidget.setSizePolicy(sizePolicy)
        self.dockWidget.setMinimumSize(QtCore.QSize(353, 430))
        self.dockWidget.setFeatures(QtGui.QDockWidget.DockWidgetFloatable
                                    | QtGui.QDockWidget.DockWidgetMovable)
        self.dockWidget.setAllowedAreas(QtCore.Qt.AllDockWidgetAreas)
        self.dockWidget.setObjectName("dockWidget")
        self.dockWidgetContents = QtGui.QWidget()
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.dockWidgetContents.sizePolicy().hasHeightForWidth())
        self.dockWidgetContents.setSizePolicy(sizePolicy)
        self.dockWidgetContents.setObjectName("dockWidgetContents")
        self.verticalLayout = QtGui.QVBoxLayout(self.dockWidgetContents)
        self.verticalLayout.setObjectName("verticalLayout")
        self.identifier_frame = QtGui.QFrame(self.dockWidgetContents)
        self.identifier_frame.setMinimumSize(QtCore.QSize(0, 0))
        self.identifier_frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.identifier_frame.setFrameShadow(QtGui.QFrame.Raised)
        self.identifier_frame.setObjectName("identifier_frame")
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.identifier_frame)
        self.verticalLayout_4.setContentsMargins(-1, 5, -1, 3)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.identifier_label = QtGui.QLabel(self.identifier_frame)
        self.identifier_label.setObjectName("identifier_label")
        self.verticalLayout_4.addWidget(self.identifier_label)
        self.line = QtGui.QFrame(self.identifier_frame)
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName("line")
        self.verticalLayout_4.addWidget(self.line)
        self.verticalLayout.addWidget(self.identifier_frame)
        self.time_groupBox = QtGui.QGroupBox(self.dockWidgetContents)
        self.time_groupBox.setObjectName("time_groupBox")
        self.gridLayout_4 = QtGui.QGridLayout(self.time_groupBox)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.timePlayStop_pushButton = QtGui.QPushButton(self.time_groupBox)
        self.timePlayStop_pushButton.setObjectName("timePlayStop_pushButton")
        self.gridLayout_4.addWidget(self.timePlayStop_pushButton, 1, 1, 1, 1)
        self.timeValue_label = QtGui.QLabel(self.time_groupBox)
        self.timeValue_label.setObjectName("timeValue_label")
        self.gridLayout_4.addWidget(self.timeValue_label, 0, 0, 1, 1)
        self.timeValue_doubleSpinBox = QtGui.QDoubleSpinBox(self.time_groupBox)
        self.timeValue_doubleSpinBox.setMaximum(12000.0)
        self.timeValue_doubleSpinBox.setObjectName("timeValue_doubleSpinBox")
        self.gridLayout_4.addWidget(self.timeValue_doubleSpinBox, 0, 1, 1, 1)
        self.timeLoop_checkBox = QtGui.QCheckBox(self.time_groupBox)
        self.timeLoop_checkBox.setObjectName("timeLoop_checkBox")
        self.gridLayout_4.addWidget(self.timeLoop_checkBox, 1, 2, 1, 1)
        self.verticalLayout.addWidget(self.time_groupBox)
        self.fitting_groupBox = QtGui.QGroupBox(self.dockWidgetContents)
        self.fitting_groupBox.setObjectName("fitting_groupBox")
        self.gridLayout_3 = QtGui.QGridLayout(self.fitting_groupBox)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.fittingRigid_label = QtGui.QLabel(self.fitting_groupBox)
        self.fittingRigid_label.setObjectName("fittingRigid_label")
        self.gridLayout_3.addWidget(self.fittingRigid_label, 2, 0, 1, 1)
        self.fittingScale_label = QtGui.QLabel(self.fitting_groupBox)
        self.fittingScale_label.setObjectName("fittingScale_label")
        self.gridLayout_3.addWidget(self.fittingScale_label, 0, 0, 1, 1)
        self.fittingFitRigidly_pushButton = QtGui.QPushButton(
            self.fitting_groupBox)
        self.fittingFitRigidly_pushButton.setObjectName(
            "fittingFitRigidly_pushButton")
        self.gridLayout_3.addWidget(self.fittingFitRigidly_pushButton, 2, 1, 1,
                                    1)
        self.fittingScale_pushButton = QtGui.QPushButton(self.fitting_groupBox)
        self.fittingScale_pushButton.setObjectName("fittingScale_pushButton")
        self.gridLayout_3.addWidget(self.fittingScale_pushButton, 0, 1, 1, 1)
        self.fittingFitEpochs_label = QtGui.QLabel(self.fitting_groupBox)
        self.fittingFitEpochs_label.setObjectName("fittingFitEpochs_label")
        self.gridLayout_3.addWidget(self.fittingFitEpochs_label, 5, 0, 1, 1)
        self.fittingFitNonRigidly_pushButton = QtGui.QPushButton(
            self.fitting_groupBox)
        self.fittingFitNonRigidly_pushButton.setObjectName(
            "fittingFitNonRigidly_pushButton")
        self.gridLayout_3.addWidget(self.fittingFitNonRigidly_pushButton, 3, 1,
                                    1, 1)
        self.fittingNonRigid_label = QtGui.QLabel(self.fitting_groupBox)
        self.fittingNonRigid_label.setObjectName("fittingNonRigid_label")
        self.gridLayout_3.addWidget(self.fittingNonRigid_label, 3, 0, 1, 1)
        self.fittingFitEpochs_pushButton = QtGui.QPushButton(
            self.fitting_groupBox)
        self.fittingFitEpochs_pushButton.setObjectName(
            "fittingFitEpochs_pushButton")
        self.gridLayout_3.addWidget(self.fittingFitEpochs_pushButton, 5, 1, 1,
                                    1)
        self.verticalLayout.addWidget(self.fitting_groupBox)
        spacerItem = QtGui.QSpacerItem(20, 557, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.frame_2 = QtGui.QFrame(self.dockWidgetContents)
        self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.horizontalLayout_6 = QtGui.QHBoxLayout(self.frame_2)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.cheat_pushButton = QtGui.QPushButton(self.frame_2)
        self.cheat_pushButton.setText("")
        self.cheat_pushButton.setFlat(True)
        self.cheat_pushButton.setObjectName("cheat_pushButton")
        self.horizontalLayout_6.addWidget(self.cheat_pushButton)
        spacerItem1 = QtGui.QSpacerItem(104, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem1)
        self.verticalLayout.addWidget(self.frame_2)
        self.frame = QtGui.QFrame(self.dockWidgetContents)
        self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtGui.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.frame)
        self.horizontalLayout_2.setContentsMargins(3, 3, 3, 3)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.viewAll_button = QtGui.QPushButton(self.frame)
        self.viewAll_button.setObjectName("viewAll_button")
        self.horizontalLayout_2.addWidget(self.viewAll_button)
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem2)
        self.done_button = QtGui.QPushButton(self.frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.done_button.sizePolicy().hasHeightForWidth())
        self.done_button.setSizePolicy(sizePolicy)
        self.done_button.setObjectName("done_button")
        self.horizontalLayout_2.addWidget(self.done_button)
        self.verticalLayout.addWidget(self.frame)
        self.dockWidget.setWidget(self.dockWidgetContents)
        self.gridLayout.addWidget(self.dockWidget, 0, 0, 1, 1)

        self.retranslateUi(ParametricFittingWidget)
        QtCore.QMetaObject.connectSlotsByName(ParametricFittingWidget)
    def setupUi(self, ScaffoldRigidAlignerWidget, shared_opengl_context):
        ScaffoldRigidAlignerWidget.setObjectName("ScaffoldRigidAlignerWidget")
        ScaffoldRigidAlignerWidget.resize(1698, 902)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(ScaffoldRigidAlignerWidget.sizePolicy().hasHeightForWidth())
        ScaffoldRigidAlignerWidget.setSizePolicy(sizePolicy)
        self.horizontalLayout = QtGui.QHBoxLayout(ScaffoldRigidAlignerWidget)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.dockWidget = QtGui.QDockWidget(ScaffoldRigidAlignerWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.dockWidget.sizePolicy().hasHeightForWidth())
        self.dockWidget.setSizePolicy(sizePolicy)
        self.dockWidget.setMinimumSize(QtCore.QSize(418, 135))
        self.dockWidget.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable)
        self.dockWidget.setAllowedAreas(QtCore.Qt.AllDockWidgetAreas)
        self.dockWidget.setObjectName("dockWidget")
        self.dockWidgetContents = QtGui.QWidget()
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.dockWidgetContents.sizePolicy().hasHeightForWidth())
        self.dockWidgetContents.setSizePolicy(sizePolicy)
        self.dockWidgetContents.setObjectName("dockWidgetContents")
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.dockWidgetContents)
        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.scrollArea = QtGui.QScrollArea(self.dockWidgetContents)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.scrollArea.sizePolicy().hasHeightForWidth())
        self.scrollArea.setSizePolicy(sizePolicy)
        self.scrollArea.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setObjectName("scrollArea")
        self.scrollAreaWidgetContents = QtGui.QWidget()
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 416, 860))
        self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.scrollAreaWidgetContents)
        self.verticalLayout_3.setSpacing(2)
        self.verticalLayout_3.setContentsMargins(2, 2, 2, 2)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.toolBox = QtGui.QToolBox(self.scrollAreaWidgetContents)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.toolBox.sizePolicy().hasHeightForWidth())
        self.toolBox.setSizePolicy(sizePolicy)
        self.toolBox.setStyleSheet("QToolBox::tab {\n"
"         background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,\n"
"                                     stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,\n"
"                                     stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);\n"
"         border-radius: 5px;\n"
"         color: black;\n"
"     }\n"
"\n"
"     QToolBox::tab:selected { /* italicize selected tabs */\n"
"         font: bold;\n"
"         color: black;\n"
"     }\n"
"QToolBox {\n"
"    padding : 0\n"
"}")
        self.toolBox.setObjectName("toolBox")
        self.alignPage = QtGui.QWidget()
        self.alignPage.setGeometry(QtCore.QRect(0, 0, 412, 796))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.alignPage.sizePolicy().hasHeightForWidth())
        self.alignPage.setSizePolicy(sizePolicy)
        self.alignPage.setObjectName("alignPage")
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.alignPage)
        self.verticalLayout_5.setSpacing(7)
        self.verticalLayout_5.setContentsMargins(0, 3, 0, 3)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.alignSettingsGroupBox = QtGui.QGroupBox(self.alignPage)
        self.alignSettingsGroupBox.setTitle("")
        self.alignSettingsGroupBox.setObjectName("alignSettingsGroupBox")
        self.verticalLayout_7 = QtGui.QVBoxLayout(self.alignSettingsGroupBox)
        self.verticalLayout_7.setSpacing(3)
        self.verticalLayout_7.setContentsMargins(3, 3, 3, 3)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.ifTime_frame = QtGui.QFrame(self.alignSettingsGroupBox)
        self.ifTime_frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.ifTime_frame.setFrameShadow(QtGui.QFrame.Raised)
        self.ifTime_frame.setObjectName("ifTime_frame")
        self.gridLayout_8 = QtGui.QGridLayout(self.ifTime_frame)
        self.gridLayout_8.setObjectName("gridLayout_8")
        self.timeData_label = QtGui.QLabel(self.ifTime_frame)
        self.timeData_label.setObjectName("timeData_label")
        self.gridLayout_8.addWidget(self.timeData_label, 0, 0, 1, 1)
        self.timeNo_radioButton = QtGui.QRadioButton(self.ifTime_frame)
        self.timeNo_radioButton.setObjectName("timeNo_radioButton")
        self.gridLayout_8.addWidget(self.timeNo_radioButton, 0, 1, 1, 1)
        self.timeYes_radioButton = QtGui.QRadioButton(self.ifTime_frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.timeYes_radioButton.sizePolicy().hasHeightForWidth())
        self.timeYes_radioButton.setSizePolicy(sizePolicy)
        self.timeYes_radioButton.setObjectName("timeYes_radioButton")
        self.gridLayout_8.addWidget(self.timeYes_radioButton, 2, 1, 1, 1)
        spacerItem = QtGui.QSpacerItem(60, 20, QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        self.gridLayout_8.addItem(spacerItem, 17, 0, 1, 1)
        self.timePoint_spinBox = QtGui.QSpinBox(self.ifTime_frame)
        self.timePoint_spinBox.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.timePoint_spinBox.sizePolicy().hasHeightForWidth())
        self.timePoint_spinBox.setSizePolicy(sizePolicy)
        self.timePoint_spinBox.setMaximum(1000000000)
        self.timePoint_spinBox.setObjectName("timePoint_spinBox")
        self.gridLayout_8.addWidget(self.timePoint_spinBox, 17, 3, 1, 1)
        self.timePoint_label = QtGui.QLabel(self.ifTime_frame)
        self.timePoint_label.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.timePoint_label.sizePolicy().hasHeightForWidth())
        self.timePoint_label.setSizePolicy(sizePolicy)
        self.timePoint_label.setObjectName("timePoint_label")
        self.gridLayout_8.addWidget(self.timePoint_label, 17, 2, 1, 1)
        self.timeSkip_pushButton = QtGui.QPushButton(self.ifTime_frame)
        self.timeSkip_pushButton.setEnabled(False)
        self.timeSkip_pushButton.setObjectName("timeSkip_pushButton")
        self.gridLayout_8.addWidget(self.timeSkip_pushButton, 3, 0, 1, 1)
        self.verticalLayout_7.addWidget(self.ifTime_frame)
        self.partial_frame = QtGui.QFrame(self.alignSettingsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.partial_frame.sizePolicy().hasHeightForWidth())
        self.partial_frame.setSizePolicy(sizePolicy)
        self.partial_frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.partial_frame.setFrameShadow(QtGui.QFrame.Raised)
        self.partial_frame.setObjectName("partial_frame")
        self.gridLayout_7 = QtGui.QGridLayout(self.partial_frame)
        self.gridLayout_7.setObjectName("gridLayout_7")
        self.partialZ_lineEdit = QtGui.QLineEdit(self.partial_frame)
        self.partialZ_lineEdit.setEnabled(False)
        self.partialZ_lineEdit.setObjectName("partialZ_lineEdit")
        self.gridLayout_7.addWidget(self.partialZ_lineEdit, 1, 7, 1, 1)
        self.partialY_label = QtGui.QLabel(self.partial_frame)
        self.partialY_label.setObjectName("partialY_label")
        self.gridLayout_7.addWidget(self.partialY_label, 2, 5, 1, 1)
        self.partialX_label = QtGui.QLabel(self.partial_frame)
        self.partialX_label.setObjectName("partialX_label")
        self.gridLayout_7.addWidget(self.partialX_label, 3, 5, 1, 1)
        self.partialXlineEdit = QtGui.QLineEdit(self.partial_frame)
        self.partialXlineEdit.setEnabled(False)
        self.partialXlineEdit.setObjectName("partialXlineEdit")
        self.gridLayout_7.addWidget(self.partialXlineEdit, 3, 7, 1, 1)
        self.partial_label = QtGui.QLabel(self.partial_frame)
        self.partial_label.setObjectName("partial_label")
        self.gridLayout_7.addWidget(self.partial_label, 1, 2, 1, 1)
        spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout_7.addItem(spacerItem1, 2, 3, 1, 1)
        self.partialY_lineEdit = QtGui.QLineEdit(self.partial_frame)
        self.partialY_lineEdit.setEnabled(False)
        self.partialY_lineEdit.setObjectName("partialY_lineEdit")
        self.gridLayout_7.addWidget(self.partialY_lineEdit, 2, 7, 1, 1)
        self.partialZ_label = QtGui.QLabel(self.partial_frame)
        self.partialZ_label.setObjectName("partialZ_label")
        self.gridLayout_7.addWidget(self.partialZ_label, 1, 5, 1, 1)
        self.partialData_checkBox = QtGui.QCheckBox(self.partial_frame)
        self.partialData_checkBox.setText("")
        self.partialData_checkBox.setObjectName("partialData_checkBox")
        self.gridLayout_7.addWidget(self.partialData_checkBox, 1, 3, 1, 1)
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout_7.addItem(spacerItem2, 2, 4, 1, 1)
        self.visualAid_checkBox = QtGui.QCheckBox(self.partial_frame)
        self.visualAid_checkBox.setEnabled(False)
        self.visualAid_checkBox.setObjectName("visualAid_checkBox")
        self.gridLayout_7.addWidget(self.visualAid_checkBox, 4, 7, 1, 1)
        self.verticalLayout_7.addWidget(self.partial_frame)
        self.scaffoldAxis_frame = QtGui.QFrame(self.alignSettingsGroupBox)
        self.scaffoldAxis_frame.setMinimumSize(QtCore.QSize(0, 10))
        self.scaffoldAxis_frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.scaffoldAxis_frame.setFrameShadow(QtGui.QFrame.Raised)
        self.scaffoldAxis_frame.setObjectName("scaffoldAxis_frame")
        self.gridLayout_2 = QtGui.QGridLayout(self.scaffoldAxis_frame)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.scaffoldY_radioButton = QtGui.QRadioButton(self.scaffoldAxis_frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.scaffoldY_radioButton.sizePolicy().hasHeightForWidth())
        self.scaffoldY_radioButton.setSizePolicy(sizePolicy)
        self.scaffoldY_radioButton.setObjectName("scaffoldY_radioButton")
        self.gridLayout_2.addWidget(self.scaffoldY_radioButton, 0, 2, 1, 1)
        self.scaffoldAxis_label = QtGui.QLabel(self.scaffoldAxis_frame)
        self.scaffoldAxis_label.setCursor(QtCore.Qt.ArrowCursor)
        self.scaffoldAxis_label.setObjectName("scaffoldAxis_label")
        self.gridLayout_2.addWidget(self.scaffoldAxis_label, 0, 0, 1, 1)
        self.scaffoldZ_radioButton = QtGui.QRadioButton(self.scaffoldAxis_frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.scaffoldZ_radioButton.sizePolicy().hasHeightForWidth())
        self.scaffoldZ_radioButton.setSizePolicy(sizePolicy)
        self.scaffoldZ_radioButton.setObjectName("scaffoldZ_radioButton")
        self.gridLayout_2.addWidget(self.scaffoldZ_radioButton, 0, 1, 1, 1)
        self.scaffoldX_radioButton = QtGui.QRadioButton(self.scaffoldAxis_frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.scaffoldX_radioButton.sizePolicy().hasHeightForWidth())
        self.scaffoldX_radioButton.setSizePolicy(sizePolicy)
        self.scaffoldX_radioButton.setObjectName("scaffoldX_radioButton")
        self.gridLayout_2.addWidget(self.scaffoldX_radioButton, 0, 3, 1, 1)
        self.verticalLayout_7.addWidget(self.scaffoldAxis_frame)
        self.dataAxis_frame = QtGui.QFrame(self.alignSettingsGroupBox)
        self.dataAxis_frame.setMinimumSize(QtCore.QSize(0, 10))
        self.dataAxis_frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.dataAxis_frame.setFrameShadow(QtGui.QFrame.Raised)
        self.dataAxis_frame.setObjectName("dataAxis_frame")
        self.gridLayout_3 = QtGui.QGridLayout(self.dataAxis_frame)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.dataZ_radioButton = QtGui.QRadioButton(self.dataAxis_frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.dataZ_radioButton.sizePolicy().hasHeightForWidth())
        self.dataZ_radioButton.setSizePolicy(sizePolicy)
        self.dataZ_radioButton.setObjectName("dataZ_radioButton")
        self.gridLayout_3.addWidget(self.dataZ_radioButton, 2, 1, 1, 1)
        self.datadY_radioButton = QtGui.QRadioButton(self.dataAxis_frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.datadY_radioButton.sizePolicy().hasHeightForWidth())
        self.datadY_radioButton.setSizePolicy(sizePolicy)
        self.datadY_radioButton.setObjectName("datadY_radioButton")
        self.gridLayout_3.addWidget(self.datadY_radioButton, 2, 2, 1, 1)
        self.dataAxis_label = QtGui.QLabel(self.dataAxis_frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.dataAxis_label.sizePolicy().hasHeightForWidth())
        self.dataAxis_label.setSizePolicy(sizePolicy)
        self.dataAxis_label.setObjectName("dataAxis_label")
        self.gridLayout_3.addWidget(self.dataAxis_label, 2, 0, 1, 1)
        self.dataX_radioButton = QtGui.QRadioButton(self.dataAxis_frame)
        self.dataX_radioButton.setObjectName("dataX_radioButton")
        self.gridLayout_3.addWidget(self.dataX_radioButton, 2, 3, 1, 1)
        self.verticalLayout_7.addWidget(self.dataAxis_frame)
        self.swapAxis_frame = QtGui.QFrame(self.alignSettingsGroupBox)
        self.swapAxis_frame.setMinimumSize(QtCore.QSize(0, 59))
        self.swapAxis_frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.swapAxis_frame.setFrameShadow(QtGui.QFrame.Raised)
        self.swapAxis_frame.setObjectName("swapAxis_frame")
        self.gridLayout_6 = QtGui.QGridLayout(self.swapAxis_frame)
        self.gridLayout_6.setObjectName("gridLayout_6")
        spacerItem3 = QtGui.QSpacerItem(20, 10, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        self.gridLayout_6.addItem(spacerItem3, 7, 0, 1, 1)
        self.yaw_label = QtGui.QLabel(self.swapAxis_frame)
        self.yaw_label.setObjectName("yaw_label")
        self.gridLayout_6.addWidget(self.yaw_label, 8, 2, 1, 1)
        self.roll_label = QtGui.QLabel(self.swapAxis_frame)
        self.roll_label.setObjectName("roll_label")
        self.gridLayout_6.addWidget(self.roll_label, 8, 4, 1, 1)
        self.axisDone_pushButton = QtGui.QPushButton(self.swapAxis_frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.axisDone_pushButton.sizePolicy().hasHeightForWidth())
        self.axisDone_pushButton.setSizePolicy(sizePolicy)
        self.axisDone_pushButton.setObjectName("axisDone_pushButton")
        self.gridLayout_6.addWidget(self.axisDone_pushButton, 6, 0, 1, 1)
        self.pitch_doubleSpinBox = QtGui.QDoubleSpinBox(self.swapAxis_frame)
        self.pitch_doubleSpinBox.setMinimum(-180.0)
        self.pitch_doubleSpinBox.setMaximum(180.0)
        self.pitch_doubleSpinBox.setObjectName("pitch_doubleSpinBox")
        self.gridLayout_6.addWidget(self.pitch_doubleSpinBox, 9, 3, 1, 1)
        self.yaw_doubleSpinBox = QtGui.QDoubleSpinBox(self.swapAxis_frame)
        self.yaw_doubleSpinBox.setMinimum(-180.0)
        self.yaw_doubleSpinBox.setMaximum(180.0)
        self.yaw_doubleSpinBox.setObjectName("yaw_doubleSpinBox")
        self.gridLayout_6.addWidget(self.yaw_doubleSpinBox, 9, 2, 1, 1)
        self.upsideDown_checkBox = QtGui.QCheckBox(self.swapAxis_frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.upsideDown_checkBox.sizePolicy().hasHeightForWidth())
        self.upsideDown_checkBox.setSizePolicy(sizePolicy)
        self.upsideDown_checkBox.setObjectName("upsideDown_checkBox")
        self.gridLayout_6.addWidget(self.upsideDown_checkBox, 3, 1, 1, 1)
        self.rotateAxis_label = QtGui.QLabel(self.swapAxis_frame)
        self.rotateAxis_label.setObjectName("rotateAxis_label")
        self.gridLayout_6.addWidget(self.rotateAxis_label, 8, 0, 1, 1)
        self.roll_doubleSpinBox = QtGui.QDoubleSpinBox(self.swapAxis_frame)
        self.roll_doubleSpinBox.setMinimum(-180.0)
        self.roll_doubleSpinBox.setMaximum(180.0)
        self.roll_doubleSpinBox.setObjectName("roll_doubleSpinBox")
        self.gridLayout_6.addWidget(self.roll_doubleSpinBox, 9, 4, 1, 1)
        self.upsideDown_label = QtGui.QLabel(self.swapAxis_frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.upsideDown_label.sizePolicy().hasHeightForWidth())
        self.upsideDown_label.setSizePolicy(sizePolicy)
        self.upsideDown_label.setObjectName("upsideDown_label")
        self.gridLayout_6.addWidget(self.upsideDown_label, 3, 0, 1, 1)
        spacerItem4 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        self.gridLayout_6.addItem(spacerItem4, 11, 1, 1, 1)
        self.pitch_label = QtGui.QLabel(self.swapAxis_frame)
        self.pitch_label.setObjectName("pitch_label")
        self.gridLayout_6.addWidget(self.pitch_label, 8, 3, 1, 1)
        spacerItem5 = QtGui.QSpacerItem(20, 10, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        self.gridLayout_6.addItem(spacerItem5, 5, 1, 1, 1)
        self.verticalLayout_7.addWidget(self.swapAxis_frame)
        self.scale_widget = QtGui.QWidget(self.alignSettingsGroupBox)
        self.scale_widget.setObjectName("scale_widget")
        self.gridLayout_4 = QtGui.QGridLayout(self.scale_widget)
        self.gridLayout_4.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.scaleRatio_lineEdit = QtGui.QLineEdit(self.scale_widget)
        self.scaleRatio_lineEdit.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.scaleRatio_lineEdit.sizePolicy().hasHeightForWidth())
        self.scaleRatio_lineEdit.setSizePolicy(sizePolicy)
        self.scaleRatio_lineEdit.setObjectName("scaleRatio_lineEdit")
        self.gridLayout_4.addWidget(self.scaleRatio_lineEdit, 1, 0, 1, 1)
        self.scaleRatio_label = QtGui.QLabel(self.scale_widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.scaleRatio_label.sizePolicy().hasHeightForWidth())
        self.scaleRatio_label.setSizePolicy(sizePolicy)
        self.scaleRatio_label.setObjectName("scaleRatio_label")
        self.gridLayout_4.addWidget(self.scaleRatio_label, 0, 0, 1, 1)
        self.scaleRatio_pushButton = QtGui.QPushButton(self.scale_widget)
        self.scaleRatio_pushButton.setEnabled(False)
        self.scaleRatio_pushButton.setObjectName("scaleRatio_pushButton")
        self.gridLayout_4.addWidget(self.scaleRatio_pushButton, 1, 1, 1, 1)
        spacerItem6 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout_4.addItem(spacerItem6, 2, 1, 1, 1)
        spacerItem7 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout_4.addItem(spacerItem7, 1, 2, 1, 1)
        self.verticalLayout_7.addWidget(self.scale_widget)
        self.resetButton_widget = QtGui.QWidget(self.alignSettingsGroupBox)
        self.resetButton_widget.setObjectName("resetButton_widget")
        self.gridLayout_5 = QtGui.QGridLayout(self.resetButton_widget)
        self.gridLayout_5.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_5.setObjectName("gridLayout_5")
        spacerItem8 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout_5.addItem(spacerItem8, 5, 1, 1, 1)
        self.alignLoadSaveWidgets = QtGui.QWidget(self.resetButton_widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.alignLoadSaveWidgets.sizePolicy().hasHeightForWidth())
        self.alignLoadSaveWidgets.setSizePolicy(sizePolicy)
        self.alignLoadSaveWidgets.setObjectName("alignLoadSaveWidgets")
        self.gridLayout = QtGui.QGridLayout(self.alignLoadSaveWidgets)
        self.gridLayout.setContentsMargins(0, 0, 0, 0)
        self.gridLayout.setObjectName("gridLayout")
        self.loadSettingsButton = QtGui.QPushButton(self.alignLoadSaveWidgets)
        self.loadSettingsButton.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.loadSettingsButton.sizePolicy().hasHeightForWidth())
        self.loadSettingsButton.setSizePolicy(sizePolicy)
        self.loadSettingsButton.setObjectName("loadSettingsButton")
        self.gridLayout.addWidget(self.loadSettingsButton, 0, 2, 1, 1)
        self.saveSettingsButton = QtGui.QPushButton(self.alignLoadSaveWidgets)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.saveSettingsButton.sizePolicy().hasHeightForWidth())
        self.saveSettingsButton.setSizePolicy(sizePolicy)
        self.saveSettingsButton.setObjectName("saveSettingsButton")
        self.gridLayout.addWidget(self.saveSettingsButton, 0, 1, 1, 1)
        spacerItem9 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem9, 0, 0, 1, 1)
        self.gridLayout_5.addWidget(self.alignLoadSaveWidgets, 2, 0, 1, 2)
        self.verticalLayout_7.addWidget(self.resetButton_widget)
        self.verticalLayout_5.addWidget(self.alignSettingsGroupBox)
        self.reset_frame = QtGui.QFrame(self.alignPage)
        self.reset_frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.reset_frame.setFrameShadow(QtGui.QFrame.Raised)
        self.reset_frame.setObjectName("reset_frame")
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.reset_frame)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.alignResetButton = QtGui.QPushButton(self.reset_frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.alignResetButton.sizePolicy().hasHeightForWidth())
        self.alignResetButton.setSizePolicy(sizePolicy)
        self.alignResetButton.setObjectName("alignResetButton")
        self.horizontalLayout_3.addWidget(self.alignResetButton)
        self.verticalLayout_5.addWidget(self.reset_frame)
        spacerItem10 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_5.addItem(spacerItem10)
        self.toolBox.addItem(self.alignPage, "")
        self.verticalLayout_3.addWidget(self.toolBox)
        self.frame = QtGui.QFrame(self.scrollAreaWidgetContents)
        self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtGui.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.frame)
        self.horizontalLayout_2.setContentsMargins(3, 3, 3, 3)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.viewAllButton = QtGui.QPushButton(self.frame)
        self.viewAllButton.setObjectName("viewAllButton")
        self.horizontalLayout_2.addWidget(self.viewAllButton)
        self.doneButton = QtGui.QPushButton(self.frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.doneButton.sizePolicy().hasHeightForWidth())
        self.doneButton.setSizePolicy(sizePolicy)
        self.doneButton.setObjectName("doneButton")
        self.horizontalLayout_2.addWidget(self.doneButton)
        self.verticalLayout_3.addWidget(self.frame)
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.verticalLayout_2.addWidget(self.scrollArea)
        self.dockWidget.setWidget(self.dockWidgetContents)
        self.horizontalLayout.addWidget(self.dockWidget)
        self.sceneviewerWidget = BaseSceneviewerWidget(ScaffoldRigidAlignerWidget, shared_opengl_context)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Ignored, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.sceneviewerWidget.sizePolicy().hasHeightForWidth())
        self.sceneviewerWidget.setSizePolicy(sizePolicy)
        self.sceneviewerWidget.setMinimumSize(QtCore.QSize(500, 0))
        self.sceneviewerWidget.setObjectName("sceneviewerWidget")
        self.horizontalLayout.addWidget(self.sceneviewerWidget)
        self.overlaySceneviewerWidget = BaseSceneviewerWidget(ScaffoldRigidAlignerWidget, shared_opengl_context)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.overlaySceneviewerWidget.sizePolicy().hasHeightForWidth())
        self.overlaySceneviewerWidget.setSizePolicy(sizePolicy)
        self.overlaySceneviewerWidget.setMinimumSize(QtCore.QSize(725, 0))
        self.overlaySceneviewerWidget.setMaximumSize(QtCore.QSize(16777215, 1000))
        self.overlaySceneviewerWidget.setObjectName("overlaySceneviewerWidget")
        self.horizontalLayout.addWidget(self.overlaySceneviewerWidget)

        self.retranslateUi(ScaffoldRigidAlignerWidget)
        self.toolBox.setCurrentIndex(0)
        self.toolBox.layout().setSpacing(6)
        QtCore.QMetaObject.connectSlotsByName(ScaffoldRigidAlignerWidget)