Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

py_animate.C File Reference

#include "py_commands.h"
#include "CommandQueue.h"
#include "VMDApp.h"
#include "Molecule.h"
#include "MoleculeList.h"
#include "Animation.h"

Go to the source code of this file.

Functions

PyObject * py_once (PyObject *self, PyObject *args)
PyObject * py_rock (PyObject *self, PyObject *args)
PyObject * py_loop (PyObject *self, PyObject *args)
PyObject * py_style (PyObject *self, PyObject *args)
PyObject * py_anim_goto (PyObject *self, PyObject *args, PyObject *kwargs)
PyObject * py_reverse (PyObject *self, PyObject *args)
PyObject * py_forward (PyObject *self, PyObject *args)
PyObject * py_prev (PyObject *self, PyObject *args)
PyObject * py_next (PyObject *self, PyObject *args)
PyObject * py_pause (PyObject *self, PyObject *args)
PyObject * py_speed (PyObject *self, PyObject *args, PyObject *kwargs)
PyObject * py_skip (PyObject *self, PyObject *args, PyObject *kwargs)
PyObject * py_is_active (PyObject *self, PyObject *args, PyObject *kwargs)
PyObject * py_activate (PyObject *self, PyObject *args, PyObject *kwargs)
PyObject * initanimate ()

Variables

const char once_doc [] = "Animate once through all frames."
const char rock_doc [] = "Animate back and forth between first and last frames."
const char loop_doc [] = "Animate in a continuous loop."
const char style_doc []
const char goto_doc []
const char reverse_doc [] = "Start animating frames in reverse order."
const char forward_doc [] = "Start animating frames in forward order."
const char prev_doc [] = "Animate to the previous frame and stop."
const char next_doc [] = "Animate to the next frame and stop."
const char pause_doc [] = "Pause the animation."
const char speed_doc []
const char skip_doc []
const char is_active_doc []
const char activate_doc []
PyMethodDef methods []
const char animate_moddoc []


Function Documentation

PyObject* initanimate  
 

Definition at line 339 of file py_animate.C.

References animate_moddoc, and methods.

PyObject* py_activate PyObject *    self,
PyObject *    args,
PyObject *    kwargs
[static]
 

Definition at line 278 of file py_animate.C.

References get_vmdapp, MoleculeList::mol_from_id, VMDApp::molecule_activate, VMDApp::moleculeList, and NULL.

PyObject* py_anim_goto PyObject *    self,
PyObject *    args,
PyObject *    kwargs
[static]
 

Definition at line 90 of file py_animate.C.

References VMDApp::animation_set_frame, get_vmdapp, and NULL.

PyObject* py_forward PyObject *    self,
PyObject *    args
[static]
 

Definition at line 125 of file py_animate.C.

References Animation::ANIM_FORWARD, VMDApp::animation_set_dir, get_vmdapp, and NULL.

PyObject* py_is_active PyObject *    self,
PyObject *    args,
PyObject *    kwargs
[static]
 

Definition at line 249 of file py_animate.C.

References DrawMolecule::active, get_vmdapp, MoleculeList::mol_from_id, VMDApp::moleculeList, and NULL.

PyObject* py_loop PyObject *    self,
PyObject *    args
[static]
 

Definition at line 58 of file py_animate.C.

References Animation::ANIM_LOOP, VMDApp::animation_set_style, get_vmdapp, and NULL.

PyObject* py_next PyObject *    self,
PyObject *    args
[static]
 

Definition at line 152 of file py_animate.C.

References Animation::ANIM_FORWARD1, VMDApp::animation_set_dir, get_vmdapp, and NULL.

PyObject* py_once PyObject *    self,
PyObject *    args
[static]
 

Definition at line 30 of file py_animate.C.

References Animation::ANIM_ONCE, VMDApp::animation_set_style, get_vmdapp, and NULL.

PyObject* py_pause PyObject *    self,
PyObject *    args
[static]
 

Definition at line 166 of file py_animate.C.

References Animation::ANIM_PAUSE, VMDApp::animation_set_dir, get_vmdapp, and NULL.

PyObject* py_prev PyObject *    self,
PyObject *    args
[static]
 

Definition at line 138 of file py_animate.C.

References Animation::ANIM_REVERSE1, VMDApp::animation_set_dir, get_vmdapp, and NULL.

PyObject* py_reverse PyObject *    self,
PyObject *    args
[static]
 

Definition at line 111 of file py_animate.C.

References Animation::ANIM_REVERSE, VMDApp::animation_set_dir, get_vmdapp, and NULL.

PyObject* py_rock PyObject *    self,
PyObject *    args
[static]
 

Definition at line 44 of file py_animate.C.

References Animation::ANIM_ROCK, VMDApp::animation_set_style, get_vmdapp, and NULL.

PyObject* py_skip PyObject *    self,
PyObject *    args,
PyObject *    kwargs
[static]
 

Definition at line 218 of file py_animate.C.

