PyANGKernel.GKSectionJoinCmd

class GKSectionJoinCmd

Joins two sections either creating one section or creating a node between them.

Details

Tries to join two sections either creating one section or creating a node between them. This command will try first to create a unique section if: - both sections have the same number of lanes - if sections have side lanes, be sure that the new section can hold the side lanes

If a node previously joined both sections, and the node had only the turn movement joining them, then the node will be removed.

If a unique section cannot be created then it will try to join them using a node. In this case both sections: - Must have unconnected lanes (needed to create a new turn) - Cannot be connected to different nodes.

Inheritance diagram of PyANGKernel.GKSectionJoinCmd

Synopsis

Methods

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__()
setSelection(target, sections)
Parameters:
  • targetGKObject

  • sections – .list of GKSection

Sets the source and the target sections before executing the command.