예제 #1
0
    def __init__(self, tool):
        super(PropertiesWidget, self).__init__()
        self._ui = Ui_PropertiesWidget()
        self._ui.setupUi(self)

        self._ui._doubleSpinBoxPointSize.setValue(DEFAULT_SEGMENTATION_POINT_SIZE)
        self._ui._doubleSpinBoxStepSize.setValue(DEFAULT_PUSH_PULL_STEP_SIZE)
        self._ui._spinBoxInterpolationCount.setValue(DEFAULT_INTERPOLATION_COUNT)

        self._tool = tool

        self._makeConnections()
예제 #2
0
class PropertiesWidget(QtGui.QWidget):

    def __init__(self, tool):
        super(PropertiesWidget, self).__init__()
        self._ui = Ui_PropertiesWidget()
        self._ui.setupUi(self)

        self._ui._doubleSpinBoxPointSize.setValue(DEFAULT_SEGMENTATION_POINT_SIZE)
        self._ui._doubleSpinBoxStepSize.setValue(DEFAULT_PUSH_PULL_STEP_SIZE)
        self._ui._spinBoxInterpolationCount.setValue(DEFAULT_INTERPOLATION_COUNT)

        self._tool = tool

        self._makeConnections()

    def _makeConnections(self):
        self._ui._doubleSpinBoxPointSize.valueChanged.connect(self._tool.pointSizeChanged)
        self._ui._doubleSpinBoxStepSize.valueChanged.connect(self._tool.stepSizeChanged)
        self._ui._spinBoxInterpolationCount.valueChanged.connect(self._tool.interpolationCountChanged)
        self._ui._pushButtonDelete.clicked.connect(self._tool.deleteClicked)
        self._ui._pushButtonPullUp.clicked.connect(self._tool.pullUpClicked)
        self._ui._pushButtonPushDown.clicked.connect(self._tool.pushDownClicked)