SegmentedTrajectoryGenerator class

Generate a stimulus movement trajectory. The trajectory is defined as several trajectory parts, each of which is defined by another stimulus generator.

Use this class in conjunction with StimulusAnimator

To see how this is implemented, see the “TrajGenerator” sample provided with TrajTracker.

Methods and properties:

class trajtracker.movement.SegmentedTrajectoryGenerator(segments=(), cyclic=False)
__init__(segments=(), cyclic=False)
cyclic

Whether to stop after the trajectory duration has passed (False) or to restart the same trajectory (True)

get_traj_point(time)

Generate the trajectory - get one time point data

Parameters:time – in seconds
Returns:(x, y, visible)
log_level

Logging level of this object: trajtracker.log_none, log_error (default), log_warn, log_info, log_debug, log_trace