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 GKModel class.

Once created, and in order to do it use the function:

GKCommandReport * addCommand( GKCommand * aCommand );

from the GKCommander class.

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()

Inheritance diagram of PyANGKernel.GKSuperNodeNewCmd

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__()
setData(p)
Parameters:

p – .list of GKNode

Sets the supernode position * Supernodes can be created from a Roundabout so the minimum GKNode accepted is 1