atomes 1.1.16
atomes: an atomic scale modeling tool box
|
Functions to create the measurement(s) window. More...
Go to the source code of this file.
Functions | |
void | bonds_loop (glwin *view, int id, int pi, GtkTreeStore *store) |
do things for the measured distances selection | |
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 | |
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 | |
int | get_selection_type (glwin *view) |
get selection type | |
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 | |
ColRGBA | init_color (int id, int numid) |
initialize color based id number over total number of elements | |
void | measure_set_visible (GtkTreeViewColumn *col, GtkCellRenderer *renderer, GtkTreeModel *mod, GtkTreeIter *iter, gpointer data) |
show / hide cell renderer in the measures tree store | |
void | measure_set_color (GtkTreeViewColumn *col, GtkCellRenderer *renderer, GtkTreeModel *mod, GtkTreeIter *iter, gpointer data) |
set renderer color in the measures tree store | |
void | dihedral_set_color_and_markup (GtkTreeViewColumn *col, GtkCellRenderer *renderer, GtkTreeModel *mod, GtkTreeIter *iter, gpointer data) |
void | measure_set_color_and_markup (GtkTreeViewColumn *col, GtkCellRenderer *renderer, GtkTreeModel *mod, GtkTreeIter *iter, gpointer data) |
GtkWidget * | create_selection_tree (glwin *view, int sid, int mid) |
create the measurements selection tree | |
void | update_selection_tree (glwin *view, int sid, int mid) |
update measurements tree view | |
G_MODULE_EXPORT void | measure_tree_button_event (GtkWidget *widget, double event_x, double event_y, guint event_button, gpointer data) |
measure tree button event | |
G_MODULE_EXPORT void | measure_tree_button_pressed (GtkGesture *gesture, int n_press, double x, double y, gpointer data) |
measures tree view button press callback GTK3 | |
GtkWidget * | measurment_tab (glwin *view, int sid, int mid) |
gchar * | create_measure_label (glwin *view, int sid) |
create the text information for the number of atom(s) in selection | |
void | update_label_selection (glwin *view, int sid) |
update the text information for the number of atoms/measures in selection | |
GtkWidget * | labels_tab (glwin *view, int id) |
create atomic label(s) tab for the atom(s) / clone(s) window | |
G_MODULE_EXPORT void | close_ml (GtkButton *but, gpointer data) |
measurements style edition window close button | |
G_MODULE_EXPORT void | measure_labels (GtkButton *but, gpointer data) |
measurements style edition window | |
G_MODULE_EXPORT gboolean | close_measure_event (GtkWidget *widg, GdkEvent *event, gpointer data) |
measurements window close event callback GTK3 | |
G_MODULE_EXPORT void | window_measures (GtkWidget *widg, gpointer data) |
create the measurements window | |
Variables | |
int | bond_id |
int | angle_id |
int | dihedral_id |
Functions to create the measurement(s) window.
Definition in file w_measures.c.
|
extern |
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 |
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.
G_MODULE_EXPORT gboolean close_measure_event | ( | GtkWidget * | widg, |
GdkEvent * | event, | ||
gpointer | data ) |
measurements window close event callback GTK3
widg | the GtkWidget sending the signal |
event | the GdkEvent triggering the signal |
data | the associated data pointer |
Definition at line 716 of file w_measures.c.
G_MODULE_EXPORT void close_ml | ( | GtkButton * | but, |
gpointer | data ) |
measurements style edition window close button
but | the GtkButton sending the signal |
data | the associated data pointer |
Definition at line 664 of file w_measures.c.
gchar * create_measure_label | ( | glwin * | view, |
int | sid ) |
create the text information for the number of atom(s) in selection
view | the target glwin |
sid | the type of selection (0 = analysis mode, 1 = edition mode) |
Definition at line 625 of file w_measures.c.
GtkWidget * create_selection_tree | ( | glwin * | view, |
int | sid, | ||
int | mid ) |
create the measurements selection tree
view | the target glwin |
sid | the type of selection (0 = analysis mode, 1 = edition mode) |
mid | the type of measurement (0 = bonds, 1 = angles, 2 = dihedrals) |
Definition at line 490 of file w_measures.c.
void dihedral_set_color_and_markup | ( | GtkTreeViewColumn * | col, |
GtkCellRenderer * | renderer, | ||
GtkTreeModel * | mod, | ||
GtkTreeIter * | iter, | ||
gpointer | data ) |
col | the tree view column |
renderer | the column renderer |
mod | the tree model |
iter | the tree it |
data | the associated data pointer |
Definition at line 338 of file w_measures.c.
|
extern |
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.
void fill_angle_model_row | ( | int | p, |
int | a, | ||
int | b, | ||
int | c, | ||
GtkTreeStore * | store ) |
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.
void fill_bond_model_row | ( | int | p, |
int | a, | ||
int | b, | ||
GtkTreeStore * | store ) |
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.
void fill_dihedral_model_row | ( | int | p, |
int | a, | ||
int | b, | ||
int | c, | ||
int | d, | ||
GtkTreeStore * | store ) |
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.
int get_selection_type | ( | glwin * | view | ) |
|
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 |
create atomic label(s) tab for the atom(s) / clone(s) window
view | the target glwin |
lid | label type (0 = atoms, 1 = clones, 3 = analysis measures, 4 = edition mode measures) |
Definition at line 537 of file w_labels.c.
G_MODULE_EXPORT void measure_labels | ( | GtkButton * | but, |
gpointer | data ) |
measurements style edition window
but | the GtkButton sending the signal |
data | the associated data pointer |
Definition at line 677 of file w_measures.c.
void measure_set_color | ( | GtkTreeViewColumn * | col, |
GtkCellRenderer * | renderer, | ||
GtkTreeModel * | mod, | ||
GtkTreeIter * | iter, | ||
gpointer | data ) |
set renderer color in the measures tree store
col | the tree view column |
renderer | the column renderer |
mod | the tree model |
iter | the tree it |
data | the associated data pointer |
Definition at line 293 of file w_measures.c.
void measure_set_color_and_markup | ( | GtkTreeViewColumn * | col, |
GtkCellRenderer * | renderer, | ||
GtkTreeModel * | mod, | ||
GtkTreeIter * | iter, | ||
gpointer | data ) |
col | the tree view column |
renderer | the column renderer |
mod | the tree model |
iter | the tree it |
data | the associated data pointer |
Definition at line 360 of file w_measures.c.
void measure_set_visible | ( | GtkTreeViewColumn * | col, |
GtkCellRenderer * | renderer, | ||
GtkTreeModel * | mod, | ||
GtkTreeIter * | iter, | ||
gpointer | data ) |
show / hide cell renderer in the measures tree store
col | the tree view column |
renderer | the column renderer |
mod | the tree model |
iter | the tree it |
data | the associated data pointer |
Definition at line 274 of file w_measures.c.
G_MODULE_EXPORT void measure_tree_button_event | ( | GtkWidget * | widget, |
double | event_x, | ||
double | event_y, | ||
guint | event_button, | ||
gpointer | data ) |
measure tree button event
widget | the GtkWidget sending the signal |
event_x | x position |
event_y | y position |
event_button | event buttton |
data | the associated data pointer |
Definition at line 401 of file w_measures.c.
G_MODULE_EXPORT void measure_tree_button_pressed | ( | GtkGesture * | gesture, |
int | n_press, | ||
double | x, | ||
double | y, | ||
gpointer | data ) |
measures tree view button press callback GTK3
gesture | the GtkGesture sending the signal |
n_press | number of times it was pressed |
x | x position |
y | y position |
data | the associated data pointer |
Definition at line 475 of file w_measures.c.
GtkWidget * measurment_tab | ( | glwin * | view, |
int | sid, | ||
int | mid ) |
Definition at line 609 of file w_measures.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.
void update_label_selection | ( | glwin * | view, |
int | sid ) |
update the text information for the number of atoms/measures in selection
view | the target glwin |
sid | the type of selection (0 = analysis mode, 1 = edition mode) |
Definition at line 648 of file w_measures.c.
void update_selection_tree | ( | glwin * | view, |
int | sid, | ||
int | mid ) |
update measurements tree view
view | the target glwin |
sid | the type of selection (0 = analysis mode, 1 = edition mode) |
mid | the type of measurement (0 = bonds, 1 = angles, 2 = dihedrals) |
Definition at line 381 of file w_measures.c.
G_MODULE_EXPORT void window_measures | ( | GtkWidget * | widg, |
gpointer | data ) |
create the measurements window
widg | the GtkWidget sending the signal |
data | the associated data pointer |
Definition at line 739 of file w_measures.c.
int angle_id |
Definition at line 73 of file w_measures.c.
int bond_id |
Definition at line 72 of file w_measures.c.
int dihedral_id |
Definition at line 74 of file w_measures.c.