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

py_material.C File Reference

#include "py_commands.h"
#include "CmdMaterial.h"
#include "utilities.h"
#include "MaterialList.h"
#include "CommandQueue.h"
#include "VMDApp.h"
#include <stdlib.h>
#include <ctype.h>

Go to the source code of this file.

Functions

PyObject * listall (PyObject *self, PyObject *args)
PyObject * settings (PyObject *self, PyObject *args)
PyObject * set_default (PyObject *self, PyObject *args)
PyObject * add (PyObject *self, PyObject *args)
PyObject * matdelete (PyObject *self, PyObject *args)
PyObject * rename (PyObject *self, PyObject *args)
PyObject * change (PyObject *self, PyObject *args, PyObject *keywds)
void initmaterial ()

Variables

PyMethodDef methods []


Function Documentation

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

Definition at line 86 of file py_material.C.

References get_vmdapp, VMDApp::material_add, MaterialList::material_index, VMDApp::materialList, and NULL.

Referenced by MolBrowser::update.

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

Definition at line 157 of file py_material.C.

References get_vmdapp, MAT_AMBIENT, MAT_DIFFUSE, MAT_OPACITY, MAT_SHININESS, MAT_SPECULAR, VMDApp::material_change, MaterialList::material_index, VMDApp::materialList, and NULL.

void initmaterial  
 

Definition at line 205 of file py_material.C.

References methods.

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

Definition at line 31 of file py_material.C.

References get_vmdapp, MaterialList::material_name, VMDApp::materialList, NULL, and MaterialList::num.

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

Definition at line 117 of file py_material.C.

References get_vmdapp, VMDApp::material_delete, and NULL.

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

Definition at line 132 of file py_material.C.

References get_vmdapp, MaterialList::material_index, VMDApp::material_rename, VMDApp::materialList, and NULL.

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

Definition at line 71 of file py_material.C.

References get_vmdapp, VMDApp::material_restore_default, and NULL.

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

Definition at line 44 of file py_material.C.

References MaterialList::get_ambient, MaterialList::get_diffuse, MaterialList::get_opacity, MaterialList::get_shininess, MaterialList::get_specular, get_vmdapp, MaterialList::material_index, VMDApp::materialList, and NULL.


Variable Documentation

PyMethodDef methods[] [static]
 

Initial value:

 {
  {(char *)"listall", (vmdPyMethod)listall, METH_VARARGS },
  {(char *)"settings", (vmdPyMethod)settings, METH_VARARGS },
  {(char *)"add", (vmdPyMethod)add, METH_VARARGS },
  {(char *)"delete", (vmdPyMethod)matdelete, METH_VARARGS },
  {(char *)"rename", (vmdPyMethod)rename, METH_VARARGS },
  {(char *)"change", (PyCFunction)change, METH_VARARGS | METH_KEYWORDS },
  {(char *)"default", (vmdPyMethod)set_default, METH_VARARGS },
  {NULL, NULL}
}

Definition at line 194 of file py_material.C.

Referenced by initmaterial.


Generated on Sun Jul 6 01:28:08 2008 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002