atomes 1.1.17
atomes: an atomic scale modeling tool box
|
Functions to prepare the OpenGL rendering of bond(s) and clone bond(s) More...
Go to the source code of this file.
Functions | |
ColRGBA | get_atom_color (int i, int j, double al, int picked, gboolean to_picked) |
get atom (or clone) color | |
int | cylinder_vertices (int qual) |
return the number of OpenGL vertices to render a cylinder | |
int | cylinder_indices (int qual) |
return the number of OpenGL indices to render a cylinder | |
object_3d * | draw_cylinder (int quality, float ra, float rb) |
OpenGL 3D cylinder object rendering. | |
int | cap_vertices (int qual) |
return the number of OpenGL vertices to render a cylinder cap | |
int | cap_indices (int qual) |
return the number of OpenGL indices to render a cylinder cap | |
object_3d * | draw_cylinder_cap (int quality, float rad, gboolean picked) |
OpenGL 3D cylinder cap object rendering. | |
vec4_t | rotate_bond (vec3_t a, vec3_t b) |
rotate a bond based on the proper orientation | |
float | get_bond_radius (int sty, int ac, int at, int bt, int sel) |
get bond (clone bond) radius | |
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_cylinder_vertice (float *vertices, vec3_t pos_a, vec3_t pos_b, ColRGBA col, float rad, float alpha, float delta) |
fill the OpenGL data buffer for a cylinder bond (or clone bond) to render | |
void | setup_cap_vertice (float *vertices, vec3_t pos_a, vec3_t pos_b, ColRGBA col, float rad, float alpha) |
fill the OpenGL data buffer for a cylinder cap bond (or clone bond) to render | |
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 | prepare_bond (int sty, gboolean to_pick, gboolean picked, int cap, int bi, int pi, int bid, atom *at, atom *bt, float *vertices) |
prepare a bond OpenGL rendering | |
int | find_bond_vertices (gboolean to_pick, int sty, int sa, int sb, int bi, int cap) |
find bond(s) and clone bond(s) to render | |
void | setup_all_cylinder_vertices (int style, gboolean to_pick, int cap, int bi, float *vertices) |
prepare cylinder bond(s) and clone bond(s) to render | |
void | setup_line_vertices (int style, int cap, int bi, int sa, int sb, float *vertices) |
prepare line bond(s) and clone bond(s) to render | |
int | create_bond_lists (gboolean to_pick) |
prepare bond(s) and clone bond(s) OpenGL rendering | |
Variables | |
vec3_t | model_position |
int | nbs |
int | vs_bid |
Functions to prepare the OpenGL rendering of bond(s) and clone bond(s)
Definition in file d_bonds.c.
int cap_indices | ( | int | qual | ) |
int cap_vertices | ( | int | qual | ) |
int create_bond_lists | ( | gboolean | to_pick | ) |
int cylinder_indices | ( | int | qual | ) |
int cylinder_vertices | ( | int | qual | ) |
object_3d * draw_cylinder | ( | int | quality, |
float | ra, | ||
float | rb ) |
object_3d * draw_cylinder_cap | ( | int | quality, |
float | rad, | ||
gboolean | picked ) |
int find_bond_vertices | ( | gboolean | to_pick, |
int | sty, | ||
int | sa, | ||
int | sb, | ||
int | bi, | ||
int | cap ) |
|
extern |
float get_bond_radius | ( | int | sty, |
int | ac, | ||
int | at, | ||
int | bt, | ||
int | sel ) |
void prepare_bond | ( | int | sty, |
gboolean | to_pick, | ||
gboolean | picked, | ||
int | cap, | ||
int | bi, | ||
int | pi, | ||
int | bid, | ||
atom * | at, | ||
atom * | bt, | ||
float * | vertices ) |
prepare a bond OpenGL rendering
sty | rendering style |
to_pick | to pick (1) or to draw (0) |
picked | is the atom selected (1) or not (0) |
cap | draw cylinder cap |
bi | atom (0) or clone (1) visible |
pi | atom (0) or clone (1) picked |
bid | bond id |
at | 1st atom |
bt | 2nd atom |
vertices | the OpenGL buffer data to fill |
void setup_all_cylinder_vertices | ( | int | style, |
gboolean | to_pick, | ||
int | cap, | ||
int | bi, | ||
float * | vertices ) |
void setup_cylinder_vertice | ( | float * | vertices, |
vec3_t | pos_a, | ||
vec3_t | pos_b, | ||
ColRGBA | col, | ||
float | rad, | ||
float | alpha, | ||
float | delta ) |
fill the OpenGL data buffer for a cylinder bond (or clone bond) to render
vertices | the OpenGL buffer to fill |
pos_a | 1st atom position |
pos_b | 2nd atom position |
col | the color |
rad | the radius |
alpha | the opacity (atom: 1.0, clone: 0.5) |
delta | radius correction(s) if atom(s) are shown |
void setup_line_vertices | ( | int | style, |
int | cap, | ||
int | bi, | ||
int | sa, | ||
int | sb, | ||
float * | vertices ) |
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
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 |
|
extern |