Esempio n. 1
0
    def stepSizeChanged(self, value):
        if value != self._step_size:
            c = CommandSetSingleParameterMethod(self._step_size, value)
            c.setSingleParameterMethod(self._setStepSize)
            self._step_size = value

            self._undo_redo_stack.push(c)
    def _projectionModeChanged(self):
        current_mode = ProjectionMode.PERSPECTIVE if self._ui._radioButtonParallel.isChecked() else ProjectionMode.PARALLEL
        new_mode = ProjectionMode.PARALLEL if self._ui._radioButtonParallel.isChecked() else ProjectionMode.PERSPECTIVE
        c = CommandSetSingleParameterMethod(current_mode, new_mode)
        c.setSingleParameterMethod(self._setProjectionMode)

        self._model.getUndoRedoStack().push(c)
Esempio n. 3
0
    def streamingCreateChanged(self, state):
        new = True if state == 2 else False
        current = not new
        c = CommandSetSingleParameterMethod(current, new)
        c.setSingleParameterMethod(self._setStreamingCreate)

        self._undo_redo_stack.push(c)
Esempio n. 4
0
    def stepSizeChanged(self, value):
        if value != self._step_size:
            c = CommandSetSingleParameterMethod(self._step_size, value)
            c.setSingleParameterMethod(self._setStepSize)
            self._step_size = value

            self._undo_redo_stack.push(c)
Esempio n. 5
0
    def interpolationCountChanged(self, value):
        if value != self._interpolation_count:
            c = CommandSetSingleParameterMethod(self._interpolation_count, value)
            c.setSingleParameterMethod(self._setInterpolationCount)
            self._interpolation_count = value

            self._undo_redo_stack.push(c)
Esempio n. 6
0
    def interpolationCountChanged(self, value):
        if value != self._interpolation_count:
            c = CommandSetSingleParameterMethod(self._interpolation_count,
                                                value)
            c.setSingleParameterMethod(self._setInterpolationCount)
            self._interpolation_count = value

            self._undo_redo_stack.push(c)