1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
|
/*
A* -------------------------------------------------------------------
B* This file contains source code for the PyMOL computer program
C* copyright 1998-2000 by Warren Lyford Delano of DeLano Scientific.
D* -------------------------------------------------------------------
E* It is unlawful to modify or remove this copyright notice.
F* -------------------------------------------------------------------
G* Please see the accompanying LICENSE file for further information.
H* -------------------------------------------------------------------
I* Additional authors of this source file include:
-*
-*
-*
Z* -------------------------------------------------------------------
*/
#ifndef _H_ObjectGadgetRamp
#define _H_ObjectGadgetRamp
#include"os_python.h"
#include"PyMOLObject.h"
#include"CGO.h"
#include"GadgetSet.h"
#include"ObjectMap.h"
#include"ObjectMolecule.h"
#define cRampNone 0
#define cRampMap 1
#define cRampMol 2
typedef struct ObjectGadgetRamp {
ObjectGadget Gadget;
int RampType;
int NLevel;
float *Level;
float *Color;
int *Special;
float *Extreme;
int var_index;
/* cRampMap */
ObjectNameType SrcName;
int SrcState;
int CalcMode;
/* fields below are not saved in session */
ObjectMap *Map;
ObjectMolecule *Mol;
float border;
float width;
float height;
float bar_width;
float bar_height;
float text_height;
float text_raise;
float text_border;
float text_scale_h;
float text_scale_v;
float x, y;
} ObjectGadgetRamp;
#define cRAMP_TRADITIONAL 1
#define cRAMP_SLUDGE 2
#define cRAMP_OCEAN 3
#define cRAMP_HOT 4
#define cRAMP_GRAYABLE 5
#define cRAMP_RAINBOW 6
#define cRAMP_AFMHOT 7
#define cRAMP_GRAYSCALE 8
ObjectGadgetRamp *ObjectGadgetRampNew(PyMOLGlobals * G);
ObjectGadgetRamp *ObjectGadgetRampMapNewAsDefined(PyMOLGlobals * G, ObjectMap * map,
float *level_vla, float *color_vla,
int map_state, float *vert_vla,
float beyond, float within, float sigma,
int zero, int calc_mode);
ObjectGadgetRamp *ObjectGadgetRampMolNewAsDefined(PyMOLGlobals * G, ObjectMolecule * mol,
float *level_vla,
float *color_vla,
int mol_state, int calc_mode);
int ObjectGadgetRampInterpolate(ObjectGadgetRamp * I, float level, float *color);
int ObjectGadgetRampInterVertex(ObjectGadgetRamp * I, float *pos, float *color,
int state);
PyObject *ObjectGadgetRampAsPyList(ObjectGadgetRamp * I);
int ObjectGadgetRampNewFromPyList(PyMOLGlobals * G, PyObject * list,
ObjectGadgetRamp ** result, int version);
void ObjectGadgetRampUpdate(ObjectGadgetRamp * I);
void ObjectGadgetRampFree(ObjectGadgetRamp * I);
#endif
|