atomes 1.1.15
atomes: an atomic scale modeling tool box
Loading...
Searching...
No Matches
d_label.c File Reference

Functions to prepare the OpenGL rendering of the atomic label(s) More...

#include "global.h"
#include "glview.h"
#include "interface.h"
#include "dlp_field.h"
+ Include dependency graph for d_label.c:

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
 
ColRGBA get_atom_color (int i, int j, double al, int picked, gboolean to_pick)
 get atom (or clone) color
 
float get_sphere_radius (int style, int sp, int ac, int sel)
 get an atom sphere radius
 
mat4_t create_label_matrices ()
 create label projection matrices
 
void prepare_label (atom at, int id, double al)
 prepare an atomic label OpenGL rendering
 
void clean_labels (int id)
 clean atomic label shaders
 
int create_label_lists ()
 prepare atomic label(s) OpenGL rendering
 

Detailed Description

Functions to prepare the OpenGL rendering of the atomic label(s)

Author
Sébastien Le Roux sebas.nosp@m.tien.nosp@m..lero.nosp@m.ux@i.nosp@m.pcms..nosp@m.unis.nosp@m.tra.f.nosp@m.r

Definition in file d_label.c.

Function Documentation

◆ clean_labels()

void clean_labels ( int id)

clean atomic label shaders

Parameters
idlabel id

Definition at line 143 of file d_label.c.

◆ create_label_lists()

int create_label_lists ( )

prepare atomic label(s) OpenGL rendering

Definition at line 157 of file d_label.c.

◆ create_label_matrices()

mat4_t create_label_matrices ( )

create label projection matrices

Definition at line 56 of file d_label.c.

◆ get_atom_color()

ColRGBA get_atom_color ( int i,
int j,
double al,
int picked,
gboolean to_pick )
extern

get atom (or clone) color

Parameters
ichemical species
jthe atom id
alopacity (atom: 1.0, clone: 0.5)
pickedis the atom (clone) selected (1) or not (0)
to_pickto pick (1) or to draw (0)

Definition at line 74 of file d_atoms.c.

◆ get_sphere_radius()

float get_sphere_radius ( int style,
int sp,
int ac,
int sel )
extern

get an atom sphere radius

Parameters
stylerendering style
spchemical species
acatom (0) or clone (1)
selis the atom selected (1) or not (0)

Definition at line 281 of file d_atoms.c.

◆ init_color()

ColRGBA init_color ( int id,
int numid )
extern

initialize color based id number over total number of elements

Parameters
idthe id number
numidthe total number of elements

Definition at line 81 of file initcoord.c.

◆ prepare_label()

void prepare_label ( atom at,
int id,
double al )

prepare an atomic label OpenGL rendering

Parameters
atthe atom to label
idthe label id
alopacity

Definition at line 70 of file d_label.c.