PyANGKernel.GKObjectDuplicateCmd

class GKObjectDuplicateCmd

Command to duplicate an object. This command allows the duplication of almost any object (be it graphical or not). The duplication performs the following operations in the target object, its children, and its other references: - Adds the duplicated object to the catalog - Adds the duplicated object to the geo model (for graphical objects) - Adds the duplicated object to the folder where the original object is stored (if any)

Details

The undo operation is supported by a series of GKObjectDelCmd ‘s that delete all the duplicated objects, reverting the previous operations.

At the moment, only GKFolder objects are explicitely excluded from being duplicated. If the implementation in GKObjectDelCmd is not enough the developer can subclass it to write a more suitable command. When doing so the new class must: - If rewrites init it has to call it in the new init method as the first line of code. - Call GKObjectDelCmd::doit as the last method called in the new doit method. - Call GKObjectDelCmd::undoit as the first method called in the new doit method.

Inheritance diagram of PyANGKernel.GKObjectDuplicateCmd

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