Ejemplo n.º 1
0
    def __init__(self, **kwds):
        super(FloatVector3InputWidget, self).__init__(**kwds)
        self.setLayout(QtWidgets.QHBoxLayout())
        self.layout().setContentsMargins(1, 1, 1, 1)
        self.layout().setSpacing(1)
        self.vbX = valueBox(buttons=True, labelText="X")
        self.vbY = valueBox(buttons=True, labelText="Y")
        self.vbZ = valueBox(buttons=True, labelText="Z")
        self.layout().addWidget(self.vbX)
        self.layout().addWidget(self.vbY)
        self.layout().addWidget(self.vbZ)

        # self._configSpinBoxes()
        self.vbX.valueChanged.connect(self._onDataChangedX)
        self.vbY.valueChanged.connect(self._onDataChangedY)
        self.vbZ.valueChanged.connect(self._onDataChangedZ)
Ejemplo n.º 2
0
    def __init__(self, **kwds):
        super(FloatVector4InputWidget, self).__init__(**kwds)
        self.setLayout(QtWidgets.QHBoxLayout())
        self.layout().setContentsMargins(1, 1, 1, 1)
        self.layout().setSpacing(1)
        self.dsbX = valueBox(buttons=True, labelText="X")
        self.dsbY = valueBox(buttons=True, labelText="Y")
        self.dsbZ = valueBox(buttons=True, labelText="Z")
        self.dsbW = valueBox(buttons=True, labelText="W")
        for x in [self.dsbX, self.dsbY, self.dsbZ, self.dsbW]:
            self.layout().addWidget(x)

        self.dsbX.valueChanged.connect(self._onDataChangedX)
        self.dsbY.valueChanged.connect(self._onDataChangedY)
        self.dsbZ.valueChanged.connect(self._onDataChangedZ)
        self.dsbW.valueChanged.connect(self._onDataChangedW)
Ejemplo n.º 3
0
 def __init__(self, parent=None, **kwds):
     super(FloatInputWidgetSimple, self).__init__(parent=parent, **kwds)
     self.sb = valueBox("float", True)
     self.sb.setDecimals(FLOAT_DECIMALS)
     self.sb.setRange(FLOAT_RANGE_MIN, FLOAT_RANGE_MAX)
     self.sb.setSingleStep(FLOAT_SINGLE_STEP)
     self.setWidget(self.sb)
     self.sb.valueChanged.connect(self.dataSetCallback)
Ejemplo n.º 4
0
    def __init__(self, parent=None, **kwds):
        super(Matrix33InputWidget, self).__init__(parent=parent, **kwds)

        self.setLayout(QtWidgets.QGridLayout())
        self.layout().setContentsMargins(1, 1, 1, 1)
        self.layout().setSpacing(1)
        self.dsbm11 = valueBox(buttons=True, labelText="11")
        self.dsbm12 = valueBox(buttons=True, labelText="12")
        self.dsbm13 = valueBox(buttons=True, labelText="13")
        self.dsbm21 = valueBox(buttons=True, labelText="21")
        self.dsbm22 = valueBox(buttons=True, labelText="22")
        self.dsbm23 = valueBox(buttons=True, labelText="23")
        self.dsbm31 = valueBox(buttons=True, labelText="31")
        self.dsbm32 = valueBox(buttons=True, labelText="32")
        self.dsbm33 = valueBox(buttons=True, labelText="33")

        self.layout().addWidget(self.dsbm22, 1, 1, 1, 1)
        self.layout().addWidget(self.dsbm21, 1, 0, 1, 1)
        self.layout().addWidget(self.dsbm31, 2, 0, 1, 1)
        self.layout().addWidget(self.dsbm23, 1, 2, 1, 1)
        self.layout().addWidget(self.dsbm32, 2, 1, 1, 1)
        self.layout().addWidget(self.dsbm33, 2, 2, 1, 1)
        self.layout().addWidget(self.dsbm12, 0, 1, 1, 1)
        self.layout().addWidget(self.dsbm11, 0, 0, 1, 1)
        self.layout().addWidget(self.dsbm13, 0, 2, 1, 1)

        self.dsbm11.valueChanged.connect(self.m11Changed)
        self.dsbm12.valueChanged.connect(self.m12Changed)
        self.dsbm13.valueChanged.connect(self.m13Changed)

        self.dsbm21.valueChanged.connect(self.m21Changed)
        self.dsbm22.valueChanged.connect(self.m22Changed)
        self.dsbm23.valueChanged.connect(self.m23Changed)

        self.dsbm31.valueChanged.connect(self.m31Changed)
        self.dsbm32.valueChanged.connect(self.m32Changed)
        self.dsbm33.valueChanged.connect(self.m33Changed)
Ejemplo n.º 5
0
 def __init__(self, parent=None, **kwds):
     super(IntInputWidgetSimple, self).__init__(parent=parent, **kwds)
     self.sb = valueBox("int", True)
     self.sb.setRange(INT_RANGE_MIN, INT_RANGE_MAX)
     self.setWidget(self.sb)
     self.sb.valueChanged.connect(self.dataSetCallback)