Implemented interface functions in base classes.

This commit is contained in:
Markus Lampert
2017-09-24 16:03:31 -07:00
committed by Yorik van Havre
parent 18a3fc0580
commit 567f592d84
5 changed files with 46 additions and 0 deletions

View File

@@ -53,6 +53,16 @@ class ObjectPocket(PathAreaOp.ObjectOp):
def pocketOpFeatures(self, obj):
return 0
def initPocketOp(self, obj):
'''initPocketOp(obj) ... overwrite to initialize subclass.
Can safely be overwritten by subclass.'''
pass
def pocketInvertExtraOffset(self):
'''pocketInvertExtraOffset() ... return True if ExtraOffset's direction is inward.
Can safely be overwritten by subclass.'''
return False
def initAreaOp(self, obj):
'''initAreaOp(obj) ... create pocket specific properties.
Do not overwrite, implement initPocketOp(obj) instead.'''