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

Class ListPath

Path --+
       |
      ListPath

Known Subclasses:
SquarePath, LinePath, FigureEightPath, BrownianLinePath, ConcentricCirclePath, FilePath, SquareEightPath, CirclePath

Set of points fully created when instantiated.
Method Summary
  __init__(self, places, duration)
  __iter__(self)
(inherited from Path)
  get_direction(self)
Return the direction from the previous location to the current location. (inherited from Path)
  get_position(self)
Return position along Path (inherited from Path)
  get_x(self)
return x component of position (inherited from Path)
  get_y(self)
return y component of position (inherited from Path)
  next(self)
return position
  onscreen(self, slack)
true if path position is on main window (inherited from Path)
  pause(self)
stop moving along path (inherited from Path)
  reset(self)
put path back to original state
  set_endTime(self, duration)
Path will raise StopIteration after self.duration seconds (inherited from Path)
  set_loop(self, loop)
Set number of times to go around path.
  set_position(self, position)
Set position and update positionOld (inherited from Path)
  set_timePerPlace(self, duration)
  unpause(self)
resume moving along path (inherited from Path)
  _oneLoop(self)
Check if should continue looping.

Method Details

next(self)

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

reset(self)

put path back to original state
Overrides:
pygsear.Path.Path.reset (inherited documentation)

set_loop(self, loop=1)

Set number of times to go around path.
Parameters:
loop - number of times to loop before raising StopIteration if -1, loop forever.

_oneLoop(self)

Check if should continue looping.

Generated by Epydoc 1.1 on Sun Jan 25 19:10:13 2004 http://epydoc.sf.net