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

py_color.C File Reference

#include "py_commands.h"
#include "VMDApp.h"

Go to the source code of this file.

Functions

PyObject * categories (PyObject *self, PyObject *args)
PyObject * get_colormap (PyObject *self, PyObject *args)
PyObject * set_colormap (PyObject *self, PyObject *args)
PyObject * get_colors (PyObject *self, PyObject *args)
PyObject * set_colors (PyObject *self, PyObject *args)
PyObject * scale_method (PyObject *self, PyObject *args)
PyObject * scale_methods (PyObject *self, PyObject *args)
PyObject * scale_midpoint (PyObject *self, PyObject *args)
PyObject * scale_min (PyObject *self, PyObject *args)
PyObject * scale_max (PyObject *self, PyObject *args)
PyObject * set_scale (PyObject *self, PyObject *args, PyObject *keywds)
void initcolor ()

Variables

char categories_doc []
char get_colormap_doc []
char set_colormap_doc []
char get_colors_doc []
char set_colors_doc []
char scale_method_doc []
char scale_methods_doc []
char scale_midpoint_doc []
char scale_min_doc []
char scale_max_doc []
char set_scale_doc []
PyMethodDef ColorMethods []


Function Documentation

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

Definition at line 27 of file py_color.C.

References VMDApp::color_category, get_vmdapp, NULL, num, and VMDApp::num_color_categories.

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

Definition at line 45 of file py_color.C.

References VMDApp::color_category_item, VMDApp::color_mapping, get_vmdapp, NULL, and VMDApp::num_color_category_items.

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

Definition at line 104 of file py_color.C.

References VMDApp::color_name, VMDApp::color_value, get_vmdapp, NULL, and VMDApp::num_regular_colors.

void initcolor  
 

Definition at line 285 of file py_color.C.

References ColorMethods.

Referenced by initvmd, and PythonTextInterp::PythonTextInterp.

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

Definition at line 231 of file py_color.C.

References VMDApp::colorscale_info, get_vmdapp, and NULL.

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

Definition at line 176 of file py_color.C.

References VMDApp::colorscale_method_current, VMDApp::colorscale_method_name, get_vmdapp, and NULL.

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

Definition at line 189 of file py_color.C.

References VMDApp::colorscale_method_name, get_vmdapp, NULL, num, and VMDApp::num_colorscale_methods.

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

Definition at line 207 of file py_color.C.

References VMDApp::colorscale_info, get_vmdapp, and NULL.

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

Definition at line 219 of file py_color.C.

References VMDApp::colorscale_info, get_vmdapp, and NULL.

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

Definition at line 64 of file py_color.C.

References VMDApp::color_changename, get_vmdapp, and NULL.

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

Definition at line 129 of file py_color.C.

References VMDApp::color_changevalue, VMDApp::color_index, get_vmdapp, and NULL.

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

Definition at line 243 of file py_color.C.

References VMDApp::colorscale_info, VMDApp::colorscale_method_index, VMDApp::colorscale_setmethod, VMDApp::colorscale_setvalues, get_vmdapp, midpoint, and NULL.


Variable Documentation

char categories_doc[] [static]
 

Initial value:

 
  "categories() -> list\n"
  "Return list of available color categories"

Definition at line 24 of file py_color.C.

PyMethodDef ColorMethods[] [static]
 

Initial value:

 {
  {(char *)"categories", (vmdPyMethod)categories, METH_VARARGS, categories_doc},
  {(char *)"get_colormap", (vmdPyMethod)get_colormap, METH_VARARGS, get_colormap_doc},
  {(char *)"set_colormap", (vmdPyMethod)set_colormap, METH_VARARGS, set_colormap_doc},
  {(char *)"get_colors", (vmdPyMethod)get_colors, METH_VARARGS, get_colors_doc},
  {(char *)"set_colors", (vmdPyMethod)set_colors, METH_VARARGS, set_colors_doc},
  {(char *)"scale_method", (vmdPyMethod)scale_method, METH_VARARGS, scale_method_doc},
  {(char *)"scale_methods", (vmdPyMethod)scale_methods, METH_VARARGS, scale_methods_doc},
  {(char *)"scale_midpoint", (vmdPyMethod)scale_midpoint, METH_VARARGS, scale_midpoint_doc},
  {(char *)"scale_min", (vmdPyMethod)scale_min, METH_VARARGS, scale_min_doc},
  {(char *)"scale_max", (vmdPyMethod)scale_max, METH_VARARGS, scale_max_doc},
  {(char *)"set_scale", (PyCFunction)set_scale, METH_VARARGS | METH_KEYWORDS, set_scale_doc},
  {NULL, NULL}
}

Definition at line 270 of file py_color.C.

Referenced by initcolor.

char get_colormap_doc[] [static]
 

Initial value:

 
  "get_colormap(name) -> dictionary\n"
  "Return dictionary of name/color pairs in the given category"

Definition at line 42 of file py_color.C.

char get_colors_doc[] [static]
 

Initial value:

 
  "get_colors() -> dictionary\n"
  "Returns dictionary of name/rgb pairs.  rgb is a 3-tuple."

Definition at line 101 of file py_color.C.

char scale_max_doc[] [static]
 

Initial value:

    "scale_max() -> float\n"
    "Return current colorscale midpoint max"

Definition at line 228 of file py_color.C.

char scale_method_doc[] [static]
 

Initial value:

 
    "scale_method() -> string\n"
    "Return current colorscale method name"

Definition at line 173 of file py_color.C.

char scale_methods_doc[] [static]
 

Initial value:

 
    "scale_methods() -> list\n"
    "Return list of available colorscale methods"

Definition at line 186 of file py_color.C.

char scale_midpoint_doc[] [static]
 

Initial value:

 
    "scale_midpoint() -> float\n"
    "Return current colorscale midpoint value"

Definition at line 204 of file py_color.C.

char scale_min_doc[] [static]
 

Initial value:

    "scale_min() -> float\n"
    "Return current colorscale midpoint min"

Definition at line 216 of file py_color.C.

char set_colormap_doc[] [static]
 

Initial value:

 
  "set_colormap(name, dict) -> None\n"
  "Update name/color pairs in given color category."

Definition at line 61 of file py_color.C.

char set_colors_doc[] [static]
 

Initial value:

  
    "set_colors(dict) -> None\n"
    "Set colors using given dicionary of name/rgb pairs"

Definition at line 126 of file py_color.C.

char set_scale_doc[] [static]
 

Initial value:

    "set_scale(method, midpoint, min, max) -> None\n"
    "Set colorscale parameters"

Definition at line 240 of file py_color.C.


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