PyANGKernel.GKGeoObjectCutCmd¶
- class GKGeoObjectCutCmd¶
Base class for all geoobject cut commands
Inherited by:
GKPolylineCutCmd,GKBezierCurveCutCmd,GKSectionCutCmdSynopsis¶
Methods¶
def
__init__()def
isDone()
Virtual methods¶
def
commandDone()def
commandUndone()def
doit()def
init()def
setDone()def
undoit()
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:
aobject –
GKGeoObjectfrom –
GKPointto –
GKPointkeepConnection – bool
- Return type:
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.
- setDone(avalue)¶
- Parameters:
avalue – bool
Sets the “done” attribute to the specfied value
- undoit()¶