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

Class BrownianLinePath

Path --+    
       |    
ListPath --+
           |
          BrownianLinePath


Line, with random motion superimposed.

Need to be careful that maxRandomness does not swamp out the motion along the line.

Might be good to limit maxRandomness to less than distance/steps
Method Summary
  __init__(self, startLocation, endLocation, maxRandomness, steps)
  __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 (inherited from ListPath)
  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 (inherited from ListPath)
  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. (inherited from ListPath)
  set_position(self, position)
Set position and update positionOld (inherited from Path)
  set_timePerPlace(self, duration)
(inherited from ListPath)
  unpause(self)
resume moving along path (inherited from Path)

Generated by Epydoc 1.1 on Sun Nov 30 19:33:11 2003 http://epydoc.sf.net