|
atomes 1.2.1
atomes: an atomic scale modeling tool box
|
OpenGL window drawing funcions. More...
#include "global.h"#include "glview.h"#include "dlp_field.h"#include "preferences.h"#include <time.h>
Include dependency graph for ogl_draw.c:Go to the source code of this file.
Functions | |
| ColRGBA | init_color (int id, int numid) |
| initialize color based id number over total number of elements | |
| Light * | copy_light_sources (int dima, int dimb, Light *old_sp) |
| create a copy of a list of light sources | |
| atom_selection * | duplicate_ogl_selection (atom_selection *old_sel) |
| copy an atom selection | |
| void | create_atom_lists (gboolean to_pick) |
| prepare atom(s) and clone(s) OpenGL rendering | |
| int | create_bond_lists (gboolean to_pick) |
| prepare bond(s) and clone bond(s) OpenGL rendering | |
| int | create_selection_lists () |
| prepare the selected atom(s) and bond(s) OpenGL rendering | |
| void | create_poly_lists () |
| prepare coordination polyhedra(s) OpenGL rendering | |
| void | create_ring_lists () |
| prepare ring(s) polyhedra OpenGL rendering | |
| int | create_box_lists (int b_step) |
| prepare box OpenGL rendering | |
| int | create_axis_lists () |
| prepare axis OpenGL rendering | |
| int | create_pick_lists () |
| prepare the picking list OpenGL rendering | |
| int | create_label_lists () |
| prepare atomic label(s) OpenGL rendering | |
| void | create_measures_lists () |
| prepare measure(s) OpenGL rendering | |
| void | create_light_lists () |
| prepare light(s) OpenGL rendering | |
| void | create_slab_lists (project *this_proj) |
| prepare slab(s) OpenGL rendering | |
| void | create_volumes_lists () |
| prepare volume(s) OpenGL rendering | |
| void | create_background_lists () |
| prepare background OpenGL rendering | |
| void | print_matrices () |
| print OpenGL matrices | |
| void | setup_camera () |
| setup OpenGL camera | |
| void | unrotate_camera () |
| unrotate OpenGL camera | |
| screen_string * | duplicate_screen_string (screen_string *old_s) |
| create a copy a screen_string data structure | |
| void | duplicate_material (Material *new_mat, Material *old_mat) |
| duplicate material data | |
| void | duplicate_fog (Fog *new_fog, Fog *old_fog) |
| duplicate fog data | |
| void | duplicate_material_and_lightning (image *new_img, image *old_img) |
| copy the material and lightning parameters of an image data structure | |
| void | duplicate_screen_label (screen_label *new_lab, screen_label *old_lab) |
| copy screen_label data structure | |
| image * | duplicate_image (image *old_img) |
| create a copy of an image data structure | |
| void | add_image () |
| add an image to the animation | |
| void | update_gl_pick_colors () |
| atom * | duplicate_atom (atom *at) |
| copy (partially) an atom data structure | |
| void | at_shift (atom *at, float *shift) |
| modify atomic coordinates to display image in cell replica | |
| void | at_unshift (atom *at, float *shift) |
| correct atomic coordinates modified to display image in cell replica | |
| void | draw (glwin *view) |
| main drawing subroutine for the OpenGL window | |
Variables | |
| double | x |
| double | y |
| double | z |
| GLUquadricObj * | quadric |
| glwin * | wingl |
| project * | proj_gl |
| int | proj_sp |
| int | proj_at |
| coord_info * | coord_gl |
| box_info * | box_gl |
| cell_info * | cell_gl |
| image * | plot |
| int | qual |
| int | acolorm |
| int | pcolorm |
| int | step |
| int | nbs |
| int | nbl |
OpenGL window drawing funcions.
Definition in file ogl_draw.c.
| void add_image | ( | ) |
add an image to the animation
Definition at line 410 of file ogl_draw.c.
| void at_shift | ( | atom * | at, |
| float * | shift ) |
modify atomic coordinates to display image in cell replica
| at | the atom |
| shift | the shift to apply |
Definition at line 480 of file ogl_draw.c.
| void at_unshift | ( | atom * | at, |
| float * | shift ) |
correct atomic coordinates modified to display image in cell replica
| at | the atom |
| shift | the shift to correct |
Definition at line 495 of file ogl_draw.c.
create a copy of a list of light sources
| dima | new list size |
| dimb | old list size to duplicate |
| old_sp | old light sources |
Definition at line 402 of file w_advance.c.
|
extern |
|
extern |
|
extern |
prepare background OpenGL rendering
Definition at line 46 of file d_background.c.
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
prepare measure(s) OpenGL rendering
Definition at line 670 of file d_measures.c.
|
extern |
prepare the picking list OpenGL rendering
Definition at line 940 of file d_selection.c.
|
extern |
|
extern |
|
extern |
prepare the selected atom(s) and bond(s) OpenGL rendering
Definition at line 872 of file d_selection.c.
|
extern |
|
extern |
| void draw | ( | glwin * | view | ) |
main drawing subroutine for the OpenGL window
| view | the target glwin |
Definition at line 509 of file ogl_draw.c.
copy (partially) an atom data structure
| at | the atom to copy |
Definition at line 444 of file ogl_draw.c.
duplicate fog data
| new_fog | the new fog data |
| old_fog | the old fog data to be copied |
Definition at line 203 of file ogl_draw.c.
create a copy of an image data structure
| old_img | the image to copy |
Definition at line 279 of file ogl_draw.c.
duplicate material data
| new_mat | the new material data |
| old_mat | the old material data to be copied |
Definition at line 186 of file ogl_draw.c.
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 221 of file ogl_draw.c.
|
extern |
| void duplicate_screen_label | ( | screen_label * | new_lab, |
| screen_label * | old_lab ) |
copy screen_label data structure
| new_lab | the new screen_label structure |
| old_lab | the old screen_label structure to be copied |
Definition at line 239 of file ogl_draw.c.
| screen_string * duplicate_screen_string | ( | screen_string * | old_s | ) |
create a copy a screen_string data structure
| old_s | the data structure to be copied |
Definition at line 163 of file ogl_draw.c.
|
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.
| void print_matrices | ( | ) |
print OpenGL matrices
Definition at line 97 of file ogl_draw.c.
| void setup_camera | ( | ) |
setup OpenGL camera
Definition at line 125 of file ogl_draw.c.
| void unrotate_camera | ( | ) |
unrotate OpenGL camera
Definition at line 148 of file ogl_draw.c.
|
extern |
| int acolorm |
Definition at line 72 of file ogl_draw.c.
| box_info* box_gl |
Definition at line 68 of file ogl_draw.c.
| cell_info* cell_gl |
Definition at line 69 of file ogl_draw.c.
| coord_info* coord_gl |
Definition at line 67 of file ogl_draw.c.
| int nbl |
Definition at line 76 of file ogl_draw.c.
| int pcolorm |
Definition at line 73 of file ogl_draw.c.
| image* plot |
Definition at line 70 of file ogl_draw.c.
| int proj_at |
Definition at line 66 of file ogl_draw.c.
| project* proj_gl |
Definition at line 64 of file ogl_draw.c.
| int proj_sp |
Definition at line 65 of file ogl_draw.c.
| GLUquadricObj* quadric |
Definition at line 62 of file ogl_draw.c.
| int qual |
Definition at line 71 of file ogl_draw.c.
| int step |
Definition at line 74 of file ogl_draw.c.
| glwin* wingl |
Definition at line 63 of file ogl_draw.c.
| double x |
Definition at line 61 of file ogl_draw.c.
| double y |
Definition at line 61 of file ogl_draw.c.
| double z |
Definition at line 61 of file ogl_draw.c.