def moveDirectionArm(self, relations, controlPoint, deltaCoordinate, alternateMode, visitor): '''Move a Direction CP and its Anchor CP. ''' relationWalker.walk(root=controlPoint, relations=relations, relationsToFollow=[ARM_TO], visitor = visitor, maxDepth=1) self.updateDirectionCuspness(relations, controlPoint)
def moveAnchorSetNotMaintainingCuspness(self, relations, controlPoint, deltaCoordinate, alternateMode, visitor): ''' Move just the TiedTo Anchor CP's: cuspness may change. ''' relationWalker.walk(root=controlPoint, relations=relations, relationsToFollow=[TIED_TO], visitor = visitor, maxDepth=1) self.updateAnchorCuspness(controlPoint)
def moveDirectionPointIndependently(self, relations, controlPoint, deltaCoordinate, alternateMode, visitor): '''Move just a Direction CP. ''' relationWalker.walk(root=controlPoint, relations=relations, relationsToFollow=[], visitor = visitor, maxDepth=0) self.updateDirectionCuspness(relations, controlPoint)
def moveAnchorSetMaintainingCuspness(self, relations, controlPoint, deltaCoordinate, alternateMode, visitor): ''' Move all TiedTo Anchor CP's and their Direction CP's: maintain cuspness or lack thereof (smoothness.) ''' relationWalker.walk(root=controlPoint, relations=relations, relationsToFollow=[TIED_TO, ARM_TO], visitor = visitor, maxDepth=2)