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

Functions to insert bond(s) in a project. More...

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

Go to the source code of this file.

Functions

void add_bonds_to_project (project *this_proj, int removed, int nbd, int **new_bond_list)
 add bond list to project bond list
 
void add_bonds_to_list (int **new_bond_list, int nat, int nbd, atomic_object *object)
 add object bond(s) list to overall bond(s) list
 
void prepare_to_instert (gchar *key, project *this_proj, atom_search *asearch, gboolean visible)
 prepare to insert something
 
G_MODULE_EXPORT void set_atoms_to_insert (GtkComboBox *box, gpointer data)
 change the object to insert
 

Detailed Description

Functions to insert bond(s) in a project.

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

Function Documentation

◆ add_bonds_to_list()

void add_bonds_to_list ( int ** new_bond_list,
int nat,
int nbd,
atomic_object * object )

add object bond(s) list to overall bond(s) list

Parameters
new_bond_listthe bond list in the model
natthe number of atom(s) in the model
nbdthe number of bond(s) in the model
objectthe target insert object

Definition at line 81 of file atom_insert.c.

◆ add_bonds_to_project()

void add_bonds_to_project ( project * this_proj,
int removed,
int nbd,
int ** new_bond_list )

add bond list to project bond list

Parameters
this_projthe target project
removedthe number of atom(s) removed
nbdthe number of bond(s) to add
new_bond_listthe bond list to add

Definition at line 53 of file atom_insert.c.

◆ prepare_to_instert()

void prepare_to_instert ( gchar * key,
project * this_proj,
atom_search * asearch,
gboolean visible )

prepare to insert something

Parameters
keythe string describing the object to insert
this_projthe target project
asearchthe target atom search
visibleis the model edition window visible

Definition at line 104 of file atom_insert.c.

◆ set_atoms_to_insert()

G_MODULE_EXPORT void set_atoms_to_insert ( GtkComboBox * box,
gpointer data )

change the object to insert

Parameters
boxthe GtkComboBox sending the signal
datathe associated data pointer

Definition at line 118 of file atom_insert.c.