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"
Go to the source code of this file.
|
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
|
|
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.
◆ clean_labels()
void clean_labels |
( |
int | id | ) |
|
clean atomic label shaders
- Parameters
-
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
-
i | chemical species |
j | the atom id |
al | opacity (atom: 1.0, clone: 0.5) |
picked | is the atom (clone) selected (1) or not (0) |
to_pick | to 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
-
style | rendering style |
sp | chemical species |
ac | atom (0) or clone (1) |
sel | is 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
-
id | the id number |
numid | the 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
-
at | the atom to label |
id | the label id |
al | opacity |
Definition at line 70 of file d_label.c.