atomes 1.1.15
atomes: an atomic scale modeling tool box
|
nctions to prepare the OpenGL rendering atom(s) and clone(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_pick) |
get atom (or clone) color | |
int | sphere_vertices (int qual) |
return the number of OpenGL vertices to render a sphere | |
int | sphere_indices (int qual) |
return the number of OpenGL indices to render a sphere | |
object_3d * | draw_sphere (int quality) |
OpenGL 3D sphere object rendering. | |
float | get_sphere_radius (int style, int sp, int ac, int sel) |
get an atom sphere radius | |
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_this_atom (int style, gboolean to_pick, gboolean picked, atom *at, int ac, float *vert, float al) |
prepare the OpenGL rendering data of an atom / clone | |
int | find_atom_vertices (gboolean to_pick) |
find the number of atom(s) to render | |
void | setup_atom_vertices (int style, gboolean to_pick, float *vertices) |
prepare an atom OpenGL rendering | |
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 | |
int | find_clone_vertices (gboolean to_pick) |
find the number of clones to render | |
void | setup_clone_vertices (int style, gboolean to_pick, float *vertices) |
find clone(s) position(s), color(s) and prepare the data for the OpenGL rendering | |
void | atom_positions_colors_and_sizes (int style, gboolean to_pick, float *instances) |
find atom(s) position(s), color(s) and prepare the data for the OpenGL rendering | |
void | create_atom_lists (gboolean to_pick) |
prepare atom(s) and clone(s) OpenGL rendering | |
Variables | |
int | atom_id |
int | gColorID [3] |
int | all_styles [NUM_STYLES] |
int | nbs |
int | nbl |
int | nba |
void atom_positions_colors_and_sizes | ( | int | style, |
gboolean | to_pick, | ||
float * | instances ) |
find atom(s) position(s), color(s) and prepare the data for the OpenGL rendering
style | rendering style |
to_pick | to pick (1) or to draw (0) |
instances | the OpenGL data buffer to fill |
void create_atom_lists | ( | gboolean | to_pick | ) |
object_3d * draw_sphere | ( | int | quality | ) |
int find_atom_vertices | ( | gboolean | to_pick | ) |
int find_clone_vertices | ( | gboolean | to_pick | ) |
ColRGBA get_atom_color | ( | int | i, |
int | j, | ||
double | al, | ||
int | picked, | ||
gboolean | to_pick ) |
float get_sphere_radius | ( | int | style, |
int | sp, | ||
int | ac, | ||
int | sel ) |
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
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 setup_atom_vertices | ( | int | style, |
gboolean | to_pick, | ||
float * | vertices ) |
void setup_clone_vertices | ( | int | style, |
gboolean | to_pick, | ||
float * | vertices ) |
find clone(s) position(s), color(s) and prepare the data for the OpenGL rendering
style | rendering style |
to_pick | to pick (1) or to draw (0) |
vertices | the OpenGL data buffer to fill |
void setup_this_atom | ( | int | style, |
gboolean | to_pick, | ||
gboolean | picked, | ||
atom * | at, | ||
int | ac, | ||
float * | vert, | ||
float | al ) |
prepare the OpenGL rendering data of an atom / clone
style | rendering style |
to_pick | to pick (1) or to draw (0) |
picked | is the atom selected (1) or not (0) |
at | the atom to render |
ac | atom (0) or clone (1) |
vert | the OpenGL buffer data to fill |
al | the opacity (atom: 1.0, clone: 0.5) |
int sphere_indices | ( | int | qual | ) |
int sphere_vertices | ( | int | qual | ) |
int all_styles[NUM_STYLES] |