atomes 1.1.15
atomes: an atomic scale modeling tool box
|
OpenGL window drawing funcions. More...
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 () |
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 | 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_and_lightning (image *new_img, image *old_img) |
copy the material and lightning parameters of an image 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 362 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 432 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 447 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 391 of file w_advance.c.
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
prepare measure(s) OpenGL rendering
Definition at line 673 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 461 of file ogl_draw.c.
copy (partially) an atom data structure
at | the atom to copy |
Definition at line 396 of file ogl_draw.c.
create a copy of an image data structure
old_img | the image to copy |
Definition at line 204 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 180 of file ogl_draw.c.
|
extern |
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 158 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 92 of file ogl_draw.c.
void setup_camera | ( | ) |
setup OpenGL camera
Definition at line 120 of file ogl_draw.c.
void unrotate_camera | ( | ) |
unrotate OpenGL camera
Definition at line 143 of file ogl_draw.c.
|
extern |
int acolorm |
Definition at line 68 of file ogl_draw.c.
box_info* box_gl |
Definition at line 64 of file ogl_draw.c.
cell_info* cell_gl |
Definition at line 65 of file ogl_draw.c.
coord_info* coord_gl |
Definition at line 63 of file ogl_draw.c.
int nbl |
Definition at line 72 of file ogl_draw.c.
int pcolorm |
Definition at line 69 of file ogl_draw.c.
image* plot |
Definition at line 66 of file ogl_draw.c.
int proj_at |
Definition at line 62 of file ogl_draw.c.
project* proj_gl |
Definition at line 60 of file ogl_draw.c.
int proj_sp |
Definition at line 61 of file ogl_draw.c.
GLUquadricObj* quadric |
Definition at line 58 of file ogl_draw.c.
int qual |
Definition at line 67 of file ogl_draw.c.
int step |
Definition at line 70 of file ogl_draw.c.
glwin* wingl |
Definition at line 59 of file ogl_draw.c.
double x |
Definition at line 57 of file ogl_draw.c.
double y |
Definition at line 57 of file ogl_draw.c.
double z |
Definition at line 57 of file ogl_draw.c.