References VMDApp::anim, VMDApp::animation_set_stride, as_pyint, get_vmdapp, NULL, and Animation::skip.

PyObject* py_speed PyObject *    self,
PyObject *    args,
PyObject *    kwargs
[static]
 

Definition at line 185 of file py_animate.C.

References VMDApp::anim, VMDApp::animation_set_speed, get_vmdapp, NULL, and Animation::speed.

PyObject* py_style PyObject *    self,
PyObject *    args
[static]
 

Definition at line 75 of file py_animate.C.

References VMDApp::anim, Animation::anim_style, as_pystring, get_vmdapp, and NULL.


Variable Documentation

const char activate_doc[] [static]
 

Initial value:

"Set the active status of a molecule. Active molecules update their coordinate"
" frames during animation, inactive ones do not.\n\n"
"Args:\n"
"    molid (int): Molecule ID to change\n"
"    active (bool): New active status of molecule."

Definition at line 272 of file py_animate.C.

const char animate_moddoc[] [static]
 

Initial value:

"Methods for controlling molecules with multiple frames loaded"

Definition at line 324 of file py_animate.C.

Referenced by initanimate.

const char forward_doc[] = "Start animating frames in forward order." [static]
 

Definition at line 124 of file py_animate.C.

const char goto_doc[] [static]
 

Initial value:

"Display a givenframe on the next display update\n\n"
"Args:\n"
"    frame (int): Frame index to display"

Definition at line 86 of file py_animate.C.

const char is_active_doc[] [static]
 

Initial value:

"Returns whether a given molecule is active (updated during animation)\n\n"
"Args:\n"
"    molid (int): Molecule ID to query\n\n"
"Returns:\n"
"    (bool) If molecule is active"

Definition at line 243 of file py_animate.C.

const char loop_doc[] = "Animate in a continuous loop." [static]
 

Definition at line 57 of file py_animate.C.

PyMethodDef methods[] [static]
 

Initial value:

 {
  {"once", (PyCFunction) py_once, METH_NOARGS, once_doc},
  {"rock", (PyCFunction) py_rock, METH_NOARGS, rock_doc },
  {"loop", (PyCFunction) py_loop, METH_NOARGS, loop_doc },
  {"style", (PyCFunction) py_style, METH_NOARGS, style_doc },
  {"goto", (PyCFunction) py_anim_goto, METH_VARARGS | METH_KEYWORDS, goto_doc },
  {"reverse", (PyCFunction) py_reverse, METH_NOARGS, reverse_doc },
  {"forward", (PyCFunction) py_forward, METH_NOARGS, forward_doc },
  {"prev", (PyCFunction) py_prev, METH_NOARGS, prev_doc },
  {"next", (PyCFunction) py_next, METH_NOARGS, next_doc },
  {"pause", (PyCFunction) py_pause, METH_NOARGS, pause_doc },
  {"speed", (PyCFunction) py_speed, METH_VARARGS | METH_KEYWORDS, speed_doc },
  {"skip", (PyCFunction) py_skip, METH_VARARGS | METH_KEYWORDS, skip_doc },
  {"is_active", (PyCFunction) py_is_active, METH_VARARGS | METH_KEYWORDS, is_active_doc },
  {"activate", (PyCFunction) py_activate, METH_VARARGS | METH_KEYWORDS, activate_doc },
  {NULL, NULL}
}

Definition at line 305 of file py_animate.C.

Referenced by initanimate.

const char next_doc[] = "Animate to the next frame and stop." [static]
 

Definition at line 151 of file py_animate.C.

const char once_doc[] = "Animate once through all frames." [static]
 

Definition at line 29 of file py_animate.C.

const char pause_doc[] = "Pause the animation." [static]
 

Definition at line 165 of file py_animate.C.

const char prev_doc[] = "Animate to the previous frame and stop." [static]
 

Definition at line 137 of file py_animate.C.

const char reverse_doc[] = "Start animating frames in reverse order." [static]
 

Definition at line 110 of file py_animate.C.

const char rock_doc[] = "Animate back and forth between first and last frames." [static]
 

Definition at line 43 of file py_animate.C.

const char skip_doc[] [static]
 

Initial value:

"Set or get stride for animation frames. A skip value of 1 shows every frame,\n"
"a value of 2 shows every other frame, etc.\n\n"
"Args:\n"
"    value (int): New value for stride, or None to query\n\n"
"Returns:\n"
"   (int) Current value for stride"

Definition at line 211 of file py_animate.C.

const char speed_doc[] [static]
 

Initial value:

"Set or get animation speed\n\n"
"Args:\n"
"    value (float): New value for speed, between 0 and 1, or None to query\n"
"Returns:\n"
"    (float) Current value for speed"

Definition at line 179 of file py_animate.C.

const char style_doc[] [static]
 

Initial value:

"Returns current animation style\n\n"
"Returns:\n"
"    (str) style, in ['Rock', 'Once', 'Loop']"

Definition at line 71 of file py_animate.C.


Generated on Thu Mar 28 02:44:46 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002