Esempio n. 1
1
 def removeItem(self, item):
     GLViewWidget.removeItem(self, item)
     return
     for renderGroup in self.renderItems:
         for renderItem in renderGroup:
             if renderItem == item:
                 renderGroup.remove(renderItem)
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(840, 514)
        self.gridLayout = QtGui.QGridLayout(Form)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.graphicsView_3d = GLViewWidget(Form)
        self.graphicsView_3d.setObjectName(_fromUtf8("graphicsView_3d"))
        self.gridLayout.addWidget(self.graphicsView_3d, 0, 0, 2, 1)
        self.addPlotButton = QtGui.QPushButton(Form)
        self.addPlotButton.setMaximumSize(QtCore.QSize(200, 56))
        font = QtGui.QFont()
        font.setPointSize(30)
        self.addPlotButton.setFont(font)
        self.addPlotButton.setStyleSheet(_fromUtf8(""))
        self.addPlotButton.setObjectName(_fromUtf8("addPlotButton"))
        self.gridLayout.addWidget(self.addPlotButton, 0, 1, 1, 1)
        self.listWidget = QtGui.QListWidget(Form)
        self.listWidget.setMaximumSize(QtCore.QSize(200, 16777215))
        self.listWidget.setLineWidth(10)
        self.listWidget.setObjectName(_fromUtf8("listWidget"))
        self.gridLayout.addWidget(self.listWidget, 1, 1, 1, 1)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        Form.setWindowTitle(_translate("Form", "Form", None))
        self.addPlotButton.setText(_translate("Form", "+", None))
Esempio n. 3
0
    def setup(self):
        self.settings.New('sample', dtype=str, initial='')
        self.settings.New('z_slice', dtype=float, choices=[0.0], initial=0.0)
        self.settings.New('show_3d', dtype=bool, initial=False)
        self.settings.New('vol_alpha',
                          dtype=float,
                          vmin=0.0,
                          vmax=1.0,
                          initial=0.5)
        self.settings.New('vol_colormap',
                          dtype=str,
                          initial='viridis',
                          choices=[
                              'viridis', 'plasma', 'inferno', 'magma',
                              'cividis', 'Greys', 'Purples', 'Blues', 'Greens',
                              'Oranges', 'Reds', 'YlOrBr', 'YlOrRd', 'OrRd',
                              'PuRd', 'RdPu', 'BuPu', 'GnBu', 'PuBu', 'YlGnBu',
                              'PuBuGn', 'BuGn', 'YlGn'
                          ])
        # self.settings.New('vol_percentile', dtype=int, vmin=0, vmax=49,
        #                   initial=5)
        self.settings.New('vol_percentile_min',
                          dtype=int,
                          vmin=0,
                          vmax=100,
                          initial=5)
        self.settings.New('vol_percentile_max',
                          dtype=int,
                          vmin=0,
                          vmax=100,
                          initial=95)
        self.settings.New('vol_transparent_percentile',
                          dtype=int,
                          vmin=0,
                          vmax=100,
                          initial=5)
        self.settings.New('vol_transparent_min', dtype=bool, initial=False)
        self.settings.z_slice.updated_choice_index_value.connect(
            self.on_update_zslice_choice)
        # self.settings.vol_colormap.updated_value.connect(self.calculate_volume)
        # self.settings.vol_alpha.updated_value.connect(self.calculate_volume)
        HyperSpectralBaseView.setup(self)
        voldata = np.empty((1, 1, 1, 4), dtype=np.ubyte)
        voldata[0, 0, 0, :] = [255, 255, 255, 0]
        self.volitem = GLVolumeItem(data=voldata)
        self.glview = GLViewWidget()
        self.glaxis = GLAxisItem()
        self.glgrid = GLGridItem()
        self.glview.addItem(self.glgrid)
        self.glview.addItem(self.glaxis)
        self.glview.addItem(self.volitem)
        self.gldock = self.dockarea.addDock(name='3D',
                                            widget=self.glview,
                                            position='below',
                                            relativeTo=self.image_dock)

        self.calculate_3d_pushButton = QPushButton(text='calculate_3d')
        self.settings_ui.layout().addWidget(self.calculate_3d_pushButton)
        self.calculate_3d_pushButton.clicked.connect(self.calculate_volume)
        self.image_dock.raiseDock()
Esempio n. 4
0
 def __init__(self, title='Plot3D', origin=(0.0, 0.0, 0.0), roi=(1.0, 1.0, 1.0), size=(800, 600), parent=None):
     GLViewWidget.__init__(self, parent)
     self.resize(size[0], size[1])
     self.setWindowTitle(title)
     self.origin, self.roi = origin, roi
     self.set_camera()
     self.make_grid()
Esempio n. 5
0
 def mouseMoveEvent(self, ev):
     diff = ev.pos() - self.mousePos1
     if self.selectedGrabber is not None and ev.buttons() == QtCore.Qt.LeftButton:
         self.moveGrabber(-diff.x(), diff.y())
         self.mousePos1 = ev.pos() # Ensure mousePos is set here
     else:
         GLViewWidget.mouseMoveEvent(self, ev)
         super(GLViewWidget, self).mouseMoveEvent(ev)
Esempio n. 6
0
 def create_widget(self):
     from pyqtgraph.opengl import GLViewWidget
     if isinstance(self.parent(),AbstractQtPlotItem):
         self.widget = self.parent_widget()
     else:
         self.widget = GLViewWidget(parent=self.parent_widget())
         self.widget.opts['distance'] = 40
         self.widget.raise_()
Esempio n. 7
0
class QtPlotItem3D(QtPlotItem2D):
    """Use forward instance to not cause import issues if
    not installed."""

    widget = ForwardInstance(gl_view_widget)

    def create_widget(self):
        from pyqtgraph.opengl import GLViewWidget

        if isinstance(self.parent(), AbstractQtPlotItem):
            self.widget = self.parent_widget()
        else:
            self.widget = GLViewWidget(parent=self.parent_widget())
            self.widget.opts["distance"] = 40
            self.widget.raise_()

    def init_signals(self):
        pass

    def _create_grid(self):
        from pyqtgraph.opengl import GLGridItem

        gx = GLGridItem()
        gx.rotate(90, 0, 1, 0)
        gx.translate(-10, 0, 0)
        self.widget.addItem(gx)
        gy = GLGridItem()
        gy.rotate(90, 1, 0, 0)
        gy.translate(0, -10, 0)
        self.widget.addItem(gy)
        gz = GLGridItem()
        gz.translate(0, 0, -10)
        self.widget.addItem(gz)

    def set_z(self, z):
        self._refresh_plot()

    def _refresh_plot(self):
        import numpy as np

        # import pyqtgraph as pg
        from pyqtgraph import opengl as gl

        self._create_grid()
        pts = np.vstack(
            [self.declaration.x, self.declaration.y,
             self.declaration.z]).transpose()
        plt = gl.GLLinePlotItem(
            pos=pts
        )  # , color=pg.glColor((i,n*1.3)), width=(i+1)/10., antialias=True)
        self.widget.addItem(plt)

    def set_grid(self, grid):
        pass
Esempio n. 8
0
    def __init__(self, parent=None):
        GLViewWidget.__init__(self, parent)
        self.setBackgroundColor(PreferencesManager().get("GLView", "backgroundColor", default=[255, 255, 255]))
        self._shape = (1, 1, 1)
        self._slice_planes = SlicingPlanes(self)
        self._arrows = AxesSymbols(self)

        self._mouse_pos = None

        self._meshes = {}
        # Make sure the layout stays the same no matter if the 3D widget is on/off
        size_policy = self.sizePolicy()
        size_policy.setRetainSizeWhenHidden(True)
        self.setSizePolicy(size_policy)
Esempio n. 9
0
    def __init__(self, parent=None):
        GLViewWidget.__init__(self, parent)
        self.setBackgroundColor(PreferencesManager().get("GLView", "backgroundColor", default=[255, 255, 255]))
        self._shape = (1, 1, 1)
        self._slice_planes = SlicingPlanes(self)
        self._arrows = AxesSymbols(self)

        self._mouse_pos = None

        self._meshes = {}
        # Make sure the layout stays the same no matter if the 3D widget is on/off
        size_policy = self.sizePolicy()
        size_policy.setRetainSizeWhenHidden(True)
        self.setSizePolicy(size_policy)
Esempio n. 10
0
    def mousePressEvent(self, ev):
        regionSize = 5
        mousePos = ev.pos()
        self.mousePos1 = mousePos
        region = (mousePos.x(), mousePos.y(), regionSize, regionSize)

        items = self.itemsAt(region)
        for item in items:
            print(item)
            if isinstance(item, gl.GLMeshItem) and item.parentItem() == self.grabberElement:
                self.selectedGrabber = self.grabberElement
                return
        print("GLWidet mousePRess")
        super(GLViewWidget, self).mousePressEvent(ev)
        GLViewWidget.mousePressEvent(self, ev)
Esempio n. 11
0
class QtPlotItem3D(QtPlotItem2D):
    """ Use forward instance to not cause import issues if 
    not installed. """
    widget = ForwardInstance(gl_view_widget)
    
    def create_widget(self):
        from pyqtgraph.opengl import GLViewWidget
        if isinstance(self.parent(),AbstractQtPlotItem):
            self.widget = self.parent_widget()
        else:
            self.widget = GLViewWidget(parent=self.parent_widget())
            self.widget.opts['distance'] = 40
            self.widget.raise_()
            
    def init_signals(self):
        pass

    def _create_grid(self):
        from pyqtgraph.opengl import GLGridItem
        gx = GLGridItem()
        gx.rotate(90, 0, 1, 0)
        gx.translate(-10, 0, 0)
        self.widget.addItem(gx)
        gy = GLGridItem()
        gy.rotate(90, 1, 0, 0)
        gy.translate(0, -10, 0)
        self.widget.addItem(gy)
        gz = GLGridItem()
        gz.translate(0, 0, -10)
        self.widget.addItem(gz)
        
    def set_z(self,z):
        self._refresh_plot()
        
    def _refresh_plot(self):
        import numpy as np
        #import pyqtgraph as pg
        from pyqtgraph import opengl as gl
        
        self._create_grid()
        pts = np.vstack([self.declaration.x,self.declaration.y,self.declaration.z]).transpose()
        plt = gl.GLLinePlotItem(pos=pts)#, color=pg.glColor((i,n*1.3)), width=(i+1)/10., antialias=True)
        self.widget.addItem(plt)
        
    def set_grid(self,grid):
        pass
Esempio n. 12
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(901, 1016)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.diffView = PlotWidget(self.centralwidget)
        self.diffView.setGeometry(QtCore.QRect(50, 640, 800, 200))
        self.diffView.setObjectName(_fromUtf8("diffView"))
        self.dtmView = GLViewWidget(self.centralwidget)
        self.dtmView.setGeometry(QtCore.QRect(50, 30, 800, 600))
        self.dtmView.setObjectName(_fromUtf8("dtmView"))
        self.frameNumber = QtGui.QLCDNumber(self.centralwidget)
        self.frameNumber.setGeometry(QtCore.QRect(720, 940, 111, 51))
        self.frameNumber.setObjectName(_fromUtf8("frameNumber"))
        self.horizontalSlider = QtGui.QSlider(self.centralwidget)
        self.horizontalSlider.setGeometry(QtCore.QRect(50, 860, 791, 29))
        self.horizontalSlider.setOrientation(QtCore.Qt.Horizontal)
        self.horizontalSlider.setObjectName(_fromUtf8("horizontalSlider"))
        self.checkBox = QtGui.QCheckBox(self.centralwidget)
        self.checkBox.setGeometry(QtCore.QRect(60, 930, 181, 37))
        self.checkBox.setObjectName(_fromUtf8("checkBox"))
        self.label = QtGui.QLabel(self.centralwidget)
        self.label.setGeometry(QtCore.QRect(700, 900, 151, 32))
        self.label.setObjectName(_fromUtf8("label"))
        self.diffBox = QtGui.QCheckBox(self.centralwidget)
        self.diffBox.setGeometry(QtCore.QRect(200, 940, 99, 22))
        self.diffBox.setObjectName(_fromUtf8("diffBox"))
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 901, 25))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
        self.checkBox.setText(_translate("MainWindow", "Play Movie", None))
        self.label.setText(_translate("MainWindow", "Frame No.", None))
        self.diffBox.setText(_translate("MainWindow", "Show Diffs", None))
Esempio n. 13
0
    def __init__(self):
        # super(GLViewWidget, self).__init__(parent=None)
        GLViewWidget.__init__(self, parent=None)

        self.pointCloud = None
        self.grabberElement = None
        self.EdgePairElements = None
        self.selectedGrabber = None
        # self.pointCloudView = None
        self.renderItems = {}
        self.noRepeatKeys = [
            QtCore.Qt.Key_Right, 
            QtCore.Qt.Key_Left, 
            QtCore.Qt.Key_Up, 
            QtCore.Qt.Key_Down, 
            QtCore.Qt.Key_PageUp, 
            QtCore.Qt.Key_PageDown,
            QtCore.Qt.Key_C,
            QtCore.Qt.Key_R]
Esempio n. 14
0
    def mouseReleaseEvent(self, event):
        """
        The Qt event handler when the mouse is released

        Release potentially selected slicing planes.
        Then pass the event to the parent class

        :param QMouseEvent event: the qt mouse event
        """
        self._slice_planes.release()
        return GLViewWidget.mousePressEvent(self, event)
Esempio n. 15
0
    def mouseReleaseEvent(self, event):
        """
        The Qt event handler when the mouse is released

        Release potentially selected slicing planes.
        Then pass the event to the parent class

        :param QMouseEvent event: the qt mouse event
        """
        self._slice_planes.release()
        return GLViewWidget.mousePressEvent(self, event)
Esempio n. 16
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1129, 600)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.graphicsView = GLViewWidget(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.graphicsView.sizePolicy().hasHeightForWidth())
        self.graphicsView.setSizePolicy(sizePolicy)
        self.graphicsView.setMinimumSize(QtCore.QSize(300, 0))
        self.graphicsView.setObjectName("graphicsView")
        self.gridLayout.addWidget(self.graphicsView, 0, 1, 1, 1)
        self.plainTextEdit = QtWidgets.QPlainTextEdit(self.centralwidget)
        self.plainTextEdit.setReadOnly(True)
        self.plainTextEdit.setObjectName("plainTextEdit")
        self.gridLayout.addWidget(self.plainTextEdit, 0, 2, 1, 1)
        self.pushButton = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton.setObjectName("pushButton")
        self.gridLayout.addWidget(self.pushButton, 1, 1, 1, 1,
                                  QtCore.Qt.AlignLeft)
        self.plainTextEdit.raise_()
        self.graphicsView.raise_()
        self.pushButton.raise_()
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1129, 20))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.pushButton.setText(_translate("MainWindow", "Start"))
Esempio n. 17
0
    def mousePressEvent(self, event):
        """
        The Qt event handler when the mouse is pressed down

        If a slicing plane was clicked select it and save the mouse position.
        Otherwise pass the event to the parent class.

        :param QMouseEvent event: the qt mouse event
        """
        x, y = event.x(), event.y()
        hits = self.itemsAt((x - 10, y - 10, 20, 20))
        if hits:
            self._mouse_pos = x, y
            self._slice_planes.select(hits[0])
        return GLViewWidget.mousePressEvent(self, event)
Esempio n. 18
0
    def mousePressEvent(self, event):
        """
        The Qt event handler when the mouse is pressed down

        If a slicing plane was clicked select it and save the mouse position.
        Otherwise pass the event to the parent class.

        :param QMouseEvent event: the qt mouse event
        """
        x, y = event.x(), event.y()
        hits = self.itemsAt((x - 10, y - 10, 20, 20))
        if hits:
            self._mouse_pos = x, y
            self._slice_planes.select(hits[0])
        return GLViewWidget.mousePressEvent(self, event)
Esempio n. 19
0
    def mouseMoveEvent(self, event):
        """
        The Qt event handler when the mouse is dragged.

        If a slice plane is selected the slice plane is dragged otherwise the scene is rotated.

        :param QMouseEvent event: the qt mouse event
        """
        if self._slice_planes.has_selection():
            x, y = event.x(), event.y()
            m = self.viewMatrix()
            dx = x - self._mouse_pos[0]
            dy = y - self._mouse_pos[1]
            vec = QVector4D(dx, -dy, 0, 0) * m
            dx, dy, dz = vec.x(), vec.y(), vec.z()
            self._mouse_pos = x, y
            self._slice_planes.drag(dx, dy, dz)
            self.slice_changed.emit()
        else:
            return GLViewWidget.mouseMoveEvent(self, event)
Esempio n. 20
0
    def mouseMoveEvent(self, event):
        """
        The Qt event handler when the mouse is dragged.

        If a slice plane is selected the slice plane is dragged otherwise the scene is rotated.

        :param QMouseEvent event: the qt mouse event
        """
        if self._slice_planes.has_selection():
            x, y = event.x(), event.y()
            m = self.viewMatrix()
            dx = x - self._mouse_pos[0]
            dy = y - self._mouse_pos[1]
            vec = QVector4D(dx, -dy, 0, 0) * m
            dx, dy, dz = vec.x(), vec.y(), vec.z()
            self._mouse_pos = x, y
            self._slice_planes.drag(dx, dy, dz)
            self.slice_changed.emit()
        else:
            return GLViewWidget.mouseMoveEvent(self, event)
Esempio n. 21
0
import time

from pyqtgraph.opengl import GLViewWidget, MeshData
from pyqtgraph.opengl.items.GLMeshItem import GLMeshItem

from PyQt5.QtGui import QApplication

volume = load(os.path.join(
    os.path.split(__file__)[0], 'data/input/sample.npy'))

t0 = time.time()
vertices, normals, faces = march(volume, 0)  # zero smoothing rounds
smooth_vertices, smooth_normals, faces = march(volume, 4)  # 4 smoothing rounds
t1 = time.time()
print("took", t1 - t0, "sec")

app = QApplication([])
view = GLViewWidget()

mesh = MeshData(vertices / 100.0,
                faces)  # scale down - otherwise camera is misplaced
# or mesh = MeshData(smooth_vertices / 100, faces)
mesh._vertexNormals = normals
# or mesh._vertexNormals = smooth_normals

item = GLMeshItem(meshdata=mesh, color=[1, 0, 0, 1], shader="normalColor")

