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

Functions to read the OpenGL window data in the atomes project file format. More...

#include "global.h"
#include "project.h"
#include "glview.h"
#include "initcoord.h"
+ Include dependency graph for read_opengl.c:

Go to the source code of this file.

Functions

int read_atom_a (FILE *fp, project *this_proj, int s, int a)
 read atom properties from file (a)
 
int read_atom_b (FILE *fp, project *this_proj, int s, int a)
 read atom properties from file (b)
 
int read_rings_chains_data (FILE *fp, glwin *view, int type, int rid, int size, int steps)
 read rings and chains statistics data from file
 
int read_opengl_image (FILE *fp, project *this_proj, image *img, int sid)
 read OpenGL image properties from file
 

Detailed Description

Functions to read the OpenGL window data in the atomes project file format.

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 read_opengl.c.

Function Documentation

◆ read_atom_a()

int read_atom_a ( FILE * fp,
project * this_proj,
int s,
int a )

read atom properties from file (a)

Parameters
fpthe file pointer
this_projthe target project
sthe MD step
athe atom number

Definition at line 55 of file read_opengl.c.

◆ read_atom_b()

int read_atom_b ( FILE * fp,
project * this_proj,
int s,
int a )

read atom properties from file (b)

Parameters
fpthe file pointer
this_projthe target project
sthe MD step
athe atom number

Definition at line 77 of file read_opengl.c.

◆ read_opengl_image()

int read_opengl_image ( FILE * fp,
project * this_proj,
image * img,
int sid )

read OpenGL image properties from file

Parameters
fpthe file pointer
this_projthe target project
imgthe latest image to store the data
sidthe number of chemical species

Definition at line 282 of file read_opengl.c.

◆ read_rings_chains_data()

int read_rings_chains_data ( FILE * fp,
glwin * view,
int type,
int rid,
int size,
int steps )

read rings and chains statistics data from file

Parameters
fpthe file pointer
viewthe glwin to store the data
typeRings (0) or chains (1)
ridthe ring id or 0
sizethe size of the ring or chain
stepsthe number of MD steps

Definition at line 158 of file read_opengl.c.