PyANGKernel.GKGeoObjectCutCmd

class GKGeoObjectCutCmd

Base class for all geoobject cut commands

Inherited by: GKPolylineCutCmd, GKBezierCurveCutCmd, GKSectionCutCmd

Synopsis

Methods

Virtual 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__()
commandDone()
commandToBeDone()
commandToBeUndone()
commandUndone()
doit()
abstractmethod init(aobject, from, to, keepConnection)
Parameters:
Return type:

bool

Inits the cmd. It returns true if the object can be cutted and false otherwise (maybe the object is locked?). This function receives the object to be cutted and the segment used to cut the object.

If keepConnection, the cutted object will try to keep both parts connected (using a connector) if possible.

isDone()
Return type:

bool

setDone(avalue)
Parameters:

avalue – bool

Sets the “done” attribute to the specfied value

undoit()