GeometryTrajectory#

class GeometryTrajectory(trajectory, **kwargs)[source]#

Bases: Geometry

Geometry class for displaying animated trajectory sequences.

Parameters:
trajectorylist of dict

List of trajectory frames containing geometry data.

**kwargs

Additional keyword arguments passed to parent Geometry class.

Attributes

GeometryTrajectory.frames

Number of frames in the trajectory.

Methods

GeometryTrajectory.display_frame(frame_idx)

Display specific trajectory frame.

display_frame(frame_idx)[source]#

Display specific trajectory frame.

Parameters:
frame_idxint

Index of frame to display.

Returns:
bool

True if frame was successfully displayed, False otherwise.

property frames#

Number of frames in the trajectory.

Returns:
int

Total number of trajectory frames.