atomes 1.1.16
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 | |
GtkWidget * | shortcuts_window (int sections, int group_by_section[sections], int groups, int shortcut_by_group[groups], gchar *section_names[sections], gchar *group_names[groups], shortcuts shortcs[]) |
Create the shortcuts information window. | |
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 | |
G_MODULE_EXPORT void | view_shortcuts (GtkWidget *widg, gpointer data) |
OpenGL window shortcuts callback GTK3. | |
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 |
gchar * | opengl_section_names [] ={ "General", "Analysis mode", "Edition mode" } |
int | opengl_group_by_section [] = { 5, 4, 3 } |
gchar * | opengl_group_names [] |
int | opengl_shortcut_by_group [] |
shortcuts | opengl_shortcuts [] |
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 812 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 644 of file glwindow.c.
|
extern |
|
extern |
gboolean create_3d_model | ( | int | p, |
gboolean | load ) |
Definition at line 1384 of file glwindow.c.
|
extern |
get the insertion coordinates to insert object in the 3D window
view | the target glwin |
Definition at line 794 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 828 of file glwindow.c.
calculate the insertion projection matrix to insert object in the 3D window
view | the target glwin |
Definition at line 760 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 1313 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 1328 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 1518 of file glwindow.c.
void prepare_opengl_menu_bar | ( | glwin * | view | ) |
update the OpenGL window menu bar
view | the target glwin |
Definition at line 600 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 429 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 701 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 |
|
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 337 of file glwindow.c.
|
extern |
G_MODULE_EXPORT void view_shortcuts | ( | GtkWidget * | widg, |
gpointer | data ) |
OpenGL window shortcuts callback GTK3.
widg | the GtkWidget sending the signal |
data | the associated data pointer |
Definition at line 455 of file glwindow.c.
|
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 739 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 123 of file glwindow.c.
int opengl_group_by_section[] = { 5, 4, 3 } |
Definition at line 126 of file glwindow.c.
gchar* opengl_group_names[] |
Definition at line 127 of file glwindow.c.
gchar* opengl_section_names[] ={ "General", "Analysis mode", "Edition mode" } |
Definition at line 125 of file glwindow.c.
int opengl_shortcut_by_group[] |
Definition at line 130 of file glwindow.c.
shortcuts opengl_shortcuts[] |
Definition at line 134 of file glwindow.c.