Trajectory Commands

Trajectory Commands

Open and associate trajectory files to models, and select frames to display/edit from the current trajectory.

[Note]See also:
  • Trajectories for information on how trajectories are handled within Aten.

addframe

Syntax:

model addframe(); 
model addframe(title); 
string  title;

Append a new trajectory frame to the current model's trajectory. The reference to the new frame is returned.

For example:

model m = addframe("new config");

cleartrajectory

Syntax:

void cleartrajectory(); 

Clear any associated trajectory and frame data in the current model.

For example:

cleartrajectory();

firstframe

Syntax:

void firstframe(); 

Select the first frame from trajectory of current model.

For example:

fi	rstframe();

lastframe

Syntax:

void lastframe(); 

Select last frame in trajectory of current model.

For example:

lastframe();

loadtrajectory

Syntax:

int loadtrajectory(filename); 
string  filename;

Associate trajectory in filename with the current model. An integer value of '1' is returned if the association was successful, or '0' otherwise.

For example:

int success = loadtrajectory("/home/foo/md/water.HISf");

opens and associated the formatted DL_POLY trajectory file 'water.HISf' with the current model.

nextframe

Syntax:

void nextframe(); 

Select next frame from trajectory of current model.

For example:

nextframe();

prevframe

Syntax:

void prevframe(); 

Select the previous frame from the trajectory of the current model.

For example:

prevframe();

seekframe

Syntax:

void seekframe(frameno); 
int  frameno;

Seeks to the frame number specified.

For example:

seekframe(10);

seeks to the 10th frame of the current trajectory.