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

py_graphics.C File Reference

#include "py_commands.h"
#include "Molecule.h"
#include "MoleculeList.h"
#include "MaterialList.h"
#include "VMDApp.h"
#include "Scene.h"
#include "MoleculeGraphics.h"

Go to the source code of this file.

Functions

MoleculeGraphicsmol_from_id (int id)
PyObject * graphics_triangle (PyObject *self, PyObject *args)
PyObject * graphics_trinorm (PyObject *self, PyObject *args)
PyObject * graphics_cylinder (PyObject *self, PyObject *args, PyObject *keywds)
PyObject * graphics_point (PyObject *self, PyObject *args)
PyObject * graphics_line (PyObject *self, PyObject *args, PyObject *keywds)
PyObject * graphics_materials (PyObject *self, PyObject *args)
PyObject * graphics_material (PyObject *self, PyObject *args)
PyObject * graphics_color (PyObject *self, PyObject *args)
PyObject * graphics_cone (PyObject *self, PyObject *args, PyObject *keywds)
PyObject * graphics_sphere (PyObject *self, PyObject *args, PyObject *keywds)
PyObject * graphics_text (PyObject *self, PyObject *args, PyObject *keywds)
PyObject * graphics_delete (PyObject *self, PyObject *args)
PyObject * graphics_replace (PyObject *self, PyObject *args)
PyObject * graphics_info (PyObject *self, PyObject *args)
PyObject * graphics_listall (PyObject *self, PyObject *args)
void initgraphics ()

Variables

PyMethodDef GraphicsMethods []


Function Documentation

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

Definition at line 231 of file py_graphics.C.

References VMDApp::color_index, get_vmdapp, MAXCOLORS, mol_from_id, NULL, and MoleculeGraphics::use_color.

PyObject* graphics_cone PyObject *    self,
PyObject *    args,
PyObject *    keywds
[static]
 

Definition at line 264 of file py_graphics.C.

References MoleculeGraphics::add_cone, mol_from_id, NULL, and py_array_from_obj.

PyObject* graphics_cylinder PyObject *    self,
PyObject *    args,
PyObject *    keywds
[static]
 

Definition at line 97 of file py_graphics.C.

References MoleculeGraphics::add_cylinder, mol_from_id, NULL, and py_array_from_obj.

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

Definition at line 357 of file py_graphics.C.

References MoleculeGraphics::delete_all, MoleculeGraphics::delete_id, mol_from_id, and NULL.

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

Definition at line 405 of file py_graphics.C.

References MoleculeGraphics::index_id, MoleculeGraphics::info_id, mol_from_id, and NULL.

PyObject* graphics_line PyObject *    self,
PyObject *    args,
PyObject *    keywds
[static]
 

Definition at line 150 of file py_graphics.C.

References MoleculeGraphics::add_line, mol_from_id, NULL, and py_array_from_obj.

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

Definition at line 425 of file py_graphics.C.

References MoleculeGraphics::element_id, mol_from_id, NULL, num, and MoleculeGraphics::num_elements.

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

Definition at line 209 of file py_graphics.C.

References get_vmdapp, MaterialList::material, MaterialList::material_index, VMDApp::materialList, mol_from_id, NULL, and MoleculeGraphics::use_material.

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

Definition at line 193 of file py_graphics.C.

References mol_from_id, NULL, and MoleculeGraphics::use_materials.

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

Definition at line 128 of file py_graphics.C.

References MoleculeGraphics::add_point, mol_from_id, NULL, and py_array_from_obj.

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

Definition at line 386 of file py_graphics.C.

References mol_from_id, NULL, and MoleculeGraphics::replace_id.

PyObject* graphics_sphere PyObject *    self,
PyObject *    args,
PyObject *    keywds
[static]
 

Definition at line 294 of file py_graphics.C.

References MoleculeGraphics::add_sphere, mol_from_id, NULL, and py_array_from_obj.

PyObject* graphics_text PyObject *    self,
PyObject *    args,
PyObject *    keywds
[static]
 

Definition at line 328 of file py_graphics.C.

References MoleculeGraphics::add_text, mol_from_id, NULL, and py_array_from_obj.

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

Definition at line 48 of file py_graphics.C.

References MoleculeGraphics::add_triangle, mol_from_id, NULL, and py_array_from_obj.

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

Definition at line 71 of file py_graphics.C.

References MoleculeGraphics::add_trinorm, mol_from_id, NULL, and py_array_from_obj.

void initgraphics  
 

Definition at line 467 of file py_graphics.C.

References GraphicsMethods.

MoleculeGraphics* mol_from_id int    id [static]
 

Definition at line 30 of file py_graphics.C.

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

Referenced by find_molecule, graphics_color, graphics_cone, graphics_cylinder, graphics_delete, graphics_info, graphics_line, graphics_listall, graphics_material, graphics_materials, graphics_point, graphics_replace, graphics_sphere, graphics_text, graphics_triangle, and graphics_trinorm.


Variable Documentation

PyMethodDef GraphicsMethods[] [static]
 

Initial value:

 {
  {(char *)"sphere", (PyCFunction)graphics_sphere,METH_VARARGS | METH_KEYWORDS},
  {(char *)"triangle",(vmdPyMethod)graphics_triangle,METH_VARARGS},
  {(char *)"trinorm",(vmdPyMethod)graphics_trinorm,METH_VARARGS},
  {(char *)"cylinder", (PyCFunction)graphics_cylinder,METH_VARARGS | METH_KEYWORDS},
  {(char *)"point",(vmdPyMethod)graphics_point,METH_VARARGS},
  {(char *)"line", (PyCFunction)graphics_line,METH_VARARGS | METH_KEYWORDS},
  {(char *)"materials",(vmdPyMethod)graphics_materials,METH_VARARGS},
  {(char *)"material",(vmdPyMethod)graphics_material,METH_VARARGS},
  {(char *)"color",(vmdPyMethod)graphics_color,METH_VARARGS},
  {(char *)"cone", (PyCFunction)graphics_cone,METH_VARARGS | METH_KEYWORDS},
  {(char *)"sphere", (PyCFunction)graphics_sphere,METH_VARARGS | METH_KEYWORDS},
  {(char *)"text", (PyCFunction)graphics_text,METH_VARARGS | METH_KEYWORDS},
  {(char *)"delete",(vmdPyMethod)graphics_delete,METH_VARARGS},
  {(char *)"replace",(vmdPyMethod)graphics_replace,METH_VARARGS},
  {(char *)"info",(vmdPyMethod)graphics_info,METH_VARARGS},
  {(char *)"listall",(vmdPyMethod)graphics_listall,METH_VARARGS},
  {NULL, NULL}
}

Definition at line 447 of file py_graphics.C.

Referenced by initgraphics.


Generated on Thu May 24 01:51:53 2012 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002