|
void | process_the_hits (glwin *view, gint event_button, double ptx, double pty) |
| process a mouse click
|
|
void | arc_ball_rotation (glwin *view, int x, int y) |
| Perform arcball rotation.
|
|
vec3_t | get_arc_ball_vector (glwin *view, int x, int y) |
|
Light | init_light_source (int type, float val, float vbl) |
| initialize a light source
|
|
void | rotate_quat (project *this_proj, vec4_t q, int status, int axis) |
| rotate using quaternion
|
|
void | translate (project *this_proj, int status, int axis, vec3_t trans) |
| translate
|
|
vec3_t | get_bary (project *this_proj, int status) |
| get barycenter of atomic coordinates
|
|
void | update_labels (glwin *view) |
| update labels (on representation data update)
|
|
void | prepare_atom_edition (gpointer data, gboolean visible) |
| prepare atom edition
|
|
atom_search * | allocate_atom_search (int proj, int action, int searchid, int tsize) |
| allocate atom search data structure
|
|
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)
|
|
atomic_object * | create_object_from_frag_mol (project *this_proj, int coord, int geo, atom_search *remove) |
| create object from a fragment or a molecule
|
|
GLuint * | allocgluint (int val) |
| allocate a GLuint * pointer
|
|
GLuint ** | allocdgluint (int xal, int yal) |
| allocate a GLuint ** pointer
|
|
GLfloat ** | allocdGLfloat (int xal, int yal) |
| allocate a GLfloat ** pointer
|
|
ColRGBA | set_default_color (int z) |
| pick the default color for an atom
|
|
void | update_bonds_ (int *bd, int *stp, int *bdim, int bda[*bdim], int bdb[*bdim], double *x, double *y, double *z) |
| update bonding information from Fortran90
|
|
void | sort (int dim, int *tab) |
| sort, nim to max, a table by integer value
|
|
void | update_atom_neighbors_ (int *stp, int *at, int *nv) |
| update an atom number of neighbors from Fortran90
|
|
void | update_this_neighbor_ (int *stp, int *at, int *iv, int *nv) |
| update atom neighbor list from Fortran90
|
|
void | update (glwin *view) |
| update the rendering of the OpenGL window
|
|
void | transform (glwin *view, double aspect) |
| transform the OpenGL window
|
|
void | reshape (glwin *view, int width, int height, gboolean use_ratio) |
| reshape (resize) the OpenGL window
|
|
void | save_rotation_quaternion (glwin *view) |
| save the rotation quaternion of the last image
|
|
void | edit_for_motion (glwin *view) |
| if edition mode is one some steps are required
|
|
void | motion (glwin *view, gint x, gint y, GdkModifierType state) |
| mouse motion in the OpenGL window
|
|
G_MODULE_EXPORT void | on_glwin_pointer_motion (GtkEventControllerMotion *motc, gdouble x, gdouble y, gpointer data) |
| handle mouse motion event in the OpenGL window GTK4
|
|
void | render_this_gl_window (glwin *view, GtkWidget *widg, gint button) |
| render the OpenGL window
|
|
void | glwin_lib_pressed (double x, double y, guint event_type, guint event_button, gpointer data) |
| handle mouse button event on the molecular library OpenGL window
|
|
G_MODULE_EXPORT void | on_lib_button_pressed (GtkGesture *gesture, int n_press, double x, double y, gpointer data) |
| handle mouse button press event on the molecular library OpenGL window (limited interaction)
|
|
G_MODULE_EXPORT void | on_lib_button_released (GtkGesture *gesture, int n_press, double x, double y, gpointer data) |
| handle mouse button release event on the molecular library OpenGL window (limited interaction)
|
|
void | glwin_button_event (double event_x, double event_y, guint event_button, guint event_type, guint32 event_time, gpointer data) |
| handle mouse button event on the OpenGL window
|
|
G_MODULE_EXPORT void | on_glwin_button_pressed (GtkGesture *gesture, int n_press, double x, double y, gpointer data) |
| mouse button pressed signal on the OpenGL window
|
|
G_MODULE_EXPORT void | on_glwin_button_released (GtkGesture *gesture, int n_press, double x, double y, gpointer data) |
| mouse button released signal on the OpenGL window
|
|
void | zoom (glwin *view, int delta) |
| zoom in or zoom out in the OpenGL window
|
|
G_MODULE_EXPORT gboolean | on_glwin_pointer_scoll (GtkEventControllerScroll *event, gdouble dx, gdouble dy, gpointer data) |
| handle mouse scroll event on the OpenGL window
|
|
void | rotate_x_y (glwin *view, double angle_x, double angle_y) |
| rotate the OpenGL camera
|
|
void | init_camera (project *this_proj, int get_depth) |
| intialize the OpenGL camera settings
|
|
void | image_init_spec_data (image *img, project *this_proj, int nsp) |
| initialize the chemical species related pointers in an image data structure
|
|
void | set_img_lights (project *this_proj, image *img) |
| initialize lightning for an image data structure
|
|
void | init_img (project *this_proj) |
| initialize an image data structure
|
|
gboolean | is_GLExtension_Supported (const char *extension) |
| test if this GLExtension is support
|
|
void | init_opengl () |
| initialize OpenGL rendering parameters
|
|
void | center_molecule (project *this_proj) |
| center atomic coordinates around (0,0,0)
|
|
void | center_this_molecule (glwin *view) |
| center atomic coordinates around (0,0,0) and refresh shaders
|
|
void | free_glwin_spec_data (project *this_proj, int spec) |
| free the memory used by the chemical species related data in a glwin data structure
|
|
void | glwin_init_spec_data (project *this_proj, int nspec) |
| initialize the glwin chemical species related pointers
|
|
void | init_glwin (glwin *view) |
| initialize a glwin pointer
|
|
GError * | init_gtk_gl_area (GtkGLArea *area) |
| initialize a GtkGLArea, return error if any
|
|
G_MODULE_EXPORT void | on_realize (GtkWidget *widg, gpointer data) |
| realize event for the OpenGL widget
|
|
G_MODULE_EXPORT gboolean | on_expose (GtkWidget *widg, cairo_t *cr, gpointer data) |
| OpenGL rendering widget expose event callback GTK3.
|
|