Home | Trees | Index | Help |
---|
Package pygsear :: Module Path :: Class Path |
|
BrownianPath
,
ListPath
,
Offset_path
,
PathNG
,
RandomOnscreen
,
StationaryPath
,
SuperPath
,
TurtlePath
,
VelocityPath
Method Summary | |
---|---|
Initialize the Path | |
__iter__(self)
| |
Return the direction from the previous location to the current location. | |
Return position along Path | |
return x component of position | |
return y component of position | |
return position | |
true if path position is on main window | |
stop moving along path | |
put path back to original state | |
Path will raise StopIteration after self.duration seconds | |
Set position and update positionOld | |
resume moving along path |
Method Details |
---|
__init__(self,
position=(0, 0),
duration=None)
Initialize the Path
|
get_direction(self)Return the direction from the previous location to the current location. |
get_position(self)Return position along Path |
get_x(self)return x component of position |
get_y(self)return y component of position |
next(self)return position
|
onscreen(self, slack=0)true if path position is on main window Drawable objects should be using thepygsear.Drawable.onscreen instead.
|
pause(self)stop moving along path |
reset(self)put path back to original state |
set_endTime(self, duration=None)Path will raise StopIteration after self.duration seconds
|
set_position(self, position)Set position and update positionOld For many paths, this position will be overridden by the next call to next() and so it will never be seen. Also, many Drawable objects maintain their own position and so a call to that object's set_position may be more appropriate. |
unpause(self)resume moving along path |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.0 on Sat Dec 9 14:11:20 2006 | http://epydoc.sf.net |