Example #1
0
 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)
Example #2
0
 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)
Example #3
0
 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)
Example #4
0
 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)