view.addItem(item)
view.show()
app.exec_()
Esempio n. 22
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(1024, 768)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.centralwidget)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.realColumn = QtGui.QWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.realColumn.sizePolicy().hasHeightForWidth())
        self.realColumn.setSizePolicy(sizePolicy)
        self.realColumn.setObjectName(_fromUtf8("realColumn"))
        self.verticalLayout = QtGui.QVBoxLayout(self.realColumn)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.realLabel = QtGui.QLabel(self.realColumn)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.realLabel.setFont(font)
        self.realLabel.setObjectName(_fromUtf8("realLabel"))
        self.verticalLayout.addWidget(self.realLabel)
        self.real = GLViewWidget(self.realColumn)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(2)
        sizePolicy.setHeightForWidth(self.real.sizePolicy().hasHeightForWidth())
        self.real.setSizePolicy(sizePolicy)
        self.real.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))
        self.real.setObjectName(_fromUtf8("real"))
        self.gridLayout = QtGui.QGridLayout(self.real)
        self.gridLayout.setMargin(0)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.realMask = QtGui.QWidget(self.real)
        self.realMask.setCursor(QtGui.QCursor(QtCore.Qt.CrossCursor))
        self.realMask.setFocusPolicy(QtCore.Qt.ClickFocus)
        self.realMask.setObjectName(_fromUtf8("realMask"))
        self.gridLayout.addWidget(self.realMask, 1, 0, 1, 1)
        self.verticalLayout.addWidget(self.real)
        self.horizontalLayout_3.addWidget(self.realColumn)
        self.trackColumn = QtGui.QWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.trackColumn.sizePolicy().hasHeightForWidth())
        self.trackColumn.setSizePolicy(sizePolicy)
        self.trackColumn.setObjectName(_fromUtf8("trackColumn"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.trackColumn)
        self.verticalLayout_2.setMargin(0)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.trackLabel = QtGui.QLabel(self.trackColumn)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.trackLabel.setFont(font)
        self.trackLabel.setObjectName(_fromUtf8("trackLabel"))
        self.verticalLayout_2.addWidget(self.trackLabel)
        self.track = GLViewWidget(self.trackColumn)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(2)
        sizePolicy.setHeightForWidth(self.track.sizePolicy().hasHeightForWidth())
        self.track.setSizePolicy(sizePolicy)
        self.track.setObjectName(_fromUtf8("track"))
        self.gridLayout_2 = QtGui.QGridLayout(self.track)
        self.gridLayout_2.setMargin(0)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.trackMask = QtGui.QWidget(self.track)
        self.trackMask.setCursor(QtGui.QCursor(QtCore.Qt.CrossCursor))
        self.trackMask.setFocusPolicy(QtCore.Qt.ClickFocus)
        self.trackMask.setAutoFillBackground(False)
        self.trackMask.setObjectName(_fromUtf8("trackMask"))
        self.gridLayout_2.addWidget(self.trackMask, 0, 0, 1, 1)
        self.verticalLayout_2.addWidget(self.track)
        self.horizontalLayout_3.addWidget(self.trackColumn)
        MainWindow.setCentralWidget(self.centralwidget)
        self.actionExit = QtGui.QAction(MainWindow)
        self.actionExit.setMenuRole(QtGui.QAction.QuitRole)
        self.actionExit.setObjectName(_fromUtf8("actionExit"))
        self.actionExit_2 = QtGui.QAction(MainWindow)
        self.actionExit_2.setSoftKeyRole(QtGui.QAction.NegativeSoftKey)
        self.actionExit_2.setIconVisibleInMenu(False)
        self.actionExit_2.setPriority(QtGui.QAction.NormalPriority)
        self.actionExit_2.setObjectName(_fromUtf8("actionExit_2"))

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Esempio n. 23
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(803, 723)
        self.centralwidget = QtGui.QWidget(MainWindow)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
        self.centralwidget.setSizePolicy(sizePolicy)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setSpacing(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.pushButton_thickness = QtGui.QPushButton(self.centralwidget)
        self.pushButton_thickness.setMinimumSize(QtCore.QSize(0, 23))
        self.pushButton_thickness.setMaximumSize(QtCore.QSize(59, 16777215))
        self.pushButton_thickness.setStyleSheet(_fromUtf8("QPushButton{\n"
"background-color: rgb(248, 248, 248);\n"
"border-style: solid;\n"
"border-width: 1px;\n"
"border-color: rgb(180, 180, 180);\n"
"border-top-left-radius: 5px;\n"
"\n"
"\n"
"}\n"
"QPushButton:checked{\n"
"    background-color: rgb(225, 225, 225);\n"
"    border-style: solid;\n"
"    border-width: 1px;\n"
"    border-color: rgb(180, 180, 180);\n"
"    border-top-left-radius: 5px;\n"
"\n"
"}\n"
"\n"
""))
        self.pushButton_thickness.setCheckable(True)
        self.pushButton_thickness.setChecked(False)
        self.pushButton_thickness.setFlat(True)
        self.pushButton_thickness.setObjectName(_fromUtf8("pushButton_thickness"))
        self.horizontalLayout.addWidget(self.pushButton_thickness)
        self.pushButton_distance = QtGui.QPushButton(self.centralwidget)
        self.pushButton_distance.setMinimumSize(QtCore.QSize(0, 23))
        self.pushButton_distance.setMaximumSize(QtCore.QSize(72, 16777215))
        self.pushButton_distance.setStyleSheet(_fromUtf8("QPushButton{\n"
"background-color: rgb(248, 248, 248);\n"
"border-style: solid;\n"
"border-width: 1px;\n"
"border-color: rgb(180, 180, 180);\n"
"border-top-right-radius: 5px;\n"
"\n"
"}\n"
"\n"
"QPushButton:checked{\n"
"    background-color: rgb(225, 225, 225);\n"
"    border-style: solid;\n"
"    border-width: 1px;\n"
"    border-color: rgb(180, 180, 180);\n"
"    border-top-right-radius: 5px;\n"
"\n"
"\n"
"}"))
        self.pushButton_distance.setCheckable(True)
        self.pushButton_distance.setChecked(False)
        self.pushButton_distance.setObjectName(_fromUtf8("pushButton_distance"))
        self.horizontalLayout.addWidget(self.pushButton_distance)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.label_3 = QtGui.QLabel(self.centralwidget)
        self.label_3.setMaximumSize(QtCore.QSize(50, 16777215))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.horizontalLayout.addWidget(self.label_3)
        self.textEdit_km = QtGui.QTextEdit(self.centralwidget)
        self.textEdit_km.setMinimumSize(QtCore.QSize(0, 0))
        self.textEdit_km.setMaximumSize(QtCore.QSize(150, 27))
        self.textEdit_km.setObjectName(_fromUtf8("textEdit_km"))
        self.horizontalLayout.addWidget(self.textEdit_km)
        self.comboBox_3 = QtGui.QComboBox(self.centralwidget)
        self.comboBox_3.setMaximumSize(QtCore.QSize(50, 16777215))
        self.comboBox_3.setObjectName(_fromUtf8("comboBox_3"))
        self.comboBox_3.addItem(_fromUtf8(""))
        self.comboBox_3.addItem(_fromUtf8(""))
        self.comboBox_3.addItem(_fromUtf8(""))
        self.horizontalLayout.addWidget(self.comboBox_3)
        self.pushButton_go = QtGui.QPushButton(self.centralwidget)
        self.pushButton_go.setMaximumSize(QtCore.QSize(100, 16777215))
        self.pushButton_go.setObjectName(_fromUtf8("pushButton_go"))
        self.horizontalLayout.addWidget(self.pushButton_go)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.verticalSlider = QtGui.QSlider(self.centralwidget)
        self.verticalSlider.setOrientation(QtCore.Qt.Vertical)
        self.verticalSlider.setInvertedAppearance(True)
        self.verticalSlider.setObjectName(_fromUtf8("verticalSlider"))
        self.horizontalLayout_3.addWidget(self.verticalSlider)
        self.scanViewer = ScanViewer(self.centralwidget)
        self.scanViewer.setMinimumSize(QtCore.QSize(0, 0))
        self.scanViewer.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.scanViewer.setStyleSheet(_fromUtf8("background-color:  rgba(255, 255, 255, 0);\n"
""))
        self.scanViewer.setLineWidth(0)
        self.scanViewer.setObjectName(_fromUtf8("scanViewer"))
        self.horizontalLayout_3.addWidget(self.scanViewer)
        self.graphicsView_2 = QtGui.QGraphicsView(self.centralwidget)
        self.graphicsView_2.setMaximumSize(QtCore.QSize(60, 16777215))
        self.graphicsView_2.setAutoFillBackground(True)
        self.graphicsView_2.setStyleSheet(_fromUtf8("background-color:  rgba(255, 255, 255, 0)"))
        self.graphicsView_2.setFrameShape(QtGui.QFrame.NoFrame)
        self.graphicsView_2.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.graphicsView_2.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        self.graphicsView_2.setBackgroundBrush(brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        self.graphicsView_2.setForegroundBrush(brush)
        self.graphicsView_2.setObjectName(_fromUtf8("graphicsView_2"))
        self.horizontalLayout_3.addWidget(self.graphicsView_2)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.pushButton_3d = QtGui.QPushButton(self.centralwidget)
        self.pushButton_3d.setEnabled(False)
        self.pushButton_3d.setObjectName(_fromUtf8("pushButton_3d"))
        self.verticalLayout.addWidget(self.pushButton_3d)
        self.graphicsView = GLViewWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.graphicsView.sizePolicy().hasHeightForWidth())
        self.graphicsView.setSizePolicy(sizePolicy)
        self.graphicsView.setMinimumSize(QtCore.QSize(0, 0))
        self.graphicsView.setStyleSheet(_fromUtf8(""))
        self.graphicsView.setObjectName(_fromUtf8("graphicsView"))
        self.verticalLayout.addWidget(self.graphicsView)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 803, 25))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuAbout = QtGui.QMenu(self.menubar)
        self.menuAbout.setObjectName(_fromUtf8("menuAbout"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.toolBar = QtGui.QToolBar(MainWindow)
        self.toolBar.setObjectName(_fromUtf8("toolBar"))
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.actionOptions = QtGui.QAction(MainWindow)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("icons/options.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionOptions.setIcon(icon)
        self.actionOptions.setObjectName(_fromUtf8("actionOptions"))
        self.actionMove = QtGui.QAction(MainWindow)
        self.actionMove.setCheckable(True)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8("icons/icon_move.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionMove.setIcon(icon1)
        self.actionMove.setObjectName(_fromUtf8("actionMove"))
        self.actionCorrosions = QtGui.QAction(MainWindow)
        self.actionCorrosions.setCheckable(True)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8("icons/icon_corrosion.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionCorrosions.setIcon(icon2)
        self.actionCorrosions.setObjectName(_fromUtf8("actionCorrosions"))
        self.actionReportAdd = QtGui.QAction(MainWindow)
        self.actionReportAdd.setCheckable(True)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(_fromUtf8("icons/icon_report_add.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionReportAdd.setIcon(icon3)
        self.actionReportAdd.setObjectName(_fromUtf8("actionReportAdd"))
        self.actionAutoDetect = QtGui.QAction(MainWindow)
        self.actionAutoDetect.setCheckable(True)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(_fromUtf8("icons/icon_autodetect.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionAutoDetect.setIcon(icon4)
        self.actionAutoDetect.setObjectName(_fromUtf8("actionAutoDetect"))
        self.actionSW = QtGui.QAction(MainWindow)
        self.actionSW.setCheckable(True)
        self.actionSW.setChecked(False)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(_fromUtf8("icons/icon_SW.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionSW.setIcon(icon5)
        self.actionSW.setVisible(True)
        self.actionSW.setIconVisibleInMenu(False)
        self.actionSW.setObjectName(_fromUtf8("actionSW"))
        self.actionSP = QtGui.QAction(MainWindow)
        self.actionSP.setCheckable(True)
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap(_fromUtf8("icons/icon_SP.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionSP.setIcon(icon6)
        self.actionSP.setVisible(True)
        self.actionSP.setObjectName(_fromUtf8("actionSP"))
        self.actionL = QtGui.QAction(MainWindow)
        self.actionL.setCheckable(True)
        icon7 = QtGui.QIcon()
        icon7.addPixmap(QtGui.QPixmap(_fromUtf8("icons/icon_lamination.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionL.setIcon(icon7)
        self.actionL.setVisible(True)
        self.actionL.setObjectName(_fromUtf8("actionL"))
        self.actionReport = QtGui.QAction(MainWindow)
        icon8 = QtGui.QIcon()
        icon8.addPixmap(QtGui.QPixmap(_fromUtf8("icons/icon_report.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionReport.setIcon(icon8)
        self.actionReport.setObjectName(_fromUtf8("actionReport"))
        self.screenShoot2D = QtGui.QAction(MainWindow)
        self.screenShoot2D.setCheckable(True)
        icon9 = QtGui.QIcon()
        icon9.addPixmap(QtGui.QPixmap(_fromUtf8("icons/icon_screenshot2d.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.screenShoot2D.setIcon(icon9)
        self.screenShoot2D.setObjectName(_fromUtf8("screenShoot2D"))
        self.screenShoot3D = QtGui.QAction(MainWindow)
        self.screenShoot3D.setCheckable(True)
        icon10 = QtGui.QIcon()
        icon10.addPixmap(QtGui.QPixmap(_fromUtf8("icons/icon_screenshot3d.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.screenShoot3D.setIcon(icon10)
        self.screenShoot3D.setObjectName(_fromUtf8("screenShoot3D"))
        self.actionK = QtGui.QAction(MainWindow)
        self.actionK.setCheckable(True)
        icon11 = QtGui.QIcon()
        icon11.addPixmap(QtGui.QPixmap(_fromUtf8("icons/icon_K.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionK.setIcon(icon11)
        self.actionK.setObjectName(_fromUtf8("actionK"))
        self.actionAbout = QtGui.QAction(MainWindow)
        self.actionAbout.setObjectName(_fromUtf8("actionAbout"))
        self.menuAbout.addAction(self.actionAbout)
        self.menubar.addAction(self.menuAbout.menuAction())
        self.toolBar.addAction(self.actionOptions)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionMove)
        self.toolBar.addAction(self.actionCorrosions)
        self.toolBar.addAction(self.actionAutoDetect)
        self.toolBar.addAction(self.screenShoot2D)
        self.toolBar.addAction(self.screenShoot3D)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionReport)
        self.toolBar.addAction(self.actionReportAdd)
        self.toolBar.addAction(self.actionL)
        self.toolBar.addAction(self.actionK)
        self.toolBar.addAction(self.actionSW)
        self.toolBar.addAction(self.actionSP)

        self.retranslateUi(MainWindow)
        self.comboBox_3.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Esempio n. 24
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(803, 723)
        self.centralwidget = QtGui.QWidget(MainWindow)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
        self.centralwidget.setSizePolicy(sizePolicy)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setSpacing(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.pushButton_thickness = QtGui.QPushButton(self.centralwidget)
        self.pushButton_thickness.setMinimumSize(QtCore.QSize(0, 23))
        self.pushButton_thickness.setMaximumSize(QtCore.QSize(59, 16777215))
        self.pushButton_thickness.setStyleSheet(_fromUtf8("QPushButton{\n"
"background-color: rgb(248, 248, 248);\n"
"border-style: solid;\n"
"border-width: 1px;\n"
"border-color: rgb(180, 180, 180);\n"
"border-top-left-radius: 5px;\n"
"\n"
"\n"
"}\n"
"QPushButton:checked{\n"
"    background-color: rgb(225, 225, 225);\n"
"    border-style: solid;\n"
"    border-width: 1px;\n"
"    border-color: rgb(180, 180, 180);\n"
"    border-top-left-radius: 5px;\n"
"\n"
"}\n"
"\n"
""))
        self.pushButton_thickness.setCheckable(True)
        self.pushButton_thickness.setChecked(False)
        self.pushButton_thickness.setFlat(True)
        self.pushButton_thickness.setObjectName(_fromUtf8("pushButton_thickness"))
        self.horizontalLayout.addWidget(self.pushButton_thickness)
        self.pushButton_distance = QtGui.QPushButton(self.centralwidget)
        self.pushButton_distance.setMinimumSize(QtCore.QSize(0, 23))
        self.pushButton_distance.setMaximumSize(QtCore.QSize(72, 16777215))
        self.pushButton_distance.setStyleSheet(_fromUtf8("QPushButton{\n"
"background-color: rgb(248, 248, 248);\n"
"border-style: solid;\n"
"border-width: 1px;\n"
"border-color: rgb(180, 180, 180);\n"
"border-top-right-radius: 5px;\n"
"\n"
"}\n"
"\n"
"QPushButton:checked{\n"
"    background-color: rgb(225, 225, 225);\n"
"    border-style: solid;\n"
"    border-width: 1px;\n"
"    border-color: rgb(180, 180, 180);\n"
"    border-top-right-radius: 5px;\n"
"\n"
"\n"
"}"))
        self.pushButton_distance.setCheckable(True)
        self.pushButton_distance.setChecked(False)
        self.pushButton_distance.setObjectName(_fromUtf8("pushButton_distance"))
        self.horizontalLayout.addWidget(self.pushButton_distance)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.label_3 = QtGui.QLabel(self.centralwidget)
        self.label_3.setMaximumSize(QtCore.QSize(50, 16777215))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.horizontalLayout.addWidget(self.label_3)
        self.textEdit_km = QtGui.QTextEdit(self.centralwidget)
        self.textEdit_km.setMinimumSize(QtCore.QSize(0, 0))
        self.textEdit_km.setMaximumSize(QtCore.QSize(150, 27))
        self.textEdit_km.setObjectName(_fromUtf8("textEdit_km"))
        self.horizontalLayout.addWidget(self.textEdit_km)
        self.comboBox_3 = QtGui.QComboBox(self.centralwidget)
        self.comboBox_3.setMaximumSize(QtCore.QSize(50, 16777215))
        self.comboBox_3.setObjectName(_fromUtf8("comboBox_3"))
        self.comboBox_3.addItem(_fromUtf8(""))
        self.comboBox_3.addItem(_fromUtf8(""))
        self.comboBox_3.addItem(_fromUtf8(""))
        self.horizontalLayout.addWidget(self.comboBox_3)
        self.pushButton_go = QtGui.QPushButton(self.centralwidget)
        self.pushButton_go.setMaximumSize(QtCore.QSize(100, 16777215))
        self.pushButton_go.setObjectName(_fromUtf8("pushButton_go"))
        self.horizontalLayout.addWidget(self.pushButton_go)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.verticalSlider = QtGui.QSlider(self.centralwidget)
        self.verticalSlider.setOrientation(QtCore.Qt.Vertical)
        self.verticalSlider.setInvertedAppearance(True)
        self.verticalSlider.setObjectName(_fromUtf8("verticalSlider"))
        self.horizontalLayout_3.addWidget(self.verticalSlider)
        self.scanViewer = ScanViewer(self.centralwidget)
        self.scanViewer.setMinimumSize(QtCore.QSize(0, 0))
        self.scanViewer.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.scanViewer.setStyleSheet(_fromUtf8("background-color:  rgba(255, 255, 255, 0);\n"
""))
        self.scanViewer.setLineWidth(0)
        self.scanViewer.setObjectName(_fromUtf8("scanViewer"))
        self.horizontalLayout_3.addWidget(self.scanViewer)
        self.graphicsView_2 = QtGui.QGraphicsView(self.centralwidget)
        self.graphicsView_2.setMaximumSize(QtCore.QSize(60, 16777215))
        self.graphicsView_2.setAutoFillBackground(True)
        self.graphicsView_2.setStyleSheet(_fromUtf8("background-color:  rgba(255, 255, 255, 0)"))
        self.graphicsView_2.setFrameShape(QtGui.QFrame.NoFrame)
        self.graphicsView_2.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.graphicsView_2.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        self.graphicsView_2.setBackgroundBrush(brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 0))
        brush.setStyle(QtCore.Qt.SolidPattern)
        self.graphicsView_2.setForegroundBrush(brush)
        self.graphicsView_2.setObjectName(_fromUtf8("graphicsView_2"))
        self.horizontalLayout_3.addWidget(self.graphicsView_2)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.pushButton_3d = QtGui.QPushButton(self.centralwidget)
        self.pushButton_3d.setEnabled(False)
        self.pushButton_3d.setObjectName(_fromUtf8("pushButton_3d"))
        self.verticalLayout.addWidget(self.pushButton_3d)
        self.graphicsView = GLViewWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.graphicsView.sizePolicy().hasHeightForWidth())
        self.graphicsView.setSizePolicy(sizePolicy)
        self.graphicsView.setMinimumSize(QtCore.QSize(0, 0))
        self.graphicsView.setStyleSheet(_fromUtf8(""))
        self.graphicsView.setObjectName(_fromUtf8("graphicsView"))
        self.verticalLayout.addWidget(self.graphicsView)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 803, 25))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuAbout = QtGui.QMenu(self.menubar)
        self.menuAbout.setObjectName(_fromUtf8("menuAbout"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.toolBar = QtGui.QToolBar(MainWindow)
        self.toolBar.setObjectName(_fromUtf8("toolBar"))
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.actionOptions = QtGui.QAction(MainWindow)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("icons/options.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionOptions.setIcon(icon)
        self.actionOptions.setObjectName(_fromUtf8("actionOptions"))
        self.actionMove = QtGui.QAction(MainWindow)
        self.actionMove.setCheckable(True)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8("icons/icon_move.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionMove.setIcon(icon1)
        self.actionMove.setObjectName(_fromUtf8("actionMove"))
        self.actionCorrosions = QtGui.QAction(MainWindow)
        self.actionCorrosions.setCheckable(True)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8("icons/icon_corrosion.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionCorrosions.setIcon(icon2)
        self.actionCorrosions.setObjectName(_fromUtf8("actionCorrosions"))
        self.actionReportAdd = QtGui.QAction(MainWindow)
        self.actionReportAdd.setCheckable(True)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(_fromUtf8("icons/icon_report_add.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionReportAdd.setIcon(icon3)
        self.actionReportAdd.setObjectName(_fromUtf8("actionReportAdd"))
        self.actionAutoDetect = QtGui.QAction(MainWindow)
        self.actionAutoDetect.setCheckable(True)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(_fromUtf8("icons/icon_autodetect.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionAutoDetect.setIcon(icon4)
        self.actionAutoDetect.setObjectName(_fromUtf8("actionAutoDetect"))
        self.actionSW = QtGui.QAction(MainWindow)
        self.actionSW.setCheckable(True)
        self.actionSW.setChecked(False)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(_fromUtf8("icons/icon_SW.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionSW.setIcon(icon5)
        self.actionSW.setVisible(True)
        self.actionSW.setIconVisibleInMenu(False)
        self.actionSW.setObjectName(_fromUtf8("actionSW"))
        self.actionSP = QtGui.QAction(MainWindow)
        self.actionSP.setCheckable(True)
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap(_fromUtf8("icons/icon_SP.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionSP.setIcon(icon6)
        self.actionSP.setVisible(True)
        self.actionSP.setObjectName(_fromUtf8("actionSP"))
        self.actionL = QtGui.QAction(MainWindow)
        self.actionL.setCheckable(True)
        icon7 = QtGui.QIcon()
        icon7.addPixmap(QtGui.QPixmap(_fromUtf8("icons/icon_lamination.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionL.setIcon(icon7)
        self.actionL.setVisible(True)
        self.actionL.setObjectName(_fromUtf8("actionL"))
        self.actionReport = QtGui.QAction(MainWindow)
        icon8 = QtGui.QIcon()
        icon8.addPixmap(QtGui.QPixmap(_fromUtf8("icons/icon_report.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionReport.setIcon(icon8)
        self.actionReport.setObjectName(_fromUtf8("actionReport"))
        self.screenShoot2D = QtGui.QAction(MainWindow)
        self.screenShoot2D.setCheckable(True)
        icon9 = QtGui.QIcon()
        icon9.addPixmap(QtGui.QPixmap(_fromUtf8("icons/icon_screenshot2d.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.screenShoot2D.setIcon(icon9)
        self.screenShoot2D.setObjectName(_fromUtf8("screenShoot2D"))
        self.screenShoot3D = QtGui.QAction(MainWindow)
        self.screenShoot3D.setCheckable(True)
        icon10 = QtGui.QIcon()
        icon10.addPixmap(QtGui.QPixmap(_fromUtf8("icons/icon_screenshot3d.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.screenShoot3D.setIcon(icon10)
        self.screenShoot3D.setObjectName(_fromUtf8("screenShoot3D"))
        self.actionK = QtGui.QAction(MainWindow)
        self.actionK.setCheckable(True)
        icon11 = QtGui.QIcon()
        icon11.addPixmap(QtGui.QPixmap(_fromUtf8("icons/icon_K.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionK.setIcon(icon11)
        self.actionK.setObjectName(_fromUtf8("actionK"))
        self.actionAbout = QtGui.QAction(MainWindow)
        self.actionAbout.setObjectName(_fromUtf8("actionAbout"))
        self.menuAbout.addAction(self.actionAbout)
        self.menubar.addAction(self.menuAbout.menuAction())
        self.toolBar.addAction(self.actionOptions)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionMove)
        self.toolBar.addAction(self.actionCorrosions)
        self.toolBar.addAction(self.actionAutoDetect)
        self.toolBar.addAction(self.screenShoot2D)
        self.toolBar.addAction(self.screenShoot3D)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.actionReport)
        self.toolBar.addAction(self.actionReportAdd)
        self.toolBar.addAction(self.actionL)
        self.toolBar.addAction(self.actionK)
        self.toolBar.addAction(self.actionSW)
        self.toolBar.addAction(self.actionSP)

        self.retranslateUi(MainWindow)
        self.comboBox_3.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
        self.pushButton_thickness.setText(_translate("MainWindow", "Grubość", None))
        self.pushButton_distance.setText(_translate("MainWindow", "Odległość", None))
        self.label_3.setText(_translate("MainWindow", "Idź do:", None))
        self.textEdit_km.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Ubuntu\'; font-size:11pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">0</p></body></html>", None))
        self.comboBox_3.setItemText(0, _translate("MainWindow", "mm", None))
        self.comboBox_3.setItemText(1, _translate("MainWindow", "m", None))
        self.comboBox_3.setItemText(2, _translate("MainWindow", "km", None))
        self.pushButton_go.setText(_translate("MainWindow", "Idź!", None))
        self.pushButton_3d.setText(_translate("MainWindow", "Generuj widok 3D", None))
        self.menuAbout.setTitle(_translate("MainWindow", "About", None))
        self.toolBar.setWindowTitle(_translate("MainWindow", "toolBar", None))
        self.actionOptions.setText(_translate("MainWindow", "Opcje", None))
        self.actionMove.setText(_translate("MainWindow", "M", None))
        self.actionCorrosions.setText(_translate("MainWindow", "C", None))
        self.actionReportAdd.setText(_translate("MainWindow", "R+", None))
        self.actionAutoDetect.setText(_translate("MainWindow", "A", None))
        self.actionSW.setText(_translate("MainWindow", "SW", None))
        self.actionSP.setText(_translate("MainWindow", "SP", None))
        self.actionL.setText(_translate("MainWindow", "L", None))
        self.actionReport.setText(_translate("MainWindow", "R", None))
        self.screenShoot2D.setText(_translate("MainWindow", "C2D", None))
        self.screenShoot3D.setText(_translate("MainWindow", "C3D", None))
        self.actionK.setText(_translate("MainWindow", "K", None))
        self.actionK.setToolTip(_translate("MainWindow", "K", None))
        self.actionAbout.setText(_translate("MainWindow", "About", None))
Esempio n. 25
0
    def setupUi(self, handPlotDialog):
        handPlotDialog.setObjectName("handPlotDialog")
        handPlotDialog.resize(739, 432)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            handPlotDialog.sizePolicy().hasHeightForWidth())
        handPlotDialog.setSizePolicy(sizePolicy)
        self.centralwidget = QtWidgets.QWidget(handPlotDialog)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Ignored)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        self.tabWidget.setMaximumSize(QtCore.QSize(16777215, 16000))
        self.tabWidget.setObjectName("tabWidget")
        self.tabSingle = QtWidgets.QWidget()
        self.tabSingle.setObjectName("tabSingle")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.tabSingle)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.view26 = PlotWidget(self.tabSingle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view26.sizePolicy().hasHeightForWidth())
        self.view26.setSizePolicy(sizePolicy)
        self.view26.setMinimumSize(QtCore.QSize(0, 0))
        self.view26.setObjectName("view26")
        self.gridLayout.addWidget(self.view26, 0, 0, 1, 5)
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.savePlotButton = QtWidgets.QPushButton(self.tabSingle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.savePlotButton.sizePolicy().hasHeightForWidth())
        self.savePlotButton.setSizePolicy(sizePolicy)
        self.savePlotButton.setObjectName("savePlotButton")
        self.verticalLayout.addWidget(self.savePlotButton)
        self.clearPlotButton = QtWidgets.QPushButton(self.tabSingle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.clearPlotButton.sizePolicy().hasHeightForWidth())
        self.clearPlotButton.setSizePolicy(sizePolicy)
        self.clearPlotButton.setObjectName("clearPlotButton")
        self.verticalLayout.addWidget(self.clearPlotButton)
        self.gridLayout.addLayout(self.verticalLayout, 1, 0, 1, 1)
        self.view15 = PlotWidget(self.tabSingle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view15.sizePolicy().hasHeightForWidth())
        self.view15.setSizePolicy(sizePolicy)
        self.view15.setObjectName("view15")
        self.gridLayout.addWidget(self.view15, 1, 1, 1, 1)
        self.view10 = PlotWidget(self.tabSingle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view10.sizePolicy().hasHeightForWidth())
        self.view10.setSizePolicy(sizePolicy)
        self.view10.setObjectName("view10")
        self.gridLayout.addWidget(self.view10, 1, 2, 1, 1)
        self.view5 = PlotWidget(self.tabSingle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view5.sizePolicy().hasHeightForWidth())
        self.view5.setSizePolicy(sizePolicy)
        self.view5.setObjectName("view5")
        self.gridLayout.addWidget(self.view5, 1, 3, 1, 1)
        self.view0 = PlotWidget(self.tabSingle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view0.sizePolicy().hasHeightForWidth())
        self.view0.setSizePolicy(sizePolicy)
        self.view0.setObjectName("view0")
        self.gridLayout.addWidget(self.view0, 1, 4, 1, 1)
        self.view16 = PlotWidget(self.tabSingle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view16.sizePolicy().hasHeightForWidth())
        self.view16.setSizePolicy(sizePolicy)
        self.view16.setObjectName("view16")
        self.gridLayout.addWidget(self.view16, 2, 1, 1, 1)
        self.view11 = PlotWidget(self.tabSingle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view11.sizePolicy().hasHeightForWidth())
        self.view11.setSizePolicy(sizePolicy)
        self.view11.setObjectName("view11")
        self.gridLayout.addWidget(self.view11, 2, 2, 1, 1)
        self.view6 = PlotWidget(self.tabSingle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view6.sizePolicy().hasHeightForWidth())
        self.view6.setSizePolicy(sizePolicy)
        self.view6.setObjectName("view6")
        self.gridLayout.addWidget(self.view6, 2, 3, 1, 1)
        self.view1 = PlotWidget(self.tabSingle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view1.sizePolicy().hasHeightForWidth())
        self.view1.setSizePolicy(sizePolicy)
        self.view1.setObjectName("view1")
        self.gridLayout.addWidget(self.view1, 2, 4, 1, 1)
        self.view20 = PlotWidget(self.tabSingle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view20.sizePolicy().hasHeightForWidth())
        self.view20.setSizePolicy(sizePolicy)
        self.view20.setObjectName("view20")
        self.gridLayout.addWidget(self.view20, 3, 0, 1, 1)
        self.view17 = PlotWidget(self.tabSingle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view17.sizePolicy().hasHeightForWidth())
        self.view17.setSizePolicy(sizePolicy)
        self.view17.setObjectName("view17")
        self.gridLayout.addWidget(self.view17, 3, 1, 1, 1)
        self.view12 = PlotWidget(self.tabSingle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view12.sizePolicy().hasHeightForWidth())
        self.view12.setSizePolicy(sizePolicy)
        self.view12.setObjectName("view12")
        self.gridLayout.addWidget(self.view12, 3, 2, 1, 1)
        self.view7 = PlotWidget(self.tabSingle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view7.sizePolicy().hasHeightForWidth())
        self.view7.setSizePolicy(sizePolicy)
        self.view7.setObjectName("view7")
        self.gridLayout.addWidget(self.view7, 3, 3, 1, 1)
        self.view2 = PlotWidget(self.tabSingle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view2.sizePolicy().hasHeightForWidth())
        self.view2.setSizePolicy(sizePolicy)
        self.view2.setObjectName("view2")
        self.gridLayout.addWidget(self.view2, 3, 4, 1, 1)
        self.view21 = PlotWidget(self.tabSingle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view21.sizePolicy().hasHeightForWidth())
        self.view21.setSizePolicy(sizePolicy)
        self.view21.setObjectName("view21")
        self.gridLayout.addWidget(self.view21, 4, 0, 1, 1)
        self.view18 = PlotWidget(self.tabSingle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view18.sizePolicy().hasHeightForWidth())
        self.view18.setSizePolicy(sizePolicy)
        self.view18.setObjectName("view18")
        self.gridLayout.addWidget(self.view18, 4, 1, 1, 1)
        self.view13 = PlotWidget(self.tabSingle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view13.sizePolicy().hasHeightForWidth())
        self.view13.setSizePolicy(sizePolicy)
        self.view13.setObjectName("view13")
        self.gridLayout.addWidget(self.view13, 4, 2, 1, 1)
        self.view8 = PlotWidget(self.tabSingle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view8.sizePolicy().hasHeightForWidth())
        self.view8.setSizePolicy(sizePolicy)
        self.view8.setObjectName("view8")
        self.gridLayout.addWidget(self.view8, 4, 3, 1, 1)
        self.view3 = PlotWidget(self.tabSingle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view3.sizePolicy().hasHeightForWidth())
        self.view3.setSizePolicy(sizePolicy)
        self.view3.setObjectName("view3")
        self.gridLayout.addWidget(self.view3, 4, 4, 1, 1)
        self.view22 = PlotWidget(self.tabSingle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view22.sizePolicy().hasHeightForWidth())
        self.view22.setSizePolicy(sizePolicy)
        self.view22.setObjectName("view22")
        self.gridLayout.addWidget(self.view22, 5, 0, 1, 1)
        self.view19 = PlotWidget(self.tabSingle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view19.sizePolicy().hasHeightForWidth())
        self.view19.setSizePolicy(sizePolicy)
        self.view19.setObjectName("view19")
        self.gridLayout.addWidget(self.view19, 5, 1, 1, 1)
        self.view14 = PlotWidget(self.tabSingle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view14.sizePolicy().hasHeightForWidth())
        self.view14.setSizePolicy(sizePolicy)
        self.view14.setObjectName("view14")
        self.gridLayout.addWidget(self.view14, 5, 2, 1, 1)
        self.view9 = PlotWidget(self.tabSingle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view9.sizePolicy().hasHeightForWidth())
        self.view9.setSizePolicy(sizePolicy)
        self.view9.setObjectName("view9")
        self.gridLayout.addWidget(self.view9, 5, 3, 1, 1)
        self.view4 = PlotWidget(self.tabSingle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view4.sizePolicy().hasHeightForWidth())
        self.view4.setSizePolicy(sizePolicy)
        self.view4.setObjectName("view4")
        self.gridLayout.addWidget(self.view4, 5, 4, 1, 1)
        self.view23 = PlotWidget(self.tabSingle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view23.sizePolicy().hasHeightForWidth())
        self.view23.setSizePolicy(sizePolicy)
        self.view23.setObjectName("view23")
        self.gridLayout.addWidget(self.view23, 6, 0, 1, 1)
        self.view24 = PlotWidget(self.tabSingle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view24.sizePolicy().hasHeightForWidth())
        self.view24.setSizePolicy(sizePolicy)
        self.view24.setObjectName("view24")
        self.gridLayout.addWidget(self.view24, 6, 1, 1, 1)
        self.view25 = PlotWidget(self.tabSingle)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.view25.sizePolicy().hasHeightForWidth())
        self.view25.setSizePolicy(sizePolicy)
        self.view25.setObjectName("view25")
        self.gridLayout.addWidget(self.view25, 6, 3, 1, 1)
        self.gridLayout_2.addLayout(self.gridLayout, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tabSingle, "")
        self.tab_6 = QtWidgets.QWidget()
        self.tab_6.setObjectName("tab_6")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.tab_6)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.view3D = GLViewWidget(self.tab_6)
        self.view3D.setObjectName("view3D")
        self.gridLayout_3.addWidget(self.view3D, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tab_6, "")
        self.gridLayout_5.addWidget(self.tabWidget, 0, 0, 1, 1)
        handPlotDialog.setCentralWidget(self.centralwidget)
        self.actionsaveData = QtWidgets.QAction(handPlotDialog)
        self.actionsaveData.setObjectName("actionsaveData")
        self.actionclearData = QtWidgets.QAction(handPlotDialog)
        self.actionclearData.setObjectName("actionclearData")

        self.retranslateUi(handPlotDialog)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(handPlotDialog)
    def setupUi(self, FreeIMUCal):
        FreeIMUCal.setObjectName(_fromUtf8("FreeIMUCal"))
        FreeIMUCal.resize(800, 680)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(FreeIMUCal.sizePolicy().hasHeightForWidth())
        FreeIMUCal.setSizePolicy(sizePolicy)
        FreeIMUCal.setMinimumSize(QtCore.QSize(800, 600))
        FreeIMUCal.setMaximumSize(QtCore.QSize(800, 680))
        FreeIMUCal.setDocumentMode(False)
        self.centralwidget = QtGui.QWidget(FreeIMUCal)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
        self.centralwidget.setSizePolicy(sizePolicy)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.line = QtGui.QFrame(self.centralwidget)
        self.line.setGeometry(QtCore.QRect(10, 20, 791, 16))
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setGeometry(QtCore.QRect(0, 30, 801, 631))
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.uncalibratedTab = QtGui.QWidget()
        self.uncalibratedTab.setObjectName(_fromUtf8("uncalibratedTab"))
        self.gridLayoutWidget_4 = QtGui.QWidget(self.uncalibratedTab)
        self.gridLayoutWidget_4.setGeometry(QtCore.QRect(0, 10, 791, 588))
        self.gridLayoutWidget_4.setObjectName(_fromUtf8("gridLayoutWidget_4"))
        self.gridLayout_4 = QtGui.QGridLayout(self.gridLayoutWidget_4)
        self.gridLayout_4.setSizeConstraint(QtGui.QLayout.SetMaximumSize)
        self.gridLayout_4.setMargin(0)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.gridLayout_5 = QtGui.QGridLayout()
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        self.label_2 = QtGui.QLabel(self.gridLayoutWidget_4)
        self.label_2.setAlignment(QtCore.Qt.AlignCenter)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout_5.addWidget(self.label_2, 0, 1, 1, 1)
        self.accYZ = PlotWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.accYZ.sizePolicy().hasHeightForWidth())
        self.accYZ.setSizePolicy(sizePolicy)
        self.accYZ.setObjectName(_fromUtf8("accYZ"))
        self.gridLayout_5.addWidget(self.accYZ, 1, 0, 1, 1)
        self.accZX = PlotWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.accZX.sizePolicy().hasHeightForWidth())
        self.accZX.setSizePolicy(sizePolicy)
        self.accZX.setObjectName(_fromUtf8("accZX"))
        self.gridLayout_5.addWidget(self.accZX, 1, 1, 1, 1)
        self.accXY = PlotWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.accXY.sizePolicy().hasHeightForWidth())
        self.accXY.setSizePolicy(sizePolicy)
        self.accXY.setObjectName(_fromUtf8("accXY"))
        self.gridLayout_5.addWidget(self.accXY, 0, 0, 1, 1)
        self.gridLayout_4.addLayout(self.gridLayout_5, 1, 0, 1, 1)
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setSizeConstraint(QtGui.QLayout.SetFixedSize)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.magnXY = PlotWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.magnXY.sizePolicy().hasHeightForWidth())
        self.magnXY.setSizePolicy(sizePolicy)
        self.magnXY.setObjectName(_fromUtf8("magnXY"))
        self.gridLayout_3.addWidget(self.magnXY, 0, 0, 1, 1)
        self.magnYZ = PlotWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.magnYZ.sizePolicy().hasHeightForWidth())
        self.magnYZ.setSizePolicy(sizePolicy)
        self.magnYZ.setObjectName(_fromUtf8("magnYZ"))
        self.gridLayout_3.addWidget(self.magnYZ, 1, 0, 1, 1)
        self.magnZX = PlotWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.magnZX.sizePolicy().hasHeightForWidth())
        self.magnZX.setSizePolicy(sizePolicy)
        self.magnZX.setObjectName(_fromUtf8("magnZX"))
        self.gridLayout_3.addWidget(self.magnZX, 1, 1, 1, 1)
        self.label_3 = QtGui.QLabel(self.gridLayoutWidget_4)
        self.label_3.setAlignment(QtCore.Qt.AlignCenter)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout_3.addWidget(self.label_3, 0, 1, 1, 1)
        self.gridLayout_4.addLayout(self.gridLayout_3, 1, 2, 1, 1)
        self.magn3D = GLViewWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.magn3D.sizePolicy().hasHeightForWidth())
        self.magn3D.setSizePolicy(sizePolicy)
        self.magn3D.setObjectName(_fromUtf8("magn3D"))
        self.gridLayout_4.addWidget(self.magn3D, 0, 2, 1, 1)
        self.acc3D = GLViewWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.acc3D.sizePolicy().hasHeightForWidth())
        self.acc3D.setSizePolicy(sizePolicy)
        self.acc3D.setObjectName(_fromUtf8("acc3D"))
        self.gridLayout_4.addWidget(self.acc3D, 0, 0, 1, 1)
        self.line_3 = QtGui.QFrame(self.gridLayoutWidget_4)
        self.line_3.setLineWidth(1)
        self.line_3.setFrameShape(QtGui.QFrame.VLine)
        self.line_3.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_3.setObjectName(_fromUtf8("line_3"))
        self.gridLayout_4.addWidget(self.line_3, 1, 1, 1, 1)
        self.tabWidget.addTab(self.uncalibratedTab, _fromUtf8(""))
        self.calibratedTab = QtGui.QWidget()
        self.calibratedTab.setObjectName(_fromUtf8("calibratedTab"))
        self.horizontalLayoutWidget = QtGui.QWidget(self.calibratedTab)
        self.horizontalLayoutWidget.setGeometry(QtCore.QRect(0, 380, 791, 181))
        self.horizontalLayoutWidget.setObjectName(_fromUtf8("horizontalLayoutWidget"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.horizontalLayoutWidget)
        self.horizontalLayout.setMargin(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.groupBox = QtGui.QGroupBox(self.horizontalLayoutWidget)
        self.groupBox.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.groupBox.setFlat(False)
        self.groupBox.setCheckable(False)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.layoutWidget = QtGui.QWidget(self.groupBox)
        self.layoutWidget.setGeometry(QtCore.QRect(10, 20, 381, 154))
        self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
        self.formLayout_3 = QtGui.QFormLayout(self.layoutWidget)
        self.formLayout_3.setSizeConstraint(QtGui.QLayout.SetNoConstraint)
        self.formLayout_3.setFieldGrowthPolicy(QtGui.QFormLayout.ExpandingFieldsGrow)
        self.formLayout_3.setLabelAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.formLayout_3.setMargin(0)
        self.formLayout_3.setObjectName(_fromUtf8("formLayout_3"))
        self.label_14 = QtGui.QLabel(self.layoutWidget)
        self.label_14.setObjectName(_fromUtf8("label_14"))
        self.formLayout_3.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_14)
        self.calRes_acc_OSx = QtGui.QLineEdit(self.layoutWidget)
        self.calRes_acc_OSx.setObjectName(_fromUtf8("calRes_acc_OSx"))
        self.formLayout_3.setWidget(0, QtGui.QFormLayout.FieldRole, self.calRes_acc_OSx)
        self.label_15 = QtGui.QLabel(self.layoutWidget)
        self.label_15.setObjectName(_fromUtf8("label_15"))
        self.formLayout_3.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_15)
        self.calRes_acc_OSy = QtGui.QLineEdit(self.layoutWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.calRes_acc_OSy.sizePolicy().hasHeightForWidth())
        self.calRes_acc_OSy.setSizePolicy(sizePolicy)
        self.calRes_acc_OSy.setObjectName(_fromUtf8("calRes_acc_OSy"))
        self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole, self.calRes_acc_OSy)
        self.label_16 = QtGui.QLabel(self.layoutWidget)
        self.label_16.setObjectName(_fromUtf8("label_16"))
        self.formLayout_3.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_16)
        self.calRes_acc_OSz = QtGui.QLineEdit(self.layoutWidget)
        self.calRes_acc_OSz.setObjectName(_fromUtf8("calRes_acc_OSz"))
        self.formLayout_3.setWidget(2, QtGui.QFormLayout.FieldRole, self.calRes_acc_OSz)
        self.label_17 = QtGui.QLabel(self.layoutWidget)
        self.label_17.setObjectName(_fromUtf8("label_17"))
        self.formLayout_3.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_17)
        self.calRes_acc_SCx = QtGui.QLineEdit(self.layoutWidget)
        self.calRes_acc_SCx.setObjectName(_fromUtf8("calRes_acc_SCx"))
        self.formLayout_3.setWidget(3, QtGui.QFormLayout.FieldRole, self.calRes_acc_SCx)
        self.label_18 = QtGui.QLabel(self.layoutWidget)
        self.label_18.setObjectName(_fromUtf8("label_18"))
        self.formLayout_3.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_18)
        self.calRes_acc_SCy = QtGui.QLineEdit(self.layoutWidget)
        self.calRes_acc_SCy.setObjectName(_fromUtf8("calRes_acc_SCy"))
        self.formLayout_3.setWidget(4, QtGui.QFormLayout.FieldRole, self.calRes_acc_SCy)
        self.label_19 = QtGui.QLabel(self.layoutWidget)
        self.label_19.setObjectName(_fromUtf8("label_19"))
        self.formLayout_3.setWidget(5, QtGui.QFormLayout.LabelRole, self.label_19)
        self.calRes_acc_SCz = QtGui.QLineEdit(self.layoutWidget)
        self.calRes_acc_SCz.setObjectName(_fromUtf8("calRes_acc_SCz"))
        self.formLayout_3.setWidget(5, QtGui.QFormLayout.FieldRole, self.calRes_acc_SCz)
        self.horizontalLayout.addWidget(self.groupBox)
        self.groupBox_2 = QtGui.QGroupBox(self.horizontalLayoutWidget)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.layoutWidget_2 = QtGui.QWidget(self.groupBox_2)
        self.layoutWidget_2.setGeometry(QtCore.QRect(10, 20, 381, 154))
        self.layoutWidget_2.setObjectName(_fromUtf8("layoutWidget_2"))
        self.formLayout_5 = QtGui.QFormLayout(self.layoutWidget_2)
        self.formLayout_5.setSizeConstraint(QtGui.QLayout.SetNoConstraint)
        self.formLayout_5.setFieldGrowthPolicy(QtGui.QFormLayout.ExpandingFieldsGrow)
        self.formLayout_5.setLabelAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.formLayout_5.setMargin(0)
        self.formLayout_5.setObjectName(_fromUtf8("formLayout_5"))
        self.label_27 = QtGui.QLabel(self.layoutWidget_2)
        self.label_27.setObjectName(_fromUtf8("label_27"))
        self.formLayout_5.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_27)
        self.calRes_magn_OSx = QtGui.QLineEdit(self.layoutWidget_2)
        self.calRes_magn_OSx.setObjectName(_fromUtf8("calRes_magn_OSx"))
        self.formLayout_5.setWidget(0, QtGui.QFormLayout.FieldRole, self.calRes_magn_OSx)
        self.label_28 = QtGui.QLabel(self.layoutWidget_2)
        self.label_28.setObjectName(_fromUtf8("label_28"))
        self.formLayout_5.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_28)
        self.calRes_magn_OSy = QtGui.QLineEdit(self.layoutWidget_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.calRes_magn_OSy.sizePolicy().hasHeightForWidth())
        self.calRes_magn_OSy.setSizePolicy(sizePolicy)
        self.calRes_magn_OSy.setObjectName(_fromUtf8("calRes_magn_OSy"))
        self.formLayout_5.setWidget(1, QtGui.QFormLayout.FieldRole, self.calRes_magn_OSy)
        self.label_29 = QtGui.QLabel(self.layoutWidget_2)
        self.label_29.setObjectName(_fromUtf8("label_29"))
        self.formLayout_5.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_29)
        self.calRes_magn_OSz = QtGui.QLineEdit(self.layoutWidget_2)
        self.calRes_magn_OSz.setObjectName(_fromUtf8("calRes_magn_OSz"))
        self.formLayout_5.setWidget(2, QtGui.QFormLayout.FieldRole, self.calRes_magn_OSz)
        self.label_30 = QtGui.QLabel(self.layoutWidget_2)
        self.label_30.setObjectName(_fromUtf8("label_30"))
        self.formLayout_5.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_30)
        self.calRes_magn_SCx = QtGui.QLineEdit(self.layoutWidget_2)
        self.calRes_magn_SCx.setObjectName(_fromUtf8("calRes_magn_SCx"))
        self.formLayout_5.setWidget(3, QtGui.QFormLayout.FieldRole, self.calRes_magn_SCx)
        self.label_31 = QtGui.QLabel(self.layoutWidget_2)
        self.label_31.setObjectName(_fromUtf8("label_31"))
        self.formLayout_5.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_31)
        self.calRes_magn_SCy = QtGui.QLineEdit(self.layoutWidget_2)
        self.calRes_magn_SCy.setObjectName(_fromUtf8("calRes_magn_SCy"))
        self.formLayout_5.setWidget(4, QtGui.QFormLayout.FieldRole, self.calRes_magn_SCy)
        self.label_32 = QtGui.QLabel(self.layoutWidget_2)
        self.label_32.setObjectName(_fromUtf8("label_32"))
        self.formLayout_5.setWidget(5, QtGui.QFormLayout.LabelRole, self.label_32)
        self.calRes_magn_SCz = QtGui.QLineEdit(self.layoutWidget_2)
        self.calRes_magn_SCz.setObjectName(_fromUtf8("calRes_magn_SCz"))
        self.formLayout_5.setWidget(5, QtGui.QFormLayout.FieldRole, self.calRes_magn_SCz)
        self.horizontalLayout.addWidget(self.groupBox_2)
        self.horizontalLayoutWidget_2 = QtGui.QWidget(self.calibratedTab)
        self.horizontalLayoutWidget_2.setGeometry(QtCore.QRect(488, 560, 301, 31))
        self.horizontalLayoutWidget_2.setObjectName(_fromUtf8("horizontalLayoutWidget_2"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.horizontalLayoutWidget_2)
        self.horizontalLayout_2.setMargin(0)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.saveCalibrationEEPROMButton = QtGui.QPushButton(self.horizontalLayoutWidget_2)
        self.saveCalibrationEEPROMButton.setEnabled(False)
        self.saveCalibrationEEPROMButton.setObjectName(_fromUtf8("saveCalibrationEEPROMButton"))
        self.horizontalLayout_2.addWidget(self.saveCalibrationEEPROMButton)
        self.saveCalibrationHeaderButton = QtGui.QPushButton(self.horizontalLayoutWidget_2)
        self.saveCalibrationHeaderButton.setEnabled(False)
        self.saveCalibrationHeaderButton.setObjectName(_fromUtf8("saveCalibrationHeaderButton"))
        self.horizontalLayout_2.addWidget(self.saveCalibrationHeaderButton)
        self.horizontalLayoutWidget_3 = QtGui.QWidget(self.calibratedTab)
        self.horizontalLayoutWidget_3.setGeometry(QtCore.QRect(0, 0, 791, 381))
        self.horizontalLayoutWidget_3.setObjectName(_fromUtf8("horizontalLayoutWidget_3"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.horizontalLayoutWidget_3)
        self.horizontalLayout_3.setMargin(0)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.tabWidget_2 = QtGui.QTabWidget(self.horizontalLayoutWidget_3)
        self.tabWidget_2.setTabPosition(QtGui.QTabWidget.South)
        self.tabWidget_2.setTabShape(QtGui.QTabWidget.Rounded)
        self.tabWidget_2.setUsesScrollButtons(True)
        self.tabWidget_2.setDocumentMode(False)
        self.tabWidget_2.setTabsClosable(False)
        self.tabWidget_2.setMovable(False)
        self.tabWidget_2.setObjectName(_fromUtf8("tabWidget_2"))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.accXY_cal = PlotWidget(self.tab)
        self.accXY_cal.setGeometry(QtCore.QRect(0, 0, 781, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.accXY_cal.sizePolicy().hasHeightForWidth())
        self.accXY_cal.setSizePolicy(sizePolicy)
        self.accXY_cal.setObjectName(_fromUtf8("accXY_cal"))
        self.tabWidget_2.addTab(self.tab, _fromUtf8(""))
        self.tab_4 = QtGui.QWidget()
        self.tab_4.setObjectName(_fromUtf8("tab_4"))
        self.accYZ_cal = PlotWidget(self.tab_4)
        self.accYZ_cal.setGeometry(QtCore.QRect(0, 0, 781, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.accYZ_cal.sizePolicy().hasHeightForWidth())
        self.accYZ_cal.setSizePolicy(sizePolicy)
        self.accYZ_cal.setObjectName(_fromUtf8("accYZ_cal"))
        self.tabWidget_2.addTab(self.tab_4, _fromUtf8(""))
        self.tab_3 = QtGui.QWidget()
        self.tab_3.setObjectName(_fromUtf8("tab_3"))
        self.accZX_cal = PlotWidget(self.tab_3)
        self.accZX_cal.setGeometry(QtCore.QRect(0, 0, 781, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.accZX_cal.sizePolicy().hasHeightForWidth())
        self.accZX_cal.setSizePolicy(sizePolicy)
        self.accZX_cal.setObjectName(_fromUtf8("accZX_cal"))
        self.tabWidget_2.addTab(self.tab_3, _fromUtf8(""))
        self.tab_7 = QtGui.QWidget()
        self.tab_7.setObjectName(_fromUtf8("tab_7"))
        self.acc3D_cal = GLViewWidget(self.tab_7)
        self.acc3D_cal.setGeometry(QtCore.QRect(0, 0, 389, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.acc3D_cal.sizePolicy().hasHeightForWidth())
        self.acc3D_cal.setSizePolicy(sizePolicy)
        self.acc3D_cal.setObjectName(_fromUtf8("acc3D_cal"))
        self.tabWidget_2.addTab(self.tab_7, _fromUtf8(""))
        self.horizontalLayout_3.addWidget(self.tabWidget_2)
        self.tabWidget_3 = QtGui.QTabWidget(self.horizontalLayoutWidget_3)
        self.tabWidget_3.setTabPosition(QtGui.QTabWidget.South)
        self.tabWidget_3.setTabShape(QtGui.QTabWidget.Rounded)
        self.tabWidget_3.setUsesScrollButtons(True)
        self.tabWidget_3.setDocumentMode(False)
        self.tabWidget_3.setTabsClosable(False)
        self.tabWidget_3.setMovable(False)
        self.tabWidget_3.setObjectName(_fromUtf8("tabWidget_3"))
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName(_fromUtf8("tab_2"))
        self.magnXY_cal = PlotWidget(self.tab_2)
        self.magnXY_cal.setGeometry(QtCore.QRect(0, 0, 781, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.magnXY_cal.sizePolicy().hasHeightForWidth())
        self.magnXY_cal.setSizePolicy(sizePolicy)
        self.magnXY_cal.setObjectName(_fromUtf8("magnXY_cal"))
        self.tabWidget_3.addTab(self.tab_2, _fromUtf8(""))
        self.tab_5 = QtGui.QWidget()
        self.tab_5.setObjectName(_fromUtf8("tab_5"))
        self.magnYZ_cal = PlotWidget(self.tab_5)
        self.magnYZ_cal.setGeometry(QtCore.QRect(0, 0, 781, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.magnYZ_cal.sizePolicy().hasHeightForWidth())
        self.magnYZ_cal.setSizePolicy(sizePolicy)
        self.magnYZ_cal.setObjectName(_fromUtf8("magnYZ_cal"))
        self.tabWidget_3.addTab(self.tab_5, _fromUtf8(""))
        self.tab_6 = QtGui.QWidget()
        self.tab_6.setObjectName(_fromUtf8("tab_6"))
        self.magnZX_cal = PlotWidget(self.tab_6)
        self.magnZX_cal.setGeometry(QtCore.QRect(0, 0, 781, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.magnZX_cal.sizePolicy().hasHeightForWidth())
        self.magnZX_cal.setSizePolicy(sizePolicy)
        self.magnZX_cal.setObjectName(_fromUtf8("magnZX_cal"))
        self.tabWidget_3.addTab(self.tab_6, _fromUtf8(""))
        self.tab_8 = QtGui.QWidget()
        self.tab_8.setObjectName(_fromUtf8("tab_8"))
        self.magn3D_cal = GLViewWidget(self.tab_8)
        self.magn3D_cal.setGeometry(QtCore.QRect(0, 0, 389, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.magn3D_cal.sizePolicy().hasHeightForWidth())
        self.magn3D_cal.setSizePolicy(sizePolicy)
        self.magn3D_cal.setObjectName(_fromUtf8("magn3D_cal"))
        self.tabWidget_3.addTab(self.tab_8, _fromUtf8(""))
        self.horizontalLayout_3.addWidget(self.tabWidget_3)
        self.horizontalLayoutWidget_4 = QtGui.QWidget(self.calibratedTab)
        self.horizontalLayoutWidget_4.setGeometry(QtCore.QRect(0, 560, 161, 31))
        self.horizontalLayoutWidget_4.setObjectName(_fromUtf8("horizontalLayoutWidget_4"))
        self.horizontalLayout_4 = QtGui.QHBoxLayout(self.horizontalLayoutWidget_4)
        self.horizontalLayout_4.setMargin(0)
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.clearCalibrationEEPROMButton = QtGui.QPushButton(self.horizontalLayoutWidget_4)
        self.clearCalibrationEEPROMButton.setEnabled(False)
        self.clearCalibrationEEPROMButton.setObjectName(_fromUtf8("clearCalibrationEEPROMButton"))
        self.horizontalLayout_4.addWidget(self.clearCalibrationEEPROMButton)
        self.tabWidget.addTab(self.calibratedTab, _fromUtf8(""))
        self.tab_9 = QtGui.QWidget()
        self.tab_9.setObjectName(_fromUtf8("tab_9"))
        self.label_4 = QtGui.QLabel(self.tab_9)
        self.label_4.setGeometry(QtCore.QRect(290, 270, 261, 16))
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.tabWidget.addTab(self.tab_9, _fromUtf8(""))
        self.layoutWidget1 = QtGui.QWidget(self.centralwidget)
        self.layoutWidget1.setGeometry(QtCore.QRect(4, 1, 813, 25))
        self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1"))
        self.gridLayout = QtGui.QGridLayout(self.layoutWidget1)
        self.gridLayout.setMargin(0)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label = QtGui.QLabel(self.layoutWidget1)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.serialPortEdit = QtGui.QLineEdit(self.layoutWidget1)
        self.serialPortEdit.setObjectName(_fromUtf8("serialPortEdit"))
        self.gridLayout.addWidget(self.serialPortEdit, 0, 1, 1, 1)
        self.serialProtocol = QtGui.QComboBox(self.layoutWidget1)
        self.serialProtocol.setEnabled(True)
        self.serialProtocol.setObjectName(_fromUtf8("serialProtocol"))
        self.serialProtocol.addItem(_fromUtf8(""))
        self.serialProtocol.addItem(_fromUtf8(""))
        self.gridLayout.addWidget(self.serialProtocol, 0, 2, 1, 1)
        self.connectButton = QtGui.QPushButton(self.layoutWidget1)
        self.connectButton.setObjectName(_fromUtf8("connectButton"))
        self.gridLayout.addWidget(self.connectButton, 0, 3, 1, 1)
        self.cbSampleType = QtGui.QComboBox(self.layoutWidget1)
        self.cbSampleType.setObjectName(_fromUtf8("cbSampleType"))
        self.cbSampleType.addItem(_fromUtf8(""))
        self.cbSampleType.addItem(_fromUtf8(""))
        self.cbSampleType.addItem(_fromUtf8(""))
        self.cbSampleType.addItem(_fromUtf8(""))
        self.gridLayout.addWidget(self.cbSampleType, 0, 4, 1, 1)
        self.samplingToggleButton = QtGui.QPushButton(self.layoutWidget1)
        self.samplingToggleButton.setEnabled(False)
        self.samplingToggleButton.setAutoDefault(False)
        self.samplingToggleButton.setDefault(False)
        self.samplingToggleButton.setFlat(False)
        self.samplingToggleButton.setObjectName(_fromUtf8("samplingToggleButton"))
        self.gridLayout.addWidget(self.samplingToggleButton, 0, 5, 1, 1)
        self.calAlgorithmComboBox = QtGui.QComboBox(self.layoutWidget1)
        self.calAlgorithmComboBox.setEnabled(False)
        self.calAlgorithmComboBox.setObjectName(_fromUtf8("calAlgorithmComboBox"))
        self.calAlgorithmComboBox.addItem(_fromUtf8(""))
        self.gridLayout.addWidget(self.calAlgorithmComboBox, 0, 6, 1, 1)
        self.calibrateButton = QtGui.QPushButton(self.layoutWidget1)
        self.calibrateButton.setEnabled(False)
        self.calibrateButton.setObjectName(_fromUtf8("calibrateButton"))
        self.gridLayout.addWidget(self.calibrateButton, 0, 7, 1, 1)
        self.plotButton = QtGui.QPushButton(self.layoutWidget1)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.plotButton.sizePolicy().hasHeightForWidth())
        self.plotButton.setSizePolicy(sizePolicy)
        self.plotButton.setObjectName(_fromUtf8("plotButton"))
        self.gridLayout.addWidget(self.plotButton, 0, 8, 1, 1)
        FreeIMUCal.setCentralWidget(self.centralwidget)
        self.statusbar = QtGui.QStatusBar(FreeIMUCal)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        FreeIMUCal.setStatusBar(self.statusbar)

        self.retranslateUi(FreeIMUCal)
        self.tabWidget.setCurrentIndex(0)
        self.tabWidget_2.setCurrentIndex(0)
        self.tabWidget_3.setCurrentIndex(0)
        self.cbSampleType.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(FreeIMUCal)
class Ui_FreeIMUCal(object):
    def setupUi(self, FreeIMUCal):
        FreeIMUCal.setObjectName(_fromUtf8("FreeIMUCal"))
        FreeIMUCal.resize(800, 680)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(FreeIMUCal.sizePolicy().hasHeightForWidth())
        FreeIMUCal.setSizePolicy(sizePolicy)
        FreeIMUCal.setMinimumSize(QtCore.QSize(800, 600))
        FreeIMUCal.setMaximumSize(QtCore.QSize(800, 680))
        FreeIMUCal.setDocumentMode(False)
        self.centralwidget = QtGui.QWidget(FreeIMUCal)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
        self.centralwidget.setSizePolicy(sizePolicy)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.line = QtGui.QFrame(self.centralwidget)
        self.line.setGeometry(QtCore.QRect(10, 20, 791, 16))
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setGeometry(QtCore.QRect(0, 30, 801, 631))
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.uncalibratedTab = QtGui.QWidget()
        self.uncalibratedTab.setObjectName(_fromUtf8("uncalibratedTab"))
        self.gridLayoutWidget_4 = QtGui.QWidget(self.uncalibratedTab)
        self.gridLayoutWidget_4.setGeometry(QtCore.QRect(0, 10, 791, 588))
        self.gridLayoutWidget_4.setObjectName(_fromUtf8("gridLayoutWidget_4"))
        self.gridLayout_4 = QtGui.QGridLayout(self.gridLayoutWidget_4)
        self.gridLayout_4.setSizeConstraint(QtGui.QLayout.SetMaximumSize)
        self.gridLayout_4.setMargin(0)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.gridLayout_5 = QtGui.QGridLayout()
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        self.label_2 = QtGui.QLabel(self.gridLayoutWidget_4)
        self.label_2.setAlignment(QtCore.Qt.AlignCenter)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout_5.addWidget(self.label_2, 0, 1, 1, 1)
        self.accYZ = PlotWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.accYZ.sizePolicy().hasHeightForWidth())
        self.accYZ.setSizePolicy(sizePolicy)
        self.accYZ.setObjectName(_fromUtf8("accYZ"))
        self.gridLayout_5.addWidget(self.accYZ, 1, 0, 1, 1)
        self.accZX = PlotWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.accZX.sizePolicy().hasHeightForWidth())
        self.accZX.setSizePolicy(sizePolicy)
        self.accZX.setObjectName(_fromUtf8("accZX"))
        self.gridLayout_5.addWidget(self.accZX, 1, 1, 1, 1)
        self.accXY = PlotWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.accXY.sizePolicy().hasHeightForWidth())
        self.accXY.setSizePolicy(sizePolicy)
        self.accXY.setObjectName(_fromUtf8("accXY"))
        self.gridLayout_5.addWidget(self.accXY, 0, 0, 1, 1)
        self.gridLayout_4.addLayout(self.gridLayout_5, 1, 0, 1, 1)
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setSizeConstraint(QtGui.QLayout.SetFixedSize)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.magnXY = PlotWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.magnXY.sizePolicy().hasHeightForWidth())
        self.magnXY.setSizePolicy(sizePolicy)
        self.magnXY.setObjectName(_fromUtf8("magnXY"))
        self.gridLayout_3.addWidget(self.magnXY, 0, 0, 1, 1)
        self.magnYZ = PlotWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.magnYZ.sizePolicy().hasHeightForWidth())
        self.magnYZ.setSizePolicy(sizePolicy)
        self.magnYZ.setObjectName(_fromUtf8("magnYZ"))
        self.gridLayout_3.addWidget(self.magnYZ, 1, 0, 1, 1)
        self.magnZX = PlotWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.magnZX.sizePolicy().hasHeightForWidth())
        self.magnZX.setSizePolicy(sizePolicy)
        self.magnZX.setObjectName(_fromUtf8("magnZX"))
        self.gridLayout_3.addWidget(self.magnZX, 1, 1, 1, 1)
        self.label_3 = QtGui.QLabel(self.gridLayoutWidget_4)
        self.label_3.setAlignment(QtCore.Qt.AlignCenter)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout_3.addWidget(self.label_3, 0, 1, 1, 1)
        self.gridLayout_4.addLayout(self.gridLayout_3, 1, 2, 1, 1)
        self.magn3D = GLViewWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.magn3D.sizePolicy().hasHeightForWidth())
        self.magn3D.setSizePolicy(sizePolicy)
        self.magn3D.setObjectName(_fromUtf8("magn3D"))
        self.gridLayout_4.addWidget(self.magn3D, 0, 2, 1, 1)
        self.acc3D = GLViewWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.acc3D.sizePolicy().hasHeightForWidth())
        self.acc3D.setSizePolicy(sizePolicy)
        self.acc3D.setObjectName(_fromUtf8("acc3D"))
        self.gridLayout_4.addWidget(self.acc3D, 0, 0, 1, 1)
        self.line_3 = QtGui.QFrame(self.gridLayoutWidget_4)
        self.line_3.setLineWidth(1)
        self.line_3.setFrameShape(QtGui.QFrame.VLine)
        self.line_3.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_3.setObjectName(_fromUtf8("line_3"))
        self.gridLayout_4.addWidget(self.line_3, 1, 1, 1, 1)
        self.tabWidget.addTab(self.uncalibratedTab, _fromUtf8(""))
        self.calibratedTab = QtGui.QWidget()
        self.calibratedTab.setObjectName(_fromUtf8("calibratedTab"))
        self.horizontalLayoutWidget = QtGui.QWidget(self.calibratedTab)
        self.horizontalLayoutWidget.setGeometry(QtCore.QRect(0, 380, 791, 181))
        self.horizontalLayoutWidget.setObjectName(_fromUtf8("horizontalLayoutWidget"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.horizontalLayoutWidget)
        self.horizontalLayout.setMargin(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.groupBox = QtGui.QGroupBox(self.horizontalLayoutWidget)
        self.groupBox.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.groupBox.setFlat(False)
        self.groupBox.setCheckable(False)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.layoutWidget = QtGui.QWidget(self.groupBox)
        self.layoutWidget.setGeometry(QtCore.QRect(10, 20, 381, 154))
        self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
        self.formLayout_3 = QtGui.QFormLayout(self.layoutWidget)
        self.formLayout_3.setSizeConstraint(QtGui.QLayout.SetNoConstraint)
        self.formLayout_3.setFieldGrowthPolicy(QtGui.QFormLayout.ExpandingFieldsGrow)
        self.formLayout_3.setLabelAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.formLayout_3.setMargin(0)
        self.formLayout_3.setObjectName(_fromUtf8("formLayout_3"))
        self.label_14 = QtGui.QLabel(self.layoutWidget)
        self.label_14.setObjectName(_fromUtf8("label_14"))
        self.formLayout_3.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_14)
        self.calRes_acc_OSx = QtGui.QLineEdit(self.layoutWidget)
        self.calRes_acc_OSx.setObjectName(_fromUtf8("calRes_acc_OSx"))
        self.formLayout_3.setWidget(0, QtGui.QFormLayout.FieldRole, self.calRes_acc_OSx)
        self.label_15 = QtGui.QLabel(self.layoutWidget)
        self.label_15.setObjectName(_fromUtf8("label_15"))
        self.formLayout_3.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_15)
        self.calRes_acc_OSy = QtGui.QLineEdit(self.layoutWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.calRes_acc_OSy.sizePolicy().hasHeightForWidth())
        self.calRes_acc_OSy.setSizePolicy(sizePolicy)
        self.calRes_acc_OSy.setObjectName(_fromUtf8("calRes_acc_OSy"))
        self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole, self.calRes_acc_OSy)
        self.label_16 = QtGui.QLabel(self.layoutWidget)
        self.label_16.setObjectName(_fromUtf8("label_16"))
        self.formLayout_3.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_16)
        self.calRes_acc_OSz = QtGui.QLineEdit(self.layoutWidget)
        self.calRes_acc_OSz.setObjectName(_fromUtf8("calRes_acc_OSz"))
        self.formLayout_3.setWidget(2, QtGui.QFormLayout.FieldRole, self.calRes_acc_OSz)
        self.label_17 = QtGui.QLabel(self.layoutWidget)
        self.label_17.setObjectName(_fromUtf8("label_17"))
        self.formLayout_3.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_17)
        self.calRes_acc_SCx = QtGui.QLineEdit(self.layoutWidget)
        self.calRes_acc_SCx.setObjectName(_fromUtf8("calRes_acc_SCx"))
        self.formLayout_3.setWidget(3, QtGui.QFormLayout.FieldRole, self.calRes_acc_SCx)
        self.label_18 = QtGui.QLabel(self.layoutWidget)
        self.label_18.setObjectName(_fromUtf8("label_18"))
        self.formLayout_3.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_18)
        self.calRes_acc_SCy = QtGui.QLineEdit(self.layoutWidget)
        self.calRes_acc_SCy.setObjectName(_fromUtf8("calRes_acc_SCy"))
        self.formLayout_3.setWidget(4, QtGui.QFormLayout.FieldRole, self.calRes_acc_SCy)
        self.label_19 = QtGui.QLabel(self.layoutWidget)
        self.label_19.setObjectName(_fromUtf8("label_19"))
        self.formLayout_3.setWidget(5, QtGui.QFormLayout.LabelRole, self.label_19)
        self.calRes_acc_SCz = QtGui.QLineEdit(self.layoutWidget)
        self.calRes_acc_SCz.setObjectName(_fromUtf8("calRes_acc_SCz"))
        self.formLayout_3.setWidget(5, QtGui.QFormLayout.FieldRole, self.calRes_acc_SCz)
        self.horizontalLayout.addWidget(self.groupBox)
        self.groupBox_2 = QtGui.QGroupBox(self.horizontalLayoutWidget)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.layoutWidget_2 = QtGui.QWidget(self.groupBox_2)
        self.layoutWidget_2.setGeometry(QtCore.QRect(10, 20, 381, 154))
        self.layoutWidget_2.setObjectName(_fromUtf8("layoutWidget_2"))
        self.formLayout_5 = QtGui.QFormLayout(self.layoutWidget_2)
        self.formLayout_5.setSizeConstraint(QtGui.QLayout.SetNoConstraint)
        self.formLayout_5.setFieldGrowthPolicy(QtGui.QFormLayout.ExpandingFieldsGrow)
        self.formLayout_5.setLabelAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.formLayout_5.setMargin(0)
        self.formLayout_5.setObjectName(_fromUtf8("formLayout_5"))
        self.label_27 = QtGui.QLabel(self.layoutWidget_2)
        self.label_27.setObjectName(_fromUtf8("label_27"))
        self.formLayout_5.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_27)
        self.calRes_magn_OSx = QtGui.QLineEdit(self.layoutWidget_2)
        self.calRes_magn_OSx.setObjectName(_fromUtf8("calRes_magn_OSx"))
        self.formLayout_5.setWidget(0, QtGui.QFormLayout.FieldRole, self.calRes_magn_OSx)
        self.label_28 = QtGui.QLabel(self.layoutWidget_2)
        self.label_28.setObjectName(_fromUtf8("label_28"))
        self.formLayout_5.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_28)
        self.calRes_magn_OSy = QtGui.QLineEdit(self.layoutWidget_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.calRes_magn_OSy.sizePolicy().hasHeightForWidth())
        self.calRes_magn_OSy.setSizePolicy(sizePolicy)
        self.calRes_magn_OSy.setObjectName(_fromUtf8("calRes_magn_OSy"))
        self.formLayout_5.setWidget(1, QtGui.QFormLayout.FieldRole, self.calRes_magn_OSy)
        self.label_29 = QtGui.QLabel(self.layoutWidget_2)
        self.label_29.setObjectName(_fromUtf8("label_29"))
        self.formLayout_5.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_29)
        self.calRes_magn_OSz = QtGui.QLineEdit(self.layoutWidget_2)
        self.calRes_magn_OSz.setObjectName(_fromUtf8("calRes_magn_OSz"))
        self.formLayout_5.setWidget(2, QtGui.QFormLayout.FieldRole, self.calRes_magn_OSz)
        self.label_30 = QtGui.QLabel(self.layoutWidget_2)
        self.label_30.setObjectName(_fromUtf8("label_30"))
        self.formLayout_5.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_30)
        self.calRes_magn_SCx = QtGui.QLineEdit(self.layoutWidget_2)
        self.calRes_magn_SCx.setObjectName(_fromUtf8("calRes_magn_SCx"))
        self.formLayout_5.setWidget(3, QtGui.QFormLayout.FieldRole, self.calRes_magn_SCx)
        self.label_31 = QtGui.QLabel(self.layoutWidget_2)
        self.label_31.setObjectName(_fromUtf8("label_31"))
        self.formLayout_5.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_31)
        self.calRes_magn_SCy = QtGui.QLineEdit(self.layoutWidget_2)
        self.calRes_magn_SCy.setObjectName(_fromUtf8("calRes_magn_SCy"))
        self.formLayout_5.setWidget(4, QtGui.QFormLayout.FieldRole, self.calRes_magn_SCy)
        self.label_32 = QtGui.QLabel(self.layoutWidget_2)
        self.label_32.setObjectName(_fromUtf8("label_32"))
        self.formLayout_5.setWidget(5, QtGui.QFormLayout.LabelRole, self.label_32)
        self.calRes_magn_SCz = QtGui.QLineEdit(self.layoutWidget_2)
        self.calRes_magn_SCz.setObjectName(_fromUtf8("calRes_magn_SCz"))
        self.formLayout_5.setWidget(5, QtGui.QFormLayout.FieldRole, self.calRes_magn_SCz)
        self.horizontalLayout.addWidget(self.groupBox_2)
        self.horizontalLayoutWidget_2 = QtGui.QWidget(self.calibratedTab)
        self.horizontalLayoutWidget_2.setGeometry(QtCore.QRect(488, 560, 301, 31))
        self.horizontalLayoutWidget_2.setObjectName(_fromUtf8("horizontalLayoutWidget_2"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.horizontalLayoutWidget_2)
        self.horizontalLayout_2.setMargin(0)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.saveCalibrationEEPROMButton = QtGui.QPushButton(self.horizontalLayoutWidget_2)
        self.saveCalibrationEEPROMButton.setEnabled(False)
        self.saveCalibrationEEPROMButton.setObjectName(_fromUtf8("saveCalibrationEEPROMButton"))
        self.horizontalLayout_2.addWidget(self.saveCalibrationEEPROMButton)
        self.saveCalibrationHeaderButton = QtGui.QPushButton(self.horizontalLayoutWidget_2)
        self.saveCalibrationHeaderButton.setEnabled(False)
        self.saveCalibrationHeaderButton.setObjectName(_fromUtf8("saveCalibrationHeaderButton"))
        self.horizontalLayout_2.addWidget(self.saveCalibrationHeaderButton)
        self.horizontalLayoutWidget_3 = QtGui.QWidget(self.calibratedTab)
        self.horizontalLayoutWidget_3.setGeometry(QtCore.QRect(0, 0, 791, 381))
        self.horizontalLayoutWidget_3.setObjectName(_fromUtf8("horizontalLayoutWidget_3"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.horizontalLayoutWidget_3)
        self.horizontalLayout_3.setMargin(0)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.tabWidget_2 = QtGui.QTabWidget(self.horizontalLayoutWidget_3)
        self.tabWidget_2.setTabPosition(QtGui.QTabWidget.South)
        self.tabWidget_2.setTabShape(QtGui.QTabWidget.Rounded)
        self.tabWidget_2.setUsesScrollButtons(True)
        self.tabWidget_2.setDocumentMode(False)
        self.tabWidget_2.setTabsClosable(False)
        self.tabWidget_2.setMovable(False)
        self.tabWidget_2.setObjectName(_fromUtf8("tabWidget_2"))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.accXY_cal = PlotWidget(self.tab)
        self.accXY_cal.setGeometry(QtCore.QRect(0, 0, 781, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.accXY_cal.sizePolicy().hasHeightForWidth())
        self.accXY_cal.setSizePolicy(sizePolicy)
        self.accXY_cal.setObjectName(_fromUtf8("accXY_cal"))
        self.tabWidget_2.addTab(self.tab, _fromUtf8(""))
        self.tab_4 = QtGui.QWidget()
        self.tab_4.setObjectName(_fromUtf8("tab_4"))
        self.accYZ_cal = PlotWidget(self.tab_4)
        self.accYZ_cal.setGeometry(QtCore.QRect(0, 0, 781, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.accYZ_cal.sizePolicy().hasHeightForWidth())
        self.accYZ_cal.setSizePolicy(sizePolicy)
        self.accYZ_cal.setObjectName(_fromUtf8("accYZ_cal"))
        self.tabWidget_2.addTab(self.tab_4, _fromUtf8(""))
        self.tab_3 = QtGui.QWidget()
        self.tab_3.setObjectName(_fromUtf8("tab_3"))
        self.accZX_cal = PlotWidget(self.tab_3)
        self.accZX_cal.setGeometry(QtCore.QRect(0, 0, 781, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.accZX_cal.sizePolicy().hasHeightForWidth())
        self.accZX_cal.setSizePolicy(sizePolicy)
        self.accZX_cal.setObjectName(_fromUtf8("accZX_cal"))
        self.tabWidget_2.addTab(self.tab_3, _fromUtf8(""))
        self.tab_7 = QtGui.QWidget()
        self.tab_7.setObjectName(_fromUtf8("tab_7"))
        self.acc3D_cal = GLViewWidget(self.tab_7)
        self.acc3D_cal.setGeometry(QtCore.QRect(0, 0, 389, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.acc3D_cal.sizePolicy().hasHeightForWidth())
        self.acc3D_cal.setSizePolicy(sizePolicy)
        self.acc3D_cal.setObjectName(_fromUtf8("acc3D_cal"))
        self.tabWidget_2.addTab(self.tab_7, _fromUtf8(""))
        self.horizontalLayout_3.addWidget(self.tabWidget_2)
        self.tabWidget_3 = QtGui.QTabWidget(self.horizontalLayoutWidget_3)
        self.tabWidget_3.setTabPosition(QtGui.QTabWidget.South)
        self.tabWidget_3.setTabShape(QtGui.QTabWidget.Rounded)
        self.tabWidget_3.setUsesScrollButtons(True)
        self.tabWidget_3.setDocumentMode(False)
        self.tabWidget_3.setTabsClosable(False)
        self.tabWidget_3.setMovable(False)
        self.tabWidget_3.setObjectName(_fromUtf8("tabWidget_3"))
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName(_fromUtf8("tab_2"))
        self.magnXY_cal = PlotWidget(self.tab_2)
        self.magnXY_cal.setGeometry(QtCore.QRect(0, 0, 781, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.magnXY_cal.sizePolicy().hasHeightForWidth())
        self.magnXY_cal.setSizePolicy(sizePolicy)
        self.magnXY_cal.setObjectName(_fromUtf8("magnXY_cal"))
        self.tabWidget_3.addTab(self.tab_2, _fromUtf8(""))
        self.tab_5 = QtGui.QWidget()
        self.tab_5.setObjectName(_fromUtf8("tab_5"))
        self.magnYZ_cal = PlotWidget(self.tab_5)
        self.magnYZ_cal.setGeometry(QtCore.QRect(0, 0, 781, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.magnYZ_cal.sizePolicy().hasHeightForWidth())
        self.magnYZ_cal.setSizePolicy(sizePolicy)
        self.magnYZ_cal.setObjectName(_fromUtf8("magnYZ_cal"))
        self.tabWidget_3.addTab(self.tab_5, _fromUtf8(""))
        self.tab_6 = QtGui.QWidget()
        self.tab_6.setObjectName(_fromUtf8("tab_6"))
        self.magnZX_cal = PlotWidget(self.tab_6)
        self.magnZX_cal.setGeometry(QtCore.QRect(0, 0, 781, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.magnZX_cal.sizePolicy().hasHeightForWidth())
        self.magnZX_cal.setSizePolicy(sizePolicy)
        self.magnZX_cal.setObjectName(_fromUtf8("magnZX_cal"))
        self.tabWidget_3.addTab(self.tab_6, _fromUtf8(""))
        self.tab_8 = QtGui.QWidget()
        self.tab_8.setObjectName(_fromUtf8("tab_8"))
        self.magn3D_cal = GLViewWidget(self.tab_8)
        self.magn3D_cal.setGeometry(QtCore.QRect(0, 0, 389, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.magn3D_cal.sizePolicy().hasHeightForWidth())
        self.magn3D_cal.setSizePolicy(sizePolicy)
        self.magn3D_cal.setObjectName(_fromUtf8("magn3D_cal"))
        self.tabWidget_3.addTab(self.tab_8, _fromUtf8(""))
        self.horizontalLayout_3.addWidget(self.tabWidget_3)
        self.horizontalLayoutWidget_4 = QtGui.QWidget(self.calibratedTab)
        self.horizontalLayoutWidget_4.setGeometry(QtCore.QRect(0, 560, 161, 31))
        self.horizontalLayoutWidget_4.setObjectName(_fromUtf8("horizontalLayoutWidget_4"))
        self.horizontalLayout_4 = QtGui.QHBoxLayout(self.horizontalLayoutWidget_4)
        self.horizontalLayout_4.setMargin(0)
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.clearCalibrationEEPROMButton = QtGui.QPushButton(self.horizontalLayoutWidget_4)
        self.clearCalibrationEEPROMButton.setEnabled(False)
        self.clearCalibrationEEPROMButton.setObjectName(_fromUtf8("clearCalibrationEEPROMButton"))
        self.horizontalLayout_4.addWidget(self.clearCalibrationEEPROMButton)
        self.tabWidget.addTab(self.calibratedTab, _fromUtf8(""))
        self.tab_9 = QtGui.QWidget()
        self.tab_9.setObjectName(_fromUtf8("tab_9"))
        self.label_4 = QtGui.QLabel(self.tab_9)
        self.label_4.setGeometry(QtCore.QRect(290, 270, 261, 16))
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.tabWidget.addTab(self.tab_9, _fromUtf8(""))
        self.layoutWidget1 = QtGui.QWidget(self.centralwidget)
        self.layoutWidget1.setGeometry(QtCore.QRect(4, 1, 813, 25))
        self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1"))
        self.gridLayout = QtGui.QGridLayout(self.layoutWidget1)
        self.gridLayout.setMargin(0)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label = QtGui.QLabel(self.layoutWidget1)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.serialPortEdit = QtGui.QLineEdit(self.layoutWidget1)
        self.serialPortEdit.setObjectName(_fromUtf8("serialPortEdit"))
        self.gridLayout.addWidget(self.serialPortEdit, 0, 1, 1, 1)
        self.serialProtocol = QtGui.QComboBox(self.layoutWidget1)
        self.serialProtocol.setEnabled(True)
        self.serialProtocol.setObjectName(_fromUtf8("serialProtocol"))
        self.serialProtocol.addItem(_fromUtf8(""))
        self.serialProtocol.addItem(_fromUtf8(""))
        self.gridLayout.addWidget(self.serialProtocol, 0, 2, 1, 1)
        self.connectButton = QtGui.QPushButton(self.layoutWidget1)
        self.connectButton.setObjectName(_fromUtf8("connectButton"))
        self.gridLayout.addWidget(self.connectButton, 0, 3, 1, 1)
        self.cbSampleType = QtGui.QComboBox(self.layoutWidget1)
        self.cbSampleType.setObjectName(_fromUtf8("cbSampleType"))
        self.cbSampleType.addItem(_fromUtf8(""))
        self.cbSampleType.addItem(_fromUtf8(""))
        self.cbSampleType.addItem(_fromUtf8(""))
        self.cbSampleType.addItem(_fromUtf8(""))
        self.gridLayout.addWidget(self.cbSampleType, 0, 4, 1, 1)
        self.samplingToggleButton = QtGui.QPushButton(self.layoutWidget1)
        self.samplingToggleButton.setEnabled(False)
        self.samplingToggleButton.setAutoDefault(False)
        self.samplingToggleButton.setDefault(False)
        self.samplingToggleButton.setFlat(False)
        self.samplingToggleButton.setObjectName(_fromUtf8("samplingToggleButton"))
        self.gridLayout.addWidget(self.samplingToggleButton, 0, 5, 1, 1)
        self.calAlgorithmComboBox = QtGui.QComboBox(self.layoutWidget1)
        self.calAlgorithmComboBox.setEnabled(False)
        self.calAlgorithmComboBox.setObjectName(_fromUtf8("calAlgorithmComboBox"))
        self.calAlgorithmComboBox.addItem(_fromUtf8(""))
        self.gridLayout.addWidget(self.calAlgorithmComboBox, 0, 6, 1, 1)
        self.calibrateButton = QtGui.QPushButton(self.layoutWidget1)
        self.calibrateButton.setEnabled(False)
        self.calibrateButton.setObjectName(_fromUtf8("calibrateButton"))
        self.gridLayout.addWidget(self.calibrateButton, 0, 7, 1, 1)
        self.plotButton = QtGui.QPushButton(self.layoutWidget1)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.plotButton.sizePolicy().hasHeightForWidth())
        self.plotButton.setSizePolicy(sizePolicy)
        self.plotButton.setObjectName(_fromUtf8("plotButton"))
        self.gridLayout.addWidget(self.plotButton, 0, 8, 1, 1)
        FreeIMUCal.setCentralWidget(self.centralwidget)
        self.statusbar = QtGui.QStatusBar(FreeIMUCal)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        FreeIMUCal.setStatusBar(self.statusbar)

        self.retranslateUi(FreeIMUCal)
        self.tabWidget.setCurrentIndex(0)
        self.tabWidget_2.setCurrentIndex(0)
        self.tabWidget_3.setCurrentIndex(0)
        self.cbSampleType.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(FreeIMUCal)

    def retranslateUi(self, FreeIMUCal):
        FreeIMUCal.setWindowTitle(QtGui.QApplication.translate("FreeIMUCal", "FreeIMU Calibration Application", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("FreeIMUCal", "Accelerometer", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("FreeIMUCal", "Magnetometer", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.uncalibratedTab), QtGui.QApplication.translate("FreeIMUCal", "Uncalibrated", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox.setTitle(QtGui.QApplication.translate("FreeIMUCal", "Accelerometer", None, QtGui.QApplication.UnicodeUTF8))
        self.label_14.setText(QtGui.QApplication.translate("FreeIMUCal", "Offset X", None, QtGui.QApplication.UnicodeUTF8))
        self.label_15.setText(QtGui.QApplication.translate("FreeIMUCal", "Offset Y", None, QtGui.QApplication.UnicodeUTF8))
        self.label_16.setText(QtGui.QApplication.translate("FreeIMUCal", "Offset Z", None, QtGui.QApplication.UnicodeUTF8))
        self.label_17.setText(QtGui.QApplication.translate("FreeIMUCal", "Scale X", None, QtGui.QApplication.UnicodeUTF8))
        self.label_18.setText(QtGui.QApplication.translate("FreeIMUCal", "Scale Y", None, QtGui.QApplication.UnicodeUTF8))
        self.label_19.setText(QtGui.QApplication.translate("FreeIMUCal", "Scale Z", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_2.setTitle(QtGui.QApplication.translate("FreeIMUCal", "Magnetometer", None, QtGui.QApplication.UnicodeUTF8))
        self.label_27.setText(QtGui.QApplication.translate("FreeIMUCal", "Offset X", None, QtGui.QApplication.UnicodeUTF8))
        self.label_28.setText(QtGui.QApplication.translate("FreeIMUCal", "Offset Y", None, QtGui.QApplication.UnicodeUTF8))
        self.label_29.setText(QtGui.QApplication.translate("FreeIMUCal", "Offset Z", None, QtGui.QApplication.UnicodeUTF8))
        self.label_30.setText(QtGui.QApplication.translate("FreeIMUCal", "Scale X", None, QtGui.QApplication.UnicodeUTF8))
        self.label_31.setText(QtGui.QApplication.translate("FreeIMUCal", "Scale Y", None, QtGui.QApplication.UnicodeUTF8))
        self.label_32.setText(QtGui.QApplication.translate("FreeIMUCal", "Scale Z", None, QtGui.QApplication.UnicodeUTF8))
        self.saveCalibrationEEPROMButton.setToolTip(QtGui.QApplication.translate("FreeIMUCal", "Store the calibration parameters to the microcontroller EEPROM", None, QtGui.QApplication.UnicodeUTF8))
        self.saveCalibrationEEPROMButton.setText(QtGui.QApplication.translate("FreeIMUCal", "Save to EEPROM", None, QtGui.QApplication.UnicodeUTF8))
        self.saveCalibrationHeaderButton.setToolTip(QtGui.QApplication.translate("FreeIMUCal", "Store the calibration parameters in an header .h file. When such header is active the EEPROM calibration storage code is disabled thus saving program and data memory.", None, QtGui.QApplication.UnicodeUTF8))
        self.saveCalibrationHeaderButton.setText(QtGui.QApplication.translate("FreeIMUCal", "Save to calibration.h", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab), QtGui.QApplication.translate("FreeIMUCal", "Acc XY", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_4), QtGui.QApplication.translate("FreeIMUCal", "Acc YZ", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_3), QtGui.QApplication.translate("FreeIMUCal", "Acc ZX", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_7), QtGui.QApplication.translate("FreeIMUCal", "Acc 3D", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_2), QtGui.QApplication.translate("FreeIMUCal", "Magn XY", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_5), QtGui.QApplication.translate("FreeIMUCal", "Magn YZ", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_6), QtGui.QApplication.translate("FreeIMUCal", "Magn ZX", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_8), QtGui.QApplication.translate("FreeIMUCal", "Magn 3D", None, QtGui.QApplication.UnicodeUTF8))
        self.clearCalibrationEEPROMButton.setToolTip(QtGui.QApplication.translate("FreeIMUCal", "<html><head/><body><p>Clear any calibration parameter from the microcontroller EEPROM</p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
        self.clearCalibrationEEPROMButton.setText(QtGui.QApplication.translate("FreeIMUCal", "Clear EEPROM", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.calibratedTab), QtGui.QApplication.translate("FreeIMUCal", "Calibrated", None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(QtGui.QApplication.translate("FreeIMUCal", "To Be Implemented", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_9), QtGui.QApplication.translate("FreeIMUCal", "Orientation Sensing Test", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("FreeIMUCal", "Serial Port:", None, QtGui.QApplication.UnicodeUTF8))
        self.serialProtocol.setToolTip(QtGui.QApplication.translate("FreeIMUCal", "Serial Protocol to Communicate with IMU", None, QtGui.QApplication.UnicodeUTF8))
        self.serialProtocol.setItemText(0, QtGui.QApplication.translate("FreeIMUCal", "Nguyen_test", None, QtGui.QApplication.UnicodeUTF8))
        self.serialProtocol.setItemText(1, QtGui.QApplication.translate("FreeIMUCal", "FreeIMU_serial", None, QtGui.QApplication.UnicodeUTF8))
        self.connectButton.setToolTip(QtGui.QApplication.translate("FreeIMUCal", "Connect or Disconnect from the Arduino", None, QtGui.QApplication.UnicodeUTF8))
        self.connectButton.setText(QtGui.QApplication.translate("FreeIMUCal", "Connect", None, QtGui.QApplication.UnicodeUTF8))
        self.cbSampleType.setItemText(0, QtGui.QApplication.translate("FreeIMUCal", "all", None, QtGui.QApplication.UnicodeUTF8))
        self.cbSampleType.setItemText(1, QtGui.QApplication.translate("FreeIMUCal", "x_down", None, QtGui.QApplication.UnicodeUTF8))
        self.cbSampleType.setItemText(2, QtGui.QApplication.translate("FreeIMUCal", "y_down", None, QtGui.QApplication.UnicodeUTF8))
        self.cbSampleType.setItemText(3, QtGui.QApplication.translate("FreeIMUCal", "z_down", None, QtGui.QApplication.UnicodeUTF8))
        self.samplingToggleButton.setToolTip(QtGui.QApplication.translate("FreeIMUCal", "Toggle Start/Stop sampling of sensor data from the IMU", None, QtGui.QApplication.UnicodeUTF8))
        self.samplingToggleButton.setText(QtGui.QApplication.translate("FreeIMUCal", "Start Sampling", None, QtGui.QApplication.UnicodeUTF8))
        self.calAlgorithmComboBox.setToolTip(QtGui.QApplication.translate("FreeIMUCal", "<html><head/><body><p>Calibration Algorithm used.</p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
        self.calAlgorithmComboBox.setItemText(0, QtGui.QApplication.translate("FreeIMUCal", "Ellipsoid to Sphere", None, QtGui.QApplication.UnicodeUTF8))
        self.calibrateButton.setToolTip(QtGui.QApplication.translate("FreeIMUCal", "Run calibration algorithm over the data collected", None, QtGui.QApplication.UnicodeUTF8))
        self.calibrateButton.setText(QtGui.QApplication.translate("FreeIMUCal", "Calibrate", None, QtGui.QApplication.UnicodeUTF8))
        self.plotButton.setText(QtGui.QApplication.translate("FreeIMUCal", "Cal Plot", None, QtGui.QApplication.UnicodeUTF8))
Esempio n. 28
0
    def setupUi(self, FreeIMUCal):
        FreeIMUCal.setObjectName(_fromUtf8("FreeIMUCal"))
        FreeIMUCal.resize(800, 680)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            FreeIMUCal.sizePolicy().hasHeightForWidth())
        FreeIMUCal.setSizePolicy(sizePolicy)
        FreeIMUCal.setMinimumSize(QtCore.QSize(800, 600))
        FreeIMUCal.setMaximumSize(QtCore.QSize(800, 680))
        FreeIMUCal.setDocumentMode(False)
        self.centralwidget = QtGui.QWidget(FreeIMUCal)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum,
                                       QtGui.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.centralwidget.sizePolicy().hasHeightForWidth())
        self.centralwidget.setSizePolicy(sizePolicy)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.line = QtGui.QFrame(self.centralwidget)
        self.line.setGeometry(QtCore.QRect(10, 20, 791, 16))
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.gridLayoutWidget = QtGui.QWidget(self.centralwidget)
        self.gridLayoutWidget.setGeometry(QtCore.QRect(0, 0, 801, 25))
        self.gridLayoutWidget.setObjectName(_fromUtf8("gridLayoutWidget"))
        self.gridLayout = QtGui.QGridLayout(self.gridLayoutWidget)
        self.gridLayout.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint)
        self.gridLayout.setMargin(0)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.line_2 = QtGui.QFrame(self.gridLayoutWidget)
        self.line_2.setFrameShape(QtGui.QFrame.VLine)
        self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_2.setObjectName(_fromUtf8("line_2"))
        self.gridLayout.addWidget(self.line_2, 0, 4, 1, 1)
        self.samplingToggleButton = QtGui.QPushButton(self.gridLayoutWidget)
        self.samplingToggleButton.setEnabled(False)
        self.samplingToggleButton.setAutoDefault(False)
        self.samplingToggleButton.setDefault(False)
        self.samplingToggleButton.setFlat(False)
        self.samplingToggleButton.setObjectName(
            _fromUtf8("samplingToggleButton"))
        self.gridLayout.addWidget(self.samplingToggleButton, 0, 7, 1, 1)
        self.serialPortEdit = QtGui.QLineEdit(self.gridLayoutWidget)
        self.serialPortEdit.setObjectName(_fromUtf8("serialPortEdit"))
        self.gridLayout.addWidget(self.serialPortEdit, 0, 1, 1, 1)
        self.calibrateButton = QtGui.QPushButton(self.gridLayoutWidget)
        self.calibrateButton.setEnabled(False)
        self.calibrateButton.setObjectName(_fromUtf8("calibrateButton"))
        self.gridLayout.addWidget(self.calibrateButton, 0, 9, 1, 1)
        self.label = QtGui.QLabel(self.gridLayoutWidget)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.calAlgorithmComboBox = QtGui.QComboBox(self.gridLayoutWidget)
        self.calAlgorithmComboBox.setEnabled(False)
        self.calAlgorithmComboBox.setObjectName(
            _fromUtf8("calAlgorithmComboBox"))
        self.calAlgorithmComboBox.addItem(_fromUtf8(""))
        self.gridLayout.addWidget(self.calAlgorithmComboBox, 0, 8, 1, 1)
        self.connectButton = QtGui.QPushButton(self.gridLayoutWidget)
        self.connectButton.setObjectName(_fromUtf8("connectButton"))
        self.gridLayout.addWidget(self.connectButton, 0, 3, 1, 1)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 0, 6, 1, 1)
        self.serialProtocol = QtGui.QComboBox(self.gridLayoutWidget)
        self.serialProtocol.setEnabled(True)
        self.serialProtocol.setObjectName(_fromUtf8("serialProtocol"))
        self.serialProtocol.addItem(_fromUtf8(""))
        self.gridLayout.addWidget(self.serialProtocol, 0, 2, 1, 1)
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setGeometry(QtCore.QRect(0, 30, 801, 631))
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.uncalibratedTab = QtGui.QWidget()
        self.uncalibratedTab.setObjectName(_fromUtf8("uncalibratedTab"))
        self.gridLayoutWidget_4 = QtGui.QWidget(self.uncalibratedTab)
        self.gridLayoutWidget_4.setGeometry(QtCore.QRect(0, 10, 791, 588))
        self.gridLayoutWidget_4.setObjectName(_fromUtf8("gridLayoutWidget_4"))
        self.gridLayout_4 = QtGui.QGridLayout(self.gridLayoutWidget_4)
        self.gridLayout_4.setSizeConstraint(QtGui.QLayout.SetMaximumSize)
        self.gridLayout_4.setMargin(0)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.gridLayout_5 = QtGui.QGridLayout()
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        self.label_2 = QtGui.QLabel(self.gridLayoutWidget_4)
        self.label_2.setAlignment(QtCore.Qt.AlignCenter)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout_5.addWidget(self.label_2, 0, 1, 1, 1)
        self.accYZ = PlotWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.accYZ.sizePolicy().hasHeightForWidth())
        self.accYZ.setSizePolicy(sizePolicy)
        self.accYZ.setObjectName(_fromUtf8("accYZ"))
        self.gridLayout_5.addWidget(self.accYZ, 1, 0, 1, 1)
        self.accZX = PlotWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.accZX.sizePolicy().hasHeightForWidth())
        self.accZX.setSizePolicy(sizePolicy)
        self.accZX.setObjectName(_fromUtf8("accZX"))
        self.gridLayout_5.addWidget(self.accZX, 1, 1, 1, 1)
        self.accXY = PlotWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.accXY.sizePolicy().hasHeightForWidth())
        self.accXY.setSizePolicy(sizePolicy)
        self.accXY.setObjectName(_fromUtf8("accXY"))
        self.gridLayout_5.addWidget(self.accXY, 0, 0, 1, 1)
        self.gridLayout_4.addLayout(self.gridLayout_5, 1, 0, 1, 1)
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setSizeConstraint(QtGui.QLayout.SetFixedSize)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.magnXY = PlotWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.magnXY.sizePolicy().hasHeightForWidth())
        self.magnXY.setSizePolicy(sizePolicy)
        self.magnXY.setObjectName(_fromUtf8("magnXY"))
        self.gridLayout_3.addWidget(self.magnXY, 0, 0, 1, 1)
        self.magnYZ = PlotWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.magnYZ.sizePolicy().hasHeightForWidth())
        self.magnYZ.setSizePolicy(sizePolicy)
        self.magnYZ.setObjectName(_fromUtf8("magnYZ"))
        self.gridLayout_3.addWidget(self.magnYZ, 1, 0, 1, 1)
        self.magnZX = PlotWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.magnZX.sizePolicy().hasHeightForWidth())
        self.magnZX.setSizePolicy(sizePolicy)
        self.magnZX.setObjectName(_fromUtf8("magnZX"))
        self.gridLayout_3.addWidget(self.magnZX, 1, 1, 1, 1)
        self.label_3 = QtGui.QLabel(self.gridLayoutWidget_4)
        self.label_3.setAlignment(QtCore.Qt.AlignCenter)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout_3.addWidget(self.label_3, 0, 1, 1, 1)
        self.gridLayout_4.addLayout(self.gridLayout_3, 1, 2, 1, 1)
        self.magn3D = GLViewWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.magn3D.sizePolicy().hasHeightForWidth())
        self.magn3D.setSizePolicy(sizePolicy)
        self.magn3D.setObjectName(_fromUtf8("magn3D"))
        self.gridLayout_4.addWidget(self.magn3D, 0, 2, 1, 1)
        self.acc3D = GLViewWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.acc3D.sizePolicy().hasHeightForWidth())
        self.acc3D.setSizePolicy(sizePolicy)
        self.acc3D.setObjectName(_fromUtf8("acc3D"))
        self.gridLayout_4.addWidget(self.acc3D, 0, 0, 1, 1)
        self.line_3 = QtGui.QFrame(self.gridLayoutWidget_4)
        self.line_3.setLineWidth(1)
        self.line_3.setFrameShape(QtGui.QFrame.VLine)
        self.line_3.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_3.setObjectName(_fromUtf8("line_3"))
        self.gridLayout_4.addWidget(self.line_3, 1, 1, 1, 1)
        self.tabWidget.addTab(self.uncalibratedTab, _fromUtf8(""))
        self.calibratedTab = QtGui.QWidget()
        self.calibratedTab.setObjectName(_fromUtf8("calibratedTab"))
        self.horizontalLayoutWidget = QtGui.QWidget(self.calibratedTab)
        self.horizontalLayoutWidget.setGeometry(QtCore.QRect(0, 380, 791, 181))
        self.horizontalLayoutWidget.setObjectName(
            _fromUtf8("horizontalLayoutWidget"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.horizontalLayoutWidget)
        self.horizontalLayout.setMargin(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.groupBox = QtGui.QGroupBox(self.horizontalLayoutWidget)
        self.groupBox.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft
                                   | QtCore.Qt.AlignVCenter)
        self.groupBox.setFlat(False)
        self.groupBox.setCheckable(False)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.layoutWidget = QtGui.QWidget(self.groupBox)
        self.layoutWidget.setGeometry(QtCore.QRect(10, 20, 381, 154))
        self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
        self.formLayout_3 = QtGui.QFormLayout(self.layoutWidget)
        self.formLayout_3.setSizeConstraint(QtGui.QLayout.SetNoConstraint)
        self.formLayout_3.setFieldGrowthPolicy(
            QtGui.QFormLayout.ExpandingFieldsGrow)
        self.formLayout_3.setLabelAlignment(QtCore.Qt.AlignLeading
                                            | QtCore.Qt.AlignLeft
                                            | QtCore.Qt.AlignVCenter)
        self.formLayout_3.setMargin(0)
        self.formLayout_3.setObjectName(_fromUtf8("formLayout_3"))
        self.label_14 = QtGui.QLabel(self.layoutWidget)
        self.label_14.setObjectName(_fromUtf8("label_14"))
        self.formLayout_3.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.label_14)
        self.calRes_acc_OSx = QtGui.QLineEdit(self.layoutWidget)
        self.calRes_acc_OSx.setObjectName(_fromUtf8("calRes_acc_OSx"))
        self.formLayout_3.setWidget(0, QtGui.QFormLayout.FieldRole,
                                    self.calRes_acc_OSx)
        self.label_15 = QtGui.QLabel(self.layoutWidget)
        self.label_15.setObjectName(_fromUtf8("label_15"))
        self.formLayout_3.setWidget(1, QtGui.QFormLayout.LabelRole,
                                    self.label_15)
        self.calRes_acc_OSy = QtGui.QLineEdit(self.layoutWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.calRes_acc_OSy.sizePolicy().hasHeightForWidth())
        self.calRes_acc_OSy.setSizePolicy(sizePolicy)
        self.calRes_acc_OSy.setObjectName(_fromUtf8("calRes_acc_OSy"))
        self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole,
                                    self.calRes_acc_OSy)
        self.label_16 = QtGui.QLabel(self.layoutWidget)
        self.label_16.setObjectName(_fromUtf8("label_16"))
        self.formLayout_3.setWidget(2, QtGui.QFormLayout.LabelRole,
                                    self.label_16)
        self.calRes_acc_OSz = QtGui.QLineEdit(self.layoutWidget)
        self.calRes_acc_OSz.setObjectName(_fromUtf8("calRes_acc_OSz"))
        self.formLayout_3.setWidget(2, QtGui.QFormLayout.FieldRole,
                                    self.calRes_acc_OSz)
        self.label_17 = QtGui.QLabel(self.layoutWidget)
        self.label_17.setObjectName(_fromUtf8("label_17"))
        self.formLayout_3.setWidget(3, QtGui.QFormLayout.LabelRole,
                                    self.label_17)
        self.calRes_acc_SCx = QtGui.QLineEdit(self.layoutWidget)
        self.calRes_acc_SCx.setObjectName(_fromUtf8("calRes_acc_SCx"))
        self.formLayout_3.setWidget(3, QtGui.QFormLayout.FieldRole,
                                    self.calRes_acc_SCx)
        self.label_18 = QtGui.QLabel(self.layoutWidget)
        self.label_18.setObjectName(_fromUtf8("label_18"))
        self.formLayout_3.setWidget(4, QtGui.QFormLayout.LabelRole,
                                    self.label_18)
        self.calRes_acc_SCy = QtGui.QLineEdit(self.layoutWidget)
        self.calRes_acc_SCy.setObjectName(_fromUtf8("calRes_acc_SCy"))
        self.formLayout_3.setWidget(4, QtGui.QFormLayout.FieldRole,
                                    self.calRes_acc_SCy)
        self.label_19 = QtGui.QLabel(self.layoutWidget)
        self.label_19.setObjectName(_fromUtf8("label_19"))
        self.formLayout_3.setWidget(5, QtGui.QFormLayout.LabelRole,
                                    self.label_19)
        self.calRes_acc_SCz = QtGui.QLineEdit(self.layoutWidget)
        self.calRes_acc_SCz.setObjectName(_fromUtf8("calRes_acc_SCz"))
        self.formLayout_3.setWidget(5, QtGui.QFormLayout.FieldRole,
                                    self.calRes_acc_SCz)
        self.horizontalLayout.addWidget(self.groupBox)
        self.groupBox_2 = QtGui.QGroupBox(self.horizontalLayoutWidget)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.layoutWidget_2 = QtGui.QWidget(self.groupBox_2)
        self.layoutWidget_2.setGeometry(QtCore.QRect(10, 20, 381, 154))
        self.layoutWidget_2.setObjectName(_fromUtf8("layoutWidget_2"))
        self.formLayout_5 = QtGui.QFormLayout(self.layoutWidget_2)
        self.formLayout_5.setSizeConstraint(QtGui.QLayout.SetNoConstraint)
        self.formLayout_5.setFieldGrowthPolicy(
            QtGui.QFormLayout.ExpandingFieldsGrow)
        self.formLayout_5.setLabelAlignment(QtCore.Qt.AlignLeading
                                            | QtCore.Qt.AlignLeft
                                            | QtCore.Qt.AlignVCenter)
        self.formLayout_5.setMargin(0)
        self.formLayout_5.setObjectName(_fromUtf8("formLayout_5"))
        self.label_27 = QtGui.QLabel(self.layoutWidget_2)
        self.label_27.setObjectName(_fromUtf8("label_27"))
        self.formLayout_5.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.label_27)
        self.calRes_magn_OSx = QtGui.QLineEdit(self.layoutWidget_2)
        self.calRes_magn_OSx.setObjectName(_fromUtf8("calRes_magn_OSx"))
        self.formLayout_5.setWidget(0, QtGui.QFormLayout.FieldRole,
                                    self.calRes_magn_OSx)
        self.label_28 = QtGui.QLabel(self.layoutWidget_2)
        self.label_28.setObjectName(_fromUtf8("label_28"))
        self.formLayout_5.setWidget(1, QtGui.QFormLayout.LabelRole,
                                    self.label_28)
        self.calRes_magn_OSy = QtGui.QLineEdit(self.layoutWidget_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.calRes_magn_OSy.sizePolicy().hasHeightForWidth())
        self.calRes_magn_OSy.setSizePolicy(sizePolicy)
        self.calRes_magn_OSy.setObjectName(_fromUtf8("calRes_magn_OSy"))
        self.formLayout_5.setWidget(1, QtGui.QFormLayout.FieldRole,
                                    self.calRes_magn_OSy)
        self.label_29 = QtGui.QLabel(self.layoutWidget_2)
        self.label_29.setObjectName(_fromUtf8("label_29"))
        self.formLayout_5.setWidget(2, QtGui.QFormLayout.LabelRole,
                                    self.label_29)
        self.calRes_magn_OSz = QtGui.QLineEdit(self.layoutWidget_2)
        self.calRes_magn_OSz.setObjectName(_fromUtf8("calRes_magn_OSz"))
        self.formLayout_5.setWidget(2, QtGui.QFormLayout.FieldRole,
                                    self.calRes_magn_OSz)
        self.label_30 = QtGui.QLabel(self.layoutWidget_2)
        self.label_30.setObjectName(_fromUtf8("label_30"))
        self.formLayout_5.setWidget(3, QtGui.QFormLayout.LabelRole,
                                    self.label_30)
        self.calRes_magn_SCx = QtGui.QLineEdit(self.layoutWidget_2)
        self.calRes_magn_SCx.setObjectName(_fromUtf8("calRes_magn_SCx"))
        self.formLayout_5.setWidget(3, QtGui.QFormLayout.FieldRole,
                                    self.calRes_magn_SCx)
        self.label_31 = QtGui.QLabel(self.layoutWidget_2)
        self.label_31.setObjectName(_fromUtf8("label_31"))
        self.formLayout_5.setWidget(4, QtGui.QFormLayout.LabelRole,
                                    self.label_31)
        self.calRes_magn_SCy = QtGui.QLineEdit(self.layoutWidget_2)
        self.calRes_magn_SCy.setObjectName(_fromUtf8("calRes_magn_SCy"))
        self.formLayout_5.setWidget(4, QtGui.QFormLayout.FieldRole,
                                    self.calRes_magn_SCy)
        self.label_32 = QtGui.QLabel(self.layoutWidget_2)
        self.label_32.setObjectName(_fromUtf8("label_32"))
        self.formLayout_5.setWidget(5, QtGui.QFormLayout.LabelRole,
                                    self.label_32)
        self.calRes_magn_SCz = QtGui.QLineEdit(self.layoutWidget_2)
        self.calRes_magn_SCz.setObjectName(_fromUtf8("calRes_magn_SCz"))
        self.formLayout_5.setWidget(5, QtGui.QFormLayout.FieldRole,
                                    self.calRes_magn_SCz)
        self.horizontalLayout.addWidget(self.groupBox_2)
        self.horizontalLayoutWidget_2 = QtGui.QWidget(self.calibratedTab)
        self.horizontalLayoutWidget_2.setGeometry(
            QtCore.QRect(488, 560, 301, 31))
        self.horizontalLayoutWidget_2.setObjectName(
            _fromUtf8("horizontalLayoutWidget_2"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(
            self.horizontalLayoutWidget_2)
        self.horizontalLayout_2.setMargin(0)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.saveCalibrationEEPROMButton = QtGui.QPushButton(
            self.horizontalLayoutWidget_2)
        self.saveCalibrationEEPROMButton.setEnabled(False)
        self.saveCalibrationEEPROMButton.setObjectName(
            _fromUtf8("saveCalibrationEEPROMButton"))
        self.horizontalLayout_2.addWidget(self.saveCalibrationEEPROMButton)
        self.saveCalibrationHeaderButton = QtGui.QPushButton(
            self.horizontalLayoutWidget_2)
        self.saveCalibrationHeaderButton.setEnabled(False)
        self.saveCalibrationHeaderButton.setObjectName(
            _fromUtf8("saveCalibrationHeaderButton"))
        self.horizontalLayout_2.addWidget(self.saveCalibrationHeaderButton)
        self.horizontalLayoutWidget_3 = QtGui.QWidget(self.calibratedTab)
        self.horizontalLayoutWidget_3.setGeometry(QtCore.QRect(0, 0, 791, 381))
        self.horizontalLayoutWidget_3.setObjectName(
            _fromUtf8("horizontalLayoutWidget_3"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(
            self.horizontalLayoutWidget_3)
        self.horizontalLayout_3.setMargin(0)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.tabWidget_2 = QtGui.QTabWidget(self.horizontalLayoutWidget_3)
        self.tabWidget_2.setTabPosition(QtGui.QTabWidget.South)
        self.tabWidget_2.setTabShape(QtGui.QTabWidget.Rounded)
        self.tabWidget_2.setUsesScrollButtons(True)
        self.tabWidget_2.setDocumentMode(False)
        self.tabWidget_2.setTabsClosable(False)
        self.tabWidget_2.setMovable(False)
        self.tabWidget_2.setObjectName(_fromUtf8("tabWidget_2"))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.accXY_cal = PlotWidget(self.tab)
        self.accXY_cal.setGeometry(QtCore.QRect(0, 0, 781, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.accXY_cal.sizePolicy().hasHeightForWidth())
        self.accXY_cal.setSizePolicy(sizePolicy)
        self.accXY_cal.setObjectName(_fromUtf8("accXY_cal"))
        self.tabWidget_2.addTab(self.tab, _fromUtf8(""))
        self.tab_4 = QtGui.QWidget()
        self.tab_4.setObjectName(_fromUtf8("tab_4"))
        self.accYZ_cal = PlotWidget(self.tab_4)
        self.accYZ_cal.setGeometry(QtCore.QRect(0, 0, 781, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.accYZ_cal.sizePolicy().hasHeightForWidth())
        self.accYZ_cal.setSizePolicy(sizePolicy)
        self.accYZ_cal.setObjectName(_fromUtf8("accYZ_cal"))
        self.tabWidget_2.addTab(self.tab_4, _fromUtf8(""))
        self.tab_3 = QtGui.QWidget()
        self.tab_3.setObjectName(_fromUtf8("tab_3"))
        self.accZX_cal = PlotWidget(self.tab_3)
        self.accZX_cal.setGeometry(QtCore.QRect(0, 0, 781, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.accZX_cal.sizePolicy().hasHeightForWidth())
        self.accZX_cal.setSizePolicy(sizePolicy)
        self.accZX_cal.setObjectName(_fromUtf8("accZX_cal"))
        self.tabWidget_2.addTab(self.tab_3, _fromUtf8(""))
        self.tab_7 = QtGui.QWidget()
        self.tab_7.setObjectName(_fromUtf8("tab_7"))
        self.acc3D_cal = GLViewWidget(self.tab_7)
        self.acc3D_cal.setGeometry(QtCore.QRect(0, 0, 389, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.acc3D_cal.sizePolicy().hasHeightForWidth())
        self.acc3D_cal.setSizePolicy(sizePolicy)
        self.acc3D_cal.setObjectName(_fromUtf8("acc3D_cal"))
        self.tabWidget_2.addTab(self.tab_7, _fromUtf8(""))
        self.horizontalLayout_3.addWidget(self.tabWidget_2)
        self.tabWidget_3 = QtGui.QTabWidget(self.horizontalLayoutWidget_3)
        self.tabWidget_3.setTabPosition(QtGui.QTabWidget.South)
        self.tabWidget_3.setTabShape(QtGui.QTabWidget.Rounded)
        self.tabWidget_3.setUsesScrollButtons(True)
        self.tabWidget_3.setDocumentMode(False)
        self.tabWidget_3.setTabsClosable(False)
        self.tabWidget_3.setMovable(False)
        self.tabWidget_3.setObjectName(_fromUtf8("tabWidget_3"))
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName(_fromUtf8("tab_2"))
        self.magnXY_cal = PlotWidget(self.tab_2)
        self.magnXY_cal.setGeometry(QtCore.QRect(0, 0, 781, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.magnXY_cal.sizePolicy().hasHeightForWidth())
        self.magnXY_cal.setSizePolicy(sizePolicy)
        self.magnXY_cal.setObjectName(_fromUtf8("magnXY_cal"))
        self.tabWidget_3.addTab(self.tab_2, _fromUtf8(""))
        self.tab_5 = QtGui.QWidget()
        self.tab_5.setObjectName(_fromUtf8("tab_5"))
        self.magnYZ_cal = PlotWidget(self.tab_5)
        self.magnYZ_cal.setGeometry(QtCore.QRect(0, 0, 781, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.magnYZ_cal.sizePolicy().hasHeightForWidth())
        self.magnYZ_cal.setSizePolicy(sizePolicy)
        self.magnYZ_cal.setObjectName(_fromUtf8("magnYZ_cal"))
        self.tabWidget_3.addTab(self.tab_5, _fromUtf8(""))
        self.tab_6 = QtGui.QWidget()
        self.tab_6.setObjectName(_fromUtf8("tab_6"))
        self.magnZX_cal = PlotWidget(self.tab_6)
        self.magnZX_cal.setGeometry(QtCore.QRect(0, 0, 781, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.magnZX_cal.sizePolicy().hasHeightForWidth())
        self.magnZX_cal.setSizePolicy(sizePolicy)
        self.magnZX_cal.setObjectName(_fromUtf8("magnZX_cal"))
        self.tabWidget_3.addTab(self.tab_6, _fromUtf8(""))
        self.tab_8 = QtGui.QWidget()
        self.tab_8.setObjectName(_fromUtf8("tab_8"))
        self.magn3D_cal = GLViewWidget(self.tab_8)
        self.magn3D_cal.setGeometry(QtCore.QRect(0, 0, 389, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.magn3D_cal.sizePolicy().hasHeightForWidth())
        self.magn3D_cal.setSizePolicy(sizePolicy)
        self.magn3D_cal.setObjectName(_fromUtf8("magn3D_cal"))
        self.tabWidget_3.addTab(self.tab_8, _fromUtf8(""))
        self.horizontalLayout_3.addWidget(self.tabWidget_3)
        self.horizontalLayoutWidget_4 = QtGui.QWidget(self.calibratedTab)
        self.horizontalLayoutWidget_4.setGeometry(QtCore.QRect(
            0, 560, 161, 31))
        self.horizontalLayoutWidget_4.setObjectName(
            _fromUtf8("horizontalLayoutWidget_4"))
        self.horizontalLayout_4 = QtGui.QHBoxLayout(
            self.horizontalLayoutWidget_4)
        self.horizontalLayout_4.setMargin(0)
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.clearCalibrationEEPROMButton = QtGui.QPushButton(
            self.horizontalLayoutWidget_4)
        self.clearCalibrationEEPROMButton.setEnabled(False)
        self.clearCalibrationEEPROMButton.setObjectName(
            _fromUtf8("clearCalibrationEEPROMButton"))
        self.horizontalLayout_4.addWidget(self.clearCalibrationEEPROMButton)
        self.tabWidget.addTab(self.calibratedTab, _fromUtf8(""))
        self.tab_9 = QtGui.QWidget()
        self.tab_9.setObjectName(_fromUtf8("tab_9"))
        self.label_4 = QtGui.QLabel(self.tab_9)
        self.label_4.setGeometry(QtCore.QRect(290, 270, 261, 16))
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.tabWidget.addTab(self.tab_9, _fromUtf8(""))
        FreeIMUCal.setCentralWidget(self.centralwidget)
        self.statusbar = QtGui.QStatusBar(FreeIMUCal)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        FreeIMUCal.setStatusBar(self.statusbar)

        self.retranslateUi(FreeIMUCal)
        self.tabWidget.setCurrentIndex(0)
        self.tabWidget_2.setCurrentIndex(0)
        self.tabWidget_3.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(FreeIMUCal)
Esempio n. 29
0
class HyperSpec3DH5View(HyperSpectralBaseView):

    name = 'hyperspec_3d_h5'

    supported_measurements = [
        'oo_asi_hyperspec_3d_scan',
        'andor_asi_hyperspec_3d_scan',
    ]

    def scan_specific_setup(self):
        pass

    def setup(self):
        self.settings.New('sample', dtype=str, initial='')
        self.settings.New('z_slice', dtype=float, choices=[0.0], initial=0.0)
        self.settings.New('show_3d', dtype=bool, initial=False)
        self.settings.New('vol_alpha',
                          dtype=float,
                          vmin=0.0,
                          vmax=1.0,
                          initial=0.5)
        self.settings.New('vol_colormap',
                          dtype=str,
                          initial='viridis',
                          choices=[
                              'viridis', 'plasma', 'inferno', 'magma',
                              'cividis', 'Greys', 'Purples', 'Blues', 'Greens',
                              'Oranges', 'Reds', 'YlOrBr', 'YlOrRd', 'OrRd',
                              'PuRd', 'RdPu', 'BuPu', 'GnBu', 'PuBu', 'YlGnBu',
                              'PuBuGn', 'BuGn', 'YlGn'
                          ])
        # self.settings.New('vol_percentile', dtype=int, vmin=0, vmax=49,
        #                   initial=5)
        self.settings.New('vol_percentile_min',
                          dtype=int,
                          vmin=0,
                          vmax=100,
                          initial=5)
        self.settings.New('vol_percentile_max',
                          dtype=int,
                          vmin=0,
                          vmax=100,
                          initial=95)
        self.settings.New('vol_transparent_percentile',
                          dtype=int,
                          vmin=0,
                          vmax=100,
                          initial=5)
        self.settings.New('vol_transparent_min', dtype=bool, initial=False)
        self.settings.z_slice.updated_choice_index_value.connect(
            self.on_update_zslice_choice)
        # self.settings.vol_colormap.updated_value.connect(self.calculate_volume)
        # self.settings.vol_alpha.updated_value.connect(self.calculate_volume)
        HyperSpectralBaseView.setup(self)
        voldata = np.empty((1, 1, 1, 4), dtype=np.ubyte)
        voldata[0, 0, 0, :] = [255, 255, 255, 0]
        self.volitem = GLVolumeItem(data=voldata)
        self.glview = GLViewWidget()
        self.glaxis = GLAxisItem()
        self.glgrid = GLGridItem()
        self.glview.addItem(self.glgrid)
        self.glview.addItem(self.glaxis)
        self.glview.addItem(self.volitem)
        self.gldock = self.dockarea.addDock(name='3D',
                                            widget=self.glview,
                                            position='below',
                                            relativeTo=self.image_dock)

        self.calculate_3d_pushButton = QPushButton(text='calculate_3d')
        self.settings_ui.layout().addWidget(self.calculate_3d_pushButton)
        self.calculate_3d_pushButton.clicked.connect(self.calculate_volume)
        self.image_dock.raiseDock()

    def is_file_supported(self, fname):
        return np.any([(meas_name in fname)
                       for meas_name in self.supported_measurements])

    def reset(self):
        if hasattr(self, 'dat'):
            self.dat.close()
            del self.dat

        if hasattr(self, 'spec_map'):
            del self.spec_map

        if hasattr(self, 'scalebar'):
            self.imview.getView().removeItem(self.scalebar)
            del self.scalebar

        if hasattr(self, 'volume'):
            spoof_data = np.zeros((1, 1, 1, 4), dtype=np.ubyte)
            self.volitem.setData(spoof_data)
            del self.volume

        self.settings.show_3d.update_value(False)
        self.image_dock.raiseDock()

    def load_data(self, fname):
        self.dat = h5py.File(fname)
        for meas_name in self.supported_measurements:
            if meas_name in self.dat['measurement']:
                self.M = self.dat['measurement'][meas_name]

        for map_name in ['hyperspectral_map', 'spec_map']:
            if map_name in self.M:
                self.spec_map = np.array(self.M[map_name])
                self.h_span = self.M['settings'].attrs['h_span']
                self.x_array = np.array(self.M['h_array'])
                self.z_array = np.array(self.M['z_array'])
                units = self.M['settings/units'].attrs['h_span']
                if units == 'mm':
                    self.h_span = self.h_span * 1e-3
                    self.z_span = self.z_array * 1e-3
                    self.settings.z_slice.change_unit('mm')

                if 'dark_indices' in list(self.M.keys()):
                    print('dark indices found')
                    dark_indices = self.M['dark_indices']
                    if dark_indices.len() == 0:
                        self.spec_map = np.delete(self.spec_map,
                                                  list(dark_indices.shape), -1)
                    else:
                        self.spec_map = np.delete(self.spec_map,
                                                  np.array(dark_indices), -1)
                else:
                    print('no dark indices')

        self.hyperspec_data = self.spec_map[0, :, :, :]
        self.display_image = self.hyperspec_data.sum(axis=-1)
        self.settings.z_slice.change_choice_list(self.z_array.tolist())
        self.settings.z_slice.update_value(self.z_array[0])
        self.spec_x_array = np.arange(self.hyperspec_data.shape[-1])

        for x_axis_name in [
                'wavelength', 'wls', 'wave_numbers', 'raman_shifts'
        ]:
            if x_axis_name in self.M:
                x_array = np.array(self.M[x_axis_name])
                if 'dark_indices' in list(self.M.keys()):
                    dark_indices = self.M['dark_indices']
                    # The following is to read a dataset I initialized
                    # incorrectly for dark pixels. This can be replaced with
                    # the else statement entirely now that the measurement is
                    # fixed, but I still have a long measurement that will
                    # benefit from this.
                    if dark_indices.len() == 0:
                        x_array = np.delete(x_array, list(dark_indices.shape),
                                            0)
                    else:
                        x_array = np.delete(x_array, np.array(dark_indices), 0)
                self.add_spec_x_array(x_axis_name, x_array)
                self.x_axis.update_value(x_axis_name)

        sample = self.dat['app/settings'].attrs['sample']
        self.settings.sample.update_value(sample)
        self.calculate_volume()

    def on_update_zslice_choice(self, index):
        if hasattr(self, 'spec_map'):
            self.hyperspec_data = self.spec_map[index, :, :, :]
            self.display_images['default'] = self.hyperspec_data
            self.display_images['sum'] = self.hyperspec_data.sum(axis=-1)
            self.spec_x_arrays['default'] = self.spec_x_array
            self.spec_x_arrays['index'] = np.arange(
                self.hyperspec_data.shape[-1])
            self.recalc_bandpass_map()
            self.recalc_median_map()
            self.update_display()

    def calculate_volume(self):
        if not self.settings['show_3d']:
            print('calculate_volume called without show_3d')
            return

        print('calculating 3d volume')
        t0 = time.time()

        if hasattr(self, 'volume'):
            del self.volume

        if hasattr(self, 'mappable'):
            self.mappable.set_cmap(self.settings['vol_colormap'])
        else:
            self.mappable = ScalarMappable(cmap=self.settings['vol_colormap'])

        z_span = self.z_array[-1] - self.z_array[0]
        dx = self.x_array[1] - self.x_array[0]
        z_interp_array = np.linspace(np.amin(self.z_array),
                                     np.amax(self.z_array),
                                     num=z_span / dx)
        z_interp = None
        self.volume = None
        nz = len(z_interp_array)

        if self.settings['display_image'] == 'bandpass_map':
            print('bandpass_map selected')
            x, slice = self.get_xhyperspec_data(apply_use_x_slice=True)
            ind_min = np.nonzero(self.spec_x_array == x[0])[0][0]
            ind_max = np.nonzero(self.spec_x_array == x[-1])[0][0]
            data = np.zeros((len(self.z_array), ) + slice.shape)
            data = self.spec_map[:, :, :, ind_min:ind_max]
            # for kk in range(len(self.z_array)):
            #     print(
            #         'grabbing bandpass layer %d of %d' % (kk, len(self.z_array)))
            #     self.settings.z_slice.update_value(self.z_array[kk])
            #     x, data[kk, :, :, :] = self.get_xhyperspec_data(
            #         apply_use_x_slice=True)
            z_interp = interp1d(self.z_array, data, axis=0)
        else:
            z_interp = interp1d(self.z_array, self.spec_map, axis=0)

        data = z_interp(z_interp_array)
        self.volume = np.zeros(data.shape[:-1] + (4, ), dtype=np.ubyte)

        pmin = self.settings['vol_percentile_min']
        pmax = self.settings['vol_percentile_max']
        self.mappable.set_array(data.sum(axis=-1))
        vmin = np.percentile(data.sum(axis=-1), pmin)
        vmax = np.percentile(data.sum(axis=-1), pmax)
        tmin = np.percentile(data.sum(axis=-1),
                             self.settings['vol_transparent_percentile'])
        self.mappable.set_clim(vmin=vmin, vmax=vmax)
        # self.mappable.autoscale()

        for kk in range(nz):
            print('calculating rgba vals for %d of %d layers' % (kk, nz))
            sum_data = data[kk, :, :, :].sum(axis=-1)
            # print(sum_data.shape, self.volume.shape)
            self.volume[kk, :, :, :] = self.mappable.to_rgba(
                sum_data, alpha=self.settings['vol_alpha'], bytes=True)
            if self.settings['vol_transparent_min']:
                self.volume[kk, :, :, 3][np.nonzero(sum_data <= tmin)] = 0

        print('3d volume calculation complete')
        t1 = time.time()
        print('time elapsed: %0.3f s' % (t1 - t0))

        kwargs = {'x': len(self.x_array), 'y': len(self.x_array), 'z': nz}
        self.glaxis.setSize(**kwargs)
        self.glgrid.setSize(**kwargs)
        self.glgrid.setSpacing(x=1 / dx * 5, y=1 / dx * 5, z=1 / dx * 5)
        # print(self.mappable.get_cmap().name)
        # print(data.shape, self.volume.shape)

    def update_display(self):
        if hasattr(self, 'scalebar'):
            self.imview.getView().removeItem(self.scalebar)

        if self.display_image is not None:
            # pyqtgraph axes are x,y, but data is stored in (frame, y,x, time),
            # so we need to transpose
            self.imview.getImageItem().setImage(self.display_image.T)

            nn = self.display_image.shape

            if hasattr(self, 'h_span'):
                span = self.h_span
            else:
                span = -1
            self.scalebar = ConfocalScaleBar(span=span, num_px=nn[0])
            self.scalebar.setParentItem(self.imview.getView())
            self.scalebar.anchor((1, 1), (1, 1), offset=(-20, -20))

            if hasattr(self, 'volume') and self.settings['show_3d']:
                self.volitem.setData(np.swapaxes(self.volume, 0, 2))

            self.on_change_rect_roi()
            self.on_update_circ_roi()
Esempio n. 30
0
class Ui_FreeIMUCal(object):
    def setupUi(self, FreeIMUCal):
        FreeIMUCal.setObjectName(_fromUtf8("FreeIMUCal"))
        FreeIMUCal.resize(800, 680)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            FreeIMUCal.sizePolicy().hasHeightForWidth())
        FreeIMUCal.setSizePolicy(sizePolicy)
        FreeIMUCal.setMinimumSize(QtCore.QSize(800, 600))
        FreeIMUCal.setMaximumSize(QtCore.QSize(800, 680))
        FreeIMUCal.setDocumentMode(False)
        self.centralwidget = QtGui.QWidget(FreeIMUCal)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum,
                                       QtGui.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.centralwidget.sizePolicy().hasHeightForWidth())
        self.centralwidget.setSizePolicy(sizePolicy)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.line = QtGui.QFrame(self.centralwidget)
        self.line.setGeometry(QtCore.QRect(10, 20, 791, 16))
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.gridLayoutWidget = QtGui.QWidget(self.centralwidget)
        self.gridLayoutWidget.setGeometry(QtCore.QRect(0, 0, 801, 25))
        self.gridLayoutWidget.setObjectName(_fromUtf8("gridLayoutWidget"))
        self.gridLayout = QtGui.QGridLayout(self.gridLayoutWidget)
        self.gridLayout.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint)
        self.gridLayout.setMargin(0)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.line_2 = QtGui.QFrame(self.gridLayoutWidget)
        self.line_2.setFrameShape(QtGui.QFrame.VLine)
        self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_2.setObjectName(_fromUtf8("line_2"))
        self.gridLayout.addWidget(self.line_2, 0, 4, 1, 1)
        self.samplingToggleButton = QtGui.QPushButton(self.gridLayoutWidget)
        self.samplingToggleButton.setEnabled(False)
        self.samplingToggleButton.setAutoDefault(False)
        self.samplingToggleButton.setDefault(False)
        self.samplingToggleButton.setFlat(False)
        self.samplingToggleButton.setObjectName(
            _fromUtf8("samplingToggleButton"))
        self.gridLayout.addWidget(self.samplingToggleButton, 0, 7, 1, 1)
        self.serialPortEdit = QtGui.QLineEdit(self.gridLayoutWidget)
        self.serialPortEdit.setObjectName(_fromUtf8("serialPortEdit"))
        self.gridLayout.addWidget(self.serialPortEdit, 0, 1, 1, 1)
        self.calibrateButton = QtGui.QPushButton(self.gridLayoutWidget)
        self.calibrateButton.setEnabled(False)
        self.calibrateButton.setObjectName(_fromUtf8("calibrateButton"))
        self.gridLayout.addWidget(self.calibrateButton, 0, 9, 1, 1)
        self.label = QtGui.QLabel(self.gridLayoutWidget)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.calAlgorithmComboBox = QtGui.QComboBox(self.gridLayoutWidget)
        self.calAlgorithmComboBox.setEnabled(False)
        self.calAlgorithmComboBox.setObjectName(
            _fromUtf8("calAlgorithmComboBox"))
        self.calAlgorithmComboBox.addItem(_fromUtf8(""))
        self.gridLayout.addWidget(self.calAlgorithmComboBox, 0, 8, 1, 1)
        self.connectButton = QtGui.QPushButton(self.gridLayoutWidget)
        self.connectButton.setObjectName(_fromUtf8("connectButton"))
        self.gridLayout.addWidget(self.connectButton, 0, 3, 1, 1)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 0, 6, 1, 1)
        self.serialProtocol = QtGui.QComboBox(self.gridLayoutWidget)
        self.serialProtocol.setEnabled(True)
        self.serialProtocol.setObjectName(_fromUtf8("serialProtocol"))
        self.serialProtocol.addItem(_fromUtf8(""))
        self.gridLayout.addWidget(self.serialProtocol, 0, 2, 1, 1)
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setGeometry(QtCore.QRect(0, 30, 801, 631))
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.uncalibratedTab = QtGui.QWidget()
        self.uncalibratedTab.setObjectName(_fromUtf8("uncalibratedTab"))
        self.gridLayoutWidget_4 = QtGui.QWidget(self.uncalibratedTab)
        self.gridLayoutWidget_4.setGeometry(QtCore.QRect(0, 10, 791, 588))
        self.gridLayoutWidget_4.setObjectName(_fromUtf8("gridLayoutWidget_4"))
        self.gridLayout_4 = QtGui.QGridLayout(self.gridLayoutWidget_4)
        self.gridLayout_4.setSizeConstraint(QtGui.QLayout.SetMaximumSize)
        self.gridLayout_4.setMargin(0)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.gridLayout_5 = QtGui.QGridLayout()
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        self.label_2 = QtGui.QLabel(self.gridLayoutWidget_4)
        self.label_2.setAlignment(QtCore.Qt.AlignCenter)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout_5.addWidget(self.label_2, 0, 1, 1, 1)
        self.accYZ = PlotWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.accYZ.sizePolicy().hasHeightForWidth())
        self.accYZ.setSizePolicy(sizePolicy)
        self.accYZ.setObjectName(_fromUtf8("accYZ"))
        self.gridLayout_5.addWidget(self.accYZ, 1, 0, 1, 1)
        self.accZX = PlotWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.accZX.sizePolicy().hasHeightForWidth())
        self.accZX.setSizePolicy(sizePolicy)
        self.accZX.setObjectName(_fromUtf8("accZX"))
        self.gridLayout_5.addWidget(self.accZX, 1, 1, 1, 1)
        self.accXY = PlotWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.accXY.sizePolicy().hasHeightForWidth())
        self.accXY.setSizePolicy(sizePolicy)
        self.accXY.setObjectName(_fromUtf8("accXY"))
        self.gridLayout_5.addWidget(self.accXY, 0, 0, 1, 1)
        self.gridLayout_4.addLayout(self.gridLayout_5, 1, 0, 1, 1)
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setSizeConstraint(QtGui.QLayout.SetFixedSize)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.magnXY = PlotWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.magnXY.sizePolicy().hasHeightForWidth())
        self.magnXY.setSizePolicy(sizePolicy)
        self.magnXY.setObjectName(_fromUtf8("magnXY"))
        self.gridLayout_3.addWidget(self.magnXY, 0, 0, 1, 1)
        self.magnYZ = PlotWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.magnYZ.sizePolicy().hasHeightForWidth())
        self.magnYZ.setSizePolicy(sizePolicy)
        self.magnYZ.setObjectName(_fromUtf8("magnYZ"))
        self.gridLayout_3.addWidget(self.magnYZ, 1, 0, 1, 1)
        self.magnZX = PlotWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.magnZX.sizePolicy().hasHeightForWidth())
        self.magnZX.setSizePolicy(sizePolicy)
        self.magnZX.setObjectName(_fromUtf8("magnZX"))
        self.gridLayout_3.addWidget(self.magnZX, 1, 1, 1, 1)
        self.label_3 = QtGui.QLabel(self.gridLayoutWidget_4)
        self.label_3.setAlignment(QtCore.Qt.AlignCenter)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout_3.addWidget(self.label_3, 0, 1, 1, 1)
        self.gridLayout_4.addLayout(self.gridLayout_3, 1, 2, 1, 1)
        self.magn3D = GLViewWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.magn3D.sizePolicy().hasHeightForWidth())
        self.magn3D.setSizePolicy(sizePolicy)
        self.magn3D.setObjectName(_fromUtf8("magn3D"))
        self.gridLayout_4.addWidget(self.magn3D, 0, 2, 1, 1)
        self.acc3D = GLViewWidget(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.acc3D.sizePolicy().hasHeightForWidth())
        self.acc3D.setSizePolicy(sizePolicy)
        self.acc3D.setObjectName(_fromUtf8("acc3D"))
        self.gridLayout_4.addWidget(self.acc3D, 0, 0, 1, 1)
        self.line_3 = QtGui.QFrame(self.gridLayoutWidget_4)
        self.line_3.setLineWidth(1)
        self.line_3.setFrameShape(QtGui.QFrame.VLine)
        self.line_3.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_3.setObjectName(_fromUtf8("line_3"))
        self.gridLayout_4.addWidget(self.line_3, 1, 1, 1, 1)
        self.tabWidget.addTab(self.uncalibratedTab, _fromUtf8(""))
        self.calibratedTab = QtGui.QWidget()
        self.calibratedTab.setObjectName(_fromUtf8("calibratedTab"))
        self.horizontalLayoutWidget = QtGui.QWidget(self.calibratedTab)
        self.horizontalLayoutWidget.setGeometry(QtCore.QRect(0, 380, 791, 181))
        self.horizontalLayoutWidget.setObjectName(
            _fromUtf8("horizontalLayoutWidget"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.horizontalLayoutWidget)
        self.horizontalLayout.setMargin(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.groupBox = QtGui.QGroupBox(self.horizontalLayoutWidget)
        self.groupBox.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft
                                   | QtCore.Qt.AlignVCenter)
        self.groupBox.setFlat(False)
        self.groupBox.setCheckable(False)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.layoutWidget = QtGui.QWidget(self.groupBox)
        self.layoutWidget.setGeometry(QtCore.QRect(10, 20, 381, 154))
        self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
        self.formLayout_3 = QtGui.QFormLayout(self.layoutWidget)
        self.formLayout_3.setSizeConstraint(QtGui.QLayout.SetNoConstraint)
        self.formLayout_3.setFieldGrowthPolicy(
            QtGui.QFormLayout.ExpandingFieldsGrow)
        self.formLayout_3.setLabelAlignment(QtCore.Qt.AlignLeading
                                            | QtCore.Qt.AlignLeft
                                            | QtCore.Qt.AlignVCenter)
        self.formLayout_3.setMargin(0)
        self.formLayout_3.setObjectName(_fromUtf8("formLayout_3"))
        self.label_14 = QtGui.QLabel(self.layoutWidget)
        self.label_14.setObjectName(_fromUtf8("label_14"))
        self.formLayout_3.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.label_14)
        self.calRes_acc_OSx = QtGui.QLineEdit(self.layoutWidget)
        self.calRes_acc_OSx.setObjectName(_fromUtf8("calRes_acc_OSx"))
        self.formLayout_3.setWidget(0, QtGui.QFormLayout.FieldRole,
                                    self.calRes_acc_OSx)
        self.label_15 = QtGui.QLabel(self.layoutWidget)
        self.label_15.setObjectName(_fromUtf8("label_15"))
        self.formLayout_3.setWidget(1, QtGui.QFormLayout.LabelRole,
                                    self.label_15)
        self.calRes_acc_OSy = QtGui.QLineEdit(self.layoutWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.calRes_acc_OSy.sizePolicy().hasHeightForWidth())
        self.calRes_acc_OSy.setSizePolicy(sizePolicy)
        self.calRes_acc_OSy.setObjectName(_fromUtf8("calRes_acc_OSy"))
        self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole,
                                    self.calRes_acc_OSy)
        self.label_16 = QtGui.QLabel(self.layoutWidget)
        self.label_16.setObjectName(_fromUtf8("label_16"))
        self.formLayout_3.setWidget(2, QtGui.QFormLayout.LabelRole,
                                    self.label_16)
        self.calRes_acc_OSz = QtGui.QLineEdit(self.layoutWidget)
        self.calRes_acc_OSz.setObjectName(_fromUtf8("calRes_acc_OSz"))
        self.formLayout_3.setWidget(2, QtGui.QFormLayout.FieldRole,
                                    self.calRes_acc_OSz)
        self.label_17 = QtGui.QLabel(self.layoutWidget)
        self.label_17.setObjectName(_fromUtf8("label_17"))
        self.formLayout_3.setWidget(3, QtGui.QFormLayout.LabelRole,
                                    self.label_17)
        self.calRes_acc_SCx = QtGui.QLineEdit(self.layoutWidget)
        self.calRes_acc_SCx.setObjectName(_fromUtf8("calRes_acc_SCx"))
        self.formLayout_3.setWidget(3, QtGui.QFormLayout.FieldRole,
                                    self.calRes_acc_SCx)
        self.label_18 = QtGui.QLabel(self.layoutWidget)
        self.label_18.setObjectName(_fromUtf8("label_18"))
        self.formLayout_3.setWidget(4, QtGui.QFormLayout.LabelRole,
                                    self.label_18)
        self.calRes_acc_SCy = QtGui.QLineEdit(self.layoutWidget)
        self.calRes_acc_SCy.setObjectName(_fromUtf8("calRes_acc_SCy"))
        self.formLayout_3.setWidget(4, QtGui.QFormLayout.FieldRole,
                                    self.calRes_acc_SCy)
        self.label_19 = QtGui.QLabel(self.layoutWidget)
        self.label_19.setObjectName(_fromUtf8("label_19"))
        self.formLayout_3.setWidget(5, QtGui.QFormLayout.LabelRole,
                                    self.label_19)
        self.calRes_acc_SCz = QtGui.QLineEdit(self.layoutWidget)
        self.calRes_acc_SCz.setObjectName(_fromUtf8("calRes_acc_SCz"))
        self.formLayout_3.setWidget(5, QtGui.QFormLayout.FieldRole,
                                    self.calRes_acc_SCz)
        self.horizontalLayout.addWidget(self.groupBox)
        self.groupBox_2 = QtGui.QGroupBox(self.horizontalLayoutWidget)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.layoutWidget_2 = QtGui.QWidget(self.groupBox_2)
        self.layoutWidget_2.setGeometry(QtCore.QRect(10, 20, 381, 154))
        self.layoutWidget_2.setObjectName(_fromUtf8("layoutWidget_2"))
        self.formLayout_5 = QtGui.QFormLayout(self.layoutWidget_2)
        self.formLayout_5.setSizeConstraint(QtGui.QLayout.SetNoConstraint)
        self.formLayout_5.setFieldGrowthPolicy(
            QtGui.QFormLayout.ExpandingFieldsGrow)
        self.formLayout_5.setLabelAlignment(QtCore.Qt.AlignLeading
                                            | QtCore.Qt.AlignLeft
                                            | QtCore.Qt.AlignVCenter)
        self.formLayout_5.setMargin(0)
        self.formLayout_5.setObjectName(_fromUtf8("formLayout_5"))
        self.label_27 = QtGui.QLabel(self.layoutWidget_2)
        self.label_27.setObjectName(_fromUtf8("label_27"))
        self.formLayout_5.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.label_27)
        self.calRes_magn_OSx = QtGui.QLineEdit(self.layoutWidget_2)
        self.calRes_magn_OSx.setObjectName(_fromUtf8("calRes_magn_OSx"))
        self.formLayout_5.setWidget(0, QtGui.QFormLayout.FieldRole,
                                    self.calRes_magn_OSx)
        self.label_28 = QtGui.QLabel(self.layoutWidget_2)
        self.label_28.setObjectName(_fromUtf8("label_28"))
        self.formLayout_5.setWidget(1, QtGui.QFormLayout.LabelRole,
                                    self.label_28)
        self.calRes_magn_OSy = QtGui.QLineEdit(self.layoutWidget_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.calRes_magn_OSy.sizePolicy().hasHeightForWidth())
        self.calRes_magn_OSy.setSizePolicy(sizePolicy)
        self.calRes_magn_OSy.setObjectName(_fromUtf8("calRes_magn_OSy"))
        self.formLayout_5.setWidget(1, QtGui.QFormLayout.FieldRole,
                                    self.calRes_magn_OSy)
        self.label_29 = QtGui.QLabel(self.layoutWidget_2)
        self.label_29.setObjectName(_fromUtf8("label_29"))
        self.formLayout_5.setWidget(2, QtGui.QFormLayout.LabelRole,
                                    self.label_29)
        self.calRes_magn_OSz = QtGui.QLineEdit(self.layoutWidget_2)
        self.calRes_magn_OSz.setObjectName(_fromUtf8("calRes_magn_OSz"))
        self.formLayout_5.setWidget(2, QtGui.QFormLayout.FieldRole,
                                    self.calRes_magn_OSz)
        self.label_30 = QtGui.QLabel(self.layoutWidget_2)
        self.label_30.setObjectName(_fromUtf8("label_30"))
        self.formLayout_5.setWidget(3, QtGui.QFormLayout.LabelRole,
                                    self.label_30)
        self.calRes_magn_SCx = QtGui.QLineEdit(self.layoutWidget_2)
        self.calRes_magn_SCx.setObjectName(_fromUtf8("calRes_magn_SCx"))
        self.formLayout_5.setWidget(3, QtGui.QFormLayout.FieldRole,
                                    self.calRes_magn_SCx)
        self.label_31 = QtGui.QLabel(self.layoutWidget_2)
        self.label_31.setObjectName(_fromUtf8("label_31"))
        self.formLayout_5.setWidget(4, QtGui.QFormLayout.LabelRole,
                                    self.label_31)
        self.calRes_magn_SCy = QtGui.QLineEdit(self.layoutWidget_2)
        self.calRes_magn_SCy.setObjectName(_fromUtf8("calRes_magn_SCy"))
        self.formLayout_5.setWidget(4, QtGui.QFormLayout.FieldRole,
                                    self.calRes_magn_SCy)
        self.label_32 = QtGui.QLabel(self.layoutWidget_2)
        self.label_32.setObjectName(_fromUtf8("label_32"))
        self.formLayout_5.setWidget(5, QtGui.QFormLayout.LabelRole,
                                    self.label_32)
        self.calRes_magn_SCz = QtGui.QLineEdit(self.layoutWidget_2)
        self.calRes_magn_SCz.setObjectName(_fromUtf8("calRes_magn_SCz"))
        self.formLayout_5.setWidget(5, QtGui.QFormLayout.FieldRole,
                                    self.calRes_magn_SCz)
        self.horizontalLayout.addWidget(self.groupBox_2)
        self.horizontalLayoutWidget_2 = QtGui.QWidget(self.calibratedTab)
        self.horizontalLayoutWidget_2.setGeometry(
            QtCore.QRect(488, 560, 301, 31))
        self.horizontalLayoutWidget_2.setObjectName(
            _fromUtf8("horizontalLayoutWidget_2"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(
            self.horizontalLayoutWidget_2)
        self.horizontalLayout_2.setMargin(0)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.saveCalibrationEEPROMButton = QtGui.QPushButton(
            self.horizontalLayoutWidget_2)
        self.saveCalibrationEEPROMButton.setEnabled(False)
        self.saveCalibrationEEPROMButton.setObjectName(
            _fromUtf8("saveCalibrationEEPROMButton"))
        self.horizontalLayout_2.addWidget(self.saveCalibrationEEPROMButton)
        self.saveCalibrationHeaderButton = QtGui.QPushButton(
            self.horizontalLayoutWidget_2)
        self.saveCalibrationHeaderButton.setEnabled(False)
        self.saveCalibrationHeaderButton.setObjectName(
            _fromUtf8("saveCalibrationHeaderButton"))
        self.horizontalLayout_2.addWidget(self.saveCalibrationHeaderButton)
        self.horizontalLayoutWidget_3 = QtGui.QWidget(self.calibratedTab)
        self.horizontalLayoutWidget_3.setGeometry(QtCore.QRect(0, 0, 791, 381))
        self.horizontalLayoutWidget_3.setObjectName(
            _fromUtf8("horizontalLayoutWidget_3"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(
            self.horizontalLayoutWidget_3)
        self.horizontalLayout_3.setMargin(0)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.tabWidget_2 = QtGui.QTabWidget(self.horizontalLayoutWidget_3)
        self.tabWidget_2.setTabPosition(QtGui.QTabWidget.South)
        self.tabWidget_2.setTabShape(QtGui.QTabWidget.Rounded)
        self.tabWidget_2.setUsesScrollButtons(True)
        self.tabWidget_2.setDocumentMode(False)
        self.tabWidget_2.setTabsClosable(False)
        self.tabWidget_2.setMovable(False)
        self.tabWidget_2.setObjectName(_fromUtf8("tabWidget_2"))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.accXY_cal = PlotWidget(self.tab)
        self.accXY_cal.setGeometry(QtCore.QRect(0, 0, 781, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.accXY_cal.sizePolicy().hasHeightForWidth())
        self.accXY_cal.setSizePolicy(sizePolicy)
        self.accXY_cal.setObjectName(_fromUtf8("accXY_cal"))
        self.tabWidget_2.addTab(self.tab, _fromUtf8(""))
        self.tab_4 = QtGui.QWidget()
        self.tab_4.setObjectName(_fromUtf8("tab_4"))
        self.accYZ_cal = PlotWidget(self.tab_4)
        self.accYZ_cal.setGeometry(QtCore.QRect(0, 0, 781, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.accYZ_cal.sizePolicy().hasHeightForWidth())
        self.accYZ_cal.setSizePolicy(sizePolicy)
        self.accYZ_cal.setObjectName(_fromUtf8("accYZ_cal"))
        self.tabWidget_2.addTab(self.tab_4, _fromUtf8(""))
        self.tab_3 = QtGui.QWidget()
        self.tab_3.setObjectName(_fromUtf8("tab_3"))
        self.accZX_cal = PlotWidget(self.tab_3)
        self.accZX_cal.setGeometry(QtCore.QRect(0, 0, 781, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.accZX_cal.sizePolicy().hasHeightForWidth())
        self.accZX_cal.setSizePolicy(sizePolicy)
        self.accZX_cal.setObjectName(_fromUtf8("accZX_cal"))
        self.tabWidget_2.addTab(self.tab_3, _fromUtf8(""))
        self.tab_7 = QtGui.QWidget()
        self.tab_7.setObjectName(_fromUtf8("tab_7"))
        self.acc3D_cal = GLViewWidget(self.tab_7)
        self.acc3D_cal.setGeometry(QtCore.QRect(0, 0, 389, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.acc3D_cal.sizePolicy().hasHeightForWidth())
        self.acc3D_cal.setSizePolicy(sizePolicy)
        self.acc3D_cal.setObjectName(_fromUtf8("acc3D_cal"))
        self.tabWidget_2.addTab(self.tab_7, _fromUtf8(""))
        self.horizontalLayout_3.addWidget(self.tabWidget_2)
        self.tabWidget_3 = QtGui.QTabWidget(self.horizontalLayoutWidget_3)
        self.tabWidget_3.setTabPosition(QtGui.QTabWidget.South)
        self.tabWidget_3.setTabShape(QtGui.QTabWidget.Rounded)
        self.tabWidget_3.setUsesScrollButtons(True)
        self.tabWidget_3.setDocumentMode(False)
        self.tabWidget_3.setTabsClosable(False)
        self.tabWidget_3.setMovable(False)
        self.tabWidget_3.setObjectName(_fromUtf8("tabWidget_3"))
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName(_fromUtf8("tab_2"))
        self.magnXY_cal = PlotWidget(self.tab_2)
        self.magnXY_cal.setGeometry(QtCore.QRect(0, 0, 781, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.magnXY_cal.sizePolicy().hasHeightForWidth())
        self.magnXY_cal.setSizePolicy(sizePolicy)
        self.magnXY_cal.setObjectName(_fromUtf8("magnXY_cal"))
        self.tabWidget_3.addTab(self.tab_2, _fromUtf8(""))
        self.tab_5 = QtGui.QWidget()
        self.tab_5.setObjectName(_fromUtf8("tab_5"))
        self.magnYZ_cal = PlotWidget(self.tab_5)
        self.magnYZ_cal.setGeometry(QtCore.QRect(0, 0, 781, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.magnYZ_cal.sizePolicy().hasHeightForWidth())
        self.magnYZ_cal.setSizePolicy(sizePolicy)
        self.magnYZ_cal.setObjectName(_fromUtf8("magnYZ_cal"))
        self.tabWidget_3.addTab(self.tab_5, _fromUtf8(""))
        self.tab_6 = QtGui.QWidget()
        self.tab_6.setObjectName(_fromUtf8("tab_6"))
        self.magnZX_cal = PlotWidget(self.tab_6)
        self.magnZX_cal.setGeometry(QtCore.QRect(0, 0, 781, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.magnZX_cal.sizePolicy().hasHeightForWidth())
        self.magnZX_cal.setSizePolicy(sizePolicy)
        self.magnZX_cal.setObjectName(_fromUtf8("magnZX_cal"))
        self.tabWidget_3.addTab(self.tab_6, _fromUtf8(""))
        self.tab_8 = QtGui.QWidget()
        self.tab_8.setObjectName(_fromUtf8("tab_8"))
        self.magn3D_cal = GLViewWidget(self.tab_8)
        self.magn3D_cal.setGeometry(QtCore.QRect(0, 0, 389, 351))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.magn3D_cal.sizePolicy().hasHeightForWidth())
        self.magn3D_cal.setSizePolicy(sizePolicy)
        self.magn3D_cal.setObjectName(_fromUtf8("magn3D_cal"))
        self.tabWidget_3.addTab(self.tab_8, _fromUtf8(""))
        self.horizontalLayout_3.addWidget(self.tabWidget_3)
        self.horizontalLayoutWidget_4 = QtGui.QWidget(self.calibratedTab)
        self.horizontalLayoutWidget_4.setGeometry(QtCore.QRect(
            0, 560, 161, 31))
        self.horizontalLayoutWidget_4.setObjectName(
            _fromUtf8("horizontalLayoutWidget_4"))
        self.horizontalLayout_4 = QtGui.QHBoxLayout(
            self.horizontalLayoutWidget_4)
        self.horizontalLayout_4.setMargin(0)
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.clearCalibrationEEPROMButton = QtGui.QPushButton(
            self.horizontalLayoutWidget_4)
        self.clearCalibrationEEPROMButton.setEnabled(False)
        self.clearCalibrationEEPROMButton.setObjectName(
            _fromUtf8("clearCalibrationEEPROMButton"))
        self.horizontalLayout_4.addWidget(self.clearCalibrationEEPROMButton)
        self.tabWidget.addTab(self.calibratedTab, _fromUtf8(""))
        self.tab_9 = QtGui.QWidget()
        self.tab_9.setObjectName(_fromUtf8("tab_9"))
        self.label_4 = QtGui.QLabel(self.tab_9)
        self.label_4.setGeometry(QtCore.QRect(290, 270, 261, 16))
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.tabWidget.addTab(self.tab_9, _fromUtf8(""))
        FreeIMUCal.setCentralWidget(self.centralwidget)
        self.statusbar = QtGui.QStatusBar(FreeIMUCal)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        FreeIMUCal.setStatusBar(self.statusbar)

        self.retranslateUi(FreeIMUCal)
        self.tabWidget.setCurrentIndex(0)
        self.tabWidget_2.setCurrentIndex(0)
        self.tabWidget_3.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(FreeIMUCal)

    def retranslateUi(self, FreeIMUCal):
        FreeIMUCal.setWindowTitle(
            _translate("FreeIMUCal", "FreeIMU Calibration Application", None))
        self.samplingToggleButton.setToolTip(
            _translate(
                "FreeIMUCal",
                "Toggle Start/Stop sampling of sensor data from the IMU",
                None))
        self.samplingToggleButton.setText(
            _translate("FreeIMUCal", "Start Sampling", None))
        self.calibrateButton.setToolTip(
            _translate("FreeIMUCal",
                       "Run calibration algorithm over the data collected",
                       None))
        self.calibrateButton.setText(
            _translate("FreeIMUCal", "Calibrate", None))
        self.label.setText(_translate("FreeIMUCal", "Serial Port:", None))
        self.calAlgorithmComboBox.setToolTip(
            _translate(
                "FreeIMUCal",
                "<html><head/><body><p>Calibration Algorithm used.</p></body></html>",
                None))
        self.calAlgorithmComboBox.setItemText(
            0, _translate("FreeIMUCal", "Ellipsoid to Sphere", None))
        self.connectButton.setToolTip(
            _translate("FreeIMUCal", "Connect or Disconnect from the Arduino",
                       None))
        self.connectButton.setText(_translate("FreeIMUCal", "Connect", None))
        self.serialProtocol.setToolTip(
            _translate("FreeIMUCal", "Serial Protocol to Communicate with IMU",
                       None))
        self.serialProtocol.setItemText(
            0, _translate("FreeIMUCal", "FreeIMU_serial", None))
        self.label_2.setText(_translate("FreeIMUCal", "Accelerometer", None))
        self.label_3.setText(_translate("FreeIMUCal", "Magnetometer", None))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.uncalibratedTab),
            _translate("FreeIMUCal", "Uncalibrated", None))
        self.groupBox.setTitle(_translate("FreeIMUCal", "Accelerometer", None))
        self.label_14.setText(_translate("FreeIMUCal", "Offset X", None))
        self.label_15.setText(_translate("FreeIMUCal", "Offset Y", None))
        self.label_16.setText(_translate("FreeIMUCal", "Offset Z", None))
        self.label_17.setText(_translate("FreeIMUCal", "Scale X", None))
        self.label_18.setText(_translate("FreeIMUCal", "Scale Y", None))
        self.label_19.setText(_translate("FreeIMUCal", "Scale Z", None))
        self.groupBox_2.setTitle(_translate("FreeIMUCal", "Magnetometer",
                                            None))
        self.label_27.setText(_translate("FreeIMUCal", "Offset X", None))
        self.label_28.setText(_translate("FreeIMUCal", "Offset Y", None))
        self.label_29.setText(_translate("FreeIMUCal", "Offset Z", None))
        self.label_30.setText(_translate("FreeIMUCal", "Scale X", None))
        self.label_31.setText(_translate("FreeIMUCal", "Scale Y", None))
        self.label_32.setText(_translate("FreeIMUCal", "Scale Z", None))
        self.saveCalibrationEEPROMButton.setToolTip(
            _translate(
                "FreeIMUCal",
                "Store the calibration parameters to the microcontroller EEPROM",
                None))
        self.saveCalibrationEEPROMButton.setText(
            _translate("FreeIMUCal", "Save to EEPROM", None))
        self.saveCalibrationHeaderButton.setToolTip(
            _translate(
                "FreeIMUCal",
                "Store the calibration parameters in an header .h file. When such header is active the EEPROM calibration storage code is disabled thus saving program and data memory.",
                None))
        self.saveCalibrationHeaderButton.setText(
            _translate("FreeIMUCal", "Save to calibration.h", None))
        self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab),
                                    _translate("FreeIMUCal", "Acc XY", None))
        self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_4),
                                    _translate("FreeIMUCal", "Acc YZ", None))
        self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_3),
                                    _translate("FreeIMUCal", "Acc ZX", None))
        self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_7),
                                    _translate("FreeIMUCal", "Acc 3D", None))
        self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_2),
                                    _translate("FreeIMUCal", "Magn XY", None))
        self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_5),
                                    _translate("FreeIMUCal", "Magn YZ", None))
        self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_6),
                                    _translate("FreeIMUCal", "Magn ZX", None))
        self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_8),
                                    _translate("FreeIMUCal", "Magn 3D", None))
        self.clearCalibrationEEPROMButton.setToolTip(
            _translate(
                "FreeIMUCal",
                "<html><head/><body><p>Clear any calibration parameter from the microcontroller EEPROM</p></body></html>",
                None))
        self.clearCalibrationEEPROMButton.setText(
            _translate("FreeIMUCal", "Clear EEPROM", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.calibratedTab),
                                  _translate("FreeIMUCal", "Calibrated", None))
        self.label_4.setText(
            _translate("FreeIMUCal", "To Be Implemented", None))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.tab_9),
            _translate("FreeIMUCal", "Orientation Sensing Test", None))
Esempio n. 31
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1115, 840)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.centralwidget)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.mainFrame = QtWidgets.QFrame(self.centralwidget)
        self.mainFrame.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.mainFrame.setFrameShadow(QtWidgets.QFrame.Plain)
        self.mainFrame.setObjectName("mainFrame")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.mainFrame)
        self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_4.setSpacing(5)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.upView = QtWidgets.QGraphicsView(self.mainFrame)
        self.upView.setObjectName("upView")
        self.verticalLayout_2.addWidget(self.upView)
        self.downView = QtWidgets.QGraphicsView(self.mainFrame)
        self.downView.setObjectName("downView")
        self.verticalLayout_2.addWidget(self.downView)
        self.horizontalLayout_4.addLayout(self.verticalLayout_2)
        self.mainView = GLViewWidget(self.mainFrame)
        self.mainView.setObjectName("mainView")
        self.horizontalLayout_4.addWidget(self.mainView)
        self.horizontalLayout_4.setStretch(0, 5)
        self.horizontalLayout_4.setStretch(1, 4)
        self.verticalLayout.addWidget(self.mainFrame)
        self.parameterFrame = QtWidgets.QFrame(self.centralwidget)
        self.parameterFrame.setFrameShape(QtWidgets.QFrame.Box)
        self.parameterFrame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.parameterFrame.setObjectName("parameterFrame")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.parameterFrame)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem)
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setContentsMargins(-1, -1, 20, -1)
        self.gridLayout.setObjectName("gridLayout")
        self.upAction = QtWidgets.QLabel(self.parameterFrame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Ignored)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.upAction.sizePolicy().hasHeightForWidth())
        self.upAction.setSizePolicy(sizePolicy)
        self.upAction.setMinimumSize(QtCore.QSize(5, 5))
        self.upAction.setText("")
        self.upAction.setPixmap(QtGui.QPixmap("arrow_up.png"))
        self.upAction.setScaledContents(True)
        self.upAction.setObjectName("upAction")
        self.gridLayout.addWidget(self.upAction, 0, 1, 1, 1)
        self.rightAction = QtWidgets.QLabel(self.parameterFrame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Ignored)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.rightAction.sizePolicy().hasHeightForWidth())
        self.rightAction.setSizePolicy(sizePolicy)
        self.rightAction.setMinimumSize(QtCore.QSize(50, 5))
        self.rightAction.setText("")
        self.rightAction.setPixmap(QtGui.QPixmap("arrow_right.png"))
        self.rightAction.setScaledContents(True)
        self.rightAction.setObjectName("rightAction")
        self.gridLayout.addWidget(self.rightAction, 1, 2, 1, 1)
        self.leftAction = QtWidgets.QLabel(self.parameterFrame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.leftAction.sizePolicy().hasHeightForWidth())
        self.leftAction.setSizePolicy(sizePolicy)
        self.leftAction.setMinimumSize(QtCore.QSize(50, 5))
        self.leftAction.setText("")
        self.leftAction.setPixmap(QtGui.QPixmap("arrow_left.png"))
        self.leftAction.setScaledContents(True)
        self.leftAction.setObjectName("leftAction")
        self.gridLayout.addWidget(self.leftAction, 1, 0, 1, 1)
        self.downAction = QtWidgets.QLabel(self.parameterFrame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Ignored)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.downAction.sizePolicy().hasHeightForWidth())
        self.downAction.setSizePolicy(sizePolicy)
        self.downAction.setMinimumSize(QtCore.QSize(50, 5))
        self.downAction.setText("")
        self.downAction.setPixmap(QtGui.QPixmap("arrow_down.png"))
        self.downAction.setScaledContents(True)
        self.downAction.setObjectName("downAction")
        self.gridLayout.addWidget(self.downAction, 2, 1, 1, 1)
        self.gridLayout.setColumnStretch(0, 1)
        self.gridLayout.setColumnStretch(1, 1)
        self.gridLayout.setColumnStretch(2, 1)
        self.gridLayout.setRowStretch(0, 1)
        self.gridLayout.setRowStretch(1, 1)
        self.gridLayout.setRowStretch(2, 1)
        self.horizontalLayout_3.addLayout(self.gridLayout)
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.connectButton = QtWidgets.QPushButton(self.parameterFrame)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.connectButton.setFont(font)
        self.connectButton.setAutoFillBackground(False)
        self.connectButton.setObjectName("connectButton")
        self.gridLayout_2.addWidget(self.connectButton, 0, 1, 1, 1)
        self.comportCombobox = QtWidgets.QComboBox(self.parameterFrame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.comportCombobox.sizePolicy().hasHeightForWidth())
        self.comportCombobox.setSizePolicy(sizePolicy)
        self.comportCombobox.setMinimumSize(QtCore.QSize(0, 25))
        self.comportCombobox.setObjectName("comportCombobox")
        self.gridLayout_2.addWidget(self.comportCombobox, 0, 0, 1, 1)
        self.stopButton = QtWidgets.QPushButton(self.parameterFrame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.stopButton.sizePolicy().hasHeightForWidth())
        self.stopButton.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setBold(True)
        font.setUnderline(False)
        font.setWeight(75)
        self.stopButton.setFont(font)
        self.stopButton.setAutoFillBackground(False)
        self.stopButton.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("stop.jpg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.stopButton.setIcon(icon)
        self.stopButton.setIconSize(QtCore.QSize(50, 50))
        self.stopButton.setCheckable(False)
        self.stopButton.setObjectName("stopButton")
        self.gridLayout_2.addWidget(self.stopButton, 1, 1, 1, 1)
        self.gridLayout_2.setColumnStretch(0, 2)
        self.horizontalLayout_3.addLayout(self.gridLayout_2)
        self.horizontalLayout_3.setStretch(0, 20)
        self.horizontalLayout_3.setStretch(1, 1)
        self.horizontalLayout_3.setStretch(2, 4)
        self.verticalLayout.addWidget(self.parameterFrame)
        self.verticalLayout.setStretch(0, 6)
        self.verticalLayout.setStretch(1, 1)
        self.horizontalLayout.addLayout(self.verticalLayout)
        self.horizontalLayout.setStretch(0, 5)
        self.horizontalLayout_2.addLayout(self.horizontalLayout)
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.toolBar = QtWidgets.QToolBar(MainWindow)
        self.toolBar.setIconSize(QtCore.QSize(25, 25))
        self.toolBar.setFloatable(True)
        self.toolBar.setObjectName("toolBar")
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.connectAction = QtWidgets.QAction(MainWindow)
        self.connectAction.setCheckable(True)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap("connected.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.connectAction.setIcon(icon1)
        self.connectAction.setObjectName("connectAction")
        self.toolBar.addAction(self.connectAction)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Esempio n. 32
0
class Ui_bodyForm(object):
    def setupUi(self, bodyForm):
        bodyForm.setObjectName("bodyForm")
        bodyForm.resize(626, 328)
        bodyForm.setMinimumSize(QtCore.QSize(626, 328))
        bodyForm.setMaximumSize(QtCore.QSize(900, 900))
        bodyForm.setToolTipDuration(5)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(bodyForm)
        self.horizontalLayout_3.setContentsMargins(6, 3, 6, 3)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.GB_body = QtWidgets.QGroupBox(bodyForm)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.GB_body.sizePolicy().hasHeightForWidth())
        self.GB_body.setSizePolicy(sizePolicy)
        self.GB_body.setObjectName("GB_body")
        self.gridLayout = QtWidgets.QGridLayout(self.GB_body)
        self.gridLayout.setContentsMargins(9, 5, 9, 5)
        self.gridLayout.setObjectName("gridLayout")
        self.frame = QtWidgets.QFrame(self.GB_body)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth())
        self.frame.setSizePolicy(sizePolicy)
        self.frame.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.btn_ok = QtWidgets.QPushButton(self.frame)
        self.btn_ok.setObjectName("btn_ok")
        self.horizontalLayout.addWidget(self.btn_ok)
        self.btn_cancel = QtWidgets.QPushButton(self.frame)
        self.btn_cancel.setObjectName("btn_cancel")
        self.horizontalLayout.addWidget(self.btn_cancel)
        self.gridLayout.addWidget(self.frame, 9, 1, 1, 1)
        self.cb_preset = QtWidgets.QComboBox(self.GB_body)
        self.cb_preset.setObjectName("cb_preset")
        self.gridLayout.addWidget(self.cb_preset, 0, 1, 1, 1)
        self.lbl_preset = QtWidgets.QLabel(self.GB_body)
        self.lbl_preset.setObjectName("lbl_preset")
        self.gridLayout.addWidget(self.lbl_preset, 0, 0, 1, 1)
        self.lbl_sma = QtWidgets.QLabel(self.GB_body)
        self.lbl_sma.setObjectName("lbl_sma")
        self.gridLayout.addWidget(self.lbl_sma, 4, 0, 1, 1)
        self.lbl_inc = QtWidgets.QLabel(self.GB_body)
        self.lbl_inc.setObjectName("lbl_inc")
        self.gridLayout.addWidget(self.lbl_inc, 6, 0, 1, 1)
        self.lbl_radius = QtWidgets.QLabel(self.GB_body)
        self.lbl_radius.setObjectName("lbl_radius")
        self.gridLayout.addWidget(self.lbl_radius, 3, 0, 1, 1)
        self.lbl_mass = QtWidgets.QLabel(self.GB_body)
        self.lbl_mass.setObjectName("lbl_mass")
        self.gridLayout.addWidget(self.lbl_mass, 2, 0, 1, 1)
        self.lbl_vel = QtWidgets.QLabel(self.GB_body)
        self.lbl_vel.setObjectName("lbl_vel")
        self.gridLayout.addWidget(self.lbl_vel, 5, 0, 1, 1)
        self.lbl_name = QtWidgets.QLabel(self.GB_body)
        self.lbl_name.setObjectName("lbl_name")
        self.gridLayout.addWidget(self.lbl_name, 1, 0, 1, 1)
        self.le_radius = QtWidgets.QLineEdit(self.GB_body)
        self.le_radius.setObjectName("le_radius")
        self.gridLayout.addWidget(self.le_radius, 3, 1, 1, 1)
        self.le_sma = QtWidgets.QLineEdit(self.GB_body)
        self.le_sma.setObjectName("le_sma")
        self.gridLayout.addWidget(self.le_sma, 4, 1, 1, 1)
        self.le_inc = QtWidgets.QLineEdit(self.GB_body)
        self.le_inc.setObjectName("le_inc")
        self.gridLayout.addWidget(self.le_inc, 6, 1, 1, 1)
        self.le_vel = QtWidgets.QLineEdit(self.GB_body)
        self.le_vel.setObjectName("le_vel")
        self.gridLayout.addWidget(self.le_vel, 5, 1, 1, 1)
        self.le_mass = QtWidgets.QLineEdit(self.GB_body)
        self.le_mass.setObjectName("le_mass")
        self.gridLayout.addWidget(self.le_mass, 2, 1, 1, 1)
        self.le_name = QtWidgets.QLineEdit(self.GB_body)
        self.le_name.setObjectName("le_name")
        self.gridLayout.addWidget(self.le_name, 1, 1, 1, 1)
        self.btn_color_choose = QtWidgets.QPushButton(self.GB_body)
        self.btn_color_choose.setObjectName("btn_color_choose")
        self.gridLayout.addWidget(self.btn_color_choose, 7, 1, 1, 1, QtCore.Qt.AlignLeft)
        self.frame_2 = QtWidgets.QFrame(self.GB_body)
        self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.frame_2)
        self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.lbl_color = QtWidgets.QLabel(self.frame_2)
        self.lbl_color.setObjectName("lbl_color")
        self.horizontalLayout_2.addWidget(self.lbl_color)
        self.lbl_col_pixmap = QtWidgets.QLabel(self.frame_2)
        self.lbl_col_pixmap.setText("")
        self.lbl_col_pixmap.setObjectName("lbl_col_pixmap")
        self.horizontalLayout_2.addWidget(self.lbl_col_pixmap)
        self.gridLayout.addWidget(self.frame_2, 7, 0, 1, 1)
        self.lbl_texture = QtWidgets.QLabel(self.GB_body)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lbl_texture.sizePolicy().hasHeightForWidth())
        self.lbl_texture.setSizePolicy(sizePolicy)
        self.lbl_texture.setObjectName("lbl_texture")
        self.gridLayout.addWidget(self.lbl_texture, 8, 0, 1, 1)
        self.btn_texture = QtWidgets.QPushButton(self.GB_body)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btn_texture.sizePolicy().hasHeightForWidth())
        self.btn_texture.setSizePolicy(sizePolicy)
        self.btn_texture.setObjectName("btn_texture")
        self.gridLayout.addWidget(self.btn_texture, 8, 1, 1, 1)
        self.horizontalLayout_3.addWidget(self.GB_body)
        self.frame_3 = QtWidgets.QFrame(bodyForm)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.frame_3.sizePolicy().hasHeightForWidth())
        self.frame_3.setSizePolicy(sizePolicy)
        self.frame_3.setMinimumSize(QtCore.QSize(300, 0))
        self.frame_3.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_3.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_3.setObjectName("frame_3")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.frame_3)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gv_body = GLViewWidget(self.frame_3)
        self.gv_body.setObjectName("gv_body")
        self.verticalLayout.addWidget(self.gv_body)
        self.horizontalLayout_3.addWidget(self.frame_3)

        self.retranslateUi(bodyForm)
        QtCore.QMetaObject.connectSlotsByName(bodyForm)
        bodyForm.setTabOrder(self.le_name, self.le_mass)
        bodyForm.setTabOrder(self.le_mass, self.le_radius)
        bodyForm.setTabOrder(self.le_radius, self.le_sma)
        bodyForm.setTabOrder(self.le_sma, self.le_vel)
        bodyForm.setTabOrder(self.le_vel, self.le_inc)

    def retranslateUi(self, bodyForm):
        _translate = QtCore.QCoreApplication.translate
        bodyForm.setWindowTitle(_translate("bodyForm", "Orbital Body - Edit"))
        self.GB_body.setTitle(_translate("bodyForm", "Orbital Body"))
        self.btn_ok.setText(_translate("bodyForm", "Ok"))
        self.btn_cancel.setText(_translate("bodyForm", "Cancel"))
        self.lbl_preset.setText(_translate("bodyForm", "Preset:"))
        self.lbl_sma.setText(_translate("bodyForm", "Orbit Semi-Major Axis (km):"))
        self.lbl_inc.setText(_translate("bodyForm", "Inclination (deg):"))
        self.lbl_radius.setText(_translate("bodyForm", "Radius (km):"))
        self.lbl_mass.setText(_translate("bodyForm", "Mass (kg):"))
        self.lbl_vel.setText(_translate("bodyForm", "Orbital Velocity (km/s):"))
        self.lbl_name.setText(_translate("bodyForm", "Name:"))
        self.le_radius.setToolTip(_translate("bodyForm", "<html><head/><body><p>Radius of the orbital body, in kilometers.</p></body></html>"))
        self.le_sma.setToolTip(_translate("bodyForm", "<html><head/><body><p>The semi-major axis or mean radius of the orbit in kilometers.</p></body></html>"))
        self.le_inc.setToolTip(_translate("bodyForm", "<html><head/><body><p>Orbital inclination in degrees, 0 to 90.</p></body></html>"))
        self.le_vel.setToolTip(_translate("bodyForm", "<html><head/><body><p>The mean orbital velocity, in kilometers per second.</p></body></html>"))
        self.le_mass.setToolTip(_translate("bodyForm", "<html><head/><body><p>Mass of the body, in kilograms.</p></body></html>"))
        self.le_name.setToolTip(_translate("bodyForm", "<html><head/><body><p>The name of this orbital body.</p></body></html>"))
        self.btn_color_choose.setText(_translate("bodyForm", "Choose Color"))
        self.lbl_color.setText(_translate("bodyForm", "Orbit Color: (Optional)"))
        self.lbl_texture.setText(_translate("bodyForm", "Texture:"))
        self.btn_texture.setText(_translate("bodyForm", "Choose Texture"))
Esempio n. 33
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(994, 654)
        MainWindow.setStyleSheet(
            "background-color: rgb(65, 65, 65);\n"
            "alternate-background-color: rgb(130, 130, 130);\n"
            "color: rgb(255, 255, 255);")
        self.centralWidget = QtWidgets.QWidget(MainWindow)
        self.centralWidget.setObjectName("centralWidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralWidget)
        self.gridLayout.setContentsMargins(11, 2, 11, 11)
        self.gridLayout.setSpacing(6)
        self.gridLayout.setObjectName("gridLayout")
        self.splitter_2 = QtWidgets.QSplitter(self.centralWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.splitter_2.sizePolicy().hasHeightForWidth())
        self.splitter_2.setSizePolicy(sizePolicy)
        self.splitter_2.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_2.setObjectName("splitter_2")
        self.splitter = QtWidgets.QSplitter(self.splitter_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.splitter.sizePolicy().hasHeightForWidth())
        self.splitter.setSizePolicy(sizePolicy)
        self.splitter.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.splitter.setFrameShape(QtWidgets.QFrame.Box)
        self.splitter.setFrameShadow(QtWidgets.QFrame.Plain)
        self.splitter.setLineWidth(0)
        self.splitter.setOrientation(QtCore.Qt.Vertical)
        self.splitter.setHandleWidth(6)
        self.splitter.setObjectName("splitter")
        self.layoutWidget = QtWidgets.QWidget(self.splitter)
        self.layoutWidget.setObjectName("layoutWidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.layoutWidget)
        self.verticalLayout.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize)
        self.verticalLayout.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.datasets_label = QtWidgets.QLabel(self.layoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.datasets_label.sizePolicy().hasHeightForWidth())
        self.datasets_label.setSizePolicy(sizePolicy)
        self.datasets_label.setObjectName("datasets_label")
        self.verticalLayout.addWidget(
            self.datasets_label, 0,
            QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter)
        spacerItem = QtWidgets.QSpacerItem(20, 2,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        self.verticalLayout.addItem(spacerItem)
        self.treeWidget = QtWidgets.QTreeWidget(self.layoutWidget)
        self.treeWidget.setFocusPolicy(QtCore.Qt.NoFocus)
        self.treeWidget.setAlternatingRowColors(False)
        self.treeWidget.setSelectionMode(
            QtWidgets.QAbstractItemView.NoSelection)
        self.treeWidget.setTextElideMode(QtCore.Qt.ElideRight)
        self.treeWidget.setObjectName("treeWidget")
        self.treeWidget.header().setVisible(True)
        self.treeWidget.header().setCascadingSectionResizes(False)
        self.treeWidget.header().setDefaultSectionSize(80)
        self.treeWidget.header().setMinimumSectionSize(1)
        self.treeWidget.header().setStretchLastSection(True)
        self.verticalLayout.addWidget(self.treeWidget)
        self.layoutWidget1 = QtWidgets.QWidget(self.splitter)
        self.layoutWidget1.setObjectName("layoutWidget1")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.layoutWidget1)
        self.verticalLayout_2.setSizeConstraint(
            QtWidgets.QLayout.SetMaximumSize)
        self.verticalLayout_2.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_2.setSpacing(0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setContentsMargins(11, 11, 11, 11)
        self.horizontalLayout_3.setSpacing(6)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.properties_label = QtWidgets.QLabel(self.layoutWidget1)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.properties_label.sizePolicy().hasHeightForWidth())
        self.properties_label.setSizePolicy(sizePolicy)
        self.properties_label.setObjectName("properties_label")
        self.horizontalLayout_3.addWidget(self.properties_label)
        spacerItem1 = QtWidgets.QSpacerItem(20, 20,
                                            QtWidgets.QSizePolicy.Fixed,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem1)
        self.properties_combo = QtWidgets.QComboBox(self.layoutWidget1)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.properties_combo.sizePolicy().hasHeightForWidth())
        self.properties_combo.setSizePolicy(sizePolicy)
        self.properties_combo.setObjectName("properties_combo")
        self.horizontalLayout_3.addWidget(self.properties_combo)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        spacerItem2 = QtWidgets.QSpacerItem(20, 2,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Fixed)
        self.verticalLayout_2.addItem(spacerItem2)
        self.properties_table = QtWidgets.QTableWidget(self.layoutWidget1)
        self.properties_table.setRowCount(1)
        self.properties_table.setColumnCount(2)
        self.properties_table.setObjectName("properties_table")
        self.properties_table.horizontalHeader().setStretchLastSection(True)
        self.properties_table.verticalHeader().setVisible(False)
        self.properties_table.verticalHeader().setStretchLastSection(False)
        self.verticalLayout_2.addWidget(self.properties_table)
        self.tabWidget = QtWidgets.QTabWidget(self.splitter_2)
        self.tabWidget.setObjectName("tabWidget")
        self.tab = QtWidgets.QWidget()
        self.tab.setStyleSheet("background-color: rgb(0, 0, 0);")
        self.tab.setObjectName("tab")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.tab)
        self.gridLayout_4.setContentsMargins(11, 11, 11, 11)
        self.gridLayout_4.setSpacing(6)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.gridLayout_3 = QtWidgets.QGridLayout()
        self.gridLayout_3.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_3.setSpacing(7)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.graphicsView_1 = PlotWidget(self.tab)
        self.graphicsView_1.setObjectName("graphicsView_1")
        self.gridLayout_3.addWidget(self.graphicsView_1, 0, 0, 1, 1)
        self.graphicsView_2 = PlotWidget(self.tab)
        self.graphicsView_2.setObjectName("graphicsView_2")
        self.gridLayout_3.addWidget(self.graphicsView_2, 0, 1, 1, 1)
        self.graphicsView_3 = PlotWidget(self.tab)
        self.graphicsView_3.setObjectName("graphicsView_3")
        self.gridLayout_3.addWidget(self.graphicsView_3, 1, 0, 1, 1)
        self.graphicsView_4 = GLViewWidget(self.tab)
        self.graphicsView_4.setObjectName("graphicsView_4")
        self.gridLayout_3.addWidget(self.graphicsView_4, 1, 1, 1, 1)
        self.gridLayout_4.addLayout(self.gridLayout_3, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tab, "")
        self.gridLayout.addWidget(self.splitter_2, 0, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralWidget)
        self.mainToolBar = QtWidgets.QToolBar(MainWindow)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mainToolBar.sizePolicy().hasHeightForWidth())
        self.mainToolBar.setSizePolicy(sizePolicy)
        self.mainToolBar.setIconSize(QtCore.QSize(16, 16))
        self.mainToolBar.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
        self.mainToolBar.setObjectName("mainToolBar")
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.mainToolBar)
        self.statusBar = QtWidgets.QStatusBar(MainWindow)
        self.statusBar.setObjectName("statusBar")
        MainWindow.setStatusBar(self.statusBar)
        self.menuBar = QtWidgets.QMenuBar(MainWindow)
        self.menuBar.setGeometry(QtCore.QRect(0, 0, 994, 25))
        self.menuBar.setDefaultUp(True)
        self.menuBar.setNativeMenuBar(True)
        self.menuBar.setObjectName("menuBar")
        self.menu_File = QtWidgets.QMenu(self.menuBar)
        self.menu_File.setFocusPolicy(QtCore.Qt.NoFocus)
        self.menu_File.setObjectName("menu_File")
        self.menuHelp = QtWidgets.QMenu(self.menuBar)
        self.menuHelp.setObjectName("menuHelp")
        self.menuTools = QtWidgets.QMenu(self.menuBar)
        self.menuTools.setObjectName("menuTools")
        self.menuPlot = QtWidgets.QMenu(self.menuBar)
        self.menuPlot.setObjectName("menuPlot")
        MainWindow.setMenuBar(self.menuBar)
        self.actionImport_New = QtWidgets.QAction(MainWindow)
        icon = QtGui.QIcon.fromTheme("document-new")
        self.actionImport_New.setIcon(icon)
        self.actionImport_New.setMenuRole(QtWidgets.QAction.TextHeuristicRole)
        self.actionImport_New.setPriority(QtWidgets.QAction.NormalPriority)
        self.actionImport_New.setObjectName("actionImport_New")
        self.actionImport_Add = QtWidgets.QAction(MainWindow)
        icon = QtGui.QIcon.fromTheme("add")
        self.actionImport_Add.setIcon(icon)
        self.actionImport_Add.setObjectName("actionImport_Add")
        self.actionExport_For = QtWidgets.QAction(MainWindow)
        icon = QtGui.QIcon.fromTheme("go-right")
        self.actionExport_For.setIcon(icon)
        self.actionExport_For.setObjectName("actionExport_For")
        self.actionQuit = QtWidgets.QAction(MainWindow)
        icon = QtGui.QIcon.fromTheme("exit")
        self.actionQuit.setIcon(icon)
        self.actionQuit.setObjectName("actionQuit")
        self.actionAbout = QtWidgets.QAction(MainWindow)
        self.actionAbout.setObjectName("actionAbout")
        self.actionRemove = QtWidgets.QAction(MainWindow)
        icon = QtGui.QIcon.fromTheme("remove")
        self.actionRemove.setIcon(icon)
        self.actionRemove.setObjectName("actionRemove")
        self.actionAnalyze = QtWidgets.QAction(MainWindow)
        icon = QtGui.QIcon.fromTheme("applications-accessories")
        self.actionAnalyze.setIcon(icon)
        self.actionAnalyze.setObjectName("actionAnalyze")
        self.actionNew_Plot = QtWidgets.QAction(MainWindow)
        self.actionNew_Plot.setObjectName("actionNew_Plot")
        self.actionModify_Plot = QtWidgets.QAction(MainWindow)
        self.actionModify_Plot.setObjectName("actionModify_Plot")
        self.actionRemove_Plot = QtWidgets.QAction(MainWindow)
        self.actionRemove_Plot.setObjectName("actionRemove_Plot")
        self.actionRedraw = QtWidgets.QAction(MainWindow)
        self.actionRedraw.setObjectName("actionRedraw")
        self.actionGenerate = QtWidgets.QAction(MainWindow)
        icon = QtGui.QIcon.fromTheme("emblem-photos")
        self.actionGenerate.setIcon(icon)
        self.actionGenerate.setObjectName("actionGenerate")
        self.mainToolBar.addAction(self.actionImport_New)
        self.mainToolBar.addAction(self.actionImport_Add)
        self.mainToolBar.addAction(self.actionRemove)
        self.mainToolBar.addAction(self.actionGenerate)
        self.mainToolBar.addAction(self.actionAnalyze)
        self.mainToolBar.addAction(self.actionExport_For)
        self.mainToolBar.addAction(self.actionQuit)
        self.menu_File.addAction(self.actionImport_New)
        self.menu_File.addAction(self.actionImport_Add)
        self.menu_File.addAction(self.actionRemove)
        self.menu_File.addAction(self.actionExport_For)
        self.menu_File.addSeparator()
        self.menu_File.addAction(self.actionQuit)
        self.menuHelp.addAction(self.actionAbout)
        self.menuPlot.addAction(self.actionRedraw)
        self.menuPlot.addSeparator()
        self.menuPlot.addAction(self.actionNew_Plot)
        self.menuPlot.addAction(self.actionModify_Plot)
        self.menuPlot.addAction(self.actionRemove_Plot)
        self.menuBar.addAction(self.menu_File.menuAction())
        self.menuBar.addAction(self.menuPlot.menuAction())
        self.menuBar.addAction(self.menuTools.menuAction())
        self.menuBar.addAction(self.menuHelp.menuAction())

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Esempio n. 34
0
    def setupUi(self, SimMainWindow):
        SimMainWindow.setObjectName("SimMainWindow")
        SimMainWindow.resize(1132, 728)
        self.centralwidget = QtWidgets.QWidget(SimMainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.centralwidget)
        self.horizontalLayout.setContentsMargins(5, 5, 5, 5)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.FRAME_LH = QtWidgets.QFrame(self.centralwidget)
        self.FRAME_LH.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.FRAME_LH.setFrameShadow(QtWidgets.QFrame.Raised)
        self.FRAME_LH.setObjectName("FRAME_LH")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.FRAME_LH)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.WIDGET_LH = QtWidgets.QTabWidget(self.FRAME_LH)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.WIDGET_LH.sizePolicy().hasHeightForWidth())
        self.WIDGET_LH.setSizePolicy(sizePolicy)
        self.WIDGET_LH.setAutoFillBackground(True)
        self.WIDGET_LH.setObjectName("WIDGET_LH")
        self.TAB_bodies = QtWidgets.QWidget()
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.TAB_bodies.sizePolicy().hasHeightForWidth())
        self.TAB_bodies.setSizePolicy(sizePolicy)
        self.TAB_bodies.setObjectName("TAB_bodies")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.TAB_bodies)
        self.verticalLayout_3.setContentsMargins(6, -1, 6, -1)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.frame_2 = QtWidgets.QFrame(self.TAB_bodies)
        self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.frame_2)
        self.horizontalLayout_4.setContentsMargins(5, 5, 5, 5)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.lbl_presets = QtWidgets.QLabel(self.frame_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lbl_presets.sizePolicy().hasHeightForWidth())
        self.lbl_presets.setSizePolicy(sizePolicy)
        self.lbl_presets.setObjectName("lbl_presets")
        self.horizontalLayout_4.addWidget(self.lbl_presets)
        self.cmb_preset = QtWidgets.QComboBox(self.frame_2)
        self.cmb_preset.setObjectName("cmb_preset")
        self.horizontalLayout_4.addWidget(self.cmb_preset)
        self.btn_loadpreset = QtWidgets.QPushButton(self.frame_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btn_loadpreset.sizePolicy().hasHeightForWidth())
        self.btn_loadpreset.setSizePolicy(sizePolicy)
        self.btn_loadpreset.setObjectName("btn_loadpreset")
        self.horizontalLayout_4.addWidget(self.btn_loadpreset)
        self.verticalLayout_3.addWidget(self.frame_2)
        self.frame_4 = QtWidgets.QFrame(self.TAB_bodies)
        self.frame_4.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_4.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_4.setObjectName("frame_4")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.frame_4)
        self.verticalLayout_6.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.gb_star = QtWidgets.QGroupBox(self.frame_4)
        self.gb_star.setObjectName("gb_star")
        self.formLayout = QtWidgets.QFormLayout(self.gb_star)
        self.formLayout.setLabelAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.formLayout.setFormAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
        self.formLayout.setObjectName("formLayout")
        self.lbl_starpreset = QtWidgets.QLabel(self.gb_star)
        self.lbl_starpreset.setObjectName("lbl_starpreset")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.lbl_starpreset)
        self.cb_starPreset = QtWidgets.QComboBox(self.gb_star)
        self.cb_starPreset.setObjectName("cb_starPreset")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.cb_starPreset)
        self.lbl_starbrowser = QtWidgets.QLabel(self.gb_star)
        self.lbl_starbrowser.setObjectName("lbl_starbrowser")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.lbl_starbrowser)
        self.btn_starbrowser = QtWidgets.QPushButton(self.gb_star)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btn_starbrowser.sizePolicy().hasHeightForWidth())
        self.btn_starbrowser.setSizePolicy(sizePolicy)
        self.btn_starbrowser.setObjectName("btn_starbrowser")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.btn_starbrowser)
        self.lbl_starname = QtWidgets.QLabel(self.gb_star)
        self.lbl_starname.setObjectName("lbl_starname")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.lbl_starname)
        self.le_starname = QtWidgets.QLineEdit(self.gb_star)
        self.le_starname.setText("")
        self.le_starname.setObjectName("le_starname")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.le_starname)
        self.lbl_starmass = QtWidgets.QLabel(self.gb_star)
        self.lbl_starmass.setObjectName("lbl_starmass")
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.lbl_starmass)
        self.le_starmass = QtWidgets.QLineEdit(self.gb_star)
        self.le_starmass.setObjectName("le_starmass")
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.le_starmass)
        self.lbl_starradius = QtWidgets.QLabel(self.gb_star)
        self.lbl_starradius.setObjectName("lbl_starradius")
        self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.lbl_starradius)
        self.le_starradius = QtWidgets.QLineEdit(self.gb_star)
        self.le_starradius.setObjectName("le_starradius")
        self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.le_starradius)
        self.frame_5 = QtWidgets.QFrame(self.gb_star)
        self.frame_5.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_5.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_5.setObjectName("frame_5")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.frame_5)
        self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem)
        self.btn_starSave = QtWidgets.QPushButton(self.frame_5)
        self.btn_starSave.setObjectName("btn_starSave")
        self.horizontalLayout_3.addWidget(self.btn_starSave)
        self.formLayout.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.frame_5)
        self.verticalLayout_6.addWidget(self.gb_star)
        self.verticalLayout_3.addWidget(self.frame_4)
        self.lv_bodies = QtWidgets.QListView(self.TAB_bodies)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.lv_bodies.sizePolicy().hasHeightForWidth())
        self.lv_bodies.setSizePolicy(sizePolicy)
        self.lv_bodies.setAutoFillBackground(True)
        self.lv_bodies.setFrameShape(QtWidgets.QFrame.Box)
        self.lv_bodies.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.lv_bodies.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
        self.lv_bodies.setProperty("showDropIndicator", True)
        self.lv_bodies.setAlternatingRowColors(False)
        self.lv_bodies.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems)
        self.lv_bodies.setIconSize(QtCore.QSize(10, 10))
        self.lv_bodies.setMovement(QtWidgets.QListView.Static)
        self.lv_bodies.setFlow(QtWidgets.QListView.TopToBottom)
        self.lv_bodies.setProperty("isWrapping", False)
        self.lv_bodies.setResizeMode(QtWidgets.QListView.Fixed)
        self.lv_bodies.setGridSize(QtCore.QSize(150, 30))
        self.lv_bodies.setViewMode(QtWidgets.QListView.ListMode)
        self.lv_bodies.setObjectName("lv_bodies")
        self.verticalLayout_3.addWidget(self.lv_bodies)
        self.frame_3 = QtWidgets.QFrame(self.TAB_bodies)
        self.frame_3.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_3.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_3.setObjectName("frame_3")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.frame_3)
        self.horizontalLayout_5.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.btn_rmbody = QtWidgets.QPushButton(self.frame_3)
        self.btn_rmbody.setObjectName("btn_rmbody")
        self.horizontalLayout_5.addWidget(self.btn_rmbody)
        self.btn_addbody = QtWidgets.QPushButton(self.frame_3)
        self.btn_addbody.setObjectName("btn_addbody")
        self.horizontalLayout_5.addWidget(self.btn_addbody)
        self.verticalLayout_3.addWidget(self.frame_3)
        self.WIDGET_LH.addTab(self.TAB_bodies, "")
        self.TAB_options = QtWidgets.QWidget()
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.TAB_options.sizePolicy().hasHeightForWidth())
        self.TAB_options.setSizePolicy(sizePolicy)
        self.TAB_options.setAutoFillBackground(False)
        self.TAB_options.setObjectName("TAB_options")
        self.gridLayout = QtWidgets.QGridLayout(self.TAB_options)
        self.gridLayout.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
        self.gridLayout.setVerticalSpacing(9)
        self.gridLayout.setObjectName("gridLayout")
        self.le_nsteps = QtWidgets.QLineEdit(self.TAB_options)
        self.le_nsteps.setObjectName("le_nsteps")
        self.gridLayout.addWidget(self.le_nsteps, 5, 1, 1, 1)
        self.cmb_solmethod = QtWidgets.QComboBox(self.TAB_options)
        self.cmb_solmethod.setObjectName("cmb_solmethod")
        self.cmb_solmethod.addItem("")
        self.cmb_solmethod.addItem("")
        self.gridLayout.addWidget(self.cmb_solmethod, 0, 1, 1, 1)
        self.cmb_tsteps = QtWidgets.QComboBox(self.TAB_options)
        self.cmb_tsteps.setObjectName("cmb_tsteps")
        self.cmb_tsteps.addItem("")
        self.cmb_tsteps.addItem("")
        self.cmb_tsteps.addItem("")
        self.cmb_tsteps.addItem("")
        self.gridLayout.addWidget(self.cmb_tsteps, 4, 1, 1, 1)
        spacerItem1 = QtWidgets.QSpacerItem(1, 100, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
        self.gridLayout.addItem(spacerItem1, 8, 0, 1, 1)
        self.le_stepvalue = QtWidgets.QLineEdit(self.TAB_options)
        self.le_stepvalue.setObjectName("le_stepvalue")
        self.gridLayout.addWidget(self.le_stepvalue, 4, 0, 1, 1)
        self.lbl_solmeth = QtWidgets.QLabel(self.TAB_options)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lbl_solmeth.sizePolicy().hasHeightForWidth())
        self.lbl_solmeth.setSizePolicy(sizePolicy)
        self.lbl_solmeth.setObjectName("lbl_solmeth")
        self.gridLayout.addWidget(self.lbl_solmeth, 0, 0, 1, 1)
        self.lbl_stepfreq = QtWidgets.QLabel(self.TAB_options)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lbl_stepfreq.sizePolicy().hasHeightForWidth())
        self.lbl_stepfreq.setSizePolicy(sizePolicy)
        self.lbl_stepfreq.setObjectName("lbl_stepfreq")
        self.gridLayout.addWidget(self.lbl_stepfreq, 6, 0, 1, 1)
        self.le_stepfreq = QtWidgets.QLineEdit(self.TAB_options)
        self.le_stepfreq.setObjectName("le_stepfreq")
        self.gridLayout.addWidget(self.le_stepfreq, 6, 1, 1, 1)
        self.lbl_tsteps = QtWidgets.QLabel(self.TAB_options)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lbl_tsteps.sizePolicy().hasHeightForWidth())
        self.lbl_tsteps.setSizePolicy(sizePolicy)
        self.lbl_tsteps.setObjectName("lbl_tsteps")
        self.gridLayout.addWidget(self.lbl_tsteps, 3, 0, 1, 1)
        self.lbl_solvetime = QtWidgets.QLabel(self.TAB_options)
        self.lbl_solvetime.setObjectName("lbl_solvetime")
        self.gridLayout.addWidget(self.lbl_solvetime, 7, 0, 1, 1)
        self.cmb_solvetime = QtWidgets.QComboBox(self.TAB_options)
        self.cmb_solvetime.setObjectName("cmb_solvetime")
        self.cmb_solvetime.addItem("")
        self.cmb_solvetime.addItem("")
        self.cmb_solvetime.addItem("")
        self.cmb_solvetime.addItem("")
        self.cmb_solvetime.addItem("")
        self.cmb_solvetime.addItem("")
        self.cmb_solvetime.addItem("")
        self.cmb_solvetime.addItem("")
        self.cmb_solvetime.setItemText(7, "")
        self.gridLayout.addWidget(self.cmb_solvetime, 7, 1, 1, 1)
        self.lbl_simdur = QtWidgets.QLabel(self.TAB_options)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lbl_simdur.sizePolicy().hasHeightForWidth())
        self.lbl_simdur.setSizePolicy(sizePolicy)
        self.lbl_simdur.setObjectName("lbl_simdur")
        self.gridLayout.addWidget(self.lbl_simdur, 5, 0, 1, 1)
        self.lbl_multiprocess = QtWidgets.QLabel(self.TAB_options)
        self.lbl_multiprocess.setObjectName("lbl_multiprocess")
        self.gridLayout.addWidget(self.lbl_multiprocess, 1, 0, 1, 1)
        self.rb_multiprocess = QtWidgets.QRadioButton(self.TAB_options)
        self.rb_multiprocess.setChecked(False)
        self.rb_multiprocess.setObjectName("rb_multiprocess")
        self.gridLayout.addWidget(self.rb_multiprocess, 1, 1, 1, 1)
        self.WIDGET_LH.addTab(self.TAB_options, "")
        self.verticalLayout_2.addWidget(self.WIDGET_LH)
        self.frame = QtWidgets.QFrame(self.FRAME_LH)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth())
        self.frame.setSizePolicy(sizePolicy)
        self.frame.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.frame)
        self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_2.setSpacing(3)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.btn_reset = QtWidgets.QPushButton(self.frame)
        self.btn_reset.setObjectName("btn_reset")
        self.horizontalLayout_2.addWidget(self.btn_reset)
        self.btn_clear = QtWidgets.QPushButton(self.frame)
        self.btn_clear.setObjectName("btn_clear")
        self.horizontalLayout_2.addWidget(self.btn_clear)
        self.btn_plot = QtWidgets.QPushButton(self.frame)
        self.btn_plot.setObjectName("btn_plot")
        self.horizontalLayout_2.addWidget(self.btn_plot)
        self.verticalLayout_2.addWidget(self.frame)
        self.horizontalLayout.addWidget(self.FRAME_LH)
        self.FRAME_views = QtWidgets.QFrame(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.FRAME_views.sizePolicy().hasHeightForWidth())
        self.FRAME_views.setSizePolicy(sizePolicy)
        self.FRAME_views.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.FRAME_views.setFrameShadow(QtWidgets.QFrame.Raised)
        self.FRAME_views.setObjectName("FRAME_views")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.FRAME_views)
        self.verticalLayout.setObjectName("verticalLayout")
        self.WIDGET_viewTabs = QtWidgets.QTabWidget(self.FRAME_views)
        self.WIDGET_viewTabs.setObjectName("WIDGET_viewTabs")
        self.TAB_system_view = QtWidgets.QWidget()
        self.TAB_system_view.setObjectName("TAB_system_view")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.TAB_system_view)
        self.verticalLayout_7.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.gv_system_view = GLViewWidget(self.TAB_system_view)
        self.gv_system_view.setObjectName("gv_system_view")
        self.verticalLayout_7.addWidget(self.gv_system_view)
        self.WIDGET_viewTabs.addTab(self.TAB_system_view, "")
        self.TAB_XY = QtWidgets.QWidget()
        self.TAB_XY.setObjectName("TAB_XY")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.TAB_XY)
        self.verticalLayout_5.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.gv_xy = PlotWidget(self.TAB_XY)
        self.gv_xy.setObjectName("gv_xy")
        self.verticalLayout_5.addWidget(self.gv_xy)
        self.WIDGET_viewTabs.addTab(self.TAB_XY, "")
        self.TAB_3D = QtWidgets.QWidget()
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.TAB_3D.sizePolicy().hasHeightForWidth())
        self.TAB_3D.setSizePolicy(sizePolicy)
        self.TAB_3D.setObjectName("TAB_3D")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.TAB_3D)
        self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.gv_3d = GLViewWidget(self.TAB_3D)
        self.gv_3d.setObjectName("gv_3d")
        self.verticalLayout_4.addWidget(self.gv_3d)
        self.WIDGET_viewTabs.addTab(self.TAB_3D, "")
        self.verticalLayout.addWidget(self.WIDGET_viewTabs)
        self.frame_7 = QtWidgets.QFrame(self.FRAME_views)
        self.frame_7.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_7.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_7.setObjectName("frame_7")
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.frame_7)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.btn_focus_prv = QtWidgets.QPushButton(self.frame_7)
        self.btn_focus_prv.setObjectName("btn_focus_prv")
        self.horizontalLayout_6.addWidget(self.btn_focus_prv)
        self.lbl_body_focus = QtWidgets.QLabel(self.frame_7)
        self.lbl_body_focus.setObjectName("lbl_body_focus")
        self.horizontalLayout_6.addWidget(self.lbl_body_focus, 0, QtCore.Qt.AlignHCenter)
        self.btn_focus_next = QtWidgets.QPushButton(self.frame_7)
        self.btn_focus_next.setObjectName("btn_focus_next")
        self.horizontalLayout_6.addWidget(self.btn_focus_next)
        self.verticalLayout.addWidget(self.frame_7, 0, QtCore.Qt.AlignHCenter)
        self.horizontalLayout.addWidget(self.FRAME_views)
        SimMainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(SimMainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1132, 21))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtWidgets.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        self.menuHelp = QtWidgets.QMenu(self.menubar)
        self.menuHelp.setObjectName("menuHelp")
        SimMainWindow.setMenuBar(self.menubar)
        self.actionPreset = QtWidgets.QAction(SimMainWindow)
        self.actionPreset.setObjectName("actionPreset")
        self.actionExit = QtWidgets.QAction(SimMainWindow)
        self.actionExit.setObjectName("actionExit")
        self.menuFile.addAction(self.actionExit)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuHelp.menuAction())

        self.retranslateUi(SimMainWindow)
        self.WIDGET_LH.setCurrentIndex(0)
        self.cmb_tsteps.setCurrentIndex(0)
        self.WIDGET_viewTabs.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(SimMainWindow)
