PyANGKernel.GKSuperNodeNewCmd¶
- class GKSuperNodeNewCmd¶
Creates a new SuperNode.
Details
The correct way to create this command is to use the function:
GKCommand * createNewCmd( GKType * type ) const;
from the
GKModelclass.Once created, and in order to do it use the function:
GKCommandReport * addCommand( GKCommand * aCommand );
from the
GKCommanderclass.A sample code for creating a new super node would look like:
cmd = model.createNewCmd( model.getType( "GKSuperNode" )) cmd.setData( nodes ) model.getCommander().addCommand( cmd ) res = cmd.createdObject()
See also
Synopsis¶
Methods¶
def
__init__()def
setData()
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__()¶
- setData(p)¶
- Parameters:
p – .list of GKNode
Sets the supernode position * Supernodes can be created from a Roundabout so the minimum
GKNodeaccepted is 1