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

Functions to correct the coordination menus and the corresponding data pointers after edition. More...

#include "atom_edit.h"
+ Include dependency graph for atom_coord.c:

Go to the source code of this file.

Functions

int test_this_coord (project *this_proj, int spec, int gid, int cid, int minc, int maxc)
 Look for a type of coordination sphere in a model.
 
void print_coord_info (project *this_proj, coord_info *coord)
 print coordination info
 
coord_infoduplicate_coord_info (coord_info *old_coord)
 duplicate coordination information data structure
 
void clean_coords_and_geoms (project *this_proj, atom_edition *edit, int new_spec, int rem, int adds, int *spid, int ***tmpgeo, gboolean *showcoord[2], gboolean *showpoly[2])
 clean coordination data and atomic coordination id data
 
void new_coord_menus (project *this_proj, coord_info *coord, int new_spec, int nmols, gboolean *showcoord[2], gboolean *showpoly[2], gboolean *showfrag, gboolean update_it, gboolean update_mol)
 
void recover_opengl_data (project *this_proj, int nmols, int add, int rem, int *num, int *rec, int ***tmpgeo, gboolean *showfrag)
 recover image pointer data and OpenGL window menu structure
 

Detailed Description

Functions to correct the coordination menus and the corresponding data pointers after edition.

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

Function Documentation

◆ clean_coords_and_geoms()

void clean_coords_and_geoms ( project * this_proj,
atom_edition * edit,
int new_spec,
int rem,
int adds,
int * spid,
int *** tmpgeo,
gboolean * showcoord[2],
gboolean * showpoly[2] )

clean coordination data and atomic coordination id data

Parameters
this_projthe target project
edit
new_specthe number of chemical species
remthe number of chemical species to remove
addsthe number of new chemical species
spidthe number of atom(s) by chemical species
tmpgeothe new number of coordination [c] by chemical species [s] 'coorrd -> ntg[c][s]'
showcoordthe coordination show status
showpolythe polyhedra show status

Definition at line 241 of file atom_coord.c.

◆ duplicate_coord_info()

coord_info * duplicate_coord_info ( coord_info * old_coord)

duplicate coordination information data structure

Parameters
old_coordthe coordination info to duplicate

Definition at line 190 of file atom_coord.c.

◆ new_coord_menus()

void new_coord_menus ( project * this_proj,
coord_info * coord,
int new_spec,
int nmols,
gboolean * showcoord[2],
gboolean * showpoly[2],
gboolean * showfrag,
gboolean update_it,
gboolean update_mol )

Definition at line 419 of file atom_coord.c.

◆ print_coord_info()

void print_coord_info ( project * this_proj,
coord_info * coord )

print coordination info

Parameters
this_projthe target project
coordthe target coordination info

Definition at line 87 of file atom_coord.c.

◆ recover_opengl_data()

void recover_opengl_data ( project * this_proj,
int nmols,
int add,
int rem,
int * num,
int * rec,
int *** tmpgeo,
gboolean * showfrag )

recover image pointer data and OpenGL window menu structure

Parameters
this_projthe target project
nmolsthe number of molecules
addthe number of new chemical species
remthe number of chemical species to remove
numthe number of atom(s) by chemical species
recthe lsit of removed chemical species, if any
tmpgeothe new number of coordination [c] by chemical species [s] 'coorrd -> ntg[c][s]'
showfragthe saved fragment(s) show information

Definition at line 549 of file atom_coord.c.

◆ test_this_coord()

int test_this_coord ( project * this_proj,
int spec,
int gid,
int cid,
int minc,
int maxc )

Look for a type of coordination sphere in a model.

Parameters
this_projthe target project
specthe number of chemical species
gidthe coordination type
cidthe coordination id
mincmin value for coordination id
maxcmax value for coordination id

Definition at line 62 of file atom_coord.c.