55extern G_MODULE_EXPORT
void box_advanced (GtkWidget * widg, gpointer data);
56extern G_MODULE_EXPORT
void axis_advanced (GtkWidget * widg, gpointer data);
58extern G_MODULE_EXPORT
void opengl_advanced (GtkWidget * widg, gpointer data);
72 if (this_proj -> analysis)
76 if (this_proj -> analysis[i])
78 this_proj -> analysis[i] -> avail_ok = FALSE;
79 this_proj -> analysis[i] -> init_ok = FALSE;
80 this_proj -> analysis[i] -> calc_ok = FALSE;
99 if (this_proj -> analysis[i]) this_proj -> analysis[i] -> num_delta =
default_num_delta[i];
101 if (this_proj -> analysis[
RIN])
106 if (this_proj -> analysis[
CHA])
111 if (this_proj -> analysis[
SPH])
156 gboolean cupdate = FALSE;
161 for (k=0; k<this_proj -> nspec; k++)
172 for (l=0; l<this_proj -> nspec; l++)
183 this_proj ->
chemistry -> cutoffs[k][l] = this_proj ->
chemistry -> cutoffs[l][k] = cut -> cutoff;
187 if (this_proj -> analysis)
213 if (this_proj -> modelgl)
215 image *
img = this_proj -> modelgl -> anim -> last ->
img;
222 if (this_proj ->
id !=
activep)
232 update (this_proj -> modelgl);
233 if (this_proj -> modelgl -> box_win)
235 if (this_proj -> modelgl -> box_win -> win) this_proj -> modelgl -> box_win -> win =
destroy_this_widget (this_proj -> modelgl -> box_win -> win);
236 g_free (this_proj -> modelgl -> box_win);
237 this_proj -> modelgl -> box_win = NULL;
240 if (this_proj -> modelgl -> axis_win)
242 if (this_proj -> modelgl -> axis_win -> win) this_proj -> modelgl -> axis_win -> win =
destroy_this_widget (this_proj -> modelgl -> axis_win -> win);
243 g_free (this_proj -> modelgl -> axis_win);
244 this_proj -> modelgl -> axis_win = NULL;
247 if (this_proj -> modelgl -> rep_win)
249 if (this_proj -> modelgl -> rep_win -> win) this_proj -> modelgl -> rep_win -> win =
destroy_this_widget (this_proj -> modelgl -> rep_win -> win);
250 g_free (this_proj -> modelgl -> rep_win);
251 this_proj -> modelgl -> rep_win = NULL;
254 if (this_proj -> modelgl -> opengl_win)
256 if (this_proj -> modelgl -> opengl_win -> win) this_proj -> modelgl -> opengl_win -> win =
destroy_this_widget (this_proj -> modelgl -> opengl_win -> win);
257 g_free (this_proj -> modelgl -> opengl_win);
258 this_proj -> modelgl -> opengl_win = NULL;
275 project * new_proj = g_malloc0(
sizeof*new_proj);
279 new_proj -> name = g_strdup_printf(
"%s%2d", _(
"Project N°"),
activep);
281 new_proj -> tfile = -1;
282 new_proj -> newproj = TRUE;
283 new_proj -> steps = 1;
287 new_proj -> xcor = 1;
288 new_proj -> sk_advanced[0][0] = new_proj -> sk_advanced[1][0] = 1.0;
289 new_proj -> sk_advanced[0][1] = new_proj -> sk_advanced[1][1] = 15.0;
295 new_proj -> coord = g_malloc0(
sizeof*new_proj -> coord);
296 if (alloc_box) new_proj -> cell.box = g_malloc0(
sizeof*new_proj -> cell.box);
313 new_proj -> newproj = FALSE;
Binding to the Fortran90 subroutines.
Callback declarations for main window.
integer(kind=c_int) function chemistry()
Variable declarations for the curve widget Functions for interactions with the curve widget.
Global variable declarations Global convenience function declarations Global data structure defin...
void remove_edition_actions()
remove all edition actions
GtkWidget * destroy_this_widget(GtkWidget *widg)
destroy a GtkWidget
void update(glwin *view)
update the rendering of the OpenGL window
Variable declarations related to the OpenGL window Function declarations related to the OpenGL wind...
Function declarations for the creation of the OpenGL window.
void setup_default_image(project *this_proj, image *img)
setup default image parameters
G_MODULE_EXPORT void opengl_advanced(GtkWidget *widg, gpointer data)
create OpenGL rendering advanced window
void init_curves_and_calc(project *this_proj)
for a project reset analysis, curves, data to not performed
void init_shaders(glwin *view)
initialize all the OpenGL shaders
void init_camera(project *this_proj)
initialize the OpenGL camera settings
G_MODULE_EXPORT void gradient_advanced(GtkWidget *widg, gpointer data)
Background configuration window.
void clean_atom_style(project *this_proj)
clean all atom(s) possible alternative rendering styles
G_MODULE_EXPORT void axis_advanced(GtkWidget *widg, gpointer data)
create the axis advanced parameters window
void apply_default_parameters_to_project(project *this_proj, gboolean with_analysis)
apply default parameters to project
void apply_analysis_default_parameters_to_project(project *this_proj)
apply default analysis parameters to project
void update_gradient_widgets(gradient_edition *gradient_win, background *back)
update the widgets of the gradient window
G_MODULE_EXPORT void box_advanced(GtkWidget *widg, gpointer data)
create the box edition window
void setup_default_species_parameters_for_image(project *this_proj, image *img)
setup default chemical species related parameters for image
G_MODULE_EXPORT void representation_advanced(GtkWidget *widg, gpointer data)
open advanced representation dialog
void init_project(gboolean alloc_box)
initialize a new project
Messaging function declarations.
void prep_calc_actions()
prepare analysis widgets
gboolean default_skt_sets
bond_cutoff * default_bond_cutoff
Preference variable declarations.
Function declarations for reading atomes project file Function declarations for saving atomes proje...
void active_project_changed(int id)
change the active project