Esempio n. 35
0
import time

from pyqtgraph.opengl import GLViewWidget, MeshData
from pyqtgraph.opengl.items.GLMeshItem import GLMeshItem

from PyQt5.QtGui import QApplication


volume = load(os.path.join(os.path.split(__file__)[0], 'data/input/sample.npy'))


t0 = time.time()
vertices, normals, faces = march(volume, 0)  # zero smoothing rounds
smooth_vertices, smooth_normals, faces = march(volume, 4)  # 4 smoothing rounds
t1 = time.time()
print("took", t1 - t0, "sec")

app = QApplication([])
view = GLViewWidget()

mesh = MeshData(vertices / 100.0, faces)  # scale down - otherwise camera is misplaced
# or mesh = MeshData(smooth_vertices / 100, faces)
mesh._vertexNormals = normals
# or mesh._vertexNormals = smooth_normals

item = GLMeshItem(meshdata=mesh, color=[1, 0, 0, 1], shader="normalColor")

view.addItem(item)
view.show()
app.exec_()
Esempio n. 36
0
    def setup_ui(self) -> None:
        self.layout = QVBoxLayout(self)

        self.plot_widget = GLViewWidget()
        self.layout.addWidget(self.plot_widget)
Esempio n. 37
0
    def setupUi(self, bodyForm):
        bodyForm.setObjectName("bodyForm")
        bodyForm.resize(626, 328)
        bodyForm.setMinimumSize(QtCore.QSize(626, 328))
        bodyForm.setMaximumSize(QtCore.QSize(900, 900))
        bodyForm.setToolTipDuration(5)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(bodyForm)
        self.horizontalLayout_3.setContentsMargins(6, 3, 6, 3)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.GB_body = QtWidgets.QGroupBox(bodyForm)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.GB_body.sizePolicy().hasHeightForWidth())
        self.GB_body.setSizePolicy(sizePolicy)
        self.GB_body.setObjectName("GB_body")
        self.gridLayout = QtWidgets.QGridLayout(self.GB_body)
        self.gridLayout.setContentsMargins(9, 5, 9, 5)
        self.gridLayout.setObjectName("gridLayout")
        self.frame = QtWidgets.QFrame(self.GB_body)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth())
        self.frame.setSizePolicy(sizePolicy)
        self.frame.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.btn_ok = QtWidgets.QPushButton(self.frame)
        self.btn_ok.setObjectName("btn_ok")
        self.horizontalLayout.addWidget(self.btn_ok)
        self.btn_cancel = QtWidgets.QPushButton(self.frame)
        self.btn_cancel.setObjectName("btn_cancel")
        self.horizontalLayout.addWidget(self.btn_cancel)
        self.gridLayout.addWidget(self.frame, 9, 1, 1, 1)
        self.cb_preset = QtWidgets.QComboBox(self.GB_body)
        self.cb_preset.setObjectName("cb_preset")
        self.gridLayout.addWidget(self.cb_preset, 0, 1, 1, 1)
        self.lbl_preset = QtWidgets.QLabel(self.GB_body)
        self.lbl_preset.setObjectName("lbl_preset")
        self.gridLayout.addWidget(self.lbl_preset, 0, 0, 1, 1)
        self.lbl_sma = QtWidgets.QLabel(self.GB_body)
        self.lbl_sma.setObjectName("lbl_sma")
        self.gridLayout.addWidget(self.lbl_sma, 4, 0, 1, 1)
        self.lbl_inc = QtWidgets.QLabel(self.GB_body)
        self.lbl_inc.setObjectName("lbl_inc")
        self.gridLayout.addWidget(self.lbl_inc, 6, 0, 1, 1)
        self.lbl_radius = QtWidgets.QLabel(self.GB_body)
        self.lbl_radius.setObjectName("lbl_radius")
        self.gridLayout.addWidget(self.lbl_radius, 3, 0, 1, 1)
        self.lbl_mass = QtWidgets.QLabel(self.GB_body)
        self.lbl_mass.setObjectName("lbl_mass")
        self.gridLayout.addWidget(self.lbl_mass, 2, 0, 1, 1)
        self.lbl_vel = QtWidgets.QLabel(self.GB_body)
        self.lbl_vel.setObjectName("lbl_vel")
        self.gridLayout.addWidget(self.lbl_vel, 5, 0, 1, 1)
        self.lbl_name = QtWidgets.QLabel(self.GB_body)
        self.lbl_name.setObjectName("lbl_name")
        self.gridLayout.addWidget(self.lbl_name, 1, 0, 1, 1)
        self.le_radius = QtWidgets.QLineEdit(self.GB_body)
        self.le_radius.setObjectName("le_radius")
        self.gridLayout.addWidget(self.le_radius, 3, 1, 1, 1)
        self.le_sma = QtWidgets.QLineEdit(self.GB_body)
        self.le_sma.setObjectName("le_sma")
        self.gridLayout.addWidget(self.le_sma, 4, 1, 1, 1)
        self.le_inc = QtWidgets.QLineEdit(self.GB_body)
        self.le_inc.setObjectName("le_inc")
        self.gridLayout.addWidget(self.le_inc, 6, 1, 1, 1)
        self.le_vel = QtWidgets.QLineEdit(self.GB_body)
        self.le_vel.setObjectName("le_vel")
        self.gridLayout.addWidget(self.le_vel, 5, 1, 1, 1)
        self.le_mass = QtWidgets.QLineEdit(self.GB_body)
        self.le_mass.setObjectName("le_mass")
        self.gridLayout.addWidget(self.le_mass, 2, 1, 1, 1)
        self.le_name = QtWidgets.QLineEdit(self.GB_body)
        self.le_name.setObjectName("le_name")
        self.gridLayout.addWidget(self.le_name, 1, 1, 1, 1)
        self.btn_color_choose = QtWidgets.QPushButton(self.GB_body)
        self.btn_color_choose.setObjectName("btn_color_choose")
        self.gridLayout.addWidget(self.btn_color_choose, 7, 1, 1, 1, QtCore.Qt.AlignLeft)
        self.frame_2 = QtWidgets.QFrame(self.GB_body)
        self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.frame_2)
        self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.lbl_color = QtWidgets.QLabel(self.frame_2)
        self.lbl_color.setObjectName("lbl_color")
        self.horizontalLayout_2.addWidget(self.lbl_color)
        self.lbl_col_pixmap = QtWidgets.QLabel(self.frame_2)
        self.lbl_col_pixmap.setText("")
        self.lbl_col_pixmap.setObjectName("lbl_col_pixmap")
        self.horizontalLayout_2.addWidget(self.lbl_col_pixmap)
        self.gridLayout.addWidget(self.frame_2, 7, 0, 1, 1)
        self.lbl_texture = QtWidgets.QLabel(self.GB_body)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lbl_texture.sizePolicy().hasHeightForWidth())
        self.lbl_texture.setSizePolicy(sizePolicy)
        self.lbl_texture.setObjectName("lbl_texture")
        self.gridLayout.addWidget(self.lbl_texture, 8, 0, 1, 1)
        self.btn_texture = QtWidgets.QPushButton(self.GB_body)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btn_texture.sizePolicy().hasHeightForWidth())
        self.btn_texture.setSizePolicy(sizePolicy)
        self.btn_texture.setObjectName("btn_texture")
        self.gridLayout.addWidget(self.btn_texture, 8, 1, 1, 1)
        self.horizontalLayout_3.addWidget(self.GB_body)
        self.frame_3 = QtWidgets.QFrame(bodyForm)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.frame_3.sizePolicy().hasHeightForWidth())
        self.frame_3.setSizePolicy(sizePolicy)
        self.frame_3.setMinimumSize(QtCore.QSize(300, 0))
        self.frame_3.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_3.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_3.setObjectName("frame_3")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.frame_3)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gv_body = GLViewWidget(self.frame_3)
        self.gv_body.setObjectName("gv_body")
        self.verticalLayout.addWidget(self.gv_body)
        self.horizontalLayout_3.addWidget(self.frame_3)

        self.retranslateUi(bodyForm)
        QtCore.QMetaObject.connectSlotsByName(bodyForm)
        bodyForm.setTabOrder(self.le_name, self.le_mass)
        bodyForm.setTabOrder(self.le_mass, self.le_radius)
        bodyForm.setTabOrder(self.le_radius, self.le_sma)
        bodyForm.setTabOrder(self.le_sma, self.le_vel)
        bodyForm.setTabOrder(self.le_vel, self.le_inc)
