Package pygsear :: Module Path :: Class VelocityPathTimeBounded
[show private | hide private]
[frames | no frames]

Class VelocityPathTimeBounded

       Path --+        
              |        
   VelocityPath --+    
                  |    
VelocityPathBounded --+
                      |
       Path --+       |
              |       |
   VelocityPath --+   |
                  |   |
   VelocityPathTime --+
                      |
                     VelocityPathTimeBounded


VelocityPathTime with min/max x and y values.
Method Summary
  __init__(self, startLocation, vx, vy, duration, xMin, xMax, yMin, yMax, endPathAtBoundary)
  next(self)
return position
    Inherited from VelocityPathBounded
  clamp(self)
    Inherited from VelocityPath
  accelerate(self, ax, ay)
  get_direction(self)
Return the direction from the previous location to the current location.
  get_speed(self)
  set_velocity(self, vx, vy)
    Inherited from Path
  __iter__(self)
  get_position(self)
Return position along Path
  get_x(self)
return x component of position
  get_y(self)
return y component of position
  onscreen(self, slack)
true if path position is on main window
  pause(self)
stop moving along path
  reset(self)
put path back to original state
  set_endTime(self, duration)
Path will raise StopIteration after self.duration seconds
  set_position(self, position)
Set position and update positionOld
  unpause(self)
resume moving along path

Method Details

next(self)

return position
Raises:
StopIteration - If duration has expired, or if position has been set to (None, None)
Overrides:
pygsear.Path.VelocityPathTime.next (inherited documentation)

Generated by Epydoc 2.0 on Sat Dec 9 14:11:18 2006 http://epydoc.sf.net