atomes 1.1.16
atomes: an atomic scale modeling tool box
|
Functions to create the OpenGL window popup menus: More...
#include "global.h"
#include "callbacks.h"
#include "interface.h"
#include "workspace.h"
#include "project.h"
#include "glview.h"
#include "glwindow.h"
#include "submenus.h"
#include "color_box.h"
#include "bind.h"
#include "atom_edit.h"
Go to the source code of this file.
Macros | |
#define | CONTEXTACT 12 |
Functions | |
atom_search * | allocate_atom_search (int proj, int action, int searchid, int tsize) |
allocate atom search data structure | |
void | check_all_trees (project *this_proj) |
check all search trees | |
int | action_atoms_from_project (project *this_proj, atom_search *asearch, gboolean visible) |
apply atom edition action to project (motion, remove, replace, insert, random move) | |
G_MODULE_EXPORT void | opengl_advanced (GtkWidget *widg, gpointer data) |
create OpenGL rendering advanced window | |
G_MODULE_EXPORT void | render_gl_image (GtkWidget *widg, gpointer data) |
render image from the OpenGL window | |
G_MODULE_EXPORT void | coord_properties (GtkWidget *widg, gpointer data) |
create the environments configuration window | |
void | apply_project (gboolean showtools) |
get project ready for calculation and initialize the OpenGL window | |
GtkWidget * | field_atom_menu (int p, int s, int a, int f) |
void | reset_coordinates (project *this_proj, int status) |
reset transformation and restore saved atomic coordinates | |
vec3_t | get_bary (project *this_proj, int status) |
get barycenter of atomic coordinates | |
void | prepare_to_instert (gchar *key, project *this_proj, atom_search *asearch, gboolean visible) |
prepare to insert something | |
atom_in_selection * | new_atom_in_selection (int id, int sp) |
create a selected atom | |
void | duplicate_material_and_lightning (image *new_img, image *old_img) |
copy the material and lightning parameters of an image data structure | |
G_MODULE_EXPORT void | view_shortcuts (GSimpleAction *action, GVariant *parameter, gpointer data) |
int | get_to_be_selected (glwin *view) |
find which atom(s) are to be selected | |
G_MODULE_EXPORT void | set_full_screen (GtkWidget *widg, gpointer data) |
set full screen callback GTK3 | |
int | get_style (gchar *str) |
get OpenGL rendering style id | |
atom_search * | free_this_search_data (atom_search *this_search) |
free atom search data structure | |
void | to_remove_this_object (int type, gpointer data) |
remove a type of object | |
gchar * | get_object_from_action (GSimpleAction *action) |
get object name from action name GTK4 | |
void | to_replace_this_object (int type, GtkWidget *widg, gpointer data) |
replace a type of object GTK3 | |
void | copy_bond_selection () |
copy bond selection | |
void | remove_object () |
remove object using 'remove_search' | |
G_MODULE_EXPORT void | remove_this_atom (GtkWidget *widg, gpointer data) |
remove this atom callback GTK3 | |
void | insert_object (int action, gpointer data) |
insert object | |
G_MODULE_EXPORT void | add_object (GtkWidget *widg, gpointer data) |
add object call back GTK3 | |
G_MODULE_EXPORT void | to_add_object (GtkWidget *widg, gpointer data) |
to add object callback GTK3 | |
G_MODULE_EXPORT void | replace_this_atom (GtkWidget *widg, gpointer data) |
replace this atom callback GTK3 | |
G_MODULE_EXPORT void | copy_this_atom (GtkWidget *widg, gpointer data) |
copy this atom callback GTK3 | |
void | check_hidden_visible (project *this_proj) |
check how many atom(s) are visible | |
G_MODULE_EXPORT void | show_hide_this_atom (GtkWidget *widg, gpointer data) |
show / hide this atom callback GTK3 | |
int | check_label_numbers (project *this_proj, int types) |
check how many atom label(s) are visible | |
G_MODULE_EXPORT void | label_unlabel_this_atom (GtkWidget *widg, gpointer data) |
label / unlabel this atom callback GTK3 | |
G_MODULE_EXPORT void | select_unselect_this_atom (GtkWidget *widg, gpointer data) |
select / unselect this atom callback GTK3 | |
G_MODULE_EXPORT void | style_this_atom (GtkWidget *widg, gpointer data) |
change OpenGL rendering style for this atom callback GTK3 | |
G_MODULE_EXPORT void | remove_the_atoms (GtkWidget *widg, gpointer data) |
remove selected atom(s) callback GTK3 | |
G_MODULE_EXPORT void | replace_the_atoms (GtkWidget *widg, gpointer data) |
replace selected atom(s) callback GTK3 | |
G_MODULE_EXPORT void | copy_the_atoms (GtkWidget *widg, gpointer data) |
copy selected atom(s) callback GTK3 | |
G_MODULE_EXPORT void | show_hide_others (GtkWidget *widg, gpointer data) |
show all hidden / hide all visible atom(s) callback GTK3 | |
G_MODULE_EXPORT void | show_hide_the_atoms (GtkWidget *widg, gpointer data) |
show / hide a type of atom(s) callback GTK3 | |
G_MODULE_EXPORT void | label_unlabel_atoms (GtkWidget *widg, gpointer data) |
label / unlabel a type of atom(s) callback GTK3 | |
G_MODULE_EXPORT void | select_unselect_atoms (GtkWidget *widg, gpointer data) |
select / unselect a type of atom(s) callback GTK3 | |
G_MODULE_EXPORT void | style_the_atoms (GtkWidget *widg, gpointer data) |
change the OpenGL rendering style of a type of atom(s) callback GTK3 | |
G_MODULE_EXPORT void | remove_the_coord (GtkWidget *widg, gpointer data) |
remove a type of coordination callback GTK3 | |
G_MODULE_EXPORT void | replace_the_coord (GtkWidget *widg, gpointer data) |
replace a coordination callback GTK3 | |
G_MODULE_EXPORT void | copy_the_coord (GtkWidget *widg, gpointer data) |
copy a coordination callback GTK3 | |
G_MODULE_EXPORT void | show_hide_the_coord (GtkWidget *widg, gpointer data) |
show / hide a type of coordination callback GTK3 | |
G_MODULE_EXPORT void | label_unlabel_coord (GtkWidget *widg, gpointer data) |
label / unlabel a type of coordination callback GTK3 | |
G_MODULE_EXPORT void | select_unselect_coord (GtkWidget *widg, gpointer data) |
select / unselect a type of coordination callback GTK3 | |
G_MODULE_EXPORT void | style_the_coord (GtkWidget *widg, gpointer data) |
change OpenGL rendering style for a type of coordination callback GTK3 | |
void | create_new_project_using_data (atom_selection *selection) |
create new project using an atom selection | |
G_MODULE_EXPORT void | edit_in_new_project (GtkWidget *widg, gpointer data) |
create new project using selection callback GTK3 | |
G_MODULE_EXPORT void | edit_coord (GtkWidget *widg, gpointer data) |
create new project using coordination type and id callback GTK3 | |
G_MODULE_EXPORT void | edit_atoms (GtkWidget *widg, gpointer data) |
create new project using atomic species callback GTK3 | |
G_MODULE_EXPORT void | select_action_for_all (GtkWidget *widg, gpointer data) |
select action for all object(s) callback GTK3 | |
G_MODULE_EXPORT void | select_action_for_this_bond (GtkWidget *widg, gpointer data) |
selection action for this bond callback GTK3 | |
G_MODULE_EXPORT void | select_action_for_all_bonds (GtkWidget *widg, gpointer data) |
select action for all bonds based on menu item id callback GTK3 | |
void | add_style_sub_menu (GtkWidget *item, GCallback handler, gpointer data) |
add style submenu to menu item GTK3 | |
void | add_edition_sub_menu (GtkWidget *item, GCallback handler, gpointer data) |
add edition submenu to menu item GTK3 | |
GtkWidget * | create_selection_item (glwin *view, gchar *str, int mid, int gid, int cid, int aoc, GCallback handler, gpointer data) |
create new menu item for the popup menu GTK3 | |
GtkWidget * | selection_menu (glwin *view, int ati, int bti, int aoc, int mid, GCallback handler_a, GCallback handler_b, GCallback handler_c) |
create popup submenu GTK3 | |
void | popup_selection (glwin *view, double ptx, double pty, int spe, int mmod, int ati, int bti, int aoc) |
create the contextual popup menu, right click on atom or bond | |
G_MODULE_EXPORT void | reset_coords (GtkWidget *widg, gpointer data) |
reset coordinates menu item callback GTK3 | |
G_MODULE_EXPORT void | turn_rebuild (GtkWidget *widg, gpointer data) |
rebuild menu items callback GTK3 | |
G_MODULE_EXPORT void | to_center_this_molecule (GtkWidget *widg, gpointer data) |
center this molecule menu item callback GTK4 | |
void | popup_main_menu (glwin *view, double ptx, double pty) |
create the OpenGL window popup menu | |
Variables | |
insertion_menu | mol [] |
int | inserted_from_lib |
atom_search * | remove_search = NULL |
atom_search * | insert_search = NULL |
int | selected_atom |
int | selected_btom |
int | selected_aspec |
int | selected_bspec |
int | is_selected |
int | is_labelled |
int | is_filled |
atom_selection * | bond_selection = NULL |
tint | atoid [CONTEXTACT][4] |
dint | btoid |
gboolean | insert_this_object |
gboolean | wait_for_style = FALSE |
gchar * | mot [2][2] |
Functions to create the OpenGL window popup menus:
Definition in file popup.c.
|
extern |
apply atom edition action to project (motion, remove, replace, insert, random move)
this_proj | the target project |
asearch | the target atom search |
visible | is the 'model edition' window visible (1/0) |
Definition at line 206 of file atom_action.c.
void add_edition_sub_menu | ( | GtkWidget * | item, |
GCallback | handler, | ||
gpointer | data ) |
G_MODULE_EXPORT void add_object | ( | GtkWidget * | widg, |
gpointer | data ) |
void add_style_sub_menu | ( | GtkWidget * | item, |
GCallback | handler, | ||
gpointer | data ) |
|
extern |
allocate atom search data structure
proj | the target project id |
action | the edition action |
searchid | the atom search id |
tsize | the atom search object list size |
Definition at line 392 of file atom_edit.c.
|
extern |
get project ready for calculation and initialize the OpenGL window
showtools |
Definition at line 665 of file callbacks.c.
|
extern |
check all search trees
this_proj | the target project |
Definition at line 450 of file w_search.c.
void check_hidden_visible | ( | project * | this_proj | ) |
int check_label_numbers | ( | project * | this_proj, |
int | types ) |
|
extern |
G_MODULE_EXPORT void copy_the_atoms | ( | GtkWidget * | widg, |
gpointer | data ) |
G_MODULE_EXPORT void copy_the_coord | ( | GtkWidget * | widg, |
gpointer | data ) |
G_MODULE_EXPORT void copy_this_atom | ( | GtkWidget * | widg, |
gpointer | data ) |
void create_new_project_using_data | ( | atom_selection * | selection | ) |
GtkWidget * create_selection_item | ( | glwin * | view, |
gchar * | str, | ||
int | mid, | ||
int | gid, | ||
int | cid, | ||
int | aoc, | ||
GCallback | handler, | ||
gpointer | data ) |
copy the material and lightning parameters of an image data structure
new_img | the new image |
old_img | the old image with the data to be copied |
Definition at line 180 of file ogl_draw.c.
G_MODULE_EXPORT void edit_atoms | ( | GtkWidget * | widg, |
gpointer | data ) |
G_MODULE_EXPORT void edit_coord | ( | GtkWidget * | widg, |
gpointer | data ) |
G_MODULE_EXPORT void edit_in_new_project | ( | GtkWidget * | widg, |
gpointer | data ) |
|
extern |
atom_search * free_this_search_data | ( | atom_search * | this_search | ) |
get barycenter of atomic coordinates
this_proj | the target project |
status | selection status, 0 = non selected atom(s), 1 = selected atom(s), 2 = all atom(s) |
Definition at line 170 of file atom_move.c.
gchar * get_object_from_action | ( | GSimpleAction * | action | ) |
int get_style | ( | gchar * | str | ) |
int get_to_be_selected | ( | glwin * | view | ) |
void insert_object | ( | int | action, |
gpointer | data ) |
G_MODULE_EXPORT void label_unlabel_atoms | ( | GtkWidget * | widg, |
gpointer | data ) |
G_MODULE_EXPORT void label_unlabel_coord | ( | GtkWidget * | widg, |
gpointer | data ) |
G_MODULE_EXPORT void label_unlabel_this_atom | ( | GtkWidget * | widg, |
gpointer | data ) |
|
extern |
create a selected atom
id | atom id |
sp | atom species |
Definition at line 428 of file selection.c.
|
extern |
create OpenGL rendering advanced window
widg | the GtkWidget sending the signal |
data | the associated data pointer |
Definition at line 1477 of file w_advance.c.
void popup_main_menu | ( | glwin * | view, |
double | ptx, | ||
double | pty ) |
void popup_selection | ( | glwin * | view, |
double | ptx, | ||
double | pty, | ||
int | spe, | ||
int | mmod, | ||
int | ati, | ||
int | bti, | ||
int | aoc ) |
|
extern |
prepare to insert something
key | the string describing the object to insert |
this_proj | the target project |
asearch | the target atom search |
visible | is the model edition window visible |
Definition at line 104 of file atom_insert.c.
G_MODULE_EXPORT void remove_the_atoms | ( | GtkWidget * | widg, |
gpointer | data ) |
G_MODULE_EXPORT void remove_the_coord | ( | GtkWidget * | widg, |
gpointer | data ) |
G_MODULE_EXPORT void remove_this_atom | ( | GtkWidget * | widg, |
gpointer | data ) |
|
extern |
render image from the OpenGL window
widg | the GtkWidget sending the signal |
data | the associated data pointer |
Definition at line 429 of file glwindow.c.
G_MODULE_EXPORT void replace_the_atoms | ( | GtkWidget * | widg, |
gpointer | data ) |
G_MODULE_EXPORT void replace_the_coord | ( | GtkWidget * | widg, |
gpointer | data ) |
G_MODULE_EXPORT void replace_this_atom | ( | GtkWidget * | widg, |
gpointer | data ) |
|
extern |
reset transformation and restore saved atomic coordinates
this_proj | the target project |
status | selection status, 0 = non selected atom(s), 1 = selected atom(s), 2 = all atom(s) |
Definition at line 143 of file atom_move.c.
G_MODULE_EXPORT void reset_coords | ( | GtkWidget * | widg, |
gpointer | data ) |
G_MODULE_EXPORT void select_action_for_all | ( | GtkWidget * | widg, |
gpointer | data ) |
G_MODULE_EXPORT void select_action_for_all_bonds | ( | GtkWidget * | widg, |
gpointer | data ) |
G_MODULE_EXPORT void select_action_for_this_bond | ( | GtkWidget * | widg, |
gpointer | data ) |
G_MODULE_EXPORT void select_unselect_atoms | ( | GtkWidget * | widg, |
gpointer | data ) |
G_MODULE_EXPORT void select_unselect_coord | ( | GtkWidget * | widg, |
gpointer | data ) |
G_MODULE_EXPORT void select_unselect_this_atom | ( | GtkWidget * | widg, |
gpointer | data ) |
GtkWidget * selection_menu | ( | glwin * | view, |
int | ati, | ||
int | bti, | ||
int | aoc, | ||
int | mid, | ||
GCallback | handler_a, | ||
GCallback | handler_b, | ||
GCallback | handler_c ) |
G_MODULE_EXPORT void set_full_screen | ( | GtkWidget * | widg, |
gpointer | data ) |
G_MODULE_EXPORT void show_hide_others | ( | GtkWidget * | widg, |
gpointer | data ) |
G_MODULE_EXPORT void show_hide_the_atoms | ( | GtkWidget * | widg, |
gpointer | data ) |
G_MODULE_EXPORT void show_hide_the_coord | ( | GtkWidget * | widg, |
gpointer | data ) |
G_MODULE_EXPORT void show_hide_this_atom | ( | GtkWidget * | widg, |
gpointer | data ) |
G_MODULE_EXPORT void style_the_atoms | ( | GtkWidget * | widg, |
gpointer | data ) |
G_MODULE_EXPORT void style_the_coord | ( | GtkWidget * | widg, |
gpointer | data ) |
G_MODULE_EXPORT void style_this_atom | ( | GtkWidget * | widg, |
gpointer | data ) |
G_MODULE_EXPORT void to_add_object | ( | GtkWidget * | widg, |
gpointer | data ) |
G_MODULE_EXPORT void to_center_this_molecule | ( | GtkWidget * | widg, |
gpointer | data ) |
void to_remove_this_object | ( | int | type, |
gpointer | data ) |
void to_replace_this_object | ( | int | type, |
GtkWidget * | widg, | ||
gpointer | data ) |
G_MODULE_EXPORT void turn_rebuild | ( | GtkWidget * | widg, |
gpointer | data ) |
|
extern |
tint atoid[CONTEXTACT][4] |
atom_selection* bond_selection = NULL |
atom_search* insert_search = NULL |
|
extern |
Definition at line 295 of file w_library.c.
|
extern |
Definition at line 193 of file w_library.c.
gchar* mot[2][2] |
atom_search* remove_search = NULL |