atomes 1.2.1
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 "preferences.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_this_image_label (FILE *fp, screen_label *label)
 
int read_this_box (FILE *fp, box *abc)
 read OpenGL image box properties to file
 
int read_this_axis (FILE *fp, axis *xyz)
 read OpenGL image axis properties to file
 
int read_opengl_image (FILE *fp, project *this_proj, image *img, int sid)
 read OpenGL image properties from file
 

Variables

gboolean old_la_bo_ax_gr
 

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 61 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 83 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 374 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 164 of file read_opengl.c.

◆ read_this_axis()

int read_this_axis ( FILE * fp,
axis * xyz )

read OpenGL image axis properties to file

Parameters
fpthe file pointer
axisthe target axis data

Definition at line 334 of file read_opengl.c.

◆ read_this_box()

int read_this_box ( FILE * fp,
box * abc )

read OpenGL image box properties to file

Parameters
fpthe file pointer
boxthe target box data

Definition at line 316 of file read_opengl.c.

◆ read_this_image_label()

int read_this_image_label ( FILE * fp,
screen_label * label )

Definition at line 286 of file read_opengl.c.

Variable Documentation

◆ old_la_bo_ax_gr

gboolean old_la_bo_ax_gr
extern

Definition at line 68 of file open_p.c.