|
atomes 1.2.1
atomes: an atomic scale modeling tool box
|
Functions to prepare the OpenGL rendering of the selected: atom(s), clone(s), bond(s) and clone bond(s)
Functions to prepare the unique color rendering for picking the atom(s) and bond(s)
More...
Include dependency graph for d_selection.c:Go to the source code of this file.
Functions | |
| 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 | |
| object_3d * | draw_sphere (int quality) |
| OpenGL 3D sphere object rendering. | |
| object_3d * | draw_cylinder (int quality, float ra, float rb) |
| OpenGL 3D cylinder object rendering. | |
| object_3d * | draw_cylinder_cap (int quality, float rad, gboolean picked) |
| OpenGL 3D cylinder cap object rendering. | |
| void | setup_line_vertice (float *vertices, vec3_t pos, ColRGBA col, float alpha) |
| fill the OpenGL data buffer for a line bond (or clone bond) to render | |
| void | setup_sphere_vertice (float *vertices, vec3_t pos, ColRGBA col, float rad, float alpha) |
| fill the OpenGL data buffer for a atom (or clone) to render | |
| void | setup_cylinder_vertice (float *vertices, vec3_t pos_a, vec3_t pos_b, ColRGBA col, float rad, float alpha) |
| void | setup_triangles (float *vertices, vec3_t sa, vec3_t sb, vec3_t sc) |
| setup triangle vertices | |
| float | get_bond_radius (int sty, int ac, int at, int b, int sel) |
| get bond (clone bond) radius | |
| void | setup_this_atom (int style, gboolean to_pick, int picked, atom *at, int ac, float *vert, float al) |
| void | prepare_clone (int style, gboolean to_pick, int picked, atom at, atom bt, float x, float y, float z, float *vertices) |
| prepare the rendering data of a clone | |
| void | setup_this_bond (int sty, gboolean to_pick, gboolean picked, int cap, int bi, int pi, atom *at, atom *bt, float al, float *vertices) |
| prepare the OpenGL rendering data of a bond / clone bond | |
| void | setup_selected_clone_vertices (int style, int at, int pi, float *vertices) |
| fill the OpenGL data buffer for a selected atom clone bonds to render | |
| int | find_selected_clone_vertices (int style, int at) |
| find the number of selected atom(s) to render | |
| int | find_selected_bond_vertices (int sty, int at, int sp, int bi, int pi, int cap) |
| find the number of selected bond(s) to render | |
| int | get_clone_id (int at, int bt) |
| get the bond id of cloned bond | |
| void | prepare_selected_bond (int sty, int cap, int bi, int pi, atom *at, atom *bt, float *vertices) |
| prepare the rendering of a selected bond | |
| void | setup_all_selected_bond_vertices (int sty, int cap, int bi, int at, int sb, int pi, float *vertices) |
| prepare the rendering of all selected bond(s) | |
| void | prepare_selected (int style, gboolean cylinder, int clone, int type) |
| prepare the list of selected bond(s) to render | |
| void | prepare_picked (int style, gboolean cylinder, int clone, int type) |
| prepare the list of the bond that can be picked to render | |
| int | render_selected (int style, gboolean cylinder, int caps, int bonds, int ncaps, int type, int clone, int shader) |
| prepare the OpenGL rendering data of to selected bond / clone bond | |
| int | render_picked (int style, gboolean cylinder, int caps, int bonds, int ncaps, int type, int clone, int shader) |
| prepare the OpenGL rendering data of to be picked bond / clone bond | |
| int | prepare_selection_shaders (int style, int shaders, int clone, int type, gboolean do_bonds) |
| prepare selection shaders | |
| int | check_selection (int style, int type) |
| check selection : atom(s) in selection ? | |
| int | create_selection_lists () |
| prepare the selected atom(s) and bond(s) OpenGL rendering | |
| int | create_pick_lists () |
| prepare the picking list OpenGL rendering | |
Variables | |
| int | atoms [NUM_STYLES][2] |
| int | bonds [NUM_STYLES][2] |
| int | caps [NUM_STYLES][2] |
| int | npbds [NUM_STYLES][2] |
| int | npcps [NUM_STYLES][2] |
| int *** | nbonds [NUM_STYLES][2] |
Functions to prepare the OpenGL rendering of the selected: atom(s), clone(s), bond(s) and clone bond(s)
Functions to prepare the unique color rendering for picking the atom(s) and bond(s)
Definition in file d_selection.c.
| int check_selection | ( | int | style, |
| int | type ) |
check selection : atom(s) in selection ?
| style | rendering style |
| type | 0 = mouse analysis mode, 1 = mouse edition mode |
Definition at line 817 of file d_selection.c.
|
extern |
|
extern |
| int create_pick_lists | ( | ) |
prepare the picking list OpenGL rendering
Definition at line 940 of file d_selection.c.
| int create_selection_lists | ( | ) |
prepare the selected atom(s) and bond(s) OpenGL rendering
Definition at line 872 of file d_selection.c.
|
extern |
|
extern |
|
extern |
| int find_selected_bond_vertices | ( | int | sty, |
| int | at, | ||
| int | sp, | ||
| int | bi, | ||
| int | pi, | ||
| int | cap ) |
find the number of selected bond(s) to render
| sty | rendering style |
| at | the atom id |
| sp | the chemical species |
| bi | atom (0) or clone (1) |
| pi | 0 = mouse analysis mode, 1 = mouse edition mode |
| cap | render cylinder caps (1/0) |
Definition at line 160 of file d_selection.c.
| int find_selected_clone_vertices | ( | int | style, |
| int | at ) |
find the number of selected atom(s) to render
| style | rendering style |
| at | the atom id |
Definition at line 122 of file d_selection.c.
|
extern |
| int get_clone_id | ( | int | at, |
| int | bt ) |
get the bond id of cloned bond
| at | 1st atom |
| bt | 2nd atom |
Definition at line 225 of file d_selection.c.
|
extern |
prepare the rendering data of a clone
| style | the rendering style |
| to_pick | to pick (1) or to draw (0) |
| picked | is the clone selected (1) or not (0) |
| at | 1st atom of the cloned chemical bond |
| bt | 2nd atom of the cloned chemical bond |
| x | x position |
| y | y position |
| z | z position |
| vertices | the OpenGL buffer data to fill |
| void prepare_picked | ( | int | style, |
| gboolean | cylinder, | ||
| int | clone, | ||
| int | type ) |
prepare the list of the bond that can be picked to render
| style | rendering style |
| cylinder | cylinder (1) or line (1) |
| clone | atom (0) or clone (1) |
| type | 0 = mouse analysis mode, 1 = mouse edition mode |
Definition at line 436 of file d_selection.c.
| void prepare_selected | ( | int | style, |
| gboolean | cylinder, | ||
| int | clone, | ||
| int | type ) |
prepare the list of selected bond(s) to render
| style | rendering style |
| cylinder | cylinder (1) or line (1) |
| clone | atom (0) or clone (1) |
| type | 0 = mouse analysis mode, 1 = mouse edition mode |
Definition at line 376 of file d_selection.c.
| void prepare_selected_bond | ( | int | sty, |
| int | cap, | ||
| int | bi, | ||
| int | pi, | ||
| atom * | at, | ||
| atom * | bt, | ||
| float * | vertices ) |
prepare the rendering of a selected bond
| sty | rendering style |
| cap | render cylinder caps (1/0) |
| bi | atom (0) or clone (1) |
| pi | 0 = mouse analysis mode, 1 = mouse edition mode |
| at | 1st atom |
| bt | 2nd atom |
| vertices | the OpenGL buffer data to fill |
Definition at line 250 of file d_selection.c.
| int prepare_selection_shaders | ( | int | style, |
| int | shaders, | ||
| int | clone, | ||
| int | type, | ||
| gboolean | do_bonds ) |
prepare selection shaders
| style | rendering style |
| shaders | shader id number |
| clone | atoms (0) or clones (1) |
| type | 0 = mouse analysis mode, 1 = mouse edition mode |
| do_bonds | render bonds (1/0) |
Definition at line 687 of file d_selection.c.
| int render_picked | ( | int | style, |
| gboolean | cylinder, | ||
| int | caps, | ||
| int | bonds, | ||
| int | ncaps, | ||
| int | type, | ||
| int | clone, | ||
| int | shader ) |
prepare the OpenGL rendering data of to be picked bond / clone bond
| style | rendering style |
| cylinder | cylinders (1) or lines (0) |
| caps | cylinder caps (1/0) |
| bonds | number of selected bonds |
| ncaps | number of cylinder caps |
| type | 0 = mouse analysis mode, 1 = mouse edition mode |
| clone | atom (0) or clone (1) |
| shader | shader id number |
Definition at line 596 of file d_selection.c.
| int render_selected | ( | int | style, |
| gboolean | cylinder, | ||
| int | caps, | ||
| int | bonds, | ||
| int | ncaps, | ||
| int | type, | ||
| int | clone, | ||
| int | shader ) |
prepare the OpenGL rendering data of to selected bond / clone bond
| style | rendering style |
| cylinder | cylinders (1) or lines (0) |
| caps | cylinder caps (1/0) |
| bonds | number of selected bonds |
| ncaps | number of cylinder caps |
| type | 0 = mouse analysis mode, 1 = mouse edition mode |
| clone | atom (0) or clone (1) |
| shader | shader id number |
Definition at line 501 of file d_selection.c.
| void setup_all_selected_bond_vertices | ( | int | sty, |
| int | cap, | ||
| int | bi, | ||
| int | at, | ||
| int | sb, | ||
| int | pi, | ||
| float * | vertices ) |
prepare the rendering of all selected bond(s)
| sty | rendering style |
| cap | render cylinder caps (1/0) |
| bi | atom (0) or clone (1) |
| at | atom id |
| sb | target chemical species |
| pi | 0 = mouse analysis mode, 1 = mouse edition mode |
| vertices | the OpenGL buffer data to fill |
Definition at line 303 of file d_selection.c.
|
extern |
| void setup_selected_clone_vertices | ( | int | style, |
| int | at, | ||
| int | pi, | ||
| float * | vertices ) |
fill the OpenGL data buffer for a selected atom clone bonds to render
| style | rendering style |
| at | the atom id |
| pi | 0 = mouse analysis mode, 1 = mouse edition mode |
| vertices | the OpenGL buffer data to fill |
Definition at line 82 of file d_selection.c.
|
extern |
|
extern |
prepare the OpenGL rendering data of a bond / clone bond
| sty | rendering style |
| to_pick | to pick (1) or to draw (0) |
| picked | is the bond selected (1) or not (0) |
| cap | draw cylinder cap (1/0) |
| bi | atom (0) or clone (1) visible |
| pi | atom (0) or clone (1) picked |
| at | 1st atom |
| bt | 2nd atom |
| al | the opacity (bond: 1.0, clone bond: 0.5) |
| vertices | the OpenGL buffer data to fill |
| int atoms[NUM_STYLES][2] |
Definition at line 361 of file d_selection.c.
| int bonds[NUM_STYLES][2] |
Definition at line 362 of file d_selection.c.
| int caps[NUM_STYLES][2] |
Definition at line 362 of file d_selection.c.
| int*** nbonds[NUM_STYLES][2] |
Definition at line 364 of file d_selection.c.
| int npbds[NUM_STYLES][2] |
Definition at line 363 of file d_selection.c.
| int npcps[NUM_STYLES][2] |
Definition at line 363 of file d_selection.c.