Private Attributes | |
_sinkPort | |
_sourcePort | |
Additional Inherited Members | |
Static Public Attributes inherited from Vispa.Gui.PortConnection.PointToPointConnection | |
int | CONNECTION_THICKNESS = 5 |
string | CONNECTION_TYPE = "ORTHOGONAL" |
int | CONNECTOR_LENGTH = 15 |
tuple | FILL_COLOR1 = QColor(155, 0, 0) |
tuple | FILL_COLOR2 = QColor(255, 0, 0) |
FOCUSPOLICY = Qt.ClickFocus | |
tuple | SELECT_COLOR = QColor('darkblue') |
int | SELECTED_FRAME_WIDTH = 4 |
Connection line between to PortWidgets.
Definition at line 821 of file PortConnection.py.
def Vispa.Gui.PortConnection.PortConnection.__init__ | ( | self, | |
workspace, | |||
sourcePort, | |||
sinkPort | |||
) |
Constructor. Creates connection from source port widget to sink port widget.
Definition at line 824 of file PortConnection.py.
def Vispa.Gui.PortConnection.PortConnection.attachedToPort | ( | self, | |
port | |||
) |
Returns True if port is either source or sink port attached to this connection.
Definition at line 865 of file PortConnection.py.
References Vispa.Gui.PortConnection.PortConnection._sinkPort, and Vispa.Gui.PortConnection.PortConnection._sourcePort.
def Vispa.Gui.PortConnection.PortConnection.delete | ( | self | ) |
Definition at line 874 of file PortConnection.py.
Referenced by Vispa.Views.LineDecayView.LineDecayContainer.keyPressEvent(), and Vispa.Gui.VispaWidget.VispaWidget.keyPressEvent().
def Vispa.Gui.PortConnection.PortConnection.sinkPort | ( | self | ) |
Returns attached sink port.
Definition at line 840 of file PortConnection.py.
References Vispa.Gui.PortConnection.PortConnection._sinkPort.
def Vispa.Gui.PortConnection.PortConnection.sourceDirection | ( | self | ) |
Returns initial direction of source port.
Definition at line 855 of file PortConnection.py.
def Vispa.Gui.PortConnection.PortConnection.sourcePoint | ( | self | ) |
def Vispa.Gui.PortConnection.PortConnection.sourcePort | ( | self | ) |
Returns attached source port.
Definition at line 835 of file PortConnection.py.
References Vispa.Gui.PortConnection.PortConnection._sourcePort.
def Vispa.Gui.PortConnection.PortConnection.targetDirection | ( | self | ) |
Returns initial direction of sink port.
Definition at line 860 of file PortConnection.py.
def Vispa.Gui.PortConnection.PortConnection.targetPoint | ( | self | ) |
|
private |
Definition at line 830 of file PortConnection.py.
Referenced by Vispa.Gui.PortConnection.PortConnection.attachedToPort(), and Vispa.Gui.PortConnection.PortConnection.sinkPort().
|
private |
Definition at line 829 of file PortConnection.py.
Referenced by Vispa.Gui.PortConnection.PortConnection.attachedToPort(), and Vispa.Gui.PortConnection.PortConnection.sourcePort().