atomes 1.2.1
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 write_this_image_label (FILE *fp, screen_label label)
 save image label to file
 
int write_this_box (FILE *fp, box *abc)
 save OpenGL image box properties to file
 
int write_this_axis (FILE *fp, axis *xyz)
 save OpenGL image axis properties 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 57 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 79 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 222 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 101 of file save_opengl.c.

◆ write_this_axis()

int write_this_axis ( FILE * fp,
axis * xyz )

save OpenGL image axis properties to file

Parameters
fpthe file pointer
axisthe target axis data

Definition at line 177 of file save_opengl.c.

◆ write_this_box()

int write_this_box ( FILE * fp,
box * abc )

save OpenGL image box properties to file

Parameters
fpthe file pointer
boxthe target box data

Definition at line 159 of file save_opengl.c.

◆ write_this_image_label()

int write_this_image_label ( FILE * fp,
screen_label label )

save image label to file

Parameters
fpthe file pointer
labelthe target label

Definition at line 135 of file save_opengl.c.