atomes 1.1.14
atomes: an atomic scale modeling tool box
|
Functions to create a project OpenGL window. More...
#include "global.h"
#include "project.h"
#include "calc.h"
#include "glview.h"
#include "initcoord.h"
#include "submenus.h"
#include "color_box.h"
Go to the source code of this file.
Functions | |
G_MODULE_EXPORT void | opengl_advanced (GtkWidget *widg, gpointer data) |
create OpenGL rendering advanced window | |
G_MODULE_EXPORT void | coord_properties (GtkWidget *widg, gpointer data) |
create the environments configuration window | |
G_MODULE_EXPORT void | set_style (GtkWidget *widg, gpointer data) |
set style callback | |
G_MODULE_EXPORT void | set_render (GtkWidget *widg, gpointer data) |
set OpenGL rendering mode callback | |
G_MODULE_EXPORT void | set_mode (GtkWidget *widg, gpointer data) |
set mouse mode callback | |
void | set_sensitive_coord_menu (glwin *view, gboolean status) |
void | set_color_map_sensitive (glwin *view) |
G_MODULE_EXPORT void | set_selection_mode (GtkWidget *widg, gpointer data) |
set selection mode callback | |
gboolean | spin (gpointer data) |
spin | |
G_MODULE_EXPORT void | spin_stop (GtkButton *but, gpointer data) |
stop spin | |
G_MODULE_EXPORT void | spin_go (GtkWidget *widg, gpointer data) |
void | update_menus (glwin *view) |
G_MODULE_EXPORT void | set_box_axis_style (GtkWidget *widg, gpointer data) |
G_MODULE_EXPORT void | window_measures (GtkWidget *widg, gpointer data) |
create the measurements window | |
G_MODULE_EXPORT void | window_recorder (GtkWidget *widg, gpointer data) |
create video recorder window | |
void | window_encode (glwin *view, gboolean video) |
encoding a movie - creating the dialog | |
GtkWidget * | menupoly (glwin *view, int jd, int id, gchar *poln) |
G_MODULE_EXPORT void | set_color_map (GtkWidget *widg, gpointer data) |
set color map callback | |
void | prep_all_coord_menus (glwin *view) |
G_MODULE_EXPORT void | set_full_screen (GtkWidget *widg, gpointer data) |
set full screen callback GTK3 | |
G_MODULE_EXPORT void | to_reset_view (GtkWidget *widg, gpointer data) |
reset view callback - GTK3 | |
G_MODULE_EXPORT void | add_object (GtkWidget *widg, gpointer data) |
add object call back 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 | remove_the_atoms (GtkWidget *widg, gpointer data) |
remove 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 | edit_in_new_project (GtkWidget *widg, gpointer data) |
create new project using selection callback GTK3 | |
void | save_rotation_quaternion (glwin *view) |
save the rotation quaternion of the last image | |
void | rotate_x_y (glwin *view, double angle_x, double angle_y) |
rotate the OpenGL camera | |
void | translate (project *this_proj, int status, int axis, vec3_t trans) |
translate | |
G_MODULE_EXPORT void | on_create_new_project (GtkWidget *widg, gpointer data) |
create a new project | |
int | get_selection_type (glwin *view) |
get selection type | |
void | update_all_menus (glwin *view, int nats) |
update all menus of the OpenGL window | |
G_MODULE_EXPORT void | render_gl_image (GtkWidget *widg, gpointer data) |
render image from the OpenGL window | |
void | prepare_opengl_menu_bar (glwin *view) |
update the OpenGL window menu bar | |
void | change_color_map (glwin *view, int col) |
change atom / polyhedra color map | |
void | set_motion (glwin *view, int axis, int da, int db, gboolean UpDown, GdkModifierType state) |
handle keyboard motion event on the OpenGL window | |
mat4_t | insert_projection (glwin *view) |
calculate the insertion projection matrix to insert object in the 3D window | |
vec3_t | get_insertion_coordinates (glwin *view) |
get the insertion coordinates to insert object in the 3D window | |
void | activate_glwin_action (gchar *action_string, gchar *action_name, glwin *view) |
the keyboard shortcut actions for the OpenGL window | |
void | glwin_key_pressed (guint keyval, GdkModifierType state, gpointer data) |
the keyboard shortcut actions for the OpenGL window | |
G_MODULE_EXPORT gboolean | on_glwin_key_pressed (GtkEventControllerKey *self, guint keyval, guint keycode, GdkModifierType state, gpointer data) |
keyboard key press event for the OpenGL window GTK4 | |
G_MODULE_EXPORT void | on_win_realize (GtkWidget *widg, gpointer data) |
realize event for the OpenGL window | |
gboolean | create_3d_model (int p, gboolean load) |
void | prep_model (int p) |
prepare, or display, the OpenGL model window | |
Variables | |
int | selected_aspec |
int | is_selected |
int | is_labelled |
gchar * | action_atoms [3] |
atomic_object * | copied_object = NULL |
Functions to create a project OpenGL window.
Definition in file glwindow.c.
void activate_glwin_action | ( | gchar * | action_string, |
gchar * | action_name, | ||
glwin * | view ) |
the keyboard shortcut actions for the OpenGL window
action_string | the variant string |
action_name | the action name |
view | the target glwin |
Definition at line 664 of file glwindow.c.
|
extern |
void change_color_map | ( | glwin * | view, |
int | col ) |
change atom / polyhedra color map
view | the target glwin |
col | the color id |
Definition at line 496 of file glwindow.c.
|
extern |
|
extern |
gboolean create_3d_model | ( | int | p, |
gboolean | load ) |
Definition at line 1228 of file glwindow.c.
|
extern |
get the insertion coordinates to insert object in the 3D window
view | the target glwin |
Definition at line 646 of file glwindow.c.
|
extern |
void glwin_key_pressed | ( | guint | keyval, |
GdkModifierType | state, | ||
gpointer | data ) |
the keyboard shortcut actions for the OpenGL window
keyval | the key pressed |
state | the keyboard modifier |
data | the associated data pointer |
Definition at line 680 of file glwindow.c.
calculate the insertion projection matrix to insert object in the 3D window
view | the target glwin |
Definition at line 612 of file glwindow.c.
|
extern |
|
extern |
|
extern |
create a new project
widg | the GtkWidget sending the signal |
data | the associated data pointer |
Definition at line 62 of file work_menu.c.
G_MODULE_EXPORT gboolean on_glwin_key_pressed | ( | GtkEventControllerKey * | self, |
guint | keyval, | ||
guint | keycode, | ||
GdkModifierType | state, | ||
gpointer | data ) |
keyboard key press event for the OpenGL window GTK4
self | the GtkEventControllerKey sending the signal |
keyval | number of times it was pressed |
keycode | the key pressed |
state | the keyboard modifier |
data | the associated data pointer |
Definition at line 1157 of file glwindow.c.
G_MODULE_EXPORT void on_win_realize | ( | GtkWidget * | widg, |
gpointer | data ) |
realize event for the OpenGL window
widg | the GtkWidget sending the signal |
data | the associated data pointer |
Definition at line 1172 of file glwindow.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.
|
extern |
void prep_model | ( | int | p | ) |
prepare, or display, the OpenGL model window
p | the project id |
Definition at line 1359 of file glwindow.c.
void prepare_opengl_menu_bar | ( | glwin * | view | ) |
update the OpenGL window menu bar
view | the target glwin |
Definition at line 457 of file glwindow.c.
|
extern |
G_MODULE_EXPORT void render_gl_image | ( | GtkWidget * | widg, |
gpointer | data ) |
render image from the OpenGL window
widg | the GtkWidget sending the signal |
data | the associated data pointer |
Definition at line 331 of file glwindow.c.
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
void set_motion | ( | glwin * | view, |
int | axis, | ||
int | da, | ||
int | db, | ||
gboolean | UpDown, | ||
GdkModifierType | state ) |
handle keyboard motion event on the OpenGL window
view | the target glwin |
axis | axis |
da | direction (-1/1) |
db | zoom out (1) or zoom in (3) |
UpDown | up or down key motion (TRUE), or else (FALSE) |
state | keyboard modifier |
Definition at line 553 of file glwindow.c.
|
extern |
set OpenGL rendering mode callback
widg | the GtkWidget sending the signal |
data | the associated data pointer |
Definition at line 56 of file m_render.c.
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
stop spin
but | the GtkButton sending the signal |
data | the associated data pointer |
Definition at line 138 of file w_spiner.c.
|
extern |
translate
this_proj | the target project |
status | selection status, 0 = non selected atom(s), 1 = selected atom(s), 2 = all atom(s) |
axis | 0 = model, 1 = eye |
trans | translation vector |
Definition at line 230 of file atom_move.c.
void update_all_menus | ( | glwin * | view, |
int | nats ) |
update all menus of the OpenGL window
view | the target glwin |
nats | the total number of atoms |
Definition at line 239 of file glwindow.c.
|
extern |
|
extern |
encoding a movie - creating the dialog
view | the target glwin |
video | video (1) or image (0) |
Definition at line 319 of file w_encode.c.
|
extern |
create the measurements window
widg | the GtkWidget sending the signal |
data | the associated data pointer |
Definition at line 738 of file w_measures.c.
|
extern |
create video recorder window
widg | the GtkWidget sending the signal |
data | the associated data pointer |
Definition at line 152 of file w_record.c.
|
extern |
Definition at line 61 of file atom_edit.c.
atomic_object* copied_object = NULL |
Definition at line 121 of file glwindow.c.