58 return m4_ortho (0.0,
wingl -> view_port.y, 0.0,
wingl -> view_port.z, 1.0, 0.0);
80 for (l=0; l<3; l++)
shift[l] =
plot -> labels_shift[
id][l];
83 if (
field_color && (field_object < 7 || field_object > 14))
88 else if (
plot -> labels_color[
id] == NULL)
94 lcol =
plot -> labels_color[id][k];
97 switch (
plot -> labels_format[
id])
109 str = g_strdup_printf (
"%d", at.
id+1);
127 tmp = g_strdup_printf (
"%s*", str);
129 str = g_strdup_printf (
"%s", tmp);
145 if (
plot -> labels_list[
id] != NULL)
147 g_free (
plot -> labels_list[
id]);
148 plot -> labels_list[id] = NULL;
165 g_debug (
"Label LIST");
176 if (
plot -> at_data[i].show[0] &&
plot -> at_data[i].
label[0])
181 if (
plot -> draw_clones)
195 ato.
pick[0] =
plot -> at_data[k].pick[0];
196 ato.
pick[1] =
plot -> at_data[k].pick[1];
204 ato.
pick[0] =
plot -> at_data[j].pick[0];
205 ato.
pick[1] =
plot -> at_data[j].pick[1];
220 if (
plot -> draw_clones)
251 if (
plot -> labels_list[0] != NULL ||
plot -> labels_list[1] != NULL)
254 if (
plot -> labels_list[0] != NULL) nshaders += (
plot -> labels_render[0] + 1) * (
plot -> labels_list[0] -> last ->
id + 1);
255 if (
plot -> draw_clones &&
plot -> labels_list[1] != NULL)
257 nshaders += (
plot -> labels_render[1] + 1) * (
plot -> labels_list[1] -> last ->
id + 1);
integer(kind=c_int) function chemistry()
void label(cairo_t *cr, double val, int axe, int p, project *this_proj)
draw axis label
void clean_labels(int id)
clean atomic label shaders
void prepare_label(atom at, int id, double al)
prepare an atomic label OpenGL rendering
ColRGBA init_color(int id, int numid)
initialize color based id number over total number of elements
float get_sphere_radius(int style, int sp, int ac, int sel)
get an atom sphere radius
int create_label_lists()
prepare atomic label(s) OpenGL rendering
mat4_t create_label_matrices()
create label projection matrices
ColRGBA get_atom_color(int i, int j, double al, int picked, gboolean to_pick)
get atom (or clone) color
Variable declarations for the creation of the DL_POLY input file(s)
gboolean in_movie_encoding
Global variable declarations Global convenience function declarations Global data structure defin...
Variable declarations related to the OpenGL window Function declarations related to the OpenGL wind...
void cleaning_shaders(glwin *view, int shader)
re-initialize an OpenGL shader
gchar * exact_name(gchar *name)
short cut to print string without spaces
Messaging function declarations.
void prepare_string(char *text, int id, ColRGBA col, vec3_t pos, float lshift[3], atom *at, atom *bt, atom *ct)
prepare a screen string to be rendered
void render_all_strings(int glsl, int id)
render all string to be rendered for a label list