atomes 1.1.16
atomes: an atomic scale modeling tool box
|
Functions to prepare the OpenGL rendering of the measure(s) More...
Go to the source code of this file.
Functions | |
void | setup_line_vertice (float *vertices, vec3_t pos, ColRGBA col, float alpha) |
fill the OpenGL data buffer for a line bond (or clone bond) to render | |
void | unrotate_camera () |
unrotate OpenGL camera | |
double | arc_cos (double val) |
compute arc cosinus | |
ColRGBA | init_color (int id, int numid) |
initialize color based id number over total number of elements | |
void | fill_bond_model_row (int p, int a, int b, GtkTreeStore *store) |
fill bond tree store row | |
void | fill_angle_model_row (int p, int a, int b, int c, GtkTreeStore *store) |
fill angle tree store row | |
void | fill_dihedral_model_row (int p, int a, int b, int c, int d, GtkTreeStore *store) |
fill dihedral tree store row | |
int | num_bonds (int i) |
number of distinct pair(s) of atoms in selection | |
int | num_angles (int i) |
number of distinct triplet(s) of atoms in selection | |
int | num_dihedrals (int i) |
number of distinct quadruplet(s) of atoms in selection | |
void | clean_labels (int id) |
clean atomic label shaders | |
void | draw_angle_label (atom *at, atom *bt, atom *ct, int pi) |
prepare an measured angle label OpenGL rendering | |
void | set_measure_color (int selected, int id, int num) |
set measure color | |
void | setup_this_measured_angle (int s, int sa, int sb, int sc, int pi) |
prepare measured angle to render | |
void | angles_loop (glwin *view, int id, int pi, GtkTreeStore *store) |
do things for the measured angles selection | |
void | dihedrals_loop (glwin *view, int id, int pi, GtkTreeStore *store) |
do things for the measured dihedrals selection | |
void | draw_bond_label (atom *at, atom *bt, int pi) |
prepare a measured distance OpenGL rendering | |
void | setup_this_measured_bond (int s, int sa, int sb, int pi) |
prepare measured distance to render | |
void | bonds_loop (glwin *view, int id, int pi, GtkTreeStore *store) |
do things for the measured distances selection | |
int | prepare_measure_shaders (int type, int shaders) |
prepare measure OpenGL rendering | |
void | create_measures_lists () |
prepare measure(s) OpenGL rendering | |
Variables | |
int | objects [3] |
int * | object_was_selected [3] |
int ** | tmp_object_id [3] |
int | type_of_measure |
int | measures_drawing |
atom_in_selection * | tmp_a |
atom_in_selection * | tmp_b |
atom_in_selection * | tmp_c |
atom_in_selection * | tmp_d |
atom * | ta |
atom * | tb |
atom * | tc |
atom * | td |
atom * | te |
atom * | tf |
distance | dist_ba |
distance | dist_bc |
int * | shift |
double | dist |
object_3d * | measure |
ColRGBA | col |
ColRGBA | col_gdk |
Functions to prepare the OpenGL rendering of the measure(s)
Definition in file d_measures.c.
void angles_loop | ( | glwin * | view, |
int | id, | ||
int | pi, | ||
GtkTreeStore * | store ) |
do things for the measured angles selection
view | the target glwin |
id | action to perform: -2 = save angles selection, -1 = clean angles selection, 0 = prepare OpenGL buffer data analysis mode selection measure, 1 = prepare OpenGL buffer data edition mode selection measure, 2 = fill angles tree store measures window |
pi | 0 = mouse analysis mode, 1 = mouse edition mode |
store | the tree store to fill, if any |
Definition at line 204 of file d_measures.c.
|
extern |
void bonds_loop | ( | glwin * | view, |
int | id, | ||
int | pi, | ||
GtkTreeStore * | store ) |
do things for the measured distances selection
view | the target glwin |
id | action to perform: -2 = save bonds selection -1 = clean bonds selection 0 = prepare OpenGL buffer data analysis mode selection measure 1 = prepare OpenGL buffer data edition mode selection measure 2 = fill bonds distances tree store measures window |
pi | 0 = mouse analysis mode, 1 = mouse edition mode |
store | the tree store to fill, if any |
Definition at line 530 of file d_measures.c.
|
extern |
void create_measures_lists | ( | ) |
prepare measure(s) OpenGL rendering
Definition at line 673 of file d_measures.c.
void dihedrals_loop | ( | glwin * | view, |
int | id, | ||
int | pi, | ||
GtkTreeStore * | store ) |
do things for the measured dihedrals selection
view | the target glwin |
id | action to perform: -2 = save dihedrals selection -1 = clean dihedrals selection 0 = prepare OpenGL buffer data analysis mode selection measure 1 = prepare OpenGL buffer data edition mode selection measure 2 = fill dihedrals tree store measures window |
pi | 0 = mouse analysis mode, 1 = mouse edition mode |
store | the tree store to fill, if any |
Definition at line 319 of file d_measures.c.
prepare an measured angle label OpenGL rendering
at | 1st atom |
bt | 2nd atom |
ct | 3rd atom |
pi | 0 = mouse analysis mode, 1 = mouse edition mode |
Definition at line 90 of file d_measures.c.
prepare a measured distance OpenGL rendering
at | 1st atom |
bt | 2nd atom |
pi | 0 = mouse analysis mode, 1 = mouse edition mode |
Definition at line 438 of file d_measures.c.
|
extern |
fill angle tree store row
p | the project id |
a | 1st atom id |
b | 2nd atom id |
c | 3rd atom id |
store | the GtkTreeStore to fill |
Definition at line 158 of file w_measures.c.
|
extern |
fill bond tree store row
p | the project id |
a | 1st atom id |
b | 2nd atom id |
store | the GtkTreeStore to fill |
Definition at line 109 of file w_measures.c.
|
extern |
fill dihedral tree store row
p | the project id |
a | 1st atom id |
b | 2nd atom id |
c | 3rd atom id |
d | 4th atom id |
store | the GtkTreeStore to fill |
Definition at line 213 of file w_measures.c.
|
extern |
initialize color based id number over total number of elements
id | the id number |
numid | the total number of elements |
Definition at line 81 of file initcoord.c.
|
extern |
number of distinct triplet(s) of atoms in selection
i | the number of atom(s) in selection |
Definition at line 195 of file selection.c.
|
extern |
number of distinct pair(s) of atoms in selection
i | the number of atom(s) in selection |
Definition at line 183 of file selection.c.
|
extern |
number of distinct quadruplet(s) of atoms in selection
i | the number of atom(s) in selection |
Definition at line 207 of file selection.c.
int prepare_measure_shaders | ( | int | type, |
int | shaders ) |
prepare measure OpenGL rendering
type | the measure type (0 = distances, 1 = angles, 2 = dihedrals) |
shaders | the shader id |
Definition at line 608 of file d_measures.c.
void set_measure_color | ( | int | selected, |
int | id, | ||
int | num ) |
set measure color
selected | total number of selected atom(s) |
id | measured element id number |
num | total number of measured element(s) in the list |
Definition at line 117 of file d_measures.c.
void setup_this_measured_angle | ( | int | s, |
int | sa, | ||
int | sb, | ||
int | sc, | ||
int | pi ) |
prepare measured angle to render
s | measured line (0) or label (1) |
sa | 1st atom |
sb | 2nd atom |
sc | 3rd atom |
pi | 0 = mouse analysis mode, 1 = mouse edition mode |
Definition at line 143 of file d_measures.c.
void setup_this_measured_bond | ( | int | s, |
int | sa, | ||
int | sb, | ||
int | pi ) |
prepare measured distance to render
s | measured line (0) or label (1) |
sa | 1st atom |
sb | 2nd atom |
pi | 0 = mouse analysis mode, 1 = mouse edition mode |
Definition at line 474 of file d_measures.c.
|
extern |
unrotate OpenGL camera
Definition at line 143 of file ogl_draw.c.
ColRGBA col |
Definition at line 77 of file d_measures.c.
ColRGBA col_gdk |
Definition at line 78 of file d_measures.c.
double dist |
Definition at line 73 of file d_measures.c.
distance dist_ba |
Definition at line 71 of file d_measures.c.
distance dist_bc |
Definition at line 71 of file d_measures.c.
object_3d* measure |
Definition at line 75 of file d_measures.c.
int measures_drawing |
Definition at line 67 of file d_measures.c.
|
extern |
Definition at line 213 of file selection.c.
|
extern |
Definition at line 212 of file selection.c.
int* shift |
Definition at line 72 of file d_measures.c.
atom* ta |
Definition at line 70 of file d_measures.c.
atom * tb |
Definition at line 70 of file d_measures.c.
atom * tc |
Definition at line 70 of file d_measures.c.
atom * td |
Definition at line 70 of file d_measures.c.
atom * te |
Definition at line 70 of file d_measures.c.
atom * tf |
Definition at line 70 of file d_measures.c.
atom_in_selection* tmp_a |
Definition at line 69 of file d_measures.c.
atom_in_selection * tmp_b |
Definition at line 69 of file d_measures.c.
atom_in_selection * tmp_c |
Definition at line 69 of file d_measures.c.
atom_in_selection * tmp_d |
Definition at line 69 of file d_measures.c.
|
extern |
Definition at line 214 of file selection.c.
int type_of_measure |
Definition at line 66 of file d_measures.c.