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

Functions to save OpenGL information in the atomes project file format. More...

#include "global.h"
#include "project.h"
#include "glwin.h"
+ Include dependency graph for save_opengl.c:

Go to the source code of this file.

Functions

int save_atom_a (FILE *fp, project *this_proj, int s, int a)
 save atom data to file (a)
 
int save_atom_b (FILE *fp, project *this_proj, int s, int a)
 save atom data to file (b)
 
int save_rings_chains_data (FILE *fp, int type, int size, int steps, int data_max, int **num_data, gboolean ***show, int ****all_data)
 saving rings and chains statistics data to file
 
int save_opengl_image (FILE *fp, project *this_proj, image *img, int sid)
 save OpenGL image properties to file
 

Detailed Description

Functions to save OpenGL information 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 save_opengl.c.

Function Documentation

◆ save_atom_a()

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

save atom data to file (a)

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

Definition at line 54 of file save_opengl.c.

◆ save_atom_b()

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

save atom data to file (b)

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

Definition at line 76 of file save_opengl.c.

◆ save_opengl_image()

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

save OpenGL image properties to file

Parameters
fpthe file pointer
this_projthe target project
imgthe image that contains the data
sidthe number of chemical species

Definition at line 134 of file save_opengl.c.

◆ save_rings_chains_data()

int save_rings_chains_data ( FILE * fp,
int type,
int size,
int steps,
int data_max,
int ** num_data,
gboolean *** show,
int **** all_data )

saving rings and chains statistics data to file

Parameters
fpthe file pointer
typeRings (0) or chains (1)
sizethe number of data to save
stepsthe MD step
data_maxthe maximum size of
num_dataId of the objects to save
showDisplay information pointer
all_dataAtoms id of the objects to save

Definition at line 98 of file save_opengl.c.