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

Functions to apply the edition actions to the model. More...

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

Go to the source code of this file.

Functions

void free_dummies (dummy_atom *tmp_pick)
 free atom dummy list
 
void clean_this_project (project *this_proj)
 clean project data for the edition process
 
void clean_motion_search (project *this_proj, atom_search *asearch, int sid)
 clean atom search motion data
 
int action_atoms_from_project (project *this_proj, atom_search *asearch, gboolean visible)
 apply atom edition action to project (motion, remove, replace, insert, random move)
 
void clean_all_trees (atom_search *asearch, project *this_proj)
 clean all tree models in the 'model edition' window
 
void apply_action (project *this_proj, atom_search *asearch)
 apply edition action
 
void prepare_random_action (project *this_proj, atom_search *asearch)
 prepare random action
 
gboolean do_we_have_objects_in_selection (project *this_proj, atom_search *asearch, gboolean editing)
 check for object(s) in selection to apply action
 
atom_searchduplicate_atom_search (atom_search *asearch)
 duplicate atom search data structure
 
G_MODULE_EXPORT void take_action (GtkButton *but, gpointer data)
 take edition action
 

Detailed Description

Functions to apply the edition actions to the model.

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

Function Documentation

◆ action_atoms_from_project()

int action_atoms_from_project ( project * this_proj,
atom_search * asearch,
gboolean visible )

apply atom edition action to project (motion, remove, replace, insert, random move)

Parameters
this_projthe target project
asearchthe target atom search
visibleis the 'model edition' window visible (1/0)

Definition at line 206 of file atom_action.c.

◆ apply_action()

void apply_action ( project * this_proj,
atom_search * asearch )

apply edition action

Parameters
this_projthe target project
asearchthe target atom search

Definition at line 1100 of file atom_action.c.

◆ clean_all_trees()

void clean_all_trees ( atom_search * asearch,
project * this_proj )

clean all tree models in the 'model edition' window

Parameters
asearchthe target atom search
this_projthe target project

Definition at line 1018 of file atom_action.c.

◆ clean_motion_search()

void clean_motion_search ( project * this_proj,
atom_search * asearch,
int sid )

clean atom search motion data

Parameters
this_projthe target project
asearchthe target atom search
sidmotion id

Definition at line 174 of file atom_action.c.

◆ clean_this_project()

void clean_this_project ( project * this_proj)

clean project data for the edition process

Parameters
this_projthe target project

Definition at line 85 of file atom_action.c.

◆ do_we_have_objects_in_selection()

gboolean do_we_have_objects_in_selection ( project * this_proj,
atom_search * asearch,
gboolean editing )

check for object(s) in selection to apply action

Parameters
this_projthe target project
asearchthe target atom search
editingactually going for action (1) or simply counting elements (0)

Definition at line 1369 of file atom_action.c.

◆ duplicate_atom_search()

atom_search * duplicate_atom_search ( atom_search * asearch)

duplicate atom search data structure

Parameters
asearch

Definition at line 1970 of file atom_action.c.

◆ free_dummies()

void free_dummies ( dummy_atom * tmp_pick)

free atom dummy list

Parameters
tmp_pickthe atom dummy list to free

Definition at line 60 of file atom_action.c.

◆ prepare_random_action()

void prepare_random_action ( project * this_proj,
atom_search * asearch )

prepare random action

Parameters
this_projthe target project
asearchthe target atom search

Definition at line 1171 of file atom_action.c.

◆ take_action()

G_MODULE_EXPORT void take_action ( GtkButton * but,
gpointer data )

take edition action

Parameters
butthe GtkButton sending the signal
datathe associated data pointer

Definition at line 2011 of file atom_action.c.