PyANGKernel.GKObjectConnection¶
- class GKObjectConnection¶
Object that keeps information about the connection between two different view objects.
Details
Connection between an ‘owner’
GKGeoObjectand a ‘connectedObject’ GKPointer<GKGeoObject>.The connection can be of various types (directions). See
ConnectionType.Inherited by:
GKCenConnectionSynopsis¶
Methods¶
def
__init__()def
getOther()def
getOwner()def
getPosition()def
setOwner()def
setPosition()
Virtual methods¶
def
updatePoints()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
- __init__()¶
* Constructor. * Default values: * - type: GK::eConnectionBidirectional * - relative position: 0.0
- getConnectionObject()¶
- Return type:
Returns the destination object.
- getConnectionType()¶
- Return type:
Returns the connection type between the owner and the connectionObject.
- getOther(o)¶
- Parameters:
o –
GKGeoObject- Return type:
Returns the ‘other’ object of the connection: - if the specified object is the Owner, returns
getConnectionObject; - if the specified object is the ConnectionObject, returnsgetOwner; - else, returns NULL.- getOwner()¶
- Return type:
Gets the connection’s owner.
Returns the connection relative position
- isConnectionObject(o)¶
- Parameters:
o –
GKGeoObject- Return type:
Returns true if the destination object is “o”
Returns true if the connection is hidden.
- setConnectionObject(o)¶
- Parameters:
o –
GKGeoObject
Sets the destination object.
See also
- setConnectionType(atype)¶
- Parameters:
atype –
ConnectionType
Sets the connection type and then adds this connection to the object.
Note
To change the connectionType afterwards, call GKGeoObject::changeConnectionType.
- setHiddenConnection(isHidden)¶
- Parameters:
isHidden – bool
Hides the connection.
See also
- setOwner(o)¶
- Parameters:
o –
GKGeoObject
Sets the connection’s owner.
- setPosition(pos)¶
- Parameters:
pos – float
Sets the relative position where the connection is placed. Useful when the connection is at the middle of a section.
- updatePoints()¶
Updates the points of the connection according to the position of the owner and the connected objects.