Esempio n. 38
0
def getViewer():
    viewer = GLViewWidget()
    viewer.setMinimumSize(500, 500)
    return viewer
Esempio n. 39
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(1024, 768)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.centralwidget)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.realColumn = QtGui.QWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.realColumn.sizePolicy().hasHeightForWidth())
        self.realColumn.setSizePolicy(sizePolicy)
        self.realColumn.setObjectName(_fromUtf8("realColumn"))
        self.verticalLayout = QtGui.QVBoxLayout(self.realColumn)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.realLabel = QtGui.QLabel(self.realColumn)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.realLabel.setFont(font)
        self.realLabel.setObjectName(_fromUtf8("realLabel"))
        self.verticalLayout.addWidget(self.realLabel)
        self.real = GLViewWidget(self.realColumn)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(2)
        sizePolicy.setHeightForWidth(
            self.real.sizePolicy().hasHeightForWidth())
        self.real.setSizePolicy(sizePolicy)
        self.real.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))
        self.real.setObjectName(_fromUtf8("real"))
        self.gridLayout = QtGui.QGridLayout(self.real)
        self.gridLayout.setMargin(0)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.realMask = QtGui.QWidget(self.real)
        self.realMask.setCursor(QtGui.QCursor(QtCore.Qt.CrossCursor))
        self.realMask.setFocusPolicy(QtCore.Qt.ClickFocus)
        self.realMask.setObjectName(_fromUtf8("realMask"))
        self.gridLayout.addWidget(self.realMask, 1, 0, 1, 1)
        self.verticalLayout.addWidget(self.real)
        self.horizontalLayout_3.addWidget(self.realColumn)
        self.trackColumn = QtGui.QWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.trackColumn.sizePolicy().hasHeightForWidth())
        self.trackColumn.setSizePolicy(sizePolicy)
        self.trackColumn.setObjectName(_fromUtf8("trackColumn"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.trackColumn)
        self.verticalLayout_2.setMargin(0)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.trackLabel = QtGui.QLabel(self.trackColumn)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.trackLabel.setFont(font)
        self.trackLabel.setObjectName(_fromUtf8("trackLabel"))
        self.verticalLayout_2.addWidget(self.trackLabel)
        self.track = GLViewWidget(self.trackColumn)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(2)
        sizePolicy.setHeightForWidth(
            self.track.sizePolicy().hasHeightForWidth())
        self.track.setSizePolicy(sizePolicy)
        self.track.setObjectName(_fromUtf8("track"))
        self.gridLayout_2 = QtGui.QGridLayout(self.track)
        self.gridLayout_2.setMargin(0)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.trackMask = QtGui.QWidget(self.track)
        self.trackMask.setCursor(QtGui.QCursor(QtCore.Qt.CrossCursor))
        self.trackMask.setFocusPolicy(QtCore.Qt.ClickFocus)
        self.trackMask.setAutoFillBackground(False)
        self.trackMask.setObjectName(_fromUtf8("trackMask"))
        self.gridLayout_2.addWidget(self.trackMask, 0, 0, 1, 1)
        self.verticalLayout_2.addWidget(self.track)
        self.horizontalLayout_3.addWidget(self.trackColumn)
        MainWindow.setCentralWidget(self.centralwidget)
        self.actionExit = QtGui.QAction(MainWindow)
        self.actionExit.setMenuRole(QtGui.QAction.QuitRole)
        self.actionExit.setObjectName(_fromUtf8("actionExit"))
        self.actionExit_2 = QtGui.QAction(MainWindow)
        self.actionExit_2.setSoftKeyRole(QtGui.QAction.NegativeSoftKey)
        self.actionExit_2.setIconVisibleInMenu(False)
        self.actionExit_2.setPriority(QtGui.QAction.NormalPriority)
        self.actionExit_2.setObjectName(_fromUtf8("actionExit_2"))

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Esempio n. 40
0
    def setupUi(self, starPresetDialog):
        starPresetDialog.setObjectName("starPresetDialog")
        starPresetDialog.resize(1067, 626)
        self.verticalLayout = QtWidgets.QVBoxLayout(starPresetDialog)
        self.verticalLayout.setObjectName("verticalLayout")
        self.frame_3 = QtWidgets.QFrame(starPresetDialog)
        self.frame_3.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_3.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_3.setObjectName("frame_3")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame_3)
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout.setSpacing(6)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.frame_4 = QtWidgets.QFrame(self.frame_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frame_4.sizePolicy().hasHeightForWidth())
        self.frame_4.setSizePolicy(sizePolicy)
        self.frame_4.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_4.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_4.setObjectName("frame_4")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.frame_4)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.lbl_starselect = QtWidgets.QLabel(self.frame_4)
        self.lbl_starselect.setObjectName("lbl_starselect")
        self.verticalLayout_2.addWidget(self.lbl_starselect)
        self.lv_stars = QtWidgets.QListView(self.frame_4)
        self.lv_stars.setEditTriggers(
            QtWidgets.QAbstractItemView.NoEditTriggers)
        self.lv_stars.setObjectName("lv_stars")
        self.verticalLayout_2.addWidget(self.lv_stars)
        self.horizontalLayout.addWidget(self.frame_4)
        self.frame = QtWidgets.QFrame(self.frame_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(2)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frame.sizePolicy().hasHeightForWidth())
        self.frame.setSizePolicy(sizePolicy)
        self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.frame)
        self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.gb_starinfo = QtWidgets.QGroupBox(self.frame)
        self.gb_starinfo.setStyleSheet("")
        self.gb_starinfo.setObjectName("gb_starinfo")
        self.formLayout = QtWidgets.QFormLayout(self.gb_starinfo)
        self.formLayout.setVerticalSpacing(8)
        self.formLayout.setObjectName("formLayout")
        self.lbl_name = QtWidgets.QLabel(self.gb_starinfo)
        self.lbl_name.setObjectName("lbl_name")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole,
                                  self.lbl_name)
        self.le_name = QtWidgets.QLineEdit(self.gb_starinfo)
        self.le_name.setReadOnly(True)
        self.le_name.setObjectName("le_name")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole,
                                  self.le_name)
        self.lbl_altname = QtWidgets.QLabel(self.gb_starinfo)
        self.lbl_altname.setObjectName("lbl_altname")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole,
                                  self.lbl_altname)
        self.le_altname = QtWidgets.QLineEdit(self.gb_starinfo)
        self.le_altname.setReadOnly(True)
        self.le_altname.setObjectName("le_altname")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole,
                                  self.le_altname)
        self.lbl_dist = QtWidgets.QLabel(self.gb_starinfo)
        self.lbl_dist.setObjectName("lbl_dist")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole,
                                  self.lbl_dist)
        self.le_dist = QtWidgets.QLineEdit(self.gb_starinfo)
        self.le_dist.setReadOnly(True)
        self.le_dist.setObjectName("le_dist")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole,
                                  self.le_dist)
        self.lbl_specclass = QtWidgets.QLabel(self.gb_starinfo)
        self.lbl_specclass.setObjectName("lbl_specclass")
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole,
                                  self.lbl_specclass)
        self.le_specclass = QtWidgets.QLineEdit(self.gb_starinfo)
        self.le_specclass.setReadOnly(True)
        self.le_specclass.setObjectName("le_specclass")
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole,
                                  self.le_specclass)
        self.lbl_solmass = QtWidgets.QLabel(self.gb_starinfo)
        self.lbl_solmass.setObjectName("lbl_solmass")
        self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole,
                                  self.lbl_solmass)
        self.le_solmass = QtWidgets.QLineEdit(self.gb_starinfo)
        self.le_solmass.setAutoFillBackground(False)
        self.le_solmass.setReadOnly(True)
        self.le_solmass.setObjectName("le_solmass")
        self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole,
                                  self.le_solmass)
        self.lbl_mass = QtWidgets.QLabel(self.gb_starinfo)
        self.lbl_mass.setObjectName("lbl_mass")
        self.formLayout.setWidget(6, QtWidgets.QFormLayout.LabelRole,
                                  self.lbl_mass)
        self.le_mass = QtWidgets.QLineEdit(self.gb_starinfo)
        self.le_mass.setReadOnly(True)
        self.le_mass.setObjectName("le_mass")
        self.formLayout.setWidget(6, QtWidgets.QFormLayout.FieldRole,
                                  self.le_mass)
        self.lbl_solradius = QtWidgets.QLabel(self.gb_starinfo)
        self.lbl_solradius.setObjectName("lbl_solradius")
        self.formLayout.setWidget(7, QtWidgets.QFormLayout.LabelRole,
                                  self.lbl_solradius)
        self.le_radius = QtWidgets.QLineEdit(self.gb_starinfo)
        self.le_radius.setReadOnly(True)
        self.le_radius.setObjectName("le_radius")
        self.formLayout.setWidget(7, QtWidgets.QFormLayout.FieldRole,
                                  self.le_radius)
        self.lbl_radius = QtWidgets.QLabel(self.gb_starinfo)
        self.lbl_radius.setObjectName("lbl_radius")
        self.formLayout.setWidget(8, QtWidgets.QFormLayout.LabelRole,
                                  self.lbl_radius)
        self.le_radius_2 = QtWidgets.QLineEdit(self.gb_starinfo)
        self.le_radius_2.setReadOnly(True)
        self.le_radius_2.setObjectName("le_radius_2")
        self.formLayout.setWidget(8, QtWidgets.QFormLayout.FieldRole,
                                  self.le_radius_2)
        self.lbl_temp = QtWidgets.QLabel(self.gb_starinfo)
        self.lbl_temp.setObjectName("lbl_temp")
        self.formLayout.setWidget(9, QtWidgets.QFormLayout.LabelRole,
                                  self.lbl_temp)
        self.le_temp = QtWidgets.QLineEdit(self.gb_starinfo)
        self.le_temp.setReadOnly(True)
        self.le_temp.setObjectName("le_temp")
        self.formLayout.setWidget(9, QtWidgets.QFormLayout.FieldRole,
                                  self.le_temp)
        self.lbl_absmag = QtWidgets.QLabel(self.gb_starinfo)
        self.lbl_absmag.setObjectName("lbl_absmag")
        self.formLayout.setWidget(10, QtWidgets.QFormLayout.LabelRole,
                                  self.lbl_absmag)
        self.le_mag = QtWidgets.QLineEdit(self.gb_starinfo)
        self.le_mag.setReadOnly(True)
        self.le_mag.setObjectName("le_mag")
        self.formLayout.setWidget(10, QtWidgets.QFormLayout.FieldRole,
                                  self.le_mag)
        self.verticalLayout_3.addWidget(self.gb_starinfo)
        self.horizontalLayout.addWidget(self.frame)
        self.frame_2 = QtWidgets.QFrame(self.frame_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(3)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frame_2.sizePolicy().hasHeightForWidth())
        self.frame_2.setSizePolicy(sizePolicy)
        self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.frame_2)
        self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.gv_star = GLViewWidget(self.frame_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.gv_star.sizePolicy().hasHeightForWidth())
        self.gv_star.setSizePolicy(sizePolicy)
        self.gv_star.setObjectName("gv_star")
        self.verticalLayout_4.addWidget(self.gv_star)
        self.horizontalLayout.addWidget(self.frame_2)
        self.verticalLayout.addWidget(self.frame_3)
        self.buttonBox = QtWidgets.QDialogButtonBox(starPresetDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                          | QtWidgets.QDialogButtonBox.Save)
        self.buttonBox.setObjectName("buttonBox")
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(starPresetDialog)
        self.buttonBox.accepted.connect(starPresetDialog.accept)
        self.buttonBox.rejected.connect(starPresetDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(starPresetDialog)