示例#1
0
    def __init__(self, parent):
        super(LineOfActionUtils, self).__init__(parent)

        # set as window
        self.setParent(parent)
        self.setWindowFlags(QtCore.Qt.Window)
        self.setWindowTitle("Line of Action")
        self.setWindowIcon(QtGui.QIcon(getIconPath("zivaLogo.png")))
        self.resize(350, 25)

        # create layout
        layout = QtWidgets.QVBoxLayout(self)
        layout.setContentsMargins(3, 3, 3, 3)
        layout.setSpacing(3)

        # add widgets
        cr = QtWidgets.QPushButton(self)
        cr.setText("Create Line of Action")
        cr.released.connect(self.createLineOfAction)
        layout.addWidget(cr)

        cl = QtWidgets.QPushButton(self)
        cl.setText("Cluster Line of Action")
        cl.released.connect(self.clusterLineOfAction)
        layout.addWidget(cl)
示例#2
0
    def __init__(self, parent):
        super(CopyWeights, self).__init__(parent)

        # variable
        self._copyWeights = copy.CopyWeights()

        # set as window
        self.setParent(parent)
        self.setWindowFlags(QtCore.Qt.Window)
        self.setWindowTitle("Copy Weights")
        self.setWindowIcon(QtGui.QIcon(getIconPath("zivaLogo.png")))
        self.resize(350, 25)

        # create layout
        layout = QtWidgets.QVBoxLayout(self)
        layout.setContentsMargins(3, 3, 3, 3)
        layout.setSpacing(3)

        # create source
        self.source = ZivaSelection(self, "Set Source")
        self.source.selectionUpdate.connect(self.setSource)
        layout.addWidget(self.source)

        # create target
        self.target = ZivaSelection(self, "Set Target")
        self.target.selectionUpdate.connect(self.setTarget)
        layout.addWidget(self.target)

        # create copy
        self.copy = CopySettings(self)
        self.copy.setEnabled(False)
        self.copy.copyReleased.connect(self.doCopy)
        layout.addWidget(self.copy)
示例#3
0
    def __init__(self, parent):
        super(GeometryProximity, self).__init__(parent)

        # set as window
        self.setParent(parent)
        self.setWindowFlags(QtCore.Qt.Window)
        self.setWindowTitle("Select Geometry by Proximity")
        self.setWindowIcon(QtGui.QIcon(getIconPath("zivaLogo.png")))
        self.resize(350, 25)

        # create layout
        layout = QtWidgets.QHBoxLayout(self)
        layout.setContentsMargins(3, 3, 3, 3)
        layout.setSpacing(3)

        # create input
        self.r = QtWidgets.QDoubleSpinBox(self)
        self.r.setValue(0.25)
        self.r.setMinimum(0.05)
        self.r.setSingleStep(0.05)
        self.r.setDecimals(2)
        layout.addWidget(self.r)

        # create button
        button = QtWidgets.QPushButton(self)
        button.setText("Select")
        button.released.connect(self.doSelection)
        layout.addWidget(button)
示例#4
0
from zUtils.ui import getIconPath

__all__ = [
    "SELECT_ICON", "CLOSE_ICON", "MESH_ICON", "BRUSH_ICON", "LINE_ICON",
    "ZIVA_ICON", "ARROW_ICONS"
]

SELECT_ICON = ":/redSelect.png"
CLOSE_ICON = ":/closeTabButton.png"
REFRESH_ICON = ":/CN_refresh.png"
MESH_ICON = ":/polyMesh.png"
BRUSH_ICON = ":/brush.png"
LINE_ICON = ":/pickLineComp.png"
ZIVA_ICON = getIconPath("zivaLogo.png")
ARROW_ICONS = {True: ":/arrowDown.png", False: ":/arrowRight